annotate ffmpeg/libavcodec/dct.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 6840f77b83aa
children
rev   line source
yading@10 1 /*
yading@10 2 * (I)DCT Transforms
yading@10 3 * Copyright (c) 2009 Peter Ross <pross@xvid.org>
yading@10 4 * Copyright (c) 2010 Alex Converse <alex.converse@gmail.com>
yading@10 5 * Copyright (c) 2010 Vitor Sessak
yading@10 6 *
yading@10 7 * This file is part of FFmpeg.
yading@10 8 *
yading@10 9 * FFmpeg is free software; you can redistribute it and/or
yading@10 10 * modify it under the terms of the GNU Lesser General Public
yading@10 11 * License as published by the Free Software Foundation; either
yading@10 12 * version 2.1 of the License, or (at your option) any later version.
yading@10 13 *
yading@10 14 * FFmpeg is distributed in the hope that it will be useful,
yading@10 15 * but WITHOUT ANY WARRANTY; without even the implied warranty of
yading@10 16 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
yading@10 17 * Lesser General Public License for more details.
yading@10 18 *
yading@10 19 * You should have received a copy of the GNU Lesser General Public
yading@10 20 * License along with FFmpeg; if not, write to the Free Software
yading@10 21 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
yading@10 22 */
yading@10 23
yading@10 24 #ifndef AVCODEC_DCT_H
yading@10 25 #define AVCODEC_DCT_H
yading@10 26
yading@10 27 #include <stdint.h>
yading@10 28
yading@10 29 #include "rdft.h"
yading@10 30
yading@10 31 struct DCTContext {
yading@10 32 int nbits;
yading@10 33 int inverse;
yading@10 34 RDFTContext rdft;
yading@10 35 const float *costab;
yading@10 36 FFTSample *csc2;
yading@10 37 void (*dct_calc)(struct DCTContext *s, FFTSample *data);
yading@10 38 void (*dct32)(FFTSample *out, const FFTSample *in);
yading@10 39 };
yading@10 40
yading@10 41 /**
yading@10 42 * Set up DCT.
yading@10 43 * @param nbits size of the input array:
yading@10 44 * (1 << nbits) for DCT-II, DCT-III and DST-I
yading@10 45 * (1 << nbits) + 1 for DCT-I
yading@10 46 *
yading@10 47 * @note the first element of the input of DST-I is ignored
yading@10 48 */
yading@10 49 int ff_dct_init(DCTContext *s, int nbits, enum DCTTransformType type);
yading@10 50 void ff_dct_end (DCTContext *s);
yading@10 51
yading@10 52 void ff_dct_init_x86(DCTContext *s);
yading@10 53
yading@10 54 void ff_fdct_ifast(int16_t *data);
yading@10 55 void ff_fdct_ifast248(int16_t *data);
yading@10 56 void ff_jpeg_fdct_islow_8(int16_t *data);
yading@10 57 void ff_jpeg_fdct_islow_10(int16_t *data);
yading@10 58 void ff_fdct248_islow_8(int16_t *data);
yading@10 59 void ff_fdct248_islow_10(int16_t *data);
yading@10 60
yading@10 61 void ff_j_rev_dct(int16_t *data);
yading@10 62 void ff_j_rev_dct4(int16_t *data);
yading@10 63 void ff_j_rev_dct2(int16_t *data);
yading@10 64 void ff_j_rev_dct1(int16_t *data);
yading@10 65
yading@10 66 void ff_fdct_mmx(int16_t *block);
yading@10 67 void ff_fdct_mmxext(int16_t *block);
yading@10 68 void ff_fdct_sse2(int16_t *block);
yading@10 69
yading@10 70 #endif /* AVCODEC_DCT_H */