Struct skia_bindings::SkCodec

source ·
#[repr(C)]
pub struct SkCodec {
Show 15 fields pub vtable_: *const SkCodec__bindgen_vtable, pub fEncodedInfo: SkEncodedInfo, pub fSrcXformFormat: SkCodec_XformFormat, pub fStream: u64, pub fNeedsRewind: bool, pub fOrigin: SkEncodedOrigin, pub fDstInfo: SkImageInfo, pub fOptions: SkCodec_Options, pub fXformTime: SkCodec_XformTime, pub fDstXformFormat: SkCodec_XformFormat, pub fDstProfile: skcms_ICCProfile, pub fDstXformAlphaFormat: skcms_AlphaFormat, pub fCurrScanline: c_int, pub fStartedIncrementalDecode: bool, pub fUsingCallbackForHandleFrameIndex: bool,
}

Fields§

§vtable_: *const SkCodec__bindgen_vtable§fEncodedInfo: SkEncodedInfo§fSrcXformFormat: SkCodec_XformFormat§fStream: u64§fNeedsRewind: bool§fOrigin: SkEncodedOrigin§fDstInfo: SkImageInfo§fOptions: SkCodec_Options§fXformTime: SkCodec_XformTime§fDstXformFormat: SkCodec_XformFormat§fDstProfile: skcms_ICCProfile§fDstXformAlphaFormat: skcms_AlphaFormat§fCurrScanline: c_int§fStartedIncrementalDecode: bool§fUsingCallbackForHandleFrameIndex: bool

Implementations§

source§

impl SkCodec

source

pub unsafe fn ResultToString(arg1: SkCodec_Result) -> *const c_char

source

pub unsafe fn MakeFromStream( arg1: u64, arg2: *mut SkCodec_Result, arg3: *mut SkPngChunkReader, selectionPolicy: SkCodec_SelectionPolicy ) -> u64

source

pub unsafe fn MakeFromData( arg1: sk_sp<SkData>, arg2: *mut SkPngChunkReader ) -> u64

source

pub unsafe fn getPixels( &mut self, info: *const SkImageInfo, pixels: *mut c_void, rowBytes: usize, arg1: *const SkCodec_Options ) -> SkCodec_Result

source

pub unsafe fn getImage( &mut self, info: *const SkImageInfo, opts: *const SkCodec_Options ) -> [u64; 2]

source

pub unsafe fn getImage1(&mut self) -> [u64; 2]

source

pub unsafe fn queryYUVAInfo( &self, supportedDataTypes: *const SkYUVAPixmapInfo_SupportedDataTypes, yuvaPixmapInfo: *mut SkYUVAPixmapInfo ) -> bool

source

pub unsafe fn getYUVAPlanes( &mut self, yuvaPixmaps: *const SkYUVAPixmaps ) -> SkCodec_Result

source

pub unsafe fn startIncrementalDecode( &mut self, dstInfo: *const SkImageInfo, dst: *mut c_void, rowBytes: usize, arg1: *const SkCodec_Options ) -> SkCodec_Result

source

pub unsafe fn startScanlineDecode( &mut self, dstInfo: *const SkImageInfo, options: *const SkCodec_Options ) -> SkCodec_Result

source

pub unsafe fn getScanlines( &mut self, dst: *mut c_void, countLines: c_int, rowBytes: usize ) -> c_int

source

pub unsafe fn skipScanlines(&mut self, countLines: c_int) -> bool

source

pub unsafe fn outputScanline(&self, inputScanline: c_int) -> c_int

source

pub unsafe fn getFrameInfo(&mut self) -> u8

source

pub unsafe fn setSrcXformFormat(&mut self, pixelFormat: SkCodec_XformFormat)

source

pub unsafe fn rewindIfNeeded(&mut self) -> bool

source

pub unsafe fn applyColorXform( &self, dst: *mut c_void, src: *const c_void, count: c_int )

source

pub unsafe fn new( arg1: *mut SkEncodedInfo, srcFormat: SkCodec_XformFormat, arg2: u64, arg3: SkEncodedOrigin ) -> Self

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for Twhere T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for Twhere T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for Twhere T: ?Sized,

source§

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

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T, U> Into<U> for Twhere U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

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

source§

impl<T, U> TryFrom<U> for Twhere U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for Twhere U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

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

Performs the conversion.