• Main Page
  • Related Pages
  • Modules
  • Data Structures
  • Files
  • File List
  • Globals

libavformat/adts.h

Go to the documentation of this file.
00001 /*
00002  * ADTS muxer.
00003  * Copyright (c) 2006 Baptiste Coudurier <baptiste.coudurier@smartjog.com>
00004  *                    Mans Rullgard <mans@mansr.com>
00005  *
00006  * This file is part of FFmpeg.
00007  *
00008  * FFmpeg is free software; you can redistribute it and/or
00009  * modify it under the terms of the GNU Lesser General Public
00010  * License as published by the Free Software Foundation; either
00011  * version 2.1 of the License, or (at your option) any later version.
00012  *
00013  * FFmpeg is distributed in the hope that it will be useful,
00014  * but WITHOUT ANY WARRANTY; without even the implied warranty of
00015  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
00016  * Lesser General Public License for more details.
00017  *
00018  * You should have received a copy of the GNU Lesser General Public
00019  * License along with FFmpeg; if not, write to the Free Software
00020  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
00021  */
00022 
00023 #ifndef AVFORMAT_ADTS_H
00024 #define AVFORMAT_ADTS_H
00025 
00026 #include "avformat.h"
00027 #include "libavcodec/mpeg4audio.h"
00028 
00029 #define ADTS_HEADER_SIZE 7
00030 
00031 typedef struct {
00032     int write_adts;
00033     int objecttype;
00034     int sample_rate_index;
00035     int channel_conf;
00036     int pce_size;
00037     uint8_t pce_data[MAX_PCE_SIZE];
00038 } ADTSContext;
00039 
00040 int ff_adts_write_frame_header(ADTSContext *ctx, uint8_t *buf,
00041                                int size, int pce_size);
00042 int ff_adts_decode_extradata(AVFormatContext *s, ADTSContext *adts,
00043                              uint8_t *buf, int size);
00044 
00045 #endif /* AVFORMAT_ADTS_H */

Generated on Fri Sep 16 2011 17:17:47 for FFmpeg by  doxygen 1.7.1