annotate ffmpeg/libavformat/mov_chan.h @ 13:844d341cf643 tip

Back up before ISMIR
author Yading Song <yading.song@eecs.qmul.ac.uk>
date Thu, 31 Oct 2013 13:17:06 +0000
parents f445c3017523
children
rev   line source
yading@11 1 /*
yading@11 2 * Copyright (c) 2011 Justin Ruggles
yading@11 3 *
yading@11 4 * This file is part of Libav.
yading@11 5 *
yading@11 6 * Libav is free software; you can redistribute it and/or
yading@11 7 * modify it under the terms of the GNU Lesser General Public
yading@11 8 * License as published by the Free Software Foundation; either
yading@11 9 * version 2.1 of the License, or (at your option) any later version.
yading@11 10 *
yading@11 11 * Libav is distributed in the hope that it will be useful,
yading@11 12 * but WITHOUT ANY WARRANTY; without even the implied warranty of
yading@11 13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
yading@11 14 * Lesser General Public License for more details.
yading@11 15 *
yading@11 16 * You should have received a copy of the GNU Lesser General Public
yading@11 17 * License along with Libav; if not, write to the Free Software
yading@11 18 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
yading@11 19 */
yading@11 20
yading@11 21 /**
yading@11 22 * mov 'chan' tag reading/writing.
yading@11 23 * @author Justin Ruggles
yading@11 24 */
yading@11 25
yading@11 26 #ifndef AVFORMAT_MOV_CHAN_H
yading@11 27 #define AVFORMAT_MOV_CHAN_H
yading@11 28
yading@11 29 #include <stdint.h>
yading@11 30
yading@11 31 #include "libavcodec/avcodec.h"
yading@11 32 #include "avformat.h"
yading@11 33
yading@11 34 /**
yading@11 35 * Get the channel layout for the specified channel layout tag.
yading@11 36 *
yading@11 37 * @param[in] tag channel layout tag
yading@11 38 * @param[out] bitmap channel bitmap (only used if needed)
yading@11 39 * @return channel layout
yading@11 40 */
yading@11 41 uint64_t ff_mov_get_channel_layout(uint32_t tag, uint32_t bitmap);
yading@11 42
yading@11 43 /**
yading@11 44 * Get the channel layout tag for the specified codec id and channel layout.
yading@11 45 * If the layout tag was not found, use a channel bitmap if possible.
yading@11 46 *
yading@11 47 * @param[in] codec_id codec id
yading@11 48 * @param[in] channel_layout channel layout
yading@11 49 * @param[out] bitmap channel bitmap
yading@11 50 * @return channel layout tag
yading@11 51 */
yading@11 52 uint32_t ff_mov_get_channel_layout_tag(enum AVCodecID codec_id,
yading@11 53 uint64_t channel_layout,
yading@11 54 uint32_t *bitmap);
yading@11 55
yading@11 56 /**
yading@11 57 * Read 'chan' tag from the input stream.
yading@11 58 *
yading@11 59 * @param s AVFormatContext
yading@11 60 * @param pb AVIOContext
yading@11 61 * @param st The stream to set codec values for
yading@11 62 * @param size Remaining size in the 'chan' tag
yading@11 63 * @return 0 if ok, or negative AVERROR code on failure
yading@11 64 */
yading@11 65 int ff_mov_read_chan(AVFormatContext *s, AVIOContext *pb, AVStream *st,
yading@11 66 int64_t size);
yading@11 67
yading@11 68 #endif /* AVFORMAT_MOV_CHAN_H */