pub struct DecoderBuilder<'a> { /* private fields */ }
Expand description
Builds a Decoder
.
Implementations§
Source§impl<'a> DecoderBuilder<'a>
impl<'a> DecoderBuilder<'a>
Sourcepub fn new(source: impl Into<Location>) -> Self
pub fn new(source: impl Into<Location>) -> Self
Create a decoder with the specified source.
source
- Source to decode.
Sourcepub fn with_options(self, options: &'a Options) -> Self
pub fn with_options(self, options: &'a Options) -> Self
Set custom options. Options are applied to the input.
options
- Custom options.
Sourcepub fn with_resize(self, resize: Resize) -> Self
pub fn with_resize(self, resize: Resize) -> Self
Set resizing to apply to frames.
resize
- Resizing to apply.
Sourcepub fn with_hardware_acceleration(
self,
device_type: HardwareAccelerationDeviceType,
) -> Self
pub fn with_hardware_acceleration( self, device_type: HardwareAccelerationDeviceType, ) -> Self
Enable hardware acceleration with the specified device type.
device_type
- Device to use for hardware acceleration.
Auto Trait Implementations§
impl<'a> Freeze for DecoderBuilder<'a>
impl<'a> RefUnwindSafe for DecoderBuilder<'a>
impl<'a> Send for DecoderBuilder<'a>
impl<'a> Sync for DecoderBuilder<'a>
impl<'a> Unpin for DecoderBuilder<'a>
impl<'a> UnwindSafe for DecoderBuilder<'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