pub struct SubFrameWriter<'w, B>{ /* private fields */ }Implementations§
Source§impl<'w, B> SubFrameWriter<'w, B>
impl<'w, B> SubFrameWriter<'w, B>
pub fn new(writer: &'w mut DngWriter<B>, subtype: u32, use_root: bool) -> Self
pub fn ifd(&mut self) -> &DirectoryWriter
pub fn ifd_mut(&mut self) -> &mut DirectoryWriter
pub fn rgb_image_u8( &mut self, data: &[u8], width: usize, height: usize, compression: DngCompression, predictor: u8, ) -> Result<()>
pub fn rgb_image_u16( &mut self, data: &[u16], width: usize, height: usize, compression: DngCompression, predictor: u8, ) -> Result<()>
pub fn image( &mut self, _image: &RawImageData, _width: u16, _height: u16, ) -> Result<()>
pub fn raw_image( &mut self, rawimage: &RawImage, cropmode: CropMode, compression: DngCompression, photometric_conversion: DngPhotometricConversion, predictor: u8, ) -> Result<()>
pub fn preview(&mut self, img: &DynamicImage, quality: f32) -> Result<()>
pub fn finalize(self) -> Result<()>
Auto Trait Implementations§
impl<'w, B> Freeze for SubFrameWriter<'w, B>
impl<'w, B> RefUnwindSafe for SubFrameWriter<'w, B>where
B: RefUnwindSafe,
impl<'w, B> Send for SubFrameWriter<'w, B>where
B: Send,
impl<'w, B> Sync for SubFrameWriter<'w, B>where
B: Sync,
impl<'w, B> Unpin for SubFrameWriter<'w, B>
impl<'w, B> UnsafeUnpin for SubFrameWriter<'w, B>
impl<'w, B> !UnwindSafe for SubFrameWriter<'w, B>
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
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more