Revision 983e3246
libavcodec/a52dec.c | ||
---|---|---|
16 | 16 |
* License along with this library; if not, write to the Free Software |
17 | 17 |
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA |
18 | 18 |
*/ |
19 |
|
|
20 |
/** |
|
21 |
* @file a52dec.c |
|
22 |
* A52 decoder. |
|
23 |
*/ |
|
24 |
|
|
19 | 25 |
#include "avcodec.h" |
20 | 26 |
#include "liba52/a52.h" |
21 | 27 |
|
libavcodec/ac3.h | ||
---|---|---|
17 | 17 |
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA |
18 | 18 |
*/ |
19 | 19 |
|
20 |
/** |
|
21 |
* @file ac3.h |
|
22 |
* Common code between AC3 encoder and decoder. |
|
23 |
*/ |
|
24 |
|
|
20 | 25 |
#define AC3_MAX_CODED_FRAME_SIZE 3840 /* in bytes */ |
21 | 26 |
#define AC3_MAX_CHANNELS 6 /* including LFE channel */ |
22 | 27 |
|
libavcodec/ac3dec.c | ||
---|---|---|
16 | 16 |
* License along with this library; if not, write to the Free Software |
17 | 17 |
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA |
18 | 18 |
*/ |
19 |
|
|
20 |
/** |
|
21 |
* @file ac3dec.c |
|
22 |
* AC3 decoder. |
|
23 |
*/ |
|
24 |
|
|
25 |
//#define DEBUG |
|
26 |
|
|
19 | 27 |
#include "avcodec.h" |
20 | 28 |
#include "libac3/ac3.h" |
21 | 29 |
|
libavcodec/ac3enc.c | ||
---|---|---|
16 | 16 |
* License along with this library; if not, write to the Free Software |
17 | 17 |
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA |
18 | 18 |
*/ |
19 |
|
|
20 |
/** |
|
21 |
* @file ac3enc.c |
|
22 |
* The simplest AC3 encoder. |
|
23 |
*/ |
|
19 | 24 |
//#define DEBUG |
20 | 25 |
//#define DEBUG_BITALLOC |
21 | 26 |
#include "avcodec.h" |
libavcodec/ac3tab.h | ||
---|---|---|
1 |
/* tables taken directly from AC3 spec */ |
|
1 |
/** |
|
2 |
* @file ac3tab.h |
|
3 |
* tables taken directly from AC3 spec. |
|
4 |
*/ |
|
2 | 5 |
|
3 | 6 |
/* possible frequencies */ |
4 | 7 |
const uint16_t ac3_freqs[3] = { 48000, 44100, 32000 }; |
libavcodec/adpcm.c | ||
---|---|---|
18 | 18 |
*/ |
19 | 19 |
#include "avcodec.h" |
20 | 20 |
|
21 |
/* |
|
21 |
/** |
|
22 |
* @file adpcm.c |
|
23 |
* ADPCM codecs. |
|
22 | 24 |
* First version by Francois Revol revol@free.fr |
23 | 25 |
* |
24 | 26 |
* Features and limitations: |
... | ... | |
47 | 49 |
-1, -1, -1, -1, 2, 4, 6, 8, |
48 | 50 |
}; |
49 | 51 |
|
50 |
/* This is the step table. Note that many programs use slight deviations from |
|
52 |
/** |
|
53 |
* This is the step table. Note that many programs use slight deviations from |
|
51 | 54 |
* this table, but such deviations are negligible: |
52 | 55 |
*/ |
53 | 56 |
static const int step_table[89] = { |
libavcodec/allcodecs.c | ||
---|---|---|
16 | 16 |
* License along with this library; if not, write to the Free Software |
17 | 17 |
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA |
18 | 18 |
*/ |
19 |
|
|
20 |
/** |
|
21 |
* @file allcodecs.c |
|
22 |
* Utils for libavcodec. |
|
23 |
*/ |
|
24 |
|
|
19 | 25 |
#include "avcodec.h" |
20 | 26 |
|
21 | 27 |
/* If you do not call this function, then you can select exactly which |
libavcodec/apiexample.c | ||
---|---|---|
1 |
/* avcodec API use example. |
|
1 |
/** |
|
2 |
* @file apiexample.c |
|
3 |
* avcodec API use example. |
|
2 | 4 |
* |
3 | 5 |
* Note that this library only handles codecs (mpeg, mpeg4, etc...), |
4 | 6 |
* not file formats (avi, vob, etc...). See library 'libav' for the |
5 | 7 |
* format handling |
6 | 8 |
*/ |
9 |
|
|
7 | 10 |
#include <stdlib.h> |
8 | 11 |
#include <stdio.h> |
9 | 12 |
#include <string.h> |
libavcodec/avcodec.c | ||
---|---|---|
1 |
/** |
|
2 |
* @file avcodec.c |
|
3 |
* avcodec. |
|
4 |
*/ |
|
5 |
|
|
1 | 6 |
#include "errno.h" |
2 | 7 |
#include "avcodec.h" |
3 | 8 |
|
libavcodec/bswap.h | ||
---|---|---|
1 |
/** |
|
2 |
* @file bswap.h |
|
3 |
* byte swap. |
|
4 |
*/ |
|
5 |
|
|
1 | 6 |
#ifndef __BSWAP_H__ |
2 | 7 |
#define __BSWAP_H__ |
3 | 8 |
|
libavcodec/common.c | ||
---|---|---|
18 | 18 |
* |
19 | 19 |
* alternative bitstream reader & writer by Michael Niedermayer <michaelni@gmx.at> |
20 | 20 |
*/ |
21 |
|
|
22 |
/** |
|
23 |
* @file common.c |
|
24 |
* common internal api. |
|
25 |
*/ |
|
26 |
|
|
21 | 27 |
#include "avcodec.h" |
22 | 28 |
|
23 | 29 |
const uint8_t ff_sqrt_tab[128]={ |
libavcodec/common.h | ||
---|---|---|
1 |
/** |
|
2 |
* @file common.h |
|
3 |
* common internal api header. |
|
4 |
*/ |
|
5 |
|
|
1 | 6 |
#ifndef COMMON_H |
2 | 7 |
#define COMMON_H |
3 | 8 |
|
libavcodec/cyuv.c | ||
---|---|---|
23 | 23 |
* |
24 | 24 |
*/ |
25 | 25 |
|
26 |
/** |
|
27 |
* @file cyuv.c |
|
28 |
* Creative YUV (CYUV) Video Decoder. |
|
29 |
*/ |
|
30 |
|
|
26 | 31 |
#include <stdio.h> |
27 | 32 |
#include <stdlib.h> |
28 | 33 |
#include <string.h> |
libavcodec/dct-test.c | ||
---|---|---|
1 |
/* DCT test. (c) 2001 Fabrice Bellard. |
|
2 |
Started from sample code by Juan J. Sierralta P. |
|
3 |
*/ |
|
1 |
/** |
|
2 |
* @file dct-test.c |
|
3 |
* DCT test. (c) 2001 Fabrice Bellard. |
|
4 |
* Started from sample code by Juan J. Sierralta P. |
|
5 |
*/ |
|
6 |
|
|
4 | 7 |
#include <stdlib.h> |
5 | 8 |
#include <stdio.h> |
6 | 9 |
#include <string.h> |
libavcodec/dsputil.c | ||
---|---|---|
18 | 18 |
* |
19 | 19 |
* gmc & q-pel & 32/64 bit based MC by Michael Niedermayer <michaelni@gmx.at> |
20 | 20 |
*/ |
21 |
|
|
22 |
/** |
|
23 |
* @file dsputil.c |
|
24 |
* DSP utils |
|
25 |
*/ |
|
26 |
|
|
21 | 27 |
#include "avcodec.h" |
22 | 28 |
#include "dsputil.h" |
23 | 29 |
#include "mpegvideo.h" |
libavcodec/dsputil.h | ||
---|---|---|
19 | 19 |
|
20 | 20 |
/** |
21 | 21 |
* @file dsputil.h |
22 |
* @brief DSP utils |
|
23 |
* |
|
22 |
* DSP utils. |
|
24 | 23 |
*/ |
25 | 24 |
|
26 | 25 |
#ifndef DSPUTIL_H |
libavcodec/dv.c | ||
---|---|---|
16 | 16 |
* License along with this library; if not, write to the Free Software |
17 | 17 |
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA |
18 | 18 |
*/ |
19 |
|
|
20 |
/** |
|
21 |
* @file dv.c |
|
22 |
* DV decoder. |
|
23 |
*/ |
|
19 | 24 |
#include "avcodec.h" |
20 | 25 |
#include "dsputil.h" |
21 | 26 |
#include "mpegvideo.h" |
libavcodec/dvdata.h | ||
---|---|---|
17 | 17 |
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA |
18 | 18 |
*/ |
19 | 19 |
|
20 |
/** |
|
21 |
* @file dvdata.h |
|
22 |
* Constants for DV codec. |
|
23 |
*/ |
|
24 |
|
|
20 | 25 |
#define NB_DV_VLC 409 |
21 | 26 |
#define AAUX_OFFSET (80*6 + 80*16*3 + 3) |
22 | 27 |
|
libavcodec/error_resilience.c | ||
---|---|---|
17 | 17 |
* License along with this library; if not, write to the Free Software |
18 | 18 |
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA |
19 | 19 |
*/ |
20 |
|
|
21 |
/** |
|
22 |
* @file error_resilience.c |
|
23 |
* Error resilience / concealment. |
|
24 |
*/ |
|
20 | 25 |
|
21 | 26 |
#include "avcodec.h" |
22 | 27 |
#include "dsputil.h" |
libavcodec/eval.c | ||
---|---|---|
19 | 19 |
* |
20 | 20 |
*/ |
21 | 21 |
|
22 |
/* |
|
22 |
/** |
|
23 |
* @file eval.c |
|
24 |
* simple arithmetic expression evaluator. |
|
25 |
* |
|
23 | 26 |
* see http://joe.hotchkiss.com/programming/eval/eval.html |
24 | 27 |
*/ |
25 | 28 |
|
libavcodec/fdctref.c | ||
---|---|---|
1 |
/* fdctref.c, forward discrete cosine transform, double precision */ |
|
1 |
/** |
|
2 |
* @file fdctref.c |
|
3 |
* forward discrete cosine transform, double precision. |
|
4 |
*/ |
|
2 | 5 |
|
3 | 6 |
/* Copyright (C) 1996, MPEG Software Simulation Group. All Rights Reserved. */ |
4 | 7 |
|
libavcodec/fft-test.c | ||
---|---|---|
1 |
/* FFT and MDCT tests */ |
|
1 |
/** |
|
2 |
* @file fft-test.c |
|
3 |
* FFT and MDCT tests. |
|
4 |
*/ |
|
5 |
|
|
2 | 6 |
#include "dsputil.h" |
3 | 7 |
#include <math.h> |
4 | 8 |
#include <unistd.h> |
libavcodec/fft.c | ||
---|---|---|
16 | 16 |
* License along with this library; if not, write to the Free Software |
17 | 17 |
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA |
18 | 18 |
*/ |
19 |
|
|
20 |
/** |
|
21 |
* @file fft.c |
|
22 |
* FFT/IFFT transforms. |
|
23 |
*/ |
|
24 |
|
|
19 | 25 |
#include "dsputil.h" |
20 | 26 |
|
21 | 27 |
/** |
libavcodec/h263.c | ||
---|---|---|
25 | 25 |
|
26 | 26 |
/** |
27 | 27 |
* @file h263.c |
28 |
* @brief h263/mpeg4 codec |
|
29 |
* |
|
28 |
* h263/mpeg4 codec. |
|
30 | 29 |
*/ |
31 | 30 |
|
32 | 31 |
//#define DEBUG |
libavcodec/h263data.h | ||
---|---|---|
1 |
/** |
|
2 |
* @file h263data.h |
|
3 |
* H.263 tables. |
|
4 |
*/ |
|
5 |
|
|
1 | 6 |
|
2 | 7 |
/* intra MCBPC, mb_type = (intra), then (intraq) */ |
3 | 8 |
const uint8_t intra_MCBPC_code[8] = { 1, 1, 2, 3, 1, 1, 2, 3 }; |
libavcodec/h263dec.c | ||
---|---|---|
1 | 1 |
/* |
2 |
* H263 decoder |
|
2 |
* H.263 decoder
|
|
3 | 3 |
* Copyright (c) 2001 Fabrice Bellard. |
4 | 4 |
* |
5 | 5 |
* This library is free software; you can redistribute it and/or |
... | ... | |
16 | 16 |
* License along with this library; if not, write to the Free Software |
17 | 17 |
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA |
18 | 18 |
*/ |
19 |
|
|
20 |
/** |
|
21 |
* @file h263dec.c |
|
22 |
* H.263 decoder. |
|
23 |
*/ |
|
24 |
|
|
19 | 25 |
#include "avcodec.h" |
20 | 26 |
#include "dsputil.h" |
21 | 27 |
#include "mpegvideo.h" |
libavcodec/huffyuv.c | ||
---|---|---|
20 | 20 |
* see http://www.pcisys.net/~melanson/codecs/huffyuv.txt for a description of |
21 | 21 |
* the algorithm used |
22 | 22 |
*/ |
23 |
|
|
24 |
/** |
|
25 |
* @file huffyuv.c |
|
26 |
* huffyuv codec for libavcodec. |
|
27 |
*/ |
|
23 | 28 |
|
24 | 29 |
#include "common.h" |
25 | 30 |
#include "avcodec.h" |
libavcodec/imgconvert.c | ||
---|---|---|
16 | 16 |
* License along with this library; if not, write to the Free Software |
17 | 17 |
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA |
18 | 18 |
*/ |
19 |
|
|
20 |
/** |
|
21 |
* @imgconvert.c |
|
22 |
* Misc image convertion routines. |
|
23 |
*/ |
|
24 |
|
|
25 |
|
|
19 | 26 |
#include "avcodec.h" |
20 | 27 |
#include "dsputil.h" |
21 | 28 |
|
libavcodec/imgresample.c | ||
---|---|---|
16 | 16 |
* License along with this library; if not, write to the Free Software |
17 | 17 |
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA |
18 | 18 |
*/ |
19 |
|
|
20 |
/** |
|
21 |
* @file imgresample.c |
|
22 |
* High quality image resampling with polyphase filters . |
|
23 |
*/ |
|
24 |
|
|
19 | 25 |
#include "avcodec.h" |
20 | 26 |
#include "dsputil.h" |
21 | 27 |
|
libavcodec/jfdctfst.c | ||
---|---|---|
30 | 30 |
* quality-setting files than with low-quality ones. |
31 | 31 |
*/ |
32 | 32 |
|
33 |
/** |
|
34 |
* @file jfdctfst.c |
|
35 |
* Independent JPEG Group's fast AAN dct. |
|
36 |
*/ |
|
37 |
|
|
33 | 38 |
#include <stdlib.h> |
34 | 39 |
#include <stdio.h> |
35 | 40 |
#include "common.h" |
libavcodec/jfdctint.c | ||
---|---|---|
23 | 23 |
* scaled fixed-point arithmetic, with a minimal number of shifts. |
24 | 24 |
*/ |
25 | 25 |
|
26 |
/** |
|
27 |
* @file jfdctint.c |
|
28 |
* Independent JPEG Group's slow & accurate dct. |
|
29 |
*/ |
|
30 |
|
|
26 | 31 |
#include <stdlib.h> |
27 | 32 |
#include <stdio.h> |
28 | 33 |
#include "common.h" |
libavcodec/jrevdct.c | ||
---|---|---|
25 | 25 |
* A better way to do this would be to pass in the DCT block as a sparse |
26 | 26 |
* matrix, perhaps with the difference cases encoded. |
27 | 27 |
*/ |
28 |
|
|
29 |
/** |
|
30 |
* @file jrevdct.c |
|
31 |
* Independent JPEG Group's LLM idct. |
|
32 |
*/ |
|
33 |
|
|
28 | 34 |
#include "common.h" |
29 | 35 |
#include "dsputil.h" |
30 | 36 |
|
libavcodec/mace.c | ||
---|---|---|
16 | 16 |
* License along with this library; if not, write to the Free Software |
17 | 17 |
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA |
18 | 18 |
*/ |
19 |
|
|
20 |
/** |
|
21 |
* @file mace.c |
|
22 |
* MACE decoder. |
|
23 |
*/ |
|
24 |
|
|
19 | 25 |
#include "avcodec.h" |
20 | 26 |
|
21 | 27 |
/* |
libavcodec/mdct.c | ||
---|---|---|
18 | 18 |
*/ |
19 | 19 |
#include "dsputil.h" |
20 | 20 |
|
21 |
/* |
|
22 |
* init MDCT or IMDCT computation |
|
21 |
/** |
|
22 |
* @file mdct.c |
|
23 |
* MDCT/IMDCT transforms. |
|
24 |
*/ |
|
25 |
|
|
26 |
/** |
|
27 |
* init MDCT or IMDCT computation. |
|
23 | 28 |
*/ |
24 | 29 |
int ff_mdct_init(MDCTContext *s, int nbits, int inverse) |
25 | 30 |
{ |
libavcodec/mem.c | ||
---|---|---|
16 | 16 |
* License along with this library; if not, write to the Free Software |
17 | 17 |
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA |
18 | 18 |
*/ |
19 |
|
|
20 |
/** |
|
21 |
* @file mem.c |
|
22 |
* default memory allocator for libavcodec. |
|
23 |
*/ |
|
24 |
|
|
19 | 25 |
#include "avcodec.h" |
20 | 26 |
|
21 | 27 |
/* here we can use OS dependant allocation functions */ |
libavcodec/mjpeg.c | ||
---|---|---|
20 | 20 |
* aspecting, new decode_frame mechanism and apple mjpeg-b support |
21 | 21 |
* by Alex Beregszaszi <alex@naxine.org> |
22 | 22 |
*/ |
23 |
|
|
24 |
/** |
|
25 |
* @file mjpeg.c |
|
26 |
* MJPEG encoder and decoder. |
|
27 |
*/ |
|
28 |
|
|
23 | 29 |
//#define DEBUG |
24 | 30 |
#include "avcodec.h" |
25 | 31 |
#include "dsputil.h" |
libavcodec/motion_est.c | ||
---|---|---|
20 | 20 |
* |
21 | 21 |
* new Motion Estimation (X1/EPZS) by Michael Niedermayer <michaelni@gmx.at> |
22 | 22 |
*/ |
23 |
|
|
24 |
/** |
|
25 |
* @file motion_est.c |
|
26 |
* Motion estimation. |
|
27 |
*/ |
|
28 |
|
|
23 | 29 |
#include <stdlib.h> |
24 | 30 |
#include <stdio.h> |
25 | 31 |
#include "avcodec.h" |
libavcodec/motion_est_template.c | ||
---|---|---|
17 | 17 |
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA |
18 | 18 |
* |
19 | 19 |
*/ |
20 |
|
|
21 |
/** |
|
22 |
* @file motion_est_template.c |
|
23 |
* Motion estimation template. |
|
24 |
*/ |
|
20 | 25 |
|
21 | 26 |
//lets hope gcc will remove the unused vars ...(gcc 3.2.2 seems to do it ...) |
22 | 27 |
//Note, the last line is there to kill these ugly unused var warnings |
libavcodec/motion_test.c | ||
---|---|---|
1 | 1 |
/* motion test. (c) 2001 Fabrice Bellard. */ |
2 |
|
|
3 |
/** |
|
4 |
* @file motion_test.c |
|
5 |
* motion test. |
|
6 |
*/ |
|
7 |
|
|
2 | 8 |
#include <stdlib.h> |
3 | 9 |
#include <stdio.h> |
4 | 10 |
#include <string.h> |
libavcodec/mp3lameaudio.c | ||
---|---|---|
16 | 16 |
* License along with this library; if not, write to the Free Software |
17 | 17 |
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA |
18 | 18 |
*/ |
19 |
|
|
20 |
/** |
|
21 |
* @file mp3lameaudio.c |
|
22 |
* Interface to libmp3lame for mp3 encoding. |
|
23 |
*/ |
|
19 | 24 |
|
20 | 25 |
#include "avcodec.h" |
21 | 26 |
#include "mpegaudio.h" |
libavcodec/mpeg12.c | ||
---|---|---|
1 | 1 |
/* |
2 |
* MPEG1 encoder / MPEG2 decoder
|
|
2 |
* MPEG1 codec / MPEG2 decoder
|
|
3 | 3 |
* Copyright (c) 2000,2001 Fabrice Bellard. |
4 | 4 |
* |
5 | 5 |
* This library is free software; you can redistribute it and/or |
... | ... | |
16 | 16 |
* License along with this library; if not, write to the Free Software |
17 | 17 |
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA |
18 | 18 |
*/ |
19 |
|
|
20 |
/** |
|
21 |
* @file mpeg12.c |
|
22 |
* MPEG1 codec / MPEG2 decoder. |
|
23 |
*/ |
|
24 |
|
|
19 | 25 |
//#define DEBUG |
20 | 26 |
#include "avcodec.h" |
21 | 27 |
#include "dsputil.h" |
libavcodec/mpeg12data.h | ||
---|---|---|
1 |
/* |
|
2 |
* MPEG1/2 tables |
|
1 |
/** |
|
2 |
* @file mpeg12data.h |
|
3 |
* MPEG1/2 tables. |
|
3 | 4 |
*/ |
4 | 5 |
|
5 | 6 |
const int16_t ff_mpeg1_default_intra_matrix[64] = { |
libavcodec/mpeg4data.h | ||
---|---|---|
1 |
/** |
|
2 |
* @file mpeg4data.h |
|
3 |
* mpeg4 tables. |
|
4 |
*/ |
|
5 |
|
|
1 | 6 |
// shapes |
2 | 7 |
#define RECT_SHAPE 0 |
3 | 8 |
#define BIN_SHAPE 1 |
libavcodec/mpegaudio.c | ||
---|---|---|
16 | 16 |
* License along with this library; if not, write to the Free Software |
17 | 17 |
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA |
18 | 18 |
*/ |
19 |
|
|
20 |
/** |
|
21 |
* @file mpegaudio.c |
|
22 |
* The simplest mpeg audio layer 2 encoder. |
|
23 |
*/ |
|
24 |
|
|
19 | 25 |
#include "avcodec.h" |
20 | 26 |
#include "mpegaudio.h" |
21 | 27 |
|
libavcodec/mpegaudio.h | ||
---|---|---|
1 |
/* mpeg audio declarations for both encoder and decoder */ |
|
1 |
/** |
|
2 |
* @file mpegaudio.h |
|
3 |
* mpeg audio declarations for both encoder and decoder. |
|
4 |
*/ |
|
2 | 5 |
|
3 | 6 |
/* max frame size, in samples */ |
4 | 7 |
#define MPA_FRAME_SIZE 1152 |
libavcodec/mpegaudiodec.c | ||
---|---|---|
16 | 16 |
* License along with this library; if not, write to the Free Software |
17 | 17 |
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA |
18 | 18 |
*/ |
19 |
|
|
20 |
/** |
|
21 |
* @file mpegaudiodec.c |
|
22 |
* MPEG Audio decoder. |
|
23 |
*/ |
|
24 |
|
|
19 | 25 |
//#define DEBUG |
20 | 26 |
#include "avcodec.h" |
21 | 27 |
#include "mpegaudio.h" |
libavcodec/mpegaudiodectab.h | ||
---|---|---|
1 |
/** |
|
2 |
* @file mpegaudiodectab.h |
|
3 |
* mpeg audio layer decoder tables. |
|
4 |
*/ |
|
1 | 5 |
|
2 | 6 |
const uint16_t mpa_bitrate_tab[2][3][15] = { |
3 | 7 |
{ {0, 32, 64, 96, 128, 160, 192, 224, 256, 288, 320, 352, 384, 416, 448 }, |
libavcodec/mpegaudiotab.h | ||
---|---|---|
8 | 8 |
* same archive |
9 | 9 |
*/ |
10 | 10 |
|
11 |
/** |
|
12 |
* @file mpegaudiotab.h |
|
13 |
* mpeg audio layer 2 tables. |
|
14 |
* Most of them come from the mpeg audio specification. |
|
15 |
*/ |
|
16 |
|
|
11 | 17 |
#define SQRT2 1.41421356237309514547 |
12 | 18 |
|
13 | 19 |
static const int costab32[30] = { |
libavcodec/mpegvideo.c | ||
---|---|---|
19 | 19 |
* 4MV & hq & b-frame encoding stuff by Michael Niedermayer <michaelni@gmx.at> |
20 | 20 |
*/ |
21 | 21 |
|
22 |
/** |
|
23 |
* @file mpegvideo.c |
|
24 |
* The simplest mpeg encoder (well, it was the simplest!). |
|
25 |
*/ |
|
26 |
|
|
22 | 27 |
#include <ctype.h> |
23 | 28 |
#include <limits.h> |
24 | 29 |
#include "avcodec.h" |
libavcodec/mpegvideo.h | ||
---|---|---|
17 | 17 |
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA |
18 | 18 |
*/ |
19 | 19 |
|
20 |
/** |
|
21 |
* @file mpegvideo.h |
|
22 |
* mpegvideo header. |
|
23 |
*/ |
|
24 |
|
|
20 | 25 |
#ifndef AVCODEC_MPEGVIDEO_H |
21 | 26 |
#define AVCODEC_MPEGVIDEO_H |
22 | 27 |
|
libavcodec/msmpeg4.c | ||
---|---|---|
18 | 18 |
* |
19 | 19 |
* msmpeg4v1 & v2 stuff by Michael Niedermayer <michaelni@gmx.at> |
20 | 20 |
*/ |
21 |
|
|
22 |
/** |
|
23 |
* @file msmpeg4.c |
|
24 |
* MSMPEG4 backend for ffmpeg encoder and decoder. |
|
25 |
*/ |
|
26 |
|
|
21 | 27 |
#include "avcodec.h" |
22 | 28 |
#include "dsputil.h" |
23 | 29 |
#include "mpegvideo.h" |
libavcodec/msmpeg4data.h | ||
---|---|---|
1 |
/* |
|
1 |
/** |
|
2 |
* @file msmpeg4data.h |
|
2 | 3 |
* MSMPEG4 data tables. |
3 | 4 |
*/ |
4 | 5 |
|
libavcodec/oggvorbis.c | ||
---|---|---|
1 |
/* |
|
2 |
* Ogg Vorbis codec support via libvorbisenc |
|
3 |
* Mark Hills <mark@pogo.org.uk> |
|
1 |
/** |
|
2 |
* @file oggvorbis.c |
|
3 |
* Ogg Vorbis codec support via libvorbisenc. |
|
4 |
* @author Mark Hills <mark@pogo.org.uk> |
|
4 | 5 |
*/ |
5 | 6 |
|
6 | 7 |
#include <time.h> |
libavcodec/oggvorbis.h | ||
---|---|---|
1 |
/** |
|
2 |
* @file oggvorbis.h |
|
3 |
* oggvorbis. |
|
4 |
*/ |
|
5 |
|
|
1 | 6 |
#ifndef AVCODEC_OGGVORBIS_H |
2 | 7 |
#define AVCODEC_OGGVORBIS_H |
3 | 8 |
|
libavcodec/opts.c | ||
---|---|---|
2 | 2 |
* LGPL |
3 | 3 |
*/ |
4 | 4 |
|
5 |
/* |
|
5 |
/** |
|
6 |
* @file opts.c |
|
7 |
* options parser. |
|
6 | 8 |
* typical parsed command line: |
7 | 9 |
* msmpeg4:bitrate=720000:qmax=16 |
8 | 10 |
* |
libavcodec/ratecontrol.c | ||
---|---|---|
17 | 17 |
* License along with this library; if not, write to the Free Software |
18 | 18 |
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA |
19 | 19 |
*/ |
20 |
|
|
21 |
/** |
|
22 |
* @file ratecontrol.c |
|
23 |
* Rate control for video encoders. |
|
24 |
*/ |
|
25 |
|
|
20 | 26 |
#include "avcodec.h" |
21 | 27 |
#include "dsputil.h" |
22 | 28 |
#include "mpegvideo.h" |
libavcodec/resample.c | ||
---|---|---|
16 | 16 |
* License along with this library; if not, write to the Free Software |
17 | 17 |
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA |
18 | 18 |
*/ |
19 |
|
|
20 |
/** |
|
21 |
* @file resample.c |
|
22 |
* Sample rate convertion for both audio and video. |
|
23 |
*/ |
|
24 |
|
|
19 | 25 |
#include "avcodec.h" |
20 | 26 |
|
21 | 27 |
typedef struct { |
libavcodec/rv10.c | ||
---|---|---|
16 | 16 |
* License along with this library; if not, write to the Free Software |
17 | 17 |
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA |
18 | 18 |
*/ |
19 |
|
|
20 |
/** |
|
21 |
* @file rv10.c |
|
22 |
* RV10 codec. |
|
23 |
*/ |
|
24 |
|
|
19 | 25 |
#include "avcodec.h" |
20 | 26 |
#include "dsputil.h" |
21 | 27 |
#include "mpegvideo.h" |
libavcodec/simple_idct.c | ||
---|---|---|
17 | 17 |
* License along with this library; if not, write to the Free Software |
18 | 18 |
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA |
19 | 19 |
*/ |
20 |
|
|
21 |
/** |
|
22 |
* @file simple_idct.c |
|
23 |
* simpleidct in C. |
|
24 |
*/ |
|
25 |
|
|
20 | 26 |
/* |
21 | 27 |
based upon some outcommented c code from mpeg2dec (idct_mmx.c |
22 | 28 |
written by Aaron Holtzman <aholtzma@ess.engr.uvic.ca>) |
libavcodec/simple_idct.h | ||
---|---|---|
18 | 18 |
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA |
19 | 19 |
*/ |
20 | 20 |
|
21 |
/** |
|
22 |
* @file simple_idct.h |
|
23 |
* simple idct header. |
|
24 |
*/ |
|
25 |
|
|
21 | 26 |
void simple_idct_put(uint8_t *dest, int line_size, DCTELEM *block); |
22 | 27 |
void simple_idct_add(uint8_t *dest, int line_size, DCTELEM *block); |
23 | 28 |
void ff_simple_idct_mmx(int16_t *block); |
libavcodec/svq1.c | ||
---|---|---|
21 | 21 |
* Ported to libavcodec by Nick Kurshev <nickols_k@mail.ru> |
22 | 22 |
* |
23 | 23 |
*/ |
24 |
|
|
25 |
/** |
|
26 |
* @file svq1.c |
|
27 |
* svq1 decoder. |
|
28 |
*/ |
|
29 |
|
|
24 | 30 |
//#define DEBUG_SVQ1 |
25 | 31 |
#include <stdio.h> |
26 | 32 |
#include <stdlib.h> |
libavcodec/svq1_cb.h | ||
---|---|---|
22 | 22 |
* |
23 | 23 |
*/ |
24 | 24 |
|
25 |
/** |
|
26 |
* @file svq1_cb.h |
|
27 |
* svq1 code books. |
|
28 |
*/ |
|
29 |
|
|
25 | 30 |
/* 6x16-entry codebook for inter-coded 4x2 vectors */ |
26 | 31 |
static const int8_t svq1_inter_codebook_4x2[768] = { |
27 | 32 |
7, 2, -6, -7, 7, 3, -3, -4, -7, -2, 7, 8, -8, -4, 3, 4, |
libavcodec/utils.c | ||
---|---|---|
16 | 16 |
* License along with this library; if not, write to the Free Software |
17 | 17 |
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA |
18 | 18 |
*/ |
19 |
|
|
20 |
/** |
|
21 |
* @file utils.c |
|
22 |
* utils. |
|
23 |
*/ |
|
24 |
|
|
19 | 25 |
#include "avcodec.h" |
20 | 26 |
#include "dsputil.h" |
21 | 27 |
#include "mpegvideo.h" |
libavcodec/wmadata.h | ||
---|---|---|
1 |
/* Various WMA tables */ |
|
1 |
/** |
|
2 |
* @file wmadata.h |
|
3 |
* Various WMA tables. |
|
4 |
*/ |
|
2 | 5 |
|
3 | 6 |
static const uint16_t wma_critical_freqs[25] = { |
4 | 7 |
100, 200, 300, 400, 510, 630, 770, 920, |
libavcodec/wmadec.c | ||
---|---|---|
16 | 16 |
* License along with this library; if not, write to the Free Software |
17 | 17 |
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA |
18 | 18 |
*/ |
19 |
|
|
20 |
/** |
|
21 |
* @file wmadec.c |
|
22 |
* WMA compatible decoder. |
|
23 |
*/ |
|
24 |
|
|
19 | 25 |
#include "avcodec.h" |
20 | 26 |
#include "dsputil.h" |
21 | 27 |
|
libavcodec/wmv2.c | ||
---|---|---|
17 | 17 |
* |
18 | 18 |
*/ |
19 | 19 |
|
20 |
/** |
|
21 |
* @file wmv2.c |
|
22 |
* wmv2 codec. |
|
23 |
*/ |
|
24 |
|
|
20 | 25 |
#include "simple_idct.h" |
21 | 26 |
|
22 | 27 |
#define SKIP_TYPE_NONE 0 |
Also available in: Unified diff