Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Xiph.Org
rav1e
Commits
e3b01898
Commit
e3b01898
authored
Jun 18, 2019
by
Raphaël Zumer
Browse files
Set Y4M pixel range to limited from CLI
parent
de0ff955
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/bin/rav1e.rs
View file @
e3b01898
...
...
@@ -162,6 +162,13 @@ fn main() {
cli
.enc.bit_depth
=
video_info
.bit_depth
;
cli
.enc.chroma_sampling
=
video_info
.chroma_sampling
;
cli
.enc.chroma_sample_position
=
video_info
.chroma_sample_position
;
// If no pixel range is specified via CLI, assume limited,
// as it is the default for the Y4M format.
if
cli
.enc.pixel_range
==
PixelRange
::
Unspecified
{
cli
.enc.pixel_range
=
PixelRange
::
Limited
;
}
cli
.enc.time_base
=
video_info
.time_base
;
let
cfg
=
Config
{
enc
:
cli
.enc
,
...
...
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