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
e5819fa6
Commit
e5819fa6
authored
Mar 29, 2018
by
James Almer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
libavcodec/libaomenc: add support for transfer characteristics and color primaries
Signed-off-by:
James Almer
<
jamrial@gmail.com
>
parent
97de37da
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
0 deletions
+6
-0
libaomenc.c
libavcodec/libaomenc.c
+6
-0
No files found.
libavcodec/libaomenc.c
View file @
e5819fa6
...
@@ -74,6 +74,9 @@ static const char *const ctlidstr[] = {
...
@@ -74,6 +74,9 @@ static const char *const ctlidstr[] = {
[
AOME_SET_ENABLEAUTOALTREF
]
=
"AOME_SET_ENABLEAUTOALTREF"
,
[
AOME_SET_ENABLEAUTOALTREF
]
=
"AOME_SET_ENABLEAUTOALTREF"
,
[
AOME_SET_STATIC_THRESHOLD
]
=
"AOME_SET_STATIC_THRESHOLD"
,
[
AOME_SET_STATIC_THRESHOLD
]
=
"AOME_SET_STATIC_THRESHOLD"
,
[
AV1E_SET_COLOR_RANGE
]
=
"AV1E_SET_COLOR_RANGE"
,
[
AV1E_SET_COLOR_RANGE
]
=
"AV1E_SET_COLOR_RANGE"
,
[
AV1E_SET_COLOR_PRIMARIES
]
=
"AV1E_SET_COLOR_PRIMARIES"
,
[
AV1E_SET_MATRIX_COEFFICIENTS
]
=
"AV1E_SET_MATRIX_COEFFICIENTS"
,
[
AV1E_SET_TRANSFER_CHARACTERISTICS
]
=
"AV1E_SET_TRANSFER_CHARACTERISTICS"
,
};
};
static
av_cold
void
log_encoder_error
(
AVCodecContext
*
avctx
,
const
char
*
desc
)
static
av_cold
void
log_encoder_error
(
AVCodecContext
*
avctx
,
const
char
*
desc
)
...
@@ -449,6 +452,9 @@ static av_cold int aom_init(AVCodecContext *avctx,
...
@@ -449,6 +452,9 @@ static av_cold int aom_init(AVCodecContext *avctx,
if
(
ctx
->
crf
>=
0
)
if
(
ctx
->
crf
>=
0
)
codecctl_int
(
avctx
,
AOME_SET_CQ_LEVEL
,
ctx
->
crf
);
codecctl_int
(
avctx
,
AOME_SET_CQ_LEVEL
,
ctx
->
crf
);
codecctl_int
(
avctx
,
AV1E_SET_COLOR_PRIMARIES
,
avctx
->
color_primaries
);
codecctl_int
(
avctx
,
AV1E_SET_MATRIX_COEFFICIENTS
,
avctx
->
colorspace
);
codecctl_int
(
avctx
,
AV1E_SET_TRANSFER_CHARACTERISTICS
,
avctx
->
color_trc
);
set_color_range
(
avctx
);
set_color_range
(
avctx
);
// provide dummy value to initialize wrapper, values will be updated each _encode()
// provide dummy value to initialize wrapper, values will be updated each _encode()
...
...
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