Modules | |
Structures describing codec parameters | |
Informations about supported codec parameters. | |
Data Structures | |
struct | lqt_codec_info_s |
Structure describing a codec. More... | |
Typedefs | |
typedef struct lqt_codec_info_s | lqt_codec_info_t |
Structure describing a codec. More... | |
Enumerations | |
enum | lqt_codec_type { LQT_CODEC_AUDIO, LQT_CODEC_VIDEO } |
Type of a codec (Audio or video). More... | |
enum | lqt_codec_direction { LQT_DIRECTION_ENCODE, LQT_DIRECTION_DECODE, LQT_DIRECTION_BOTH } |
Direction of the codec. More... | |
Functions | |
void | lqt_registry_init () |
Initialize the codec registry. More... | |
void | lqt_registry_destroy () |
Destroy the codec registry. More... | |
int | lqt_get_num_audio_codecs () |
Return the number of installed audio codecs. More... | |
int | lqt_get_num_video_codecs () |
Return the number of installed video codecs. More... | |
const lqt_codec_info_t* | lqt_get_audio_codec_info (int index) |
Return an audio codec. More... | |
const lqt_codec_info_t* | lqt_get_video_codec_info (int index) |
Return a video codec. More... | |
lqt_codec_info_t** | lqt_query_registry (int audio, int video, int encode, int decode) |
Return an array of any combination of audio/video en/decoders. More... | |
lqt_codec_info_t** | lqt_find_audio_codec (char *fourcc, int encode) |
Find an audio codec for a given fourcc. More... | |
lqt_codec_info_t** | lqt_find_audio_codec_by_wav_id (int wav_id, int encode) |
Find an audio codec for a given WAV ID. More... | |
lqt_codec_info_t** | lqt_find_video_codec (char *fourcc, int encode) |
Find a video codec for a given fourcc. More... | |
lqt_codec_info_t** | lqt_find_audio_codec_by_name (const char *name) |
Find an audio codec by its name. More... | |
lqt_codec_info_t** | lqt_find_video_codec_by_name (const char *name) |
Find a video codec by its name. More... | |
lqt_codec_info_t** | lqt_audio_codec_from_file (quicktime_t *file, int track) |
Get an audio codec from an open file. More... | |
lqt_codec_info_t** | lqt_video_codec_from_file (quicktime_t *file, int track) |
Get a video codec from an open file. More... | |
void | lqt_destroy_codec_info (lqt_codec_info_t **info) |
Destroy a codec info array. More... | |
void | lqt_reorder_audio_codecs (lqt_codec_info_t **codec_info) |
Reorder audio codecs. More... | |
void | lqt_reorder_video_codecs (lqt_codec_info_t **codec_info) |
Reorder video codecs. More... | |
void | lqt_set_default_parameter (lqt_codec_type type, int encode, const char *codec_name, const char *parameter_name, lqt_parameter_value_t *val) |
Change a default value for a codec parameter. More... | |
void | lqt_restore_default_parameters (lqt_codec_info_t *codec_info, int encode, int decode) |
Restore a default parameter from the codec module. More... | |
void | lqt_dump_codec_info (const lqt_codec_info_t *info) |
Dump a codec info to stderr. More... |
One of the goals when forking libquicktime was to have a modular structure. Codecs were moved to plugins and were compiled according to the dependencies found by the configure script. As a result, a mechanism became necessary for finding informations about available codecs at runtime, their properties, supported parameters etc.
The codec parameters are defined in a way that GUI configuration dialogs can be built at runtime. An example for this is the libquicktime_config utility.
Libquicktime saves data of the codecs in the file .libquicktime_codecs in your home directory. This saves the long time needed for opening each codec module to see what's inside. The codec registry can be configured with the libquicktime_config program.
|
Structure describing a codec.
|
|
Type of a codec (Audio or video).
|
|
Direction of the codec.
|
|
Initialize the codec registry.
Under normal circumstances, you never need to call this function, since the registry is always initialized on demand. |
|
Destroy the codec registry.
This frees memory for the whole codec database. It is normally called automatically, but you will need to call it exclicitely, if you want to reinitialize the codec registry at runtime |
|
Return the number of installed audio codecs.
|
|
Return the number of installed video codecs.
|
|
Return an audio codec.
|
|
Return a video codec.
|
|
Return an array of any combination of audio/video en/decoders.
|
|
Find an audio codec for a given fourcc.
|
|
Find an audio codec for a given WAV ID.
|
|
Find a video codec for a given fourcc.
|
|
Find an audio codec by its name.
|
|
Find a video codec by its name.
|
|
Get an audio codec from an open file.
|
|
Get a video codec from an open file.
|
|
Destroy a codec info array.
|
|
Reorder audio codecs.
|
|
Reorder video codecs.
|
|
Change a default value for a codec parameter.
|
|
Restore a default parameter from the codec module.
|
|
Dump a codec info to stderr.
|