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
49e8e5fc
Commit
49e8e5fc
authored
Dec 05, 2016
by
Mathieu Velten
Committed by
Mark Thompson
Dec 05, 2016
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
avcodec/vaapi-vp9: add support for profile 2 (bpp > 8)
Signed-off-by:
Mark Thompson
<
sw@jkqxz.net
>
parent
b1f630f1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
1 deletion
+10
-1
vaapi_vp9.c
libavcodec/vaapi_vp9.c
+1
-0
vp9.c
libavcodec/vp9.c
+9
-1
No files found.
libavcodec/vaapi_vp9.c
View file @
49e8e5fc
...
...
@@ -38,6 +38,7 @@ static void fill_picture_parameters(AVCodecContext *avctx,
pp
->
first_partition_size
=
h
->
h
.
compressed_header_size
;
pp
->
profile
=
h
->
h
.
profile
;
pp
->
bit_depth
=
h
->
h
.
bpp
;
pp
->
filter_level
=
h
->
h
.
filter
.
level
;
pp
->
sharpness_level
=
h
->
h
.
filter
.
sharpness
;
...
...
libavcodec/vp9.c
View file @
49e8e5fc
...
...
@@ -258,7 +258,8 @@ static int update_size(AVCodecContext *ctx, int w, int h)
if
((
res
=
ff_set_dimensions
(
ctx
,
w
,
h
))
<
0
)
return
res
;
if
(
s
->
pix_fmt
==
AV_PIX_FMT_YUV420P
)
{
switch
(
s
->
pix_fmt
)
{
case
AV_PIX_FMT_YUV420P
:
#if CONFIG_VP9_DXVA2_HWACCEL
*
fmtp
++
=
AV_PIX_FMT_DXVA2_VLD
;
#endif
...
...
@@ -268,6 +269,13 @@ static int update_size(AVCodecContext *ctx, int w, int h)
#if CONFIG_VP9_VAAPI_HWACCEL
*
fmtp
++
=
AV_PIX_FMT_VAAPI
;
#endif
break
;
case
AV_PIX_FMT_YUV420P10
:
case
AV_PIX_FMT_YUV420P12
:
#if CONFIG_VP9_VAAPI_HWACCEL
*
fmtp
++
=
AV_PIX_FMT_VAAPI
;
#endif
break
;
}
*
fmtp
++
=
s
->
pix_fmt
;
...
...
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