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
97de37da
Commit
97de37da
authored
Mar 29, 2018
by
James Almer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
libavcodec/libaomdec: add support for transfer characteristics and color primaries
Signed-off-by:
James Almer
<
jamrial@gmail.com
>
parent
416d354a
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
0 deletions
+2
-0
libaomdec.c
libavcodec/libaomdec.c
+2
-0
No files found.
libavcodec/libaomdec.c
View file @
97de37da
...
...
@@ -89,7 +89,9 @@ static int set_pix_fmt(AVCodecContext *avctx, struct aom_image *img)
AVCOL_RANGE_MPEG
,
AVCOL_RANGE_JPEG
};
avctx
->
color_range
=
color_ranges
[
img
->
range
];
avctx
->
color_primaries
=
img
->
cp
;
avctx
->
colorspace
=
img
->
mc
;
avctx
->
color_trc
=
img
->
tc
;
switch
(
img
->
fmt
)
{
case
AOM_IMG_FMT_I420
:
...
...
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