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

libavformat/pcmenc.c

Go to the documentation of this file.
00001 /*
00002  * RAW PCM muxers
00003  * Copyright (c) 2002 Fabrice Bellard
00004  *
00005  * This file is part of Libav.
00006  *
00007  * Libav is free software; you can redistribute it and/or
00008  * modify it under the terms of the GNU Lesser General Public
00009  * License as published by the Free Software Foundation; either
00010  * version 2.1 of the License, or (at your option) any later version.
00011  *
00012  * Libav is distributed in the hope that it will be useful,
00013  * but WITHOUT ANY WARRANTY; without even the implied warranty of
00014  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
00015  * Lesser General Public License for more details.
00016  *
00017  * You should have received a copy of the GNU Lesser General Public
00018  * License along with Libav; if not, write to the Free Software
00019  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
00020  */
00021 
00022 #include "avformat.h"
00023 #include "rawenc.h"
00024 
00025 #define PCMDEF(name_, long_name_, ext, codec)               \
00026 AVOutputFormat ff_pcm_ ## name_ ## _muxer = {               \
00027     .name         = #name_,                                 \
00028     .long_name    = NULL_IF_CONFIG_SMALL(long_name_),       \
00029     .extensions   = ext,                                    \
00030     .audio_codec  = codec,                                  \
00031     .video_codec  = CODEC_ID_NONE,                          \
00032     .write_packet = ff_raw_write_packet,                    \
00033     .flags        = AVFMT_NOTIMESTAMPS,                     \
00034 };
00035 
00036 PCMDEF(f64be, "PCM 64 bit floating-point big-endian format",
00037        NULL, CODEC_ID_PCM_F64BE)
00038 
00039 PCMDEF(f64le, "PCM 64 bit floating-point little-endian format",
00040        NULL, CODEC_ID_PCM_F64LE)
00041 
00042 PCMDEF(f32be, "PCM 32 bit floating-point big-endian format",
00043        NULL, CODEC_ID_PCM_F32BE)
00044 
00045 PCMDEF(f32le, "PCM 32 bit floating-point little-endian format",
00046        NULL, CODEC_ID_PCM_F32LE)
00047 
00048 PCMDEF(s32be, "PCM signed 32 bit big-endian format",
00049        NULL, CODEC_ID_PCM_S32BE)
00050 
00051 PCMDEF(s32le, "PCM signed 32 bit little-endian format",
00052        NULL, CODEC_ID_PCM_S32LE)
00053 
00054 PCMDEF(s24be, "PCM signed 24 bit big-endian format",
00055        NULL, CODEC_ID_PCM_S24BE)
00056 
00057 PCMDEF(s24le, "PCM signed 24 bit little-endian format",
00058        NULL, CODEC_ID_PCM_S24LE)
00059 
00060 PCMDEF(s16be, "PCM signed 16 bit big-endian format",
00061        AV_NE("sw", NULL), CODEC_ID_PCM_S16BE)
00062 
00063 PCMDEF(s16le, "PCM signed 16 bit little-endian format",
00064        AV_NE(NULL, "sw"), CODEC_ID_PCM_S16LE)
00065 
00066 PCMDEF(s8, "PCM signed 8 bit format",
00067        "sb", CODEC_ID_PCM_S8)
00068 
00069 PCMDEF(u32be, "PCM unsigned 32 bit big-endian format",
00070        NULL, CODEC_ID_PCM_U32BE)
00071 
00072 PCMDEF(u32le, "PCM unsigned 32 bit little-endian format",
00073        NULL, CODEC_ID_PCM_U32LE)
00074 
00075 PCMDEF(u24be, "PCM unsigned 24 bit big-endian format",
00076        NULL, CODEC_ID_PCM_U24BE)
00077 
00078 PCMDEF(u24le, "PCM unsigned 24 bit little-endian format",
00079        NULL, CODEC_ID_PCM_U24LE)
00080 
00081 PCMDEF(u16be, "PCM unsigned 16 bit big-endian format",
00082        AV_NE("uw", NULL), CODEC_ID_PCM_U16BE)
00083 
00084 PCMDEF(u16le, "PCM unsigned 16 bit little-endian format",
00085        AV_NE(NULL, "uw"), CODEC_ID_PCM_U16LE)
00086 
00087 PCMDEF(u8, "PCM unsigned 8 bit format",
00088        "ub", CODEC_ID_PCM_U8)
00089 
00090 PCMDEF(alaw, "PCM A-law format",
00091        "al", CODEC_ID_PCM_ALAW)
00092 
00093 PCMDEF(mulaw, "PCM mu-law format",
00094        "ul", CODEC_ID_PCM_MULAW)
Generated on Thu Jan 24 2013 17:08:55 for Libav by doxygen 1.7.1