Public メソッド |
| | encoder (size_type w=320, size_type h=240, size_type frame_rate_num=1, size_type frame_rate_den=30, double frame_aspect_ratio=4.0/3.0, size_type bit_rate=1150000, size_type qmin=0, size_type qmax=0, size_type gop_size=12, size_type max_b_frames=2) |
| | コンストラクタ
|
| | encoder (const std::string &filename, size_type w=320, size_type h=240, size_type frame_rate_num=1, size_type frame_rate_den=30, double frame_aspect_ratio=4.0/3.0, size_type bit_rate=1150000, size_type qmin=0, size_type qmax=0, size_type gop_size=12, size_type max_b_frames=2) |
| | コンストラクタ
|
|
virtual | ~encoder () |
| | デストラクタ
|
| | encoder (size_type w=320, size_type h=240, size_type frame_rate_num=1, size_type frame_rate_den=30, double frame_aspect_ratio=4.0/3.0, size_type bit_rate=1150000, size_type qmin=0, size_type qmax=0, size_type gop_size=12, size_type max_b_frames=2, size_type audio_bit_rate=64000, size_type audio_sampling_rate=44100, size_type audio_channels=2) |
| | コンストラクタ
|
|
virtual bool | is_open () const |
| | ビデオストリームが開いているかどうかを返す
|
|
virtual bool | is_eof () const |
| | ビデオストリームの終わりに来たかどうかを返す
|
|
virtual bool | dump () const |
| | ストリームのフォーマットを標準出力にダンプする
|
|
virtual long double | time () const |
| | 現在のフレーム番号を得る
|
|
virtual long double | duration () const |
| | 総フレーム数を得る
|
|
virtual const std::string | filename () const |
| | ファイル名を得る
|
|
virtual size_type | bit_rate () const |
| | ビットレートを得る
|
|
virtual size_type | width () const |
| | フレームの幅を得る
|
|
virtual size_type | height () const |
| | フレームの高さを得る
|
|
virtual long double | frame_rate_numerator () const |
| | フレームレートを得る
|
|
virtual long double | frame_rate_denominator () const |
| | フレームレートベースを得る(実際のフレームレート=フレームレート/フレームレートベース)
|
|
virtual long double | frame_aspect_ratio () const |
| | フレームのアスペクト比を得る(ウィンドウ幅/ウィンドウ高さ)
|
| bool | open (const std::string &filename, const std::string &format_type, const std::string &video_type, const std::string &mime_type, codec_id_type codec_id=CODEC_ID_NONE) |
| | ビデオファイル名およびMIME情報等を用いて出力用ビデオストリームを開く
|
|
bool | close () |
| | ビデオストリームを閉じる
|
| template<class T , class Allocator > |
| bool | write (const array2< T, Allocator > &image, long double tm=-1.0) |
| | array2形式の画像をフレームバッファに書き込み,エンコードしてストリームに出力する
|
|
virtual bool | is_open () const =0 |
| | ビデオストリームが開いているかどうかを返す
|
|
virtual bool | is_eof () const =0 |
| | ビデオストリームの終わりに来たかどうかを返す
|
|
virtual bool | dump () const =0 |
| | ストリームのフォーマットを標準出力にダンプする
|
|
virtual long double | time () const =0 |
| | 現在のビデオストリーム上での再生位置を表す秒数
|
|
virtual long double | duration () const =0 |
| | ビデオストリームの総秒数を返す
|
|
virtual const std::string | filename () const =0 |
| | ファイル名を返す
|
|
virtual size_type | bit_rate () const =0 |
| | ビットレートを返す
|
|
virtual size_type | width () const =0 |
| | フレームの幅を返す
|
|
virtual size_type | height () const =0 |
| | フレームの高さを返す
|
|
virtual long double | frame_rate_numerator () const =0 |
| | フレームレート(A÷B)の分子部分のAを返す
|
|
virtual long double | frame_rate_denominator () const =0 |
| | フレームレート(A÷B)の分母部分のBを返す
|
|
virtual long double | frame_aspect_ratio () const =0 |
| | フレームのアスペクト比を得る(ウィンドウ幅/ウィンドウ高さ)
|
|
virtual long double | frame_rate () const |
| | フレームレートを返す
|
|
virtual long double | seconds_per_frame () const |
| | 1フレームあたりの時間を返す
|