Struct OpenExrEncoder

pub struct OpenExrEncoder<W>(/* private field */);

A thin wrapper that implements ImageEncoder for OpenEXR images. Will behave like image::codecs::openexr::write_buffer.

Implementations

impl<W> OpenExrEncoder<W>

fn new(write: W) -> Self

Create an ImageEncoder. Does not write anything yet. Writing later will behave like image::codecs::openexr::write_buffer.

Trait Implementations

impl<W> ImageEncoder for OpenExrEncoder<W> where W: Write + Seek,

fn write_image(self, buf: &[u8], width: u32, height: u32, color_type: ExtendedColorType) -> ImageResult<()>

Writes the complete image.

Assumes the writer is buffered. In most cases, you should wrap your writer in a BufWriter for best performance.

impl<W: Debug> Debug for OpenExrEncoder<W>

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Auto Trait Implementations

impl<W> Freeze for OpenExrEncoder<W> where W: Freeze,

impl<W> RefUnwindSafe for OpenExrEncoder<W> where W: RefUnwindSafe,

impl<W> Send for OpenExrEncoder<W> where W: Send,

impl<W> Sync for OpenExrEncoder<W> where W: Sync,

impl<W> Unpin for OpenExrEncoder<W> where W: Unpin,

impl<W> UnsafeUnpin for OpenExrEncoder<W> where W: UnsafeUnpin,

impl<W> UnwindSafe for OpenExrEncoder<W> where W: UnwindSafe,

Blanket Implementations

impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for OpenExrEncoder<W> where ST: ?Sized, DT: ?Sized,

impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for OpenExrEncoder<W> where ST: ?Sized, DT: ?Sized,

impl<T> Any for OpenExrEncoder<W> where T: 'static + ?Sized,

impl<T> Borrow<T> for OpenExrEncoder<W> where T: ?Sized,

impl<T> BorrowMut<T> for OpenExrEncoder<W> where T: ?Sized,

impl<T> From<T> for OpenExrEncoder<W>

impl<T> IntoEither for OpenExrEncoder<W>

impl<T> Pointable for OpenExrEncoder<W>

impl<T> Read<Exclusive, BecauseExclusive> for OpenExrEncoder<W> where T: ?Sized,

impl<T, U> Into<U> for OpenExrEncoder<W> where U: From<T>,

impl<T, U> TryFrom<U> for OpenExrEncoder<W> where U: Into<T>,

impl<T, U> TryInto<U> for OpenExrEncoder<W> where U: TryFrom<T>,