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
vp6dsp.c
Go to the documentation of this file.
1
/*
2
* Copyright (C) 2006 Aurelien Jacobs <aurel@gnuage.org>
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
21
/**
22
* @file
23
* VP6 DSP-oriented functions
24
*/
25
26
#include "
libavutil/common.h
"
27
#include "
vp56dsp.h
"
28
29
30
void
ff_vp6_filter_diag4_c
(uint8_t *dst, uint8_t *
src
, ptrdiff_t
stride
,
31
const
int16_t *h_weights,
const
int16_t *v_weights)
32
{
33
int
x, y;
34
int
tmp
[8*11];
35
int
*t =
tmp
;
36
37
src
-=
stride
;
38
39
for
(y=0; y<11; y++) {
40
for
(x=0; x<8; x++) {
41
t[x] =
av_clip_uint8
((
src
[x-1] * h_weights[0]
42
+
src
[x ] * h_weights[1]
43
+
src
[x+1] * h_weights[2]
44
+
src
[x+2] * h_weights[3] + 64) >> 7);
45
}
46
src
+=
stride
;
47
t += 8;
48
}
49
50
t =
tmp
+ 8;
51
for
(y=0; y<8; y++) {
52
for
(x=0; x<8; x++) {
53
dst[x] =
av_clip_uint8
(( t[x-8 ] * v_weights[0]
54
+ t[x ] * v_weights[1]
55
+ t[x+8 ] * v_weights[2]
56
+ t[x+16] * v_weights[3] + 64) >> 7);
57
}
58
dst +=
stride
;
59
t += 8;
60
}
61
}
stride
int stride
Definition:
mace.c:144
tmp
static uint8_t tmp[11]
Definition:
aes_ctr.c:26
src
#define src
Definition:
vp8dsp.c:255
vp56dsp.h
ff_vp6_filter_diag4_c
void ff_vp6_filter_diag4_c(uint8_t *dst, uint8_t *src, ptrdiff_t stride, const int16_t *h_weights, const int16_t *v_weights)
Definition:
vp6dsp.c:30
common.h
av_clip_uint8
#define av_clip_uint8
Definition:
common.h:102
Generated on Wed Aug 24 2022 21:37:59 for FFmpeg by
1.8.17