Struct MJpegDecodeContext

Source
#[repr(C, align(32))]
pub struct MJpegDecodeContext {
Show 95 fields pub class: *mut AVClass, pub avctx: *mut AVCodecContext, pub gb: GetBitContext, pub buf_size: c_int, pub start_code: c_int, pub buffer_size: c_int, pub buffer: *mut u8, pub quant_matrixes: [[u16; 64]; 4], pub vlcs: [[VLC; 4]; 3], pub qscale: [c_int; 4], pub org_height: c_int, pub first_picture: c_int, pub interlaced: c_int, pub bottom_field: c_int, pub lossless: c_int, pub ls: c_int, pub progressive: c_int, pub rgb: c_int, pub upscale_h: [u8; 4], pub upscale_v: [u8; 4], pub rct: c_int, pub pegasus_rct: c_int, pub bits: c_int, pub colr: c_int, pub xfrm: c_int, pub adobe_transform: c_int, pub maxval: c_int, pub near: c_int, pub t1: c_int, pub t2: c_int, pub t3: c_int, pub reset: c_int, pub width: c_int, pub height: c_int, pub mb_width: c_int, pub mb_height: c_int, pub nb_components: c_int, pub block_stride: [c_int; 4], pub component_id: [c_int; 4], pub h_count: [c_int; 4], pub v_count: [c_int; 4], pub comp_index: [c_int; 4], pub dc_index: [c_int; 4], pub ac_index: [c_int; 4], pub nb_blocks: [c_int; 4], pub h_scount: [c_int; 4], pub v_scount: [c_int; 4], pub quant_sindex: [c_int; 4], pub h_max: c_int, pub v_max: c_int, pub quant_index: [c_int; 4], pub last_dc: [c_int; 4], pub picture: *mut AVFrame, pub picture_ptr: *mut AVFrame, pub got_picture: c_int, pub linesize: [c_int; 4], pub qscale_table: *mut i8, pub __bindgen_padding_0: [u16; 8], pub block: [i16; 64], pub blocks: [*mut [i16; 64]; 4], pub last_nnz: [*mut u8; 4], pub coefs_finished: [u64; 4], pub palette_index: c_int, pub scantable: ScanTable, pub bdsp: BlockDSPContext, pub hdsp: HpelDSPContext, pub idsp: IDCTDSPContext, pub restart_interval: c_int, pub restart_count: c_int, pub buggy_avid: c_int, pub cs_itu601: c_int, pub interlace_polarity: c_int, pub multiscope: c_int, pub mjpb_skiptosod: c_int, pub cur_scan: c_int, pub flipped: c_int, pub ljpeg_buffer: *mut [u16; 4], pub ljpeg_buffer_size: c_uint, pub extern_huff: c_int, pub exif_metadata: *mut AVDictionary, pub stereo3d: *mut AVStereo3D, pub pix_desc: *const AVPixFmtDescriptor, pub iccdata: *mut *mut u8, pub iccdatalens: *mut c_int, pub iccnum: c_int, pub iccread: c_int, pub raw_image_buffer: *const u8, pub raw_image_buffer_size: usize, pub raw_scan_buffer: *const u8, pub raw_scan_buffer_size: usize, pub raw_huffman_lengths: [[[u8; 16]; 4]; 2], pub raw_huffman_values: [[[u8; 256]; 4]; 2], pub hwaccel_sw_pix_fmt: AVPixelFormat, pub hwaccel_pix_fmt: AVPixelFormat, pub hwaccel_picture_private: *mut c_void,
}

Fields§

§class: *mut AVClass§avctx: *mut AVCodecContext§gb: GetBitContext§buf_size: c_int§start_code: c_int§buffer_size: c_int§buffer: *mut u8§quant_matrixes: [[u16; 64]; 4]§vlcs: [[VLC; 4]; 3]§qscale: [c_int; 4]

< quantizer scale calculated from quant_matrixes

§org_height: c_int§first_picture: c_int§interlaced: c_int§bottom_field: c_int§lossless: c_int§ls: c_int§progressive: c_int§rgb: c_int§upscale_h: [u8; 4]§upscale_v: [u8; 4]§rct: c_int§pegasus_rct: c_int§bits: c_int§colr: c_int§xfrm: c_int§adobe_transform: c_int§maxval: c_int§near: c_int

< near lossless bound (si 0 for lossless)

§t1: c_int§t2: c_int§t3: c_int§reset: c_int

< context halfing interval ?rename

§width: c_int§height: c_int§mb_width: c_int§mb_height: c_int§nb_components: c_int§block_stride: [c_int; 4]§component_id: [c_int; 4]§h_count: [c_int; 4]§v_count: [c_int; 4]§comp_index: [c_int; 4]§dc_index: [c_int; 4]§ac_index: [c_int; 4]§nb_blocks: [c_int; 4]§h_scount: [c_int; 4]§v_scount: [c_int; 4]§quant_sindex: [c_int; 4]§h_max: c_int§v_max: c_int§quant_index: [c_int; 4]§last_dc: [c_int; 4]§picture: *mut AVFrame§picture_ptr: *mut AVFrame§got_picture: c_int

< we found a SOF and picture is valid, too.

§linesize: [c_int; 4]

< linesize << interlaced

§qscale_table: *mut i8§__bindgen_padding_0: [u16; 8]§block: [i16; 64]§blocks: [*mut [i16; 64]; 4]

< intermediate sums (progressive mode)

§last_nnz: [*mut u8; 4]§coefs_finished: [u64; 4]

< bitmask of which coefs have been completely decoded (progressive mode)

§palette_index: c_int§scantable: ScanTable§bdsp: BlockDSPContext§hdsp: HpelDSPContext§idsp: IDCTDSPContext§restart_interval: c_int§restart_count: c_int§buggy_avid: c_int§cs_itu601: c_int§interlace_polarity: c_int§multiscope: c_int§mjpb_skiptosod: c_int§cur_scan: c_int§flipped: c_int§ljpeg_buffer: *mut [u16; 4]§ljpeg_buffer_size: c_uint§extern_huff: c_int§exif_metadata: *mut AVDictionary§stereo3d: *mut AVStereo3D§pix_desc: *const AVPixFmtDescriptor

!< stereoscopic information (cached, since it is read before frame allocation)

§iccdata: *mut *mut u8§iccdatalens: *mut c_int§iccnum: c_int§iccread: c_int§raw_image_buffer: *const u8§raw_image_buffer_size: usize§raw_scan_buffer: *const u8§raw_scan_buffer_size: usize§raw_huffman_lengths: [[[u8; 16]; 4]; 2]§raw_huffman_values: [[[u8; 256]; 4]; 2]§hwaccel_sw_pix_fmt: AVPixelFormat§hwaccel_pix_fmt: AVPixelFormat§hwaccel_picture_private: *mut c_void

Trait Implementations§

Source§

impl Clone for MJpegDecodeContext

Source§

fn clone(&self) -> MJpegDecodeContext

Returns a copy of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Copy for MJpegDecodeContext

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> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dst: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dst. 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> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
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.