Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
F
ffmpeg
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
Packages
Packages
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
submodule
ffmpeg
Commits
02064d6b
Commit
02064d6b
authored
Sep 11, 2015
by
Ronald S. Bultje
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
libvpxdec: apply RGB to 444P16 instead of 422P16.
parent
9b10ae57
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
10 deletions
+10
-10
libvpxdec.c
libavcodec/libvpxdec.c
+10
-10
No files found.
libavcodec/libvpxdec.c
View file @
02064d6b
...
@@ -112,20 +112,10 @@ static int set_pix_fmt(AVCodecContext *avctx, struct vpx_image *img)
...
@@ -112,20 +112,10 @@ static int set_pix_fmt(AVCodecContext *avctx, struct vpx_image *img)
case
VPX_IMG_FMT_I42216
:
case
VPX_IMG_FMT_I42216
:
avctx
->
profile
=
FF_PROFILE_VP9_3
;
avctx
->
profile
=
FF_PROFILE_VP9_3
;
if
(
img
->
bit_depth
==
10
)
{
if
(
img
->
bit_depth
==
10
)
{
#if VPX_IMAGE_ABI_VERSION >= 3
avctx
->
pix_fmt
=
avctx
->
colorspace
==
AVCOL_SPC_RGB
?
AV_PIX_FMT_GBRP10LE
:
AV_PIX_FMT_YUV422P10LE
;
#else
avctx
->
pix_fmt
=
AV_PIX_FMT_YUV422P10LE
;
avctx
->
pix_fmt
=
AV_PIX_FMT_YUV422P10LE
;
#endif
return
0
;
return
0
;
}
else
if
(
img
->
bit_depth
==
12
)
{
}
else
if
(
img
->
bit_depth
==
12
)
{
#if VPX_IMAGE_ABI_VERSION >= 3
avctx
->
pix_fmt
=
avctx
->
colorspace
==
AVCOL_SPC_RGB
?
AV_PIX_FMT_GBRP12LE
:
AV_PIX_FMT_YUV422P12LE
;
#else
avctx
->
pix_fmt
=
AV_PIX_FMT_YUV422P12LE
;
avctx
->
pix_fmt
=
AV_PIX_FMT_YUV422P12LE
;
#endif
return
0
;
return
0
;
}
else
{
}
else
{
return
AVERROR_INVALIDDATA
;
return
AVERROR_INVALIDDATA
;
...
@@ -146,10 +136,20 @@ static int set_pix_fmt(AVCodecContext *avctx, struct vpx_image *img)
...
@@ -146,10 +136,20 @@ static int set_pix_fmt(AVCodecContext *avctx, struct vpx_image *img)
case
VPX_IMG_FMT_I44416
:
case
VPX_IMG_FMT_I44416
:
avctx
->
profile
=
FF_PROFILE_VP9_3
;
avctx
->
profile
=
FF_PROFILE_VP9_3
;
if
(
img
->
bit_depth
==
10
)
{
if
(
img
->
bit_depth
==
10
)
{
#if VPX_IMAGE_ABI_VERSION >= 3
avctx
->
pix_fmt
=
avctx
->
colorspace
==
AVCOL_SPC_RGB
?
AV_PIX_FMT_GBRP10LE
:
AV_PIX_FMT_YUV444P10LE
;
#else
avctx
->
pix_fmt
=
AV_PIX_FMT_YUV444P10LE
;
avctx
->
pix_fmt
=
AV_PIX_FMT_YUV444P10LE
;
#endif
return
0
;
return
0
;
}
else
if
(
img
->
bit_depth
==
12
)
{
}
else
if
(
img
->
bit_depth
==
12
)
{
#if VPX_IMAGE_ABI_VERSION >= 3
avctx
->
pix_fmt
=
avctx
->
colorspace
==
AVCOL_SPC_RGB
?
AV_PIX_FMT_GBRP12LE
:
AV_PIX_FMT_YUV444P12LE
;
#else
avctx
->
pix_fmt
=
AV_PIX_FMT_YUV444P12LE
;
avctx
->
pix_fmt
=
AV_PIX_FMT_YUV444P12LE
;
#endif
return
0
;
return
0
;
}
else
{
}
else
{
return
AVERROR_INVALIDDATA
;
return
AVERROR_INVALIDDATA
;
...
...
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