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... | |
#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 422 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 500 of file mov_chan.c.
Referenced by aiff_read_header(), mov_read_chan(), and read_header().