FFmpeg
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Functions
mov_chan.h File Reference
#include <stdint.h>
#include "libavcodec/avcodec.h"
#include "avformat.h"

Go to the source code of this file.

Functions

uint64_t ff_mov_get_channel_layout (uint32_t tag, uint32_t bitmap)
 mov 'chan' tag reading/writing.
 
uint32_t ff_mov_get_channel_layout_tag (enum AVCodecID codec_id, uint64_t channel_layout, uint32_t *bitmap)
 Get the channel layout tag for the specified codec id and channel layout.
 
int ff_mov_read_chan (AVFormatContext *s, AVIOContext *pb, AVStream *st, int64_t size)
 Read 'chan' tag from the input stream.
 

Function Documentation

uint64_t ff_mov_get_channel_layout ( uint32_t  tag,
uint32_t  bitmap 
)

mov 'chan' tag reading/writing.

Author
Justin Ruggles Get the channel layout for the specified channel layout tag.
Parameters
[in]tagchannel layout tag
[out]bitmapchannel bitmap (only used if needed)
Returns
channel layout

Definition at line 453 of file mov_chan.c.

Referenced by ff_mov_read_chan().

uint32_t ff_mov_get_channel_layout_tag ( enum AVCodecID  codec_id,
uint64_t  channel_layout,
uint32_t *  bitmap 
)

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.

Parameters
[in]codec_idcodec id
[in]channel_layoutchannel layout
[out]bitmapchannel bitmap
Returns
channel layout tag

Definition at line 493 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.

Parameters
sAVFormatContext
pbAVIOContext
stThe stream to set codec values for
sizeRemaining size in the 'chan' tag
Returns
0 if ok, or negative AVERROR code on failure

Definition at line 546 of file mov_chan.c.

Referenced by aiff_read_header(), mov_read_chan(), and read_header().