1 /*
2 * Copyright (c) 2014 Michael Niedermayer <michaelni@gmx.at>
3 *
4 * This file is part of FFmpeg.
5 *
6 * FFmpeg is free software; you can redistribute it and/or
7 * modify it under the terms of the GNU Lesser General Public
8 * License as published by the Free Software Foundation; either
9 * version 2.1 of the License, or (at your option) any later version.
10 *
11 * FFmpeg is distributed in the hope that it will be useful,
12 * but WITHOUT ANY WARRANTY; without even the implied warranty of
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14 * Lesser General Public License for more details.
15 *
16 * You should have received a copy of the GNU Lesser General Public
17 * License along with FFmpeg; if not, write to the Free Software
18 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
19 */
20
26
27 #define OFFSET(x) offsetof(AVDCT,x)
28 #define DEFAULT 0 //should be NAN but it does not work as it is not a constant in glibc as required by ANSI/ISO C
29 //these names are too long to be readable
30 #define V AV_OPT_FLAG_VIDEO_PARAM
31 #define A AV_OPT_FLAG_AUDIO_PARAM
32 #define E AV_OPT_FLAG_ENCODING_PARAM
33 #define D AV_OPT_FLAG_DECODING_PARAM
34
43
51 #if FF_API_ARCH_SH4
53 #endif
58 #if FF_API_ARCH_ALPHA
60 #endif
66
69 };
70
75 };
76
78 {
80 }
81
83 {
85
86 if (!dsp)
88
91
92 return dsp;
93 }
94
96 {
98
99 if (!avctx)
101
105
106 #define COPY(src, name) memcpy(&dsp->name, &src.name, sizeof(dsp->name))
107
108 #if CONFIG_IDCTDSP
109 {
113 COPY(idsp, idct_permutation);
114 }
115 #endif
116
117 #if CONFIG_FDCTDSP
118 {
122 }
123 #endif
124
125 #if CONFIG_PIXBLOCKDSP
126 {
130 }
131 #endif
132
135
136 return 0;
137 }