MPF Codec Descriptor. More...
#include <apr_tables.h>#include "apt_string.h"#include "mpf.h"Go to the source code of this file.
MPF Codec Descriptor.
| #define BITS_PER_SAMPLE 16 |
Bits per sample for linear pcm
| #define BYTES_PER_SAMPLE 2 |
Bytes per sample for linear pcm
| #define CODEC_FRAME_TIME_BASE 10 |
Codec frame time base in msec
| typedef struct mpf_codec_attribs_t mpf_codec_attribs_t |
Codec attributes declaration
| typedef struct mpf_codec_capabilities_t mpf_codec_capabilities_t |
Codec capabilities declaration
| typedef struct mpf_codec_descriptor_t mpf_codec_descriptor_t |
Codec descriptor declaration
| typedef struct mpf_codec_frame_t mpf_codec_frame_t |
Codec frame declaration
| typedef struct mpf_codec_list_t mpf_codec_list_t |
Codec list declaration
| enum mpf_sample_rates_e |
Supported sampling rates
| apt_bool_t mpf_codec_default_capabilities_add | ( | mpf_codec_capabilities_t * | capabilities | ) |
Add default (liear PCM) capabilities
| mpf_codec_descriptor_t* mpf_codec_descriptor_create_by_capabilities | ( | const mpf_codec_capabilities_t * | capabilities, | |
| const mpf_codec_descriptor_t * | peer, | |||
| apr_pool_t * | pool | |||
| ) |
Create codec descriptor by capabilities
| apt_bool_t mpf_codec_descriptor_match_by_attribs | ( | mpf_codec_descriptor_t * | descriptor, | |
| const mpf_codec_descriptor_t * | static_descriptor, | |||
| const mpf_codec_attribs_t * | attribs | |||
| ) |
Match codec descriptor by attribs specified
| apt_bool_t mpf_codec_descriptors_match | ( | const mpf_codec_descriptor_t * | descriptor1, | |
| const mpf_codec_descriptor_t * | descriptor2 | |||
| ) |
Match two codec descriptors
| mpf_codec_descriptor_t* mpf_codec_list_descriptor_find | ( | const mpf_codec_list_t * | codec_list, | |
| const mpf_codec_descriptor_t * | descriptor | |||
| ) |
Find matched descriptor in codec list
| apt_bool_t mpf_codec_list_modify | ( | mpf_codec_list_t * | codec_list, | |
| const mpf_codec_capabilities_t * | capabilities | |||
| ) |
Modify codec list according to capabilities specified
| apt_bool_t mpf_codec_lists_intersect | ( | mpf_codec_list_t * | codec_list1, | |
| mpf_codec_list_t * | codec_list2 | |||
| ) |
Intersect two codec lists
| mpf_codec_descriptor_t* mpf_codec_lpcm_descriptor_create | ( | apr_uint16_t | sampling_rate, | |
| apr_byte_t | channel_count, | |||
| apr_pool_t * | pool | |||
| ) |
Create linear PCM descriptor
| apt_bool_t mpf_codec_lpcm_descriptor_match | ( | const mpf_codec_descriptor_t * | descriptor | ) |
Match specified codec descriptor and the default lpcm one
| int mpf_sample_rate_mask_get | ( | apr_uint16_t | sampling_rate | ) |
Get sampling rate mask (mpf_sample_rate_e) by integer value
1.6.1