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

libavcodec/dct.h

Go to the documentation of this file.
00001 /*
00002  * (I)DCT Transforms
00003  * Copyright (c) 2009 Peter Ross <pross@xvid.org>
00004  * Copyright (c) 2010 Alex Converse <alex.converse@gmail.com>
00005  * Copyright (c) 2010 Vitor Sessak
00006  *
00007  * This file is part of FFmpeg.
00008  *
00009  * FFmpeg is free software; you can redistribute it and/or
00010  * modify it under the terms of the GNU Lesser General Public
00011  * License as published by the Free Software Foundation; either
00012  * version 2.1 of the License, or (at your option) any later version.
00013  *
00014  * FFmpeg is distributed in the hope that it will be useful,
00015  * but WITHOUT ANY WARRANTY; without even the implied warranty of
00016  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
00017  * Lesser General Public License for more details.
00018  *
00019  * You should have received a copy of the GNU Lesser General Public
00020  * License along with FFmpeg; if not, write to the Free Software
00021  * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
00022  */
00023 
00024 #ifndef AVCODEC_DCT_H
00025 #define AVCODEC_DCT_H
00026 
00027 #include "rdft.h"
00028 
00029 struct DCTContext {
00030     int nbits;
00031     int inverse;
00032     RDFTContext rdft;
00033     const float *costab;
00034     FFTSample *csc2;
00035     void (*dct_calc)(struct DCTContext *s, FFTSample *data);
00036     void (*dct32)(FFTSample *out, const FFTSample *in);
00037 };
00038 
00047 int  ff_dct_init(DCTContext *s, int nbits, enum DCTTransformType type);
00048 void ff_dct_end (DCTContext *s);
00049 
00050 void ff_dct_init_mmx(DCTContext *s);
00051 
00052 #endif /* AVCODEC_DCT_H */
Generated on Fri Feb 1 2013 14:34:32 for FFmpeg by doxygen 1.7.1