Skip to main content

SkCodec

Struct SkCodec 

Source
#[repr(C)]
pub struct SkCodec {
Show 17 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 fDstProfileStorage: skcms_ICCProfile, pub fDstProfile: *const skcms_ICCProfile, pub fDstXformAlphaFormat: skcms_AlphaFormat, pub fCurrScanline: c_int, pub fDecodeBudget: usize, 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§fDstProfileStorage: skcms_ICCProfile§fDstProfile: *const skcms_ICCProfile§fDstXformAlphaFormat: skcms_AlphaFormat§fCurrScanline: c_int§fDecodeBudget: usize§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, decoders: SkSpan<SkCodecs_Decoder>, arg2: *mut SkCodec_Result, arg3: *mut SkPngChunkReader, selectionPolicy: SkCodec_SelectionPolicy, ) -> u64

Source

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

Source

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

Source

pub unsafe fn MakeFromData1( 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, ) -> __BindgenOpaqueArray<u64, 2usize>

Source

pub unsafe fn getImage1(&mut self) -> __BindgenOpaqueArray<u64, 2usize>

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 rewindIfNeeded(&mut self) -> bool

Source

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

Source

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

Source

pub unsafe fn allocateFromBudget(&mut self, numBytes: usize) -> bool

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 T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

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

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where 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 T
where 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 T
where U: Into<T>,

Source§

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 T
where U: TryFrom<T>,

Source§

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.