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
2293ec6a
Commit
2293ec6a
authored
May 06, 2015
by
Ronald S. Bultje
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
libvpxdec: add 440 pixfmts.
parent
b8077d7a
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
17 additions
and
0 deletions
+17
-0
libvpxdec.c
libavcodec/libvpxdec.c
+17
-0
No files found.
libavcodec/libvpxdec.c
View file @
2293ec6a
...
...
@@ -72,6 +72,11 @@ static int set_pix_fmt(AVCodecContext *avctx, struct vpx_image *img)
case
VPX_IMG_FMT_I422
:
avctx
->
pix_fmt
=
AV_PIX_FMT_YUV422P
;
return
0
;
#if VPX_IMAGE_ABI_VERSION >= 3
case
VPX_IMG_FMT_I440
:
avctx
->
pix_fmt
=
AV_PIX_FMT_YUV440P
;
return
0
;
#endif
case
VPX_IMG_FMT_I444
:
avctx
->
pix_fmt
=
AV_PIX_FMT_YUV444P
;
return
0
;
...
...
@@ -96,6 +101,18 @@ static int set_pix_fmt(AVCodecContext *avctx, struct vpx_image *img)
}
else
{
return
AVERROR_INVALIDDATA
;
}
#if VPX_IMAGE_ABI_VERSION >= 3
case
VPX_IMG_FMT_I44016
:
if
(
img
->
bit_depth
==
10
)
{
avctx
->
pix_fmt
=
AV_PIX_FMT_YUV440P10LE
;
return
0
;
}
else
if
(
img
->
bit_depth
==
12
)
{
avctx
->
pix_fmt
=
AV_PIX_FMT_YUV440P12LE
;
return
0
;
}
else
{
return
AVERROR_INVALIDDATA
;
}
#endif
case
VPX_IMG_FMT_I44416
:
if
(
img
->
bit_depth
==
10
)
{
avctx
->
pix_fmt
=
AV_PIX_FMT_YUV444P10LE
;
...
...
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