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

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

?? datasource.h

?? 彩信瀏覽器
?? H
?? 第 1 頁 / 共 2 頁
字號:
/* * 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 */ #ifndef AMBULANT_NET_DATASOURCE_H#define AMBULANT_NET_DATASOURCE_H#include "ambulant/config/config.h"#include "ambulant/lib/callback.h"#include "ambulant/lib/refcount.h"#include "ambulant/lib/event_processor.h"#include "ambulant/lib/thread.h"#include "ambulant/common/playable.h"#include "ambulant/net/url.h"#include "ambulant/net/databuffer.h"#ifdef AMBULANT_PLATFORM_UNIX#include <stdint.h>#include "ambulant/lib/unix/unix_thread.h"#endif#ifdef _MSC_VER#pragma warning(disable : 4251)#endifnamespace ambulant {namespace net {	#ifdef AMBULANT_HAS_LONG_LONG  	typedef long long int timestamp_t; ///< Time value in microseconds.#else	typedef INT64 timestamp_t; ///< Time value in microseconds.#endif	/// This struct completely describes an audio format./// If name is "" the format is linear samples encoded/// in host order, and samplerate, channels and bits/// are meaningful. If name is nonempty it is some encoded/// format, parameters points to format-specific data/// and samplerate/channels/bits are not meaningful.struct audio_format {		std::string mime_type; ///< Mimetype of the format, or "audio/unknown"	std::string name;	///< Name of the format, or empty for linear samples	void *parameters;	///< For a named format, pointer to parameters	int samplerate;		///< For linear samples: the samplerate	int channels;		///< For linear samples: the number of channels	int bits;			///< For linear samples: the numer of bits per sample.		/// Default constructor: creates unknown audio_format.	audio_format()	:   mime_type("audio/unknown"),		name("unknown"),		parameters(NULL),		samplerate(0),		channels(0),		bits(0) {};			/// Constructor for linear samples, pass samplerate, number of channels, bits per sample.	audio_format(int s, int c, int b)	:   mime_type("audio/unknown"),		name(""),		parameters(NULL),		samplerate(s),		channels(c),		bits(b) {};		/// Constructor for named audio_format, optionally pass extra format-dependent info.	audio_format(const std::string &n, void *p=(void *)0)	:   mime_type("audio/unknown"),		name(n),		parameters(p),		samplerate(0),		channels(0),		bits(0) {};			/// Constructor for named audio_format, optionally pass extra format-dependent info.	audio_format(const char *n, void *p=(void *)0)	:   mime_type("audio/unknown"),		name(n),		parameters(p),		samplerate(0),		channels(0),		bits(0) {};};/// This struct completely describes a video format./// If name is "" the format is a sequence of uncompressed images./// Parameters may be 0 if the values are not known.struct video_format {		std::string mime_type;      ///< Mimetype of the format, or "video/unknown"	std::string name;			///< Name of the format	void *parameters;			///< For a named format, pointer to parameters	timestamp_t frameduration;	///< For linear samples: the samplerate	int width;					/// The width of the video	int height;					///	The height of the video		/// Default constructor: creates unknown video_format.	video_format()	:   mime_type("video/unknown"),		name("unknown"),		parameters(NULL),		frameduration(0),		width(0),		height(0) {};			/// Constructor for named video_format.	video_format(std::string &n, void *p=(void *)0)	:   mime_type("video/unknown"),		name(n),		parameters(p),		frameduration(0),		width(0),		height(0) {};			/// Constructor for named video_format.	video_format(const char *n, void *p=(void *)0)	:   mime_type("video/unknown"),		name(n),		parameters(p),		frameduration(0),		width(0),		height(0) {};};#ifdef __OBJC__// This is a workaround for a problem when using gcc 3.3 to compile// ObjC++;#endif// This class describes the range of audio formats supported by a consumer.// It always contains at least one supported format.// The design assumes that support for various sample rates, channels and// bits are independent variables. In addition, an audio_format_choices// can support both various linear formats and named formats.class audio_format_choices {  public:  	/// Default constructor: support no formats.	audio_format_choices();		/// Constructor using a single audio_format.	audio_format_choices(const audio_format &fmt);		/// Constructor using a linear sample format. 	audio_format_choices(int samplerate, int channels, int bits);		/// Constructor using a named format.	audio_format_choices(const std::string &name);		/// Return the best (highest quality) format.	const audio_format& best() const;		/// Add support for an additional samplerate.	void add_samplerate(int samplerate);		/// Add support for an additional number of channels.	void add_channels(int channels);		/// Add support for an addition number of bits per sample.	void add_bits(int bits);		/// Add support for an additional named format.	void add_named_format(const std::string &name);		/// Return true if the audio_format argument matches any of the supported formats.	bool contains(const audio_format& fmt) const;	  private:	audio_format m_best;	std::set<int> m_samplerate;	std::set<int> m_channels;	std::set<int> m_bits;	std::set<std::string> m_named_formats;};struct ts_packet_t { timestamp_t timestamp; void* data; int size; 	ts_packet_t(timestamp_t t, void* d, int s) 	  : timestamp(t), data(d), size(s) {}};/// The interface to an object that supplies data to a consumer./// The consumer calls start() whenever it wants/// data. This call returns immedeately and later the datasource arranges/// that the callback is done, when data is available. The consumer then/// calls size(), get_read_ptr() and end_of_file() to get available data size,/// pointer and status. Whenever the consumer has consumed some bytes it calls/// read_done().class AMBULANTAPI datasource : virtual public ambulant::lib::ref_counted {  	  public:	virtual ~datasource() {};	/// Called by the client to indicate it wants more data.	/// When the data is available (or end of file reached) exactly one	/// callback is scheduled through the event_processor.	virtual void start(ambulant::lib::event_processor *evp, ambulant::lib::event *callback) = 0;		/// Called by the client to indicate it wants no more data.	virtual void stop() = 0;	/// Return true if all data has been consumed.	virtual bool end_of_file() = 0;		/// Return a pointer to the current data.	/// Should only be called from the callback routine.	virtual char* get_read_ptr() = 0;		/// Return the number of bytes available at get_read_ptr().	virtual int size() const = 0;			/// Called by the client to signal it has consumed len bytes.	virtual void readdone(int len) = 0;};class AMBULANTAPI pkt_datasource : virtual public ambulant::lib::ref_counted {  	  public:	virtual ~pkt_datasource() {};	/// Called by the client to indicate it wants more data.	/// When the data is available (or end of file reached) exactly one	/// callback is scheduled through the event_processor.	virtual void start(ambulant::lib::event_processor *evp, ambulant::lib::event *callback) = 0;		/// Called by the client to indicate it wants no more data.	virtual void stop() = 0;	/// Return true if all data has been consumed.	virtual bool end_of_file() = 0;		/// Return the next timestamped packet and discard it.	virtual ts_packet_t get_ts_packet_t() = 0;};/// Interface to an object that supplies audio data to a consumer./// Audio_datasource extends the datasource protocol with methods to obtain/// information on the way the audio data is encoded and methods to support/// temporal clipping of the audio.class audio_datasource_mixin {  public:	virtual ~audio_datasource_mixin() {};	/// Returns the native format of the audio data.	virtual audio_format& get_audio_format() = 0;	/// Tells the datasource to start reading data starting from time t.	virtual void read_ahead(timestamp_t time) = 0; 	/// At what timestamp value should the audio playback stop?	virtual timestamp_t get_clip_end() = 0;	/// At what timestamp value should audio playback start?		virtual timestamp_t get_clip_begin() = 0;	/// returns m_clip_begin if the datasource took care of clip_begin otherwise it returns 0	virtual timestamp_t get_start_time() = 0;	/// Return the duration of the audio data, if known.	virtual common::duration get_dur() = 0;};class audio_datasource : public datasource, public audio_datasource_mixin {  public:	virtual ~audio_datasource() {};};class pkt_audio_datasource : public pkt_datasource, public audio_datasource_mixin {  public:	virtual ~pkt_audio_datasource() {};};/// Implementation of audio_datasource that reads raw audio data from a datasource.class raw_audio_datasource: 	virtual public audio_datasource,	virtual public lib::ref_counted_obj{  public:	raw_audio_datasource(datasource* src) :   		m_src(src),		m_fmt(audio_format(0,0,0)),		m_duration(false,0.0)  {};  	~raw_audio_datasource() {};  	    void start(lib::event_processor *evp, lib::event *callback) { m_src->start(evp,callback); };	void stop() { m_src->stop(); };  	void read_ahead(timestamp_t time){};  	void seek(timestamp_t time){};    void readdone(int len) { m_src->readdone(len); };    bool end_of_file() { return m_src->end_of_file(); };	bool buffer_full() { return false; };  	timestamp_t get_clip_end() { return -1; };	timestamp_t get_clip_begin() { return 0; };	timestamp_t get_start_time() { return 0; };	char* get_read_ptr() { return m_src->get_read_ptr(); };	int size() const { return m_src->size(); };   	audio_format& get_audio_format() { return m_fmt; };	common::duration get_dur() {	return m_duration; };    private:	datasource* m_src;  	audio_format m_fmt;  	common::duration m_duration;		};/// Interface to an object that supplies video data to a consumer.// Video_datasource is *not* a subclass of datasource: it does not deliver a stream// of bytes (like datasource and audio_datasource) but a stream of images.// It also has an ad-hoc method to determine whether audio is available too, and obtain// a datasource for that.

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
91亚洲精品久久久蜜桃| 国产福利一区二区三区视频在线| 久久中文字幕电影| 欧美大片拔萝卜| 欧美一区二区精品在线| 日韩一区二区三区三四区视频在线观看 | 一本大道久久a久久精二百| 国产美女娇喘av呻吟久久| 久久 天天综合| 国产精品区一区二区三| 亚洲欧美偷拍卡通变态| 国产成人综合在线观看| 91精品国产综合久久久久久| 成人视屏免费看| 日韩欧美电影在线| 首页欧美精品中文字幕| 色综合久久综合网97色综合| 国产日产欧美精品一区二区三区| 天涯成人国产亚洲精品一区av| 成人一道本在线| 精品国产乱码久久久久久闺蜜| 亚洲欧美一区二区三区久本道91| 成人黄色一级视频| 国产色综合久久| 精久久久久久久久久久| 精品国产乱码久久久久久图片| 五月激情综合网| 欧美精品第1页| 五月天激情综合网| 欧美伦理电影网| 亚洲成av人在线观看| 欧美日韩日日骚| 亚洲午夜羞羞片| 欧美日韩精品一区二区三区| 亚洲综合色成人| 欧美三级欧美一级| 午夜久久电影网| 欧美精品久久天天躁| 天堂在线一区二区| 日韩女优电影在线观看| 激情综合一区二区三区| 久久久久9999亚洲精品| 成人午夜av在线| 国产精品家庭影院| 色屁屁一区二区| 日韩激情一二三区| 日韩三级视频在线观看| 韩国毛片一区二区三区| 国产三级精品视频| 色哟哟精品一区| 亚洲国产精品影院| 精品久久久久久久人人人人传媒 | 久久久五月婷婷| 成人免费va视频| 亚洲精品一二三区| 欧美情侣在线播放| 激情综合网av| 国产精品久久久久久久久果冻传媒 | 欧美亚洲愉拍一区二区| 日韩av电影免费观看高清完整版| 日韩精品一区二区三区视频在线观看 | 国产精品中文欧美| 一区二区中文字幕在线| 欧美精品一二三| 国产精品自拍一区| 亚洲在线中文字幕| 精品成人a区在线观看| 99久久综合99久久综合网站| 欧美日韩精品欧美日韩精品一综合| 91精品蜜臀在线一区尤物| 亚洲国产日韩综合久久精品| 97久久人人超碰| 国产精品久久久久一区| 国产99精品国产| 国产三级三级三级精品8ⅰ区| 蜜臀av国产精品久久久久| 欧美久久久久久蜜桃| 图片区小说区国产精品视频| 欧美三日本三级三级在线播放| 亚洲欧洲综合另类在线 | 一区二区在线观看视频| 99riav一区二区三区| 国产精品国产三级国产aⅴ无密码| 亚洲欧洲精品一区二区三区不卡| 日韩亚洲欧美在线观看| 色偷偷88欧美精品久久久| 久久精品国产亚洲a| 亚洲精品视频一区二区| 欧美激情自拍偷拍| 日韩欧美在线一区二区三区| 91丨porny丨在线| 国产精品123区| 久久精品国产**网站演员| 亚洲高清视频的网址| 亚洲色图丝袜美腿| 国产午夜精品一区二区三区嫩草 | 日韩视频免费观看高清在线视频| 91在线无精精品入口| 国产一区视频网站| 精品在线视频一区| 在线播放国产精品二区一二区四区| 国产精品国模大尺度视频| 欧美亚洲综合一区| 麻豆一区二区三区| 国产精品欧美极品| 欧美日韩精品三区| 国产福利电影一区二区三区| 一区二区中文字幕在线| 制服丝袜成人动漫| 成人一道本在线| 亚洲国产欧美在线人成| 欧美va在线播放| 91猫先生在线| 久久66热re国产| 一区二区三区在线高清| 久久欧美一区二区| 欧美日精品一区视频| 国内精品视频一区二区三区八戒 | 爽好久久久欧美精品| 中国色在线观看另类| 欧美男女性生活在线直播观看| 国产乱淫av一区二区三区| 亚洲一区二区在线播放相泽| 久久久久久亚洲综合| 欧美三级在线视频| 岛国精品一区二区| 精品无人码麻豆乱码1区2区 | 国产成人夜色高潮福利影视| 一区二区三区四区在线播放 | 国内精品视频666| 午夜免费久久看| 亚洲人成精品久久久久久| 国产亚洲欧美在线| 欧美一区二区三区人| 欧美中文字幕不卡| 97久久精品人人爽人人爽蜜臀| 另类人妖一区二区av| 天天做天天摸天天爽国产一区 | 欧美午夜精品久久久久久超碰| 日韩精品一区二区三区视频播放 | 国产不卡一区视频| 不卡一卡二卡三乱码免费网站 | av男人天堂一区| 99国产精品一区| 777久久久精品| 国产午夜精品福利| 亚洲女厕所小便bbb| 午夜精品视频一区| 岛国精品一区二区| 欧美群妇大交群的观看方式| 久久综合99re88久久爱| 亚洲黄色录像片| 蜜桃av一区二区三区| 成人高清免费观看| 亚洲激情成人在线| 1区2区3区国产精品| 中文字幕中文字幕一区二区| 亚洲欧洲三级电影| 亚洲综合小说图片| 亚洲一区二区三区四区的| 亚洲大尺度视频在线观看| 一区二区三区日韩| 无码av免费一区二区三区试看| 午夜精品久久久久久久蜜桃app| 天天亚洲美女在线视频| 日韩精品乱码av一区二区| 蜜臀av性久久久久蜜臀aⅴ流畅| 美女性感视频久久| 国产成人亚洲精品青草天美| 91碰在线视频| 欧美巨大另类极品videosbest| 日韩欧美一级特黄在线播放| 亚洲精品在线电影| 国产精品福利av| 亚洲电影视频在线| 精品一区二区三区视频在线观看 | 国产精品沙发午睡系列990531| 中文字幕+乱码+中文字幕一区| 综合中文字幕亚洲| 日韩av二区在线播放| 国产高清精品在线| 欧美三级午夜理伦三级中视频| 日韩一区二区高清| 国产精品色哟哟网站| 性欧美疯狂xxxxbbbb| 国产永久精品大片wwwapp| 91在线视频免费观看| 日韩欧美国产电影| 国产精品亲子乱子伦xxxx裸| 五月婷婷激情综合网| 国产精品白丝av| 欧美日韩国产成人在线免费| 久久久www成人免费毛片麻豆| 亚洲老妇xxxxxx| 久久精品国产久精国产爱| 99精品视频一区| 久久亚洲精华国产精华液| 一区二区三区欧美视频| 国产成人免费视频精品含羞草妖精| 一本到高清视频免费精品|