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
e9d96831
Commit
e9d96831
authored
May 05, 2010
by
David Conrad
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
schroenc: Set colorspace info
Originally committed as revision 23030 to
svn://svn.ffmpeg.org/ffmpeg/trunk
parent
37284120
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
18 additions
and
0 deletions
+18
-0
libschroedingerenc.c
libavcodec/libschroedingerenc.c
+18
-0
No files found.
libavcodec/libschroedingerenc.c
View file @
e9d96831
...
...
@@ -128,6 +128,24 @@ static int libschroedinger_encode_init(AVCodecContext *avccontext)
if
(
SetSchroChromaFormat
(
avccontext
)
==
-
1
)
return
-
1
;
if
(
avccontext
->
color_primaries
==
AVCOL_PRI_BT709
)
{
p_schro_params
->
format
->
colour_primaries
=
SCHRO_COLOUR_PRIMARY_HDTV
;
}
else
if
(
avccontext
->
color_primaries
==
AVCOL_PRI_BT470BG
)
{
p_schro_params
->
format
->
colour_primaries
=
SCHRO_COLOUR_PRIMARY_SDTV_625
;
}
else
if
(
avccontext
->
color_primaries
==
AVCOL_PRI_SMPTE170M
)
{
p_schro_params
->
format
->
colour_primaries
=
SCHRO_COLOUR_PRIMARY_SDTV_525
;
}
if
(
avccontext
->
colorspace
==
AVCOL_SPC_BT709
)
{
p_schro_params
->
format
->
colour_matrix
=
SCHRO_COLOUR_MATRIX_HDTV
;
}
else
if
(
avccontext
->
colorspace
==
AVCOL_SPC_BT470BG
)
{
p_schro_params
->
format
->
colour_matrix
=
SCHRO_COLOUR_MATRIX_SDTV
;
}
if
(
avccontext
->
color_trc
==
AVCOL_TRC_BT709
)
{
p_schro_params
->
format
->
transfer_function
=
SCHRO_TRANSFER_CHAR_TV_GAMMA
;
}
if
(
ff_get_schro_frame_format
(
p_schro_params
->
format
->
chroma_format
,
&
p_schro_params
->
frame_format
)
==
-
1
)
{
av_log
(
avccontext
,
AV_LOG_ERROR
,
...
...
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