亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關于我們
? 蟲蟲下載站

?? renderer_impl.h

?? 彩信瀏覽器
?? H
字號:
/* * This file is part of Ambulant Player, www.ambulantplayer.org. * * Copyright (C) 2003-2007 Stichting CWI,  * Kruislaan 413, 1098 SJ Amsterdam, The Netherlands. * * Ambulant Player is free software; you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation; either version 2.1 of the License, or * (at your option) any later version. * * Ambulant Player is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the * GNU Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with Ambulant Player; if not, write to the Free Software * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA *//*  * @$Id: renderer_impl.h,v 1.6 2007/02/12 14:14:09 jackjansen Exp $  */#ifndef AMBULANT_COMMON_RENDERER_IMPL_H#define AMBULANT_COMMON_RENDERER_IMPL_H#include "ambulant/config/config.h"#include "ambulant/lib/gtypes.h"#include "ambulant/lib/node.h"#include "ambulant/lib/callback.h"#include "ambulant/lib/mtsync.h"#include "ambulant/lib/event_processor.h"#include "ambulant/net/datasource.h"#include "ambulant/common/factory.h"#include "ambulant/common/layout.h"#include "ambulant/common/playable.h"namespace ambulant {namespace common {class global_playable_factory;		/// A convenience class implementing some of the common code for playables./// Most of the methods in this class store parameters that are common/// to most playables in protected instance variables./// Other methods do nothing, whenever that is/// acceptable behavior. For example, pausing an image does not do/// anything spectacular./// Use this class as a baseclass for your renderer/playable.class playable_imp : public playable {  public:	playable_imp(		playable_notification *context,		cookie_type cookie,		const lib::node *node,		lib::event_processor* evp) 	:	m_context(context), 		m_cookie(cookie),		m_node(node),		m_event_processor(evp) {	}	// common::playable methods	void pause(pause_display d=display_show) {}	void resume() {}//	void seek(double where) {}	void wantclicks(bool want) { m_wantclicks = want;}	void preroll(double when, double where, double how_much) {}	duration get_dur() { return duration(true, 0);}	cookie_type get_cookie() const { return m_cookie;}  protected:    playable_notification *m_context;	///< Status feedback object.    cookie_type m_cookie;				///< Parameter for status feedback object.	const lib::node	*m_node;			///< The DOM node this playable corresponds to.	lib::event_processor *m_event_processor;	///< The event_processor we can use.	bool m_wantclicks;					///< True if we should send gui events to m_context.};/// A convenience class implementing some of the common code for playables that/// are also renderers./// In addition to the functionality provided by playable_imp this class/// also provides default implementations of the renderer interface.class renderer_playable : public playable_imp, public renderer {  public:	renderer_playable(		playable_notification *context,		cookie_type cookie,		const lib::node *node,		lib::event_processor* evp);				// common::renderer interface	void set_surface(common::surface *dest) { m_dest = dest;}	void set_alignment(const common::alignment *align) { m_alignment = align; }	surface *get_surface() { return m_dest;}	virtual void user_event(const lib::point &where, int what = 0);		renderer *get_renderer() { return this; }	void transition_freeze_end(lib::rect r) { m_context->transitioned(m_cookie); }	virtual void start(double t);	virtual void stop();  protected:	virtual void _init_clip_begin_end();	///< Fill m_clip_begin and m_clip_end	surface *m_dest;		///< The surface we should render to.	const alignment *m_alignment;	///< The image alignment to use when rendering.	bool m_activated;		///< True when playing	bool m_erase_never;		///< True if erase="never" is specified on the node	net::timestamp_t m_clip_begin;	///< Where continuous media start playing (microseconds)	net::timestamp_t m_clip_end;	///< Where continuous media stop playing (microseconds)};/// A convenience class implementing some of the common code for playables that/// are also renderers and that receive data from a datasource./// In addition to the functionality provided by renderer_playable this class/// creates a raw datasource for the url specified in the node "src"/// attribute. On start() the datasource is started too. A subclass must/// define a readdone method which is called whenever data becomes available./// User event handling is also taken care of.class renderer_playable_ds : public renderer_playable {  public:	renderer_playable_ds(		playable_notification *context,		playable_notification::cookie_type cookie,		const lib::node *node,		lib::event_processor *evp,		common::factories* factory);			virtual ~renderer_playable_ds();		virtual void start(double where);	virtual void seek(double t);//	virtual void freeze() {}	virtual void stop();//	virtual void pause() {}//	virtual void resume() {}//	virtual void wantclicks(bool want);	virtual void redraw(const lib::rect &dirty, gui_window *window) = 0;	/// Called whenever data is available.	virtual void readdone() = 0;  protected:  	net::datasource *m_src;	///< The datasource.};/// A convenience class implementing some of the common code for playables that/// are also renderers, that receive data from a datasource and that cannot/// start rendering until all data is available./// In addition to the functionality provided by renderer_playable_ds this class/// creates a raw datasource for the url specified in the node "src"/// attribute. On start() the datasource is started too, and renderer_playable_dsall/// provides a readdone() method that simply collects all data. When all data/// has been received it schedules a redraw.////// Hence, when you subclass this class you only need to provide a redraw() method.class renderer_playable_dsall : public renderer_playable_ds {  public:	renderer_playable_dsall(		playable_notification *context,		playable_notification::cookie_type cookie,		const lib::node *node,		lib::event_processor *evp,		common::factories *factory)	:	renderer_playable_ds(context, cookie, node, evp, factory),		m_data(NULL),		m_data_size(0) {};	virtual ~renderer_playable_dsall();		virtual void seek(double t) {}  // Assume dsall playables are images and such  protected:	void readdone();	void *m_data;			///< The data to be rendered.	unsigned m_data_size;	///< The size of m_data.};/// Implementation of playable_factory./// Playable implementations register themselves with this object/// through add_factory(). Then, when the client code wants to allocate/// a new playable all factories are tried in order until one is/// able to create a playable.class global_playable_factory_impl : public global_playable_factory {  public:    global_playable_factory_impl();    ~global_playable_factory_impl();    	/// Add a factory.    void add_factory(playable_factory *rf);    	/// Create a new playable.    playable *new_playable(		playable_notification *context,		playable_notification::cookie_type cookie,		const lib::node *node,		lib::event_processor *evp);    	playable* new_aux_audio_playable(		playable_notification *context,		playable_notification::cookie_type cookie,		const lib::node *node,		lib::event_processor *evp,  		net::audio_datasource *src);  private:    std::vector<playable_factory *> m_factories;    playable_factory *m_default_factory;};/// Convience class: a playable_notification that does nothing.class empty_playable_notification : public playable_notification {	public:	// Playables nodifications 	  void started(cookie_type n, double t = 0)  {};	  void stopped(cookie_type n, double t = 0)  {};	  void stalled(cookie_type n, double t = 0)  {} ;	  void unstalled(cookie_type n, double t = 0) {};	  void clicked(cookie_type n, double t = 0)  {};	  void pointed(cookie_type n, double t = 0)  {}; // mouse over	  void transitioned(cookie_type n, double t = 0) {};};/// Convenience class for background renderers./// It implements some of the methods for a renderer that are applicable /// to background renderers. Subclasses only need to implement/// the redraw method./// Additionally, they should override the keep_as_background method.class background_renderer : public bgrenderer {  public:	background_renderer(const region_info *src)	:   m_src(src),		m_dst(NULL) {}	virtual ~background_renderer() {}	void set_surface(surface *destination) { m_dst = destination; }	void user_event(const lib::point &where, int what = 0) {};	void transition_freeze_end(lib::rect area) {};  protected:	const region_info *m_src;	///< Where we get our parameters (such as color) from.	surface *m_dst;				///< Where we should render to.};} // namespace common } // namespace ambulant#endif // AMBULANT_COMMON_RENDERER_IMPL_H

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
国产日韩v精品一区二区| 久久久蜜桃精品| 色偷偷成人一区二区三区91 | a美女胸又www黄视频久久| 久久精品免费看| 日精品一区二区| 婷婷久久综合九色综合绿巨人| 洋洋av久久久久久久一区| 亚洲男人的天堂在线观看| 亚洲免费在线观看| 亚洲一区在线免费观看| 亚洲制服丝袜av| 午夜免费欧美电影| 亚洲成人精品在线观看| 午夜精品福利久久久| 日本亚洲一区二区| 麻豆极品一区二区三区| 久久精品国产久精国产爱| 狠狠色丁香婷综合久久| 国产成人高清在线| 91在线码无精品| 欧美性一二三区| 51午夜精品国产| 久久蜜臀中文字幕| 国产精品不卡一区| 亚洲国产一区二区在线播放| 午夜精品久久久久久久久久| 青草av.久久免费一区| 韩国精品久久久| 色激情天天射综合网| 欧美日韩黄视频| 久久综合九色综合97婷婷女人| 久久精品男人天堂av| 国产精品电影一区二区三区| 亚洲午夜在线视频| 美女脱光内衣内裤视频久久网站| 国产成人精品一区二| 99久久777色| 欧美精三区欧美精三区| 国产网红主播福利一区二区| 亚洲激情网站免费观看| 蜜桃传媒麻豆第一区在线观看| 国产精品538一区二区在线| 97久久超碰精品国产| 欧美精品色综合| 久久久五月婷婷| 亚洲精品免费播放| 免费观看在线色综合| 99久久国产综合色|国产精品| 精品视频在线看| 亚洲精品一区二区在线观看| 亚洲欧美另类在线| 精品在线播放免费| 不卡电影免费在线播放一区| 欧美欧美午夜aⅴ在线观看| 日本一区二区三区电影| 一区二区三区蜜桃| 国产一区在线不卡| 在线观看www91| 国产午夜亚洲精品羞羞网站| 亚洲小少妇裸体bbw| 国产高清不卡一区二区| 欧美日韩精品免费| 国产精品福利一区二区三区| 日韩1区2区3区| 91丨porny丨国产入口| 日韩精品专区在线| 亚洲女女做受ⅹxx高潮| 国内外成人在线| 欧美日韩国产另类一区| 亚洲欧美综合色| 韩国av一区二区三区在线观看| 欧美午夜宅男影院| 国产精品久久久久一区二区三区| 日韩高清不卡一区| 在线观看亚洲一区| 成人免费一区二区三区视频| 国产一区二区伦理片| 欧美体内she精高潮| 亚洲丝袜另类动漫二区| 国产成人自拍网| 精品国内二区三区| 美女高潮久久久| 3d动漫精品啪啪1区2区免费| 亚洲色欲色欲www在线观看| 国产福利一区在线| 日韩欧美卡一卡二| 丝袜亚洲另类欧美| 欧美综合一区二区| 一区在线中文字幕| 丁香婷婷综合激情五月色| 精品伦理精品一区| 日韩精品成人一区二区三区| 欧美三级韩国三级日本一级| 亚洲激情在线激情| 在线看一区二区| 亚洲乱码国产乱码精品精98午夜| av在线不卡免费看| 国产精品久久一卡二卡| 成人高清免费观看| 中文一区二区完整视频在线观看| 国产精品一区二区你懂的| 一区二区三区日韩| 欧美一级一区二区| 欧美久久久久中文字幕| 日韩美女久久久| 波多野结衣精品在线| 日本特黄久久久高潮| 狠狠色丁香婷综合久久| 亚洲一区二区成人在线观看| 国产三级精品三级| 欧美一级片免费看| 丁香婷婷综合网| 国产午夜亚洲精品午夜鲁丝片| 国产精品自在在线| 国产精品天干天干在观线| 玖玖九九国产精品| 欧美日韩中文另类| 一区二区三区在线视频观看| 亚洲一级片在线观看| 欧美三级蜜桃2在线观看| 亚洲成人综合在线| 99国产精品久| 色哟哟国产精品| 午夜精品久久久久久久久久久| 成人午夜精品在线| 亚洲网友自拍偷拍| 精品在线一区二区| 在线免费观看日本一区| 欧美伊人久久久久久午夜久久久久| 亚洲成人午夜影院| 日韩在线卡一卡二| 国产+成+人+亚洲欧洲自线| av激情成人网| 91久久香蕉国产日韩欧美9色| 久久久亚洲精品一区二区三区| 久久美女艺术照精彩视频福利播放 | 亚洲综合在线第一页| 伊人性伊人情综合网| 亚洲bdsm女犯bdsm网站| 日韩三级精品电影久久久| 最新国产成人在线观看| 亚洲一区二区三区在线播放| 自拍av一区二区三区| 国产成人精品免费在线| 色播五月激情综合网| 欧美体内she精高潮| 亚洲色图制服诱惑| 日韩影院免费视频| 久久精品国产成人一区二区三区 | 99久久99久久综合| 国产日韩欧美高清| 国产精品久久久久久久久果冻传媒| 亚洲视频在线一区二区| 久久精品国产精品亚洲综合| 97成人超碰视| 欧美一区三区二区| 欧美美女一区二区三区| 欧美国产精品v| 亚洲成人777| 色婷婷一区二区三区四区| 欧美夫妻性生活| 国产日韩欧美电影| 亚洲18影院在线观看| 国产专区欧美精品| 欧美影视一区二区三区| 亚洲永久精品大片| 国产精品一二三区| 欧美日韩国产不卡| 美腿丝袜亚洲综合| 91网站最新地址| xfplay精品久久| 国产精品综合一区二区| 欧美亚一区二区| 久久久国际精品| 成人h动漫精品一区二区| 日韩欧美电影一区| 亚洲va欧美va天堂v国产综合| 欧美色成人综合| 国产精品进线69影院| 亚洲欧美日韩综合aⅴ视频| 91国产免费看| 国产精品素人一区二区| 亚洲一区二区在线视频| 日韩视频一区二区三区| 亚洲精品成a人| 蜜桃一区二区三区在线观看| 久久亚洲二区三区| 日韩一区精品视频| 成人免费三级在线| 亚洲午夜久久久久中文字幕久| av日韩在线网站| 欧美剧情电影在线观看完整版免费励志电影 | 久久精品一区二区三区四区| 日本不卡一二三| 精品在线一区二区三区| 日韩欧美在线综合网| 亚洲国产一区在线观看| 色美美综合视频| 亚洲精品乱码久久久久久日本蜜臀|