Struct HdrEncoder
pub struct HdrEncoder<W: Write> { /* private fields */ }
Radiance HDR encoder
Implementations
impl<W: Write> HdrEncoder<W>
fn new(w: W) -> HdrEncoder<W>Creates encoder
fn encode(self, rgb: &[Rgb<f32>], width: usize, height: usize) -> ImageResult<()>Encodes the image
rgbthat has dimensionswidthandheight
Trait Implementations
impl<W: Write> ImageEncoder for HdrEncoder<W>
fn write_image(self, unaligned_bytes: &[u8], width: u32, height: u32, color_type: ExtendedColorType) -> ImageResult<()>
Auto Trait Implementations
impl<W> Freeze for HdrEncoder<W>
where
W: Freeze,
impl<W> RefUnwindSafe for HdrEncoder<W>
where
W: RefUnwindSafe,
impl<W> Send for HdrEncoder<W>
where
W: Send,
impl<W> Sync for HdrEncoder<W>
where
W: Sync,
impl<W> Unpin for HdrEncoder<W>
where
W: Unpin,
impl<W> UnsafeUnpin for HdrEncoder<W>
where
W: UnsafeUnpin,
impl<W> UnwindSafe for HdrEncoder<W>
where
W: UnwindSafe,
Blanket Implementations
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for HdrEncoder<W>
where
ST: ?Sized,
DT: ?Sized,
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for HdrEncoder<W>
where
ST: ?Sized,
DT: ?Sized,
impl<T> Any for HdrEncoder<W>
where
T: 'static + ?Sized,
fn type_id(&self) -> TypeId
impl<T> Borrow<T> for HdrEncoder<W>
where
T: ?Sized,
fn borrow(&self) -> &T
impl<T> BorrowMut<T> for HdrEncoder<W>
where
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
impl<T> From<T> for HdrEncoder<W>
fn from(t: T) -> TReturns the argument unchanged.
impl<T> IntoEither for HdrEncoder<W>
impl<T> Pointable for HdrEncoder<W>
const ALIGN: usize = _;type Init = T;unsafe fn init(init: <T as Pointable>::Init) -> usizeunsafe fn deref<'a>(ptr: usize) -> &'a Tunsafe fn deref_mut<'a>(ptr: usize) -> &'a mut Tunsafe fn drop(ptr: usize)
impl<T> Read<Exclusive, BecauseExclusive> for HdrEncoder<W>
where
T: ?Sized,
impl<T, U> Into<U> for HdrEncoder<W>
where
U: From<T>,
fn into(self) -> UCalls
U::from(self).That is, this conversion is whatever the implementation of
[From]<T> for Uchooses to do.
impl<T, U> TryFrom<U> for HdrEncoder<W>
where
U: Into<T>,
type Error = never;fn try_from(value: U) -> Result<T, never>
impl<T, U> TryInto<U> for HdrEncoder<W>
where
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error;fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>