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,

fn type_id(&self) -> TypeId

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

fn borrow(&self) -> &T

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

fn borrow_mut(&mut self) -> &mut T

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

fn from(t: T) -> T

Returns the argument unchanged.

impl<T> IntoEither for OpenExrEncoder<W>

impl<T> Pointable for OpenExrEncoder<W>

const ALIGN: usize = _;
type Init = T;
unsafe fn init(init: <T as Pointable>::Init) -> usize
unsafe fn deref<'a>(ptr: usize) -> &'a T
unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T
unsafe fn drop(ptr: usize)

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

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

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of [From]<T> for U chooses to do.

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

type Error = never;
fn try_from(value: U) -> Result<T, never>

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

type Error = <U as TryFrom<T>>::Error;
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>