FFmpeg
|
#include <stdint.h>
#include "libavutil/channel_layout.h"
#include "libavcodec/codec_id.h"
#include "libavcodec/codec_par.h"
#include "avformat.h"
Go to the source code of this file.
Macros | |
#define | MOV_CH_LAYOUT_UNKNOWN 0xFFFF0000 |
Functions | |
int | ff_mov_get_channel_layout_tag (const AVCodecParameters *par, uint32_t *layout, uint32_t *bitmap, uint32_t **pchannel_desc) |
Get the channel layout tag for the specified codec id and channel layout. More... | |
int | ff_mov_read_chan (AVFormatContext *s, AVIOContext *pb, AVStream *st, int64_t size) |
Read 'chan' tag from the input stream. More... | |
int | ff_mov_get_channel_config_from_layout (const AVChannelLayout *layout, int *config) |
Get ISO/IEC 23001-8 ChannelConfiguration from AVChannelLayout. More... | |
int | ff_mov_get_channel_layout_from_config (int config, AVChannelLayout *layout, uint64_t omitted_channel_map) |
Get AVChannelLayout from ISO/IEC 23001-8 ChannelConfiguration. More... | |
int | ff_mov_get_channel_positions_from_layout (const AVChannelLayout *layout, uint8_t *position, int position_num) |
Get ISO/IEC 23001-8 OutputChannelPosition from AVChannelLayout. More... | |
int | ff_mov_read_chnl (AVFormatContext *s, AVIOContext *pb, AVStream *st) |
Read 'chnl' tag from the input stream. More... | |
#define MOV_CH_LAYOUT_UNKNOWN 0xFFFF0000 |
Definition at line 52 of file mov_chan.h.
enum MovChannelLayoutTag |
mov 'chan' tag reading/writing.
Core Audio File Format Spec: "The high 16 bits indicates a specific ordering of the channels." Core Audio Data Types Reference: "These identifiers specify the channels included in a layout but do not specify a particular ordering of those channels."
Definition at line 51 of file mov_chan.h.
int ff_mov_get_channel_layout_tag | ( | const AVCodecParameters * | par, |
uint32_t * | layout, | ||
uint32_t * | bitmap, | ||
uint32_t ** | pchannel_desc | ||
) |
Get the channel layout tag for the specified codec id and channel layout.
If the layout tag was not found, use a channel bitmap if possible.
[in] | codec_id | codec id |
[in] | channel_layout | channel layout |
[out] | bitmap | channel bitmap |
Definition at line 463 of file mov_chan.c.
Referenced by mov_write_chan_tag().
int ff_mov_read_chan | ( | AVFormatContext * | s, |
AVIOContext * | pb, | ||
AVStream * | st, | ||
int64_t | size | ||
) |
Read 'chan' tag from the input stream.
s | AVFormatContext |
pb | AVIOContext |
st | The stream to set codec values for |
size | Remaining size in the 'chan' tag |
Definition at line 524 of file mov_chan.c.
Referenced by aiff_read_header(), mov_read_chan(), and read_header().
int ff_mov_get_channel_config_from_layout | ( | const AVChannelLayout * | layout, |
int * | config | ||
) |
Get ISO/IEC 23001-8 ChannelConfiguration from AVChannelLayout.
Definition at line 673 of file mov_chan.c.
Referenced by mov_write_chnl_tag().
int ff_mov_get_channel_layout_from_config | ( | int | config, |
AVChannelLayout * | layout, | ||
uint64_t | omitted_channel_map | ||
) |
Get AVChannelLayout from ISO/IEC 23001-8 ChannelConfiguration.
Definition at line 687 of file mov_chan.c.
Referenced by ff_mov_read_chnl().
int ff_mov_get_channel_positions_from_layout | ( | const AVChannelLayout * | layout, |
uint8_t * | position, | ||
int | position_num | ||
) |
Get ISO/IEC 23001-8 OutputChannelPosition from AVChannelLayout.
Definition at line 702 of file mov_chan.c.
Referenced by mov_write_chnl_tag().
int ff_mov_read_chnl | ( | AVFormatContext * | s, |
AVIOContext * | pb, | ||
AVStream * | st | ||
) |
Read 'chnl' tag from the input stream.
s | AVFormatContext |
pb | AVIOContext |
st | The stream to set codec values for |
Definition at line 729 of file mov_chan.c.
Referenced by mov_read_chnl().