Type Alias image::codecs::hdr::HDRAdapter

source ·
pub type HDRAdapter<R> = HdrAdapter<R>;
👎Deprecated: Use HdrAdapter instead
Expand description

HDR Adapter

An alias of HdrAdapter.

TODO: remove

Aliased Type§

struct HDRAdapter<R> { /* private fields */ }

Implementations

source§

impl<R: BufRead> HdrAdapter<R>

source

pub fn new(r: R) -> ImageResult<HdrAdapter<R>>

Creates adapter

source

pub fn new_nonstrict(r: R) -> ImageResult<HdrAdapter<R>>

Allows reading old Radiance HDR images

Trait Implementations

source§

impl<R: Debug + BufRead> Debug for HdrAdapter<R>

source§

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

Formats the value using the given formatter. Read more
source§

impl<'a, R: 'a + BufRead> ImageDecoder<'a> for HdrAdapter<R>

§

type Reader = HdrReader<R>

The type of reader produced by into_reader.
source§

fn dimensions(&self) -> (u32, u32)

Returns a tuple containing the width and height of the image
source§

fn color_type(&self) -> ColorType

Returns the color type of the image data produced by this decoder
source§

fn into_reader(self) -> ImageResult<Self::Reader>

Returns a reader that can be used to obtain the bytes of the image. For the best performance, always try to read at least scanline_bytes from the reader at a time. Reading fewer bytes will cause the reader to perform internal buffering.
source§

fn read_image(self, buf: &mut [u8]) -> ImageResult<()>

Returns all the bytes in the image. Read more
source§

fn original_color_type(&self) -> ExtendedColorType

Retuns the color type of the image file before decoding
source§

fn total_bytes(&self) -> u64

Returns the total number of bytes in the decoded image. Read more
source§

fn scanline_bytes(&self) -> u64

Returns the minimum number of bytes that can be efficiently read from this decoder. This may be as few as 1 or as many as total_bytes().
source§

fn read_image_with_progress<F: Fn(Progress)>( self, buf: &mut [u8], progress_callback: F ) -> ImageResult<()>

Same as read_image but periodically calls the provided callback to give updates on loading progress.
source§

impl<'a, R: 'a + BufRead + Seek> ImageDecoderExt<'a> for HdrAdapter<R>

source§

fn read_rect_with_progress<F: Fn(Progress)>( &mut self, x: u32, y: u32, width: u32, height: u32, buf: &mut [u8], progress_callback: F ) -> ImageResult<()>

Decode a rectangular section of the image, periodically reporting progress. Read more
source§

fn read_rect( &mut self, x: u32, y: u32, width: u32, height: u32, buf: &mut [u8] ) -> ImageResult<()>

Decode a rectangular section of the image; see read_rect_with_progress().