Data Structures | |
struct | rte_codec_info |
Typedefs | |
typedef rte_codec | rte_codec |
Enumerations | |
enum | rte_stream_type { RTE_STREAM_VIDEO = 1, RTE_STREAM_AUDIO, RTE_STREAM_RAW_VBI, RTE_STREAM_SLICED_VBI, RTE_STREAM_MAX = 15 } |
Functions | |
rte_codec_info * | rte_codec_info_enum (rte_context *context, unsigned int index) |
rte_codec_info * | rte_codec_info_by_keyword (rte_context *context, const char *keyword) |
rte_codec_info * | rte_codec_info_by_codec (rte_codec *codec) |
rte_codec * | rte_set_codec (rte_context *context, const char *keyword, unsigned int stream_index, void *user_data) |
void | rte_codec_delete (rte_codec *codec) |
void * | rte_codec_user_data (rte_codec *codec) |
rte_option_info * | rte_codec_option_info_enum (rte_codec *codec, unsigned int index) |
rte_option_info * | rte_codec_option_info_by_keyword (rte_codec *codec, const char *keyword) |
rte_bool | rte_codec_option_get (rte_codec *codec, const char *keyword, rte_option_value *value) |
rte_bool | rte_codec_option_set (rte_codec *codec, const char *keyword,...) |
char * | rte_codec_option_print (rte_codec *codec, const char *keyword,...) |
rte_bool | rte_codec_option_menu_get (rte_codec *codec, const char *keyword, int *entry) |
rte_bool | rte_codec_option_menu_set (rte_codec *codec, const char *keyword, int entry) |
rte_bool | rte_codec_options_reset (rte_codec *codec) |
|
Opaque rte_codec object. You can allocate an rte_codec with rte_set_codec(). |
|
Basic type of the data processed by a codec. |
|
|
|
|
|
|
|
The stream number refers for example to one of the 16 video or 32 audio streams in a MPEG-1 program stream. The required and permitted number of elementary streams of each type is listed in rte_context_info. Naturally a context needs at least one elementary stream. The first and default stream has index number 0. When you already selected a codec for this stream type and index it will be replaced. All properties of the new codec instance are reset to their defaults. Possible mp1e backend initialization (error checks omitted): context = rte_context_new ("mp1e_mpeg1_ps", NULL, NULL); // MPEG-1 Program stream rte_set_codec (context, "mp1e_mpeg1_video", 0, NULL); // MPEG-1 Video (first elementary) rte_set_codec (context, "mp1e_mpeg2_layer2", 0, NULL); // MPEG-2 Audio (first elementary) rte_set_codec (context, "mp1e_mpeg1_layer2", 1, NULL); // MPEG-1 Audio (second elementary) As a special service you can set codec options by appending to the keyword like this: rte_set_codec (context, 0, "mp1e_mpeg2_layer_2; bit_rate=128000, comment="example");
|
|
|
|
|
|
|
|
|
|
|
|
Typical usage is:
rte_codec_option_set (codec, "frame_rate", (double) 3.141592); Note setting an option invalidates prior input stream parameter negotiation with rte_parameters_set(), so you should initialize the codec options first.
|
|
|
|
|
|
Note setting an option invalidates prior sample parameter negotiation with rte_parameters_set(), so you should initialize the codec options first.
|
|
|