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
a7d70d88
Commit
a7d70d88
authored
Sep 24, 2007
by
Aurelien Jacobs
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
rename vp56_b6to3 to vp56_b2p
Originally committed as revision 10569 to
svn://svn.ffmpeg.org/ffmpeg/trunk
parent
1457516f
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
7 additions
and
7 deletions
+7
-7
vp56.c
libavcodec/vp56.c
+5
-5
vp56data.c
libavcodec/vp56data.c
+1
-1
vp56data.h
libavcodec/vp56data.h
+1
-1
No files found.
libavcodec/vp56.c
View file @
a7d70d88
...
@@ -285,12 +285,12 @@ static void vp56_add_predictors_dc(vp56_context_t *s, vp56_frame_t ref_frame)
...
@@ -285,12 +285,12 @@ static void vp56_add_predictors_dc(vp56_context_t *s, vp56_frame_t ref_frame)
}
}
}
}
if
(
count
==
0
)
if
(
count
==
0
)
dc
=
s
->
prev_dc
[
vp56_b
6to3
[
i
]][
ref_frame
];
dc
=
s
->
prev_dc
[
vp56_b
2p
[
i
]][
ref_frame
];
else
if
(
count
==
2
)
else
if
(
count
==
2
)
dc
/=
2
;
dc
/=
2
;
s
->
block_coeff
[
i
][
idx
]
+=
dc
;
s
->
block_coeff
[
i
][
idx
]
+=
dc
;
s
->
prev_dc
[
vp56_b
6to3
[
i
]][
ref_frame
]
=
s
->
block_coeff
[
i
][
idx
];
s
->
prev_dc
[
vp56_b
2p
[
i
]][
ref_frame
]
=
s
->
block_coeff
[
i
][
idx
];
ab
->
dc_coeff
=
s
->
block_coeff
[
i
][
idx
];
ab
->
dc_coeff
=
s
->
block_coeff
[
i
][
idx
];
ab
->
ref_frame
=
ref_frame
;
ab
->
ref_frame
=
ref_frame
;
lb
->
dc_coeff
=
s
->
block_coeff
[
i
][
idx
];
lb
->
dc_coeff
=
s
->
block_coeff
[
i
][
idx
];
...
@@ -417,7 +417,7 @@ static void vp56_decode_mb(vp56_context_t *s, int row, int col)
...
@@ -417,7 +417,7 @@ static void vp56_decode_mb(vp56_context_t *s, int row, int col)
switch
(
mb_type
)
{
switch
(
mb_type
)
{
case
VP56_MB_INTRA
:
case
VP56_MB_INTRA
:
for
(
b
=
0
;
b
<
6
;
b
++
)
{
for
(
b
=
0
;
b
<
6
;
b
++
)
{
plan
=
vp56_b
6to3
[
b
];
plan
=
vp56_b
2p
[
b
];
s
->
dsp
.
idct_put
(
frame_current
->
data
[
plan
]
+
s
->
block_offset
[
b
],
s
->
dsp
.
idct_put
(
frame_current
->
data
[
plan
]
+
s
->
block_offset
[
b
],
s
->
stride
[
plan
],
s
->
block_coeff
[
b
]);
s
->
stride
[
plan
],
s
->
block_coeff
[
b
]);
}
}
...
@@ -426,7 +426,7 @@ static void vp56_decode_mb(vp56_context_t *s, int row, int col)
...
@@ -426,7 +426,7 @@ static void vp56_decode_mb(vp56_context_t *s, int row, int col)
case
VP56_MB_INTER_NOVEC_PF
:
case
VP56_MB_INTER_NOVEC_PF
:
case
VP56_MB_INTER_NOVEC_GF
:
case
VP56_MB_INTER_NOVEC_GF
:
for
(
b
=
0
;
b
<
6
;
b
++
)
{
for
(
b
=
0
;
b
<
6
;
b
++
)
{
plan
=
vp56_b
6to3
[
b
];
plan
=
vp56_b
2p
[
b
];
off
=
s
->
block_offset
[
b
];
off
=
s
->
block_offset
[
b
];
s
->
dsp
.
put_pixels_tab
[
1
][
0
](
frame_current
->
data
[
plan
]
+
off
,
s
->
dsp
.
put_pixels_tab
[
1
][
0
](
frame_current
->
data
[
plan
]
+
off
,
frame_ref
->
data
[
plan
]
+
off
,
frame_ref
->
data
[
plan
]
+
off
,
...
@@ -446,7 +446,7 @@ static void vp56_decode_mb(vp56_context_t *s, int row, int col)
...
@@ -446,7 +446,7 @@ static void vp56_decode_mb(vp56_context_t *s, int row, int col)
for
(
b
=
0
;
b
<
6
;
b
++
)
{
for
(
b
=
0
;
b
<
6
;
b
++
)
{
int
x_off
=
b
==
1
||
b
==
3
?
8
:
0
;
int
x_off
=
b
==
1
||
b
==
3
?
8
:
0
;
int
y_off
=
b
==
2
||
b
==
3
?
8
:
0
;
int
y_off
=
b
==
2
||
b
==
3
?
8
:
0
;
plan
=
vp56_b
6to3
[
b
];
plan
=
vp56_b
2p
[
b
];
vp56_mc
(
s
,
b
,
plan
,
frame_ref
->
data
[
plan
],
s
->
stride
[
plan
],
vp56_mc
(
s
,
b
,
plan
,
frame_ref
->
data
[
plan
],
s
->
stride
[
plan
],
16
*
col
+
x_off
,
16
*
row
+
y_off
);
16
*
col
+
x_off
,
16
*
row
+
y_off
);
s
->
dsp
.
idct_add
(
frame_current
->
data
[
plan
]
+
s
->
block_offset
[
b
],
s
->
dsp
.
idct_add
(
frame_current
->
data
[
plan
]
+
s
->
block_offset
[
b
],
...
...
libavcodec/vp56data.c
View file @
a7d70d88
...
@@ -23,7 +23,7 @@
...
@@ -23,7 +23,7 @@
#include "vp56data.h"
#include "vp56data.h"
const
uint8_t
vp56_b
6to3
[]
=
{
0
,
0
,
0
,
0
,
1
,
2
};
const
uint8_t
vp56_b
2p
[]
=
{
0
,
0
,
0
,
0
,
1
,
2
};
const
uint8_t
vp56_b6to4
[]
=
{
0
,
0
,
1
,
1
,
2
,
3
};
const
uint8_t
vp56_b6to4
[]
=
{
0
,
0
,
1
,
1
,
2
,
3
};
const
uint8_t
vp56_coeff_parse_table
[
6
][
11
]
=
{
const
uint8_t
vp56_coeff_parse_table
[
6
][
11
]
=
{
...
...
libavcodec/vp56data.h
View file @
a7d70d88
...
@@ -51,7 +51,7 @@ typedef struct {
...
@@ -51,7 +51,7 @@ typedef struct {
int8_t
prob_idx
;
int8_t
prob_idx
;
}
vp56_tree_t
;
}
vp56_tree_t
;
extern
const
uint8_t
vp56_b
6to3
[];
extern
const
uint8_t
vp56_b
2p
[];
extern
const
uint8_t
vp56_b6to4
[];
extern
const
uint8_t
vp56_b6to4
[];
extern
const
uint8_t
vp56_coeff_parse_table
[
6
][
11
];
extern
const
uint8_t
vp56_coeff_parse_table
[
6
][
11
];
extern
const
uint8_t
vp56_def_mb_types_stats
[
3
][
10
][
2
];
extern
const
uint8_t
vp56_def_mb_types_stats
[
3
][
10
][
2
];
...
...
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