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
1730a67a
Commit
1730a67a
authored
Aug 02, 2016
by
Ronald S. Bultje
Committed by
Anton Khirnov
Aug 11, 2016
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
vp9: add frame threading
Signed-off-by:
Anton Khirnov
<
anton@khirnov.net
>
parent
5b995452
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
318 additions
and
81 deletions
+318
-81
vp9.c
libavcodec/vp9.c
+225
-48
vp9.h
libavcodec/vp9.h
+11
-0
vp9block.c
libavcodec/vp9block.c
+78
-33
vp9mvs.c
libavcodec/vp9mvs.c
+4
-0
No files found.
libavcodec/vp9.c
View file @
1730a67a
This diff is collapsed.
Click to expand it.
libavcodec/vp9.h
View file @
1730a67a
...
...
@@ -271,6 +271,9 @@ typedef struct VP9Block {
int
row
,
row7
,
col
,
col7
;
uint8_t
*
dst
[
3
];
ptrdiff_t
y_stride
,
uv_stride
;
enum
BlockLevel
bl
;
enum
BlockPartition
bp
;
}
VP9Block
;
typedef
struct
VP9Context
{
...
...
@@ -283,6 +286,14 @@ typedef struct VP9Context {
VP9Block
*
b
;
VP9Block
*
b_base
;
int
alloc_width
;
int
alloc_height
;
int
pass
;
int
uses_2pass
;
int
last_uses_2pass
;
int
setup_finished
;
// bitstream header
uint8_t
profile
;
uint8_t
keyframe
,
last_keyframe
;
...
...
libavcodec/vp9block.c
View file @
1730a67a
This diff is collapsed.
Click to expand it.
libavcodec/vp9mvs.c
View file @
1730a67a
...
...
@@ -164,6 +164,9 @@ static void find_ref_mvs(VP9Context *s,
if
(
s
->
use_last_frame_mvs
)
{
VP9MVRefPair
*
mv
=
&
s
->
frames
[
LAST_FRAME
].
mv
[
row
*
s
->
sb_cols
*
8
+
col
];
if
(
!
s
->
last_uses_2pass
)
ff_thread_await_progress
(
&
s
->
frames
[
LAST_FRAME
].
tf
,
row
>>
3
,
0
);
if
(
mv
->
ref
[
0
]
==
ref
)
RETURN_MV
(
mv
->
mv
[
0
]);
else
if
(
mv
->
ref
[
1
]
==
ref
)
...
...
@@ -205,6 +208,7 @@ static void find_ref_mvs(VP9Context *s,
if
(
s
->
use_last_frame_mvs
)
{
VP9MVRefPair
*
mv
=
&
s
->
frames
[
LAST_FRAME
].
mv
[
row
*
s
->
sb_cols
*
8
+
col
];
// no need to await_progress, because we already did that above
if
(
mv
->
ref
[
0
]
!=
ref
&&
mv
->
ref
[
0
]
>=
0
)
RETURN_SCALE_MV
(
mv
->
mv
[
0
],
s
->
signbias
[
mv
->
ref
[
0
]]
!=
s
->
signbias
[
ref
]);
...
...
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