Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in / Register
Toggle navigation
F
ffmpeg.wasm-core
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Linshizhi
ffmpeg.wasm-core
Commits
6ec48185
Commit
6ec48185
authored
May 06, 2007
by
Loren Merritt
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
faster and simpler vp6 bilinear mc
Originally committed as revision 8907 to
svn://svn.ffmpeg.org/ffmpeg/trunk
parent
0d02cacd
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
24 deletions
+4
-24
vp6.c
libavcodec/vp6.c
+4
-24
No files found.
libavcodec/vp6.c
View file @
6ec48185
...
@@ -380,14 +380,6 @@ static int vp6_block_variance(uint8_t *src, int stride)
...
@@ -380,14 +380,6 @@ static int vp6_block_variance(uint8_t *src, int stride)
return
(
16
*
square_sum
-
sum
*
sum
)
>>
8
;
return
(
16
*
square_sum
-
sum
*
sum
)
>>
8
;
}
}
static
void
vp6_filter_hv2
(
vp56_context_t
*
s
,
uint8_t
*
dst
,
uint8_t
*
src
,
int
stride
,
int
delta
,
int16_t
weight
)
{
s
->
dsp
.
put_pixels_tab
[
1
][
0
](
dst
,
src
,
stride
,
8
);
s
->
dsp
.
biweight_h264_pixels_tab
[
3
](
dst
,
src
+
delta
,
stride
,
2
,
8
-
weight
,
weight
,
0
);
}
static
void
vp6_filter_hv4
(
uint8_t
*
dst
,
uint8_t
*
src
,
int
stride
,
static
void
vp6_filter_hv4
(
uint8_t
*
dst
,
uint8_t
*
src
,
int
stride
,
int
delta
,
const
int16_t
*
weights
)
int
delta
,
const
int16_t
*
weights
)
{
{
...
@@ -409,18 +401,8 @@ static void vp6_filter_diag2(vp56_context_t *s, uint8_t *dst, uint8_t *src,
...
@@ -409,18 +401,8 @@ static void vp6_filter_diag2(vp56_context_t *s, uint8_t *dst, uint8_t *src,
int
stride
,
int
h_weight
,
int
v_weight
)
int
stride
,
int
h_weight
,
int
v_weight
)
{
{
uint8_t
*
tmp
=
s
->
edge_emu_buffer
+
16
;
uint8_t
*
tmp
=
s
->
edge_emu_buffer
+
16
;
int
x
,
xmax
;
s
->
dsp
.
put_h264_chroma_pixels_tab
[
0
](
tmp
,
src
,
stride
,
9
,
h_weight
,
0
);
s
->
dsp
.
put_h264_chroma_pixels_tab
[
0
](
dst
,
tmp
,
stride
,
8
,
0
,
v_weight
);
s
->
dsp
.
put_pixels_tab
[
1
][
0
](
tmp
,
src
,
stride
,
8
);
s
->
dsp
.
biweight_h264_pixels_tab
[
3
](
tmp
,
src
+
1
,
stride
,
2
,
8
-
h_weight
,
h_weight
,
0
);
/* we need a 8x9 block to do vertical filter, so compute one more line */
for
(
x
=
8
*
stride
,
xmax
=
x
+
8
;
x
<
xmax
;
x
++
)
tmp
[
x
]
=
(
src
[
x
]
*
(
8
-
h_weight
)
+
src
[
x
+
1
]
*
h_weight
+
4
)
>>
3
;
s
->
dsp
.
put_pixels_tab
[
1
][
0
](
dst
,
tmp
,
stride
,
8
);
s
->
dsp
.
biweight_h264_pixels_tab
[
3
](
dst
,
tmp
+
stride
,
stride
,
2
,
8
-
v_weight
,
v_weight
,
0
);
}
}
static
void
vp6_filter_diag4
(
uint8_t
*
dst
,
uint8_t
*
src
,
int
stride
,
static
void
vp6_filter_diag4
(
uint8_t
*
dst
,
uint8_t
*
src
,
int
stride
,
...
@@ -502,10 +484,8 @@ static void vp6_filter(vp56_context_t *s, uint8_t *dst, uint8_t *src,
...
@@ -502,10 +484,8 @@ static void vp6_filter(vp56_context_t *s, uint8_t *dst, uint8_t *src,
vp6_block_copy_filter
[
select
][
y8
]);
vp6_block_copy_filter
[
select
][
y8
]);
}
}
}
else
{
}
else
{
if
(
!
y8
)
{
/* left or right combine */
if
(
!
x8
||
!
y8
)
{
vp6_filter_hv2
(
s
,
dst
,
src
+
offset1
,
stride
,
1
,
x8
);
s
->
dsp
.
put_h264_chroma_pixels_tab
[
0
](
dst
,
src
+
offset1
,
stride
,
8
,
x8
,
y8
);
}
else
if
(
!
x8
)
{
/* above or below combine */
vp6_filter_hv2
(
s
,
dst
,
src
+
offset1
,
stride
,
stride
,
y8
);
}
else
if
((
mv
.
x
^
mv
.
y
)
>>
31
)
{
/* lower-left or upper-right combine */
}
else
if
((
mv
.
x
^
mv
.
y
)
>>
31
)
{
/* lower-left or upper-right combine */
vp6_filter_diag2
(
s
,
dst
,
src
+
offset1
-
1
,
stride
,
x8
,
y8
);
vp6_filter_diag2
(
s
,
dst
,
src
+
offset1
-
1
,
stride
,
x8
,
y8
);
}
else
{
/* lower-right or upper-left combine */
}
else
{
/* lower-right or upper-left combine */
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment