FFmpeg
Functions
mov_chan.h File Reference
#include <stdint.h>
#include "libavcodec/codec_id.h"
#include "avformat.h"

Go to the source code of this file.

Functions

uint32_t ff_mov_get_channel_layout_tag (enum AVCodecID codec_id, uint64_t channel_layout, uint32_t *bitmap)
 mov 'chan' tag reading/writing. More...
 
int ff_mov_read_chan (AVFormatContext *s, AVIOContext *pb, AVStream *st, int64_t size)
 Read 'chan' tag from the input stream. More...
 

Function Documentation

◆ ff_mov_get_channel_layout_tag()

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

mov 'chan' tag reading/writing.

Author
Justin Ruggles 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 501 of file mov_chan.c.

Referenced by mov_write_chan_tag().

◆ ff_mov_read_chan()

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 554 of file mov_chan.c.

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