FFmpeg
mov_chan.h
Go to the documentation of this file.
1 /*
2  * Copyright (c) 2011 Justin Ruggles
3  *
4  * This file is part of FFmpeg.
5  *
6  * FFmpeg is free software; you can redistribute it and/or
7  * modify it under the terms of the GNU Lesser General Public
8  * License as published by the Free Software Foundation; either
9  * version 2.1 of the License, or (at your option) any later version.
10  *
11  * FFmpeg is distributed in the hope that it will be useful,
12  * but WITHOUT ANY WARRANTY; without even the implied warranty of
13  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14  * Lesser General Public License for more details.
15  *
16  * You should have received a copy of the GNU Lesser General Public
17  * License along with FFmpeg; if not, write to the Free Software
18  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
19  */
20 
21 /**
22  * mov 'chan' tag reading/writing.
23  * @author Justin Ruggles
24  */
25 
26 #ifndef AVFORMAT_MOV_CHAN_H
27 #define AVFORMAT_MOV_CHAN_H
28 
29 #include <stdint.h>
30 
31 #include "libavcodec/codec_id.h"
32 #include "avformat.h"
33 
34 /**
35  * Get the channel layout tag for the specified codec id and channel layout.
36  * If the layout tag was not found, use a channel bitmap if possible.
37  *
38  * @param[in] codec_id codec id
39  * @param[in] channel_layout channel layout
40  * @param[out] bitmap channel bitmap
41  * @return channel layout tag
42  */
44  uint64_t channel_layout,
45  uint32_t *bitmap);
46 
47 /**
48  * Read 'chan' tag from the input stream.
49  *
50  * @param s AVFormatContext
51  * @param pb AVIOContext
52  * @param st The stream to set codec values for
53  * @param size Remaining size in the 'chan' tag
54  * @return 0 if ok, or negative AVERROR code on failure
55  */
57  int64_t size);
58 
59 #endif /* AVFORMAT_MOV_CHAN_H */
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.
Definition: mov_chan.c:554
codec_id.h
s
#define s(width, name)
Definition: cbs_vp9.c:257
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.
Definition: mov_chan.c:501
codec_id
enum AVCodecID codec_id
Definition: vaapi_decode.c:369
AVFormatContext
Format I/O context.
Definition: avformat.h:1109
AVCodecID
AVCodecID
Identify the syntax and semantics of the bitstream.
Definition: codec_id.h:47
AVIOContext
Bytestream IO Context.
Definition: avio.h:161
size
int size
Definition: twinvq_data.h:10344
AVStream
Stream structure.
Definition: avformat.h:857
avformat.h