Skip to content
Snippets Groups Projects
avcodec.h 91.9 KiB
Newer Older
/*
 * copyright (c) 2001 Fabrice Bellard
 *
 * This file is part of FFmpeg.
 *
 * FFmpeg is free software; you can redistribute it and/or
 * modify it under the terms of the GNU Lesser General Public
 * License as published by the Free Software Foundation; either
 * version 2.1 of the License, or (at your option) any later version.
 * FFmpeg is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
 * Lesser General Public License for more details.
 *
 * You should have received a copy of the GNU Lesser General Public
 * License along with FFmpeg; if not, write to the Free Software
 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
#ifndef AVCODEC_AVCODEC_H
#define AVCODEC_AVCODEC_H
Fabrice Bellard's avatar
Fabrice Bellard committed

/**
 * @file avcodec.h
Diego Biurrun's avatar
Diego Biurrun committed
 * external API header
#include "libavutil/avutil.h"
Fabrice Bellard's avatar
Fabrice Bellard committed

#define LIBAVCODEC_VERSION_MAJOR 52
#define LIBAVCODEC_VERSION_MINOR  0
Ramiro Polla's avatar
Ramiro Polla committed
#define LIBAVCODEC_VERSION_MICRO  0
#define LIBAVCODEC_VERSION_INT  AV_VERSION_INT(LIBAVCODEC_VERSION_MAJOR, \
                                               LIBAVCODEC_VERSION_MINOR, \
                                               LIBAVCODEC_VERSION_MICRO)
#define LIBAVCODEC_VERSION      AV_VERSION(LIBAVCODEC_VERSION_MAJOR,    \
                                           LIBAVCODEC_VERSION_MINOR,    \
                                           LIBAVCODEC_VERSION_MICRO)
#define LIBAVCODEC_BUILD        LIBAVCODEC_VERSION_INT
Michael Niedermayer's avatar
Michael Niedermayer committed

#define LIBAVCODEC_IDENT        "Lavc" AV_STRINGIFY(LIBAVCODEC_VERSION)
Alex Beregszaszi's avatar
Alex Beregszaszi committed

#define AV_NOPTS_VALUE          INT64_C(0x8000000000000000)
#define AV_TIME_BASE            1000000
#define AV_TIME_BASE_Q          (AVRational){1, AV_TIME_BASE}
 * Identifies the syntax and semantics of the bitstream.
 * The principle is roughly:
 * Two decoders with the same ID can decode the same streams.
 * Two encoders with the same ID can encode compatible streams.
 * There may be slight deviations from the principle due to implementation
 * details.
Diego Biurrun's avatar
Diego Biurrun committed
 * If you add a codec ID to this list, add it so that
 * 1. no value of a existing codec ID changes (that would break ABI),
 * 2. it is as close as possible to similar codecs.
Fabrice Bellard's avatar
Fabrice Bellard committed
enum CodecID {
    CODEC_ID_NONE,

    /* video codecs */
Fabrice Bellard's avatar
Fabrice Bellard committed
    CODEC_ID_MPEG1VIDEO,
    CODEC_ID_MPEG2VIDEO, ///< preferred ID for MPEG-1/2 video decoding
Ivan Kalvachev's avatar
Ivan Kalvachev committed
    CODEC_ID_MPEG2VIDEO_XVMC,
Fabrice Bellard's avatar
Fabrice Bellard committed
    CODEC_ID_H263,
    CODEC_ID_RV10,
Michael Niedermayer's avatar
Michael Niedermayer committed
    CODEC_ID_RV20,
Fabrice Bellard's avatar
Fabrice Bellard committed
    CODEC_ID_MJPEG,
    CODEC_ID_MJPEGB,
    CODEC_ID_SP5X,
    CODEC_ID_MPEG4,
Fabrice Bellard's avatar
Fabrice Bellard committed
    CODEC_ID_RAWVIDEO,
    CODEC_ID_MSMPEG4V1,
    CODEC_ID_MSMPEG4V2,
    CODEC_ID_MSMPEG4V3,
    CODEC_ID_WMV1,
    CODEC_ID_WMV2,
Fabrice Bellard's avatar
Fabrice Bellard committed
    CODEC_ID_H263P,
    CODEC_ID_H263I,
Nick Kurshev's avatar
Nick Kurshev committed
    CODEC_ID_SVQ1,
    CODEC_ID_SVQ3,
Fabrice Bellard's avatar
Fabrice Bellard committed
    CODEC_ID_DVVIDEO,
Michael Niedermayer's avatar
Michael Niedermayer committed
    CODEC_ID_HUFFYUV,
    CODEC_ID_H264,
    CODEC_ID_INDEO3,
    CODEC_ID_VP3,
Michael Niedermayer's avatar
Michael Niedermayer committed
    CODEC_ID_ASV1,
Michael Niedermayer's avatar
Michael Niedermayer committed
    CODEC_ID_ASV2,
    CODEC_ID_4XM,
Michael Niedermayer's avatar
Michael Niedermayer committed
    CODEC_ID_VCR1,
Alex Beregszaszi's avatar
Alex Beregszaszi committed
    CODEC_ID_CLJR,
    CODEC_ID_ROQ,
    CODEC_ID_INTERPLAY_VIDEO,
    CODEC_ID_XAN_WC3,
    CODEC_ID_XAN_WC4,
    CODEC_ID_RPZA,
    CODEC_ID_CINEPAK,
    CODEC_ID_WS_VQA,
    CODEC_ID_MSRLE,
    CODEC_ID_MSVIDEO1,
    CODEC_ID_IDCIN,
Roberto Togni's avatar
Roberto Togni committed
    CODEC_ID_8BPS,
    CODEC_ID_SMC,
Mike Melanson's avatar
Mike Melanson committed
    CODEC_ID_FLIC,
    CODEC_ID_MSZH,
    CODEC_ID_ZLIB,
    CODEC_ID_SNOW,
    CODEC_ID_XVID,
    CODEC_ID_PNG,
    CODEC_ID_PPM,
    CODEC_ID_PBM,
    CODEC_ID_PGM,
    CODEC_ID_PGMYUV,
    CODEC_ID_PAM,
    CODEC_ID_FFVHUFF,
    CODEC_ID_RV30,
    CODEC_ID_RV40,
    CODEC_ID_LOCO,
Måns Rullgård's avatar
Måns Rullgård committed
    CODEC_ID_BMP,
    CODEC_ID_SMACKVIDEO,
    CODEC_ID_FLASHSV,
    CODEC_ID_JPEG2000,
    CODEC_ID_VMNC,
    CODEC_ID_VP5,
    CODEC_ID_VP6,
    CODEC_ID_VP6F,
Kostya Shishkov's avatar
Kostya Shishkov committed
    CODEC_ID_TARGA,
Kostya Shishkov's avatar
Kostya Shishkov committed
    CODEC_ID_TIFF,
    CODEC_ID_GIF,
Kostya Shishkov's avatar
Kostya Shishkov committed
    CODEC_ID_DXA,
Baptiste Coudurier's avatar
Baptiste Coudurier committed
    CODEC_ID_DNXHD,
    CODEC_ID_C93,
    CODEC_ID_BETHSOFTVID,
Ivo van Poorten's avatar
Ivo van Poorten committed
    CODEC_ID_PTX,
Ivo van Poorten's avatar
Ivo van Poorten committed
    CODEC_ID_TXD,
Vladimir Voroshilov's avatar
Vladimir Voroshilov committed
    CODEC_ID_AMV,
    CODEC_ID_PCX,
Ivo van Poorten's avatar
Ivo van Poorten committed
    CODEC_ID_SUNRAST,
    CODEC_ID_INDEO4,
    CODEC_ID_INDEO5,
Ramiro Polla's avatar
Ramiro Polla committed
    CODEC_ID_MIMIC,
Sascha Sommer's avatar
Sascha Sommer committed
    CODEC_ID_RL2,
Jai Menon's avatar
Jai Menon committed
    CODEC_ID_8SVX_EXP,
    CODEC_ID_8SVX_FIB,
Eli Friedman's avatar
Eli Friedman committed
    CODEC_ID_ESCAPE124,
Michael Niedermayer's avatar
Michael Niedermayer committed
    CODEC_ID_DIRAC,
Sisir Koppaka's avatar
Sisir Koppaka committed
    CODEC_ID_BFI,
Peter Ross's avatar
Peter Ross committed
    CODEC_ID_CMV,
    CODEC_ID_MOTIONPIXELS,
Peter Ross's avatar
Peter Ross committed
    CODEC_ID_TGV,
Fabrice Bellard's avatar
Fabrice Bellard committed

Diego Biurrun's avatar
Diego Biurrun committed
    /* various PCM "codecs" */
Fabrice Bellard's avatar
Fabrice Bellard committed
    CODEC_ID_PCM_S16BE,
    CODEC_ID_PCM_U16LE,
    CODEC_ID_PCM_U16BE,
    CODEC_ID_PCM_S8,
    CODEC_ID_PCM_U8,
    CODEC_ID_PCM_MULAW,
Loading
Loading full blame...