FFmpeg
avdct.h
1 /*
2  * This file is part of FFmpeg.
3  *
4  * FFmpeg is free software; you can redistribute it and/or
5  * modify it under the terms of the GNU Lesser General Public
6  * License as published by the Free Software Foundation; either
7  * version 2.1 of the License, or (at your option) any later version.
8  *
9  * FFmpeg is distributed in the hope that it will be useful,
10  * but WITHOUT ANY WARRANTY; without even the implied warranty of
11  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12  * Lesser General Public License for more details.
13  *
14  * You should have received a copy of the GNU Lesser General Public
15  * License along with FFmpeg; if not, write to the Free Software
16  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
17  */
18 
19 #ifndef AVCODEC_AVDCT_H
20 #define AVCODEC_AVDCT_H
21 
22 #include "libavutil/opt.h"
23 
29 typedef struct AVDCT {
30  const AVClass *av_class;
31 
32  void (*idct)(int16_t *block /* align 16 */);
33 
48  uint8_t idct_permutation[64];
49 
50  void (*fdct)(int16_t *block /* align 16 */);
51 
52 
57  int dct_algo;
58 
63  int idct_algo;
64 
65  void (*get_pixels)(int16_t *block /* align 16 */,
66  const uint8_t *pixels /* align 8 */,
67  ptrdiff_t line_size);
68 
69  int bits_per_sample;
70 } AVDCT;
71 
79 AVDCT *avcodec_dct_alloc(void);
80 int avcodec_dct_init(AVDCT *);
81 
82 const AVClass *avcodec_dct_get_class(void);
83 
84 #endif /* AVCODEC_AVDCT_H */
AVOptions.
uint8_t idct_permutation[64]
IDCT input permutation.
Definition: avdct.h:48
int dct_algo
DCT algorithm.
Definition: avdct.h:57
Describe the class of an AVClass context structure.
Definition: log.h:67
AVDCT context.
Definition: avdct.h:29
int idct_algo
IDCT algorithm.
Definition: avdct.h:63