FFmpeg
Main Page
Related Pages
Modules
Namespaces
Namespace List
Namespace Members
All
Functions
Variables
Data Structures
Data Structures
Data Structure Index
Class Hierarchy
Data Fields
All
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
~
Functions
_
a
c
d
g
i
o
q
r
s
v
~
Variables
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Enumerations
Enumerator
a
d
e
f
i
j
l
m
n
p
r
s
v
Files
File List
Globals
All
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Functions
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Variables
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Typedefs
_
a
b
c
d
e
f
g
h
i
l
m
o
p
q
r
s
t
u
v
w
x
y
Enumerations
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Enumerator
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Macros
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Examples
•
All
Data Structures
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Macros
Modules
Pages
libavcodec
avdct.h
Go to the documentation of this file.
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
24
/**
25
* AVDCT context.
26
* @note function pointers can be NULL if the specific features have been
27
* disabled at build time.
28
*/
29
typedef
struct
AVDCT
{
30
const
AVClass
*
av_class
;
31
32
void (*
idct
)(int16_t *
block
/* align 16 */
);
33
34
/**
35
* IDCT input permutation.
36
* Several optimized IDCTs need a permutated input (relative to the
37
* normal order of the reference IDCT).
38
* This permutation must be performed before the idct_put/add.
39
* Note, normally this can be merged with the zigzag/alternate scan<br>
40
* An example to avoid confusion:
41
* - (->decode coeffs -> zigzag reorder -> dequant -> reference IDCT -> ...)
42
* - (x -> reference DCT -> reference IDCT -> x)
43
* - (x -> reference DCT -> simple_mmx_perm = idct_permutation
44
* -> simple_idct_mmx -> x)
45
* - (-> decode coeffs -> zigzag reorder -> simple_mmx_perm -> dequant
46
* -> simple_idct_mmx -> ...)
47
*/
48
uint8_t
idct_permutation
[64];
49
50
void (*
fdct
)(int16_t *
block
/* align 16 */
);
51
52
53
/**
54
* DCT algorithm.
55
* must use AVOptions to set this field.
56
*/
57
int
dct_algo
;
58
59
/**
60
* IDCT algorithm.
61
* must use AVOptions to set this field.
62
*/
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
72
/**
73
* Allocates a AVDCT context.
74
* This needs to be initialized with avcodec_dct_init() after optionally
75
* configuring it with AVOptions.
76
*
77
* To free it use av_free()
78
*/
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 */
opt.h
pixels
int pixels
Definition:
avisynth_c.h:390
AVDCT::dct_algo
int dct_algo
DCT algorithm.
Definition:
avdct.h:57
avcodec_dct_init
int avcodec_dct_init(AVDCT *)
Definition:
avdct.c:88
AVDCT::fdct
void(* fdct)(int16_t *block)
Definition:
avdct.h:50
AVDCT::idct_permutation
uint8_t idct_permutation[64]
IDCT input permutation.
Definition:
avdct.h:48
AVDCT::bits_per_sample
int bits_per_sample
Definition:
avdct.h:69
avcodec_dct_alloc
AVDCT * avcodec_dct_alloc(void)
Allocates a AVDCT context.
Definition:
avdct.c:75
AVDCT::av_class
const AVClass * av_class
Definition:
avdct.h:30
AVClass
Describe the class of an AVClass context structure.
Definition:
log.h:67
AVDCT::get_pixels
void(* get_pixels)(int16_t *block, const uint8_t *pixels, ptrdiff_t line_size)
Definition:
avdct.h:65
AVDCT::idct
void(* idct)(int16_t *block)
Definition:
avdct.h:32
avcodec_dct_get_class
const AVClass * avcodec_dct_get_class(void)
Definition:
avdct.c:70
AVDCT
AVDCT context.
Definition:
avdct.h:29
uint8_t
uint8_t
Definition:
audio_convert.c:194
block
The exact code depends on how similar the blocks are and how related they are to the block
Definition:
filter_design.txt:207
AVDCT::idct_algo
int idct_algo
IDCT algorithm.
Definition:
avdct.h:63
Generated on Wed Aug 24 2022 21:26:34 for FFmpeg by
1.8.17