[−][src]Struct rav1e::prelude::config::EncoderConfig
Encoder settings which impact the produced bitstream.
Fields
width: usize
Width of the frames in pixels.
height: usize
Height of the frames in pixels.
time_base: Rational
Video time base.
bit_depth: usize
Bit depth.
chroma_sampling: ChromaSampling
Chroma subsampling.
chroma_sample_position: ChromaSamplePosition
Chroma sample position.
pixel_range: PixelRange
Pixel value range.
color_description: Option<ColorDescription>
Content color description (primaries, transfer characteristics, matrix).
mastering_display: Option<MasteringDisplay>
HDR mastering display parameters.
content_light: Option<ContentLight>
HDR content light parameters.
enable_timing_info: bool
Enable signaling timing info in the bitstream.
still_picture: bool
Still picture mode flag.
error_resilient: bool
Flag to force all frames to be error resilient.
switch_frame_interval: u64
Interval between switch frames (0 to disable)
min_key_frame_interval: u64
The minimum interval between two keyframes
max_key_frame_interval: u64
The maximum interval between two keyframes
reservoir_frame_delay: Option<i32>
The number of temporal units over which to distribute the reservoir usage.
low_latency: bool
Flag to enable low latency mode.
In this mode the frame reordering is disabled.
quantizer: usize
The base quantizer to use.
min_quantizer: u8
The minimum allowed base quantizer to use in bitrate mode.
bitrate: i32
The target bitrate for the bitrate mode.
tune: Tune
Metric to tune the quality for.
tile_cols: usize
Number of tiles horizontally. Must be a power of two.
Overridden by tiles
, if present.
tile_rows: usize
Number of tiles vertically. Must be a power of two.
Overridden by tiles
, if present.
tiles: usize
Total number of tiles desired.
Encoder will try to optimally split to reach this number of tiles,
rounded up. Overrides tile_cols
and tile_rows
.
rdo_lookahead_frames: usize
Number of frames to read ahead for the RDO lookahead computation.
show_psnr: bool
If enabled, computes the PSNR values and stores them in Packet
.
speed_settings: SpeedSettings
Settings which affect the enconding speed vs. quality trade-off.
Implementations
impl EncoderConfig
[src]
pub fn with_speed_preset(speed: usize) -> Self
[src]
This is a preset which provides default settings according to a speed
value in the specific range 0–10. Each speed value corresponds to a
different preset. See from_preset()
. If the input value is greater
than 10, it will result in the same settings as 10.
pub fn set_key_frame_interval(&mut self, min_interval: u64, max_interval: u64)
[src]
Sets the minimum and maximum keyframe interval, handling special cases as needed.
pub fn frame_rate(&self) -> f64
[src]
Returns the video frame rate computed from time_base
.
pub fn temporal_rdo(&self) -> bool
[src]
Is temporal RDO enabled ?
Trait Implementations
impl Clone for EncoderConfig
[src]
pub fn clone(&self) -> EncoderConfig
[src]
pub fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Copy for EncoderConfig
[src]
impl Debug for EncoderConfig
[src]
impl Default for EncoderConfig
[src]
Default preset for EncoderConfig: it is a balance between quality and
speed. See with_speed_preset()
.
impl Display for EncoderConfig
[src]
Auto Trait Implementations
impl RefUnwindSafe for EncoderConfig
[src]
impl Send for EncoderConfig
[src]
impl Sync for EncoderConfig
[src]
impl Unpin for EncoderConfig
[src]
impl UnwindSafe for EncoderConfig
[src]
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> Pointable for T
pub const ALIGN: usize
type Init = T
The type for initializers.
pub unsafe fn init(init: <T as Pointable>::Init) -> usize
pub unsafe fn deref<'a>(ptr: usize) -> &'a T
pub unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T
pub unsafe fn drop(ptr: usize)
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn clone_into(&self, target: &mut T)
[src]
impl<T> ToString for T where
T: Display + ?Sized,
[src]
T: Display + ?Sized,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
pub fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
V: MultiLane<T>,