#[repr(C)]pub struct CudaHtj2kCodeBlock {Show 15 fields
pub subband_index: u32,
pub payload_offset: u64,
pub payload_len: u32,
pub cleanup_length: u32,
pub refinement_length: u32,
pub output_x: u32,
pub output_y: u32,
pub width: u32,
pub height: u32,
pub output_stride: u32,
pub missing_bit_planes: u8,
pub number_of_coding_passes: u8,
pub num_bitplanes: u8,
pub stripe_causal: u8,
pub dequantization_step: f32,
}Expand description
Flat POD HTJ2K code-block metadata consumed by CUDA kernels.
Fields§
§subband_index: u32Index of the parent sub-band in CudaHtj2kDecodePlan::subbands.
payload_offset: u64Byte offset into CudaHtj2kDecodePlan::payload.
payload_len: u32Total payload byte length for this code block.
cleanup_length: u32Cleanup segment length in bytes.
refinement_length: u32Refinement segment length in bytes.
output_x: u32X offset within the target sub-band coefficient buffer.
output_y: u32Y offset within the target sub-band coefficient buffer.
width: u32Code-block width in samples.
height: u32Code-block height in samples.
output_stride: u32Output row stride, in samples.
missing_bit_planes: u8Missing most-significant bit planes.
number_of_coding_passes: u8Number of coding passes present.
num_bitplanes: u8Total coded bitplanes for the parent sub-band.
stripe_causal: u8Nonzero when vertically causal context was enabled.
dequantization_step: f32Dequantization step to apply to decoded coefficients.
Trait Implementations§
Source§impl Clone for CudaHtj2kCodeBlock
impl Clone for CudaHtj2kCodeBlock
Source§fn clone(&self) -> CudaHtj2kCodeBlock
fn clone(&self) -> CudaHtj2kCodeBlock
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for CudaHtj2kCodeBlock
Source§impl Debug for CudaHtj2kCodeBlock
impl Debug for CudaHtj2kCodeBlock
Source§impl PartialEq for CudaHtj2kCodeBlock
impl PartialEq for CudaHtj2kCodeBlock
Source§fn eq(&self, other: &CudaHtj2kCodeBlock) -> bool
fn eq(&self, other: &CudaHtj2kCodeBlock) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for CudaHtj2kCodeBlock
Auto Trait Implementations§
impl Freeze for CudaHtj2kCodeBlock
impl RefUnwindSafe for CudaHtj2kCodeBlock
impl Send for CudaHtj2kCodeBlock
impl Sync for CudaHtj2kCodeBlock
impl Unpin for CudaHtj2kCodeBlock
impl UnsafeUnpin for CudaHtj2kCodeBlock
impl UnwindSafe for CudaHtj2kCodeBlock
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more