pub struct HardwareEncodeRequest<'a> {
pub width: u32,
pub height: u32,
pub codec: NativeVideoCodec,
pub frame_rate: FrameRate,
pub rate_control: VideoRateControl,
pub color: ColorMetadata,
pub output: &'a Path,
pub container: Container,
pub audio: Option<AudioStreamConfig>,
}Expand description
One export’s encoder settings and output.
Fields§
§width: u32Output width, which must be even.
height: u32Output height, which must be even.
codec: NativeVideoCodecThe codec to encode, one the device’s
HardwareEncodeDevice::capability takes.
frame_rate: FrameRateThe constant frame rate the stream is timed in.
rate_control: VideoRateControlThe resolved rate control.
color: ColorMetadataThe color the pack encodes, which the stream is tagged with.
output: &'a PathWhere the file goes; a partial file sits beside it until it finishes.
container: ContainerThe file format written there, which must offer codec and the audio
codec.
audio: Option<AudioStreamConfig>The audio stream muxed beside the video, if any.
Trait Implementations§
Source§impl<'a> Clone for HardwareEncodeRequest<'a>
impl<'a> Clone for HardwareEncodeRequest<'a>
Auto Trait Implementations§
impl<'a> Freeze for HardwareEncodeRequest<'a>
impl<'a> RefUnwindSafe for HardwareEncodeRequest<'a>
impl<'a> Send for HardwareEncodeRequest<'a>
impl<'a> Sync for HardwareEncodeRequest<'a>
impl<'a> Unpin for HardwareEncodeRequest<'a>
impl<'a> UnsafeUnpin for HardwareEncodeRequest<'a>
impl<'a> UnwindSafe for HardwareEncodeRequest<'a>
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more