pub struct CudaEncodedJ2k {
pub metadata: CudaEncodedJ2kMetadata,
pub codestream: CudaResidentCodestreamBuffer,
}Expand description
CUDA lossless encode output with host metadata and CUDA-resident codestream bytes.
The final codestream is assembled in host memory today, copied to this
device buffer, and then released from host memory before this value is
returned. CudaEncodedJ2k therefore does not retain a duplicate host
codestream. This is a device-resident output contract, not a claim that
final codestream assembly itself ran on CUDA.
Fields§
§metadata: CudaEncodedJ2kMetadataHost-visible encode metadata without codestream bytes.
codestream: CudaResidentCodestreamBufferCUDA-resident copy of the codestream bytes.
Implementations§
Source§impl CudaEncodedJ2k
impl CudaEncodedJ2k
Sourcepub fn metadata(&self) -> &CudaEncodedJ2kMetadata
pub fn metadata(&self) -> &CudaEncodedJ2kMetadata
Borrow the host-visible encoded J2K metadata.
Sourcepub fn codestream(&self) -> &CudaResidentCodestreamBuffer
pub fn codestream(&self) -> &CudaResidentCodestreamBuffer
Borrow the CUDA-resident codestream buffer.
Sourcepub fn into_parts(
self,
) -> (CudaEncodedJ2kMetadata, CudaResidentCodestreamBuffer)
pub fn into_parts( self, ) -> (CudaEncodedJ2kMetadata, CudaResidentCodestreamBuffer)
Consume this value and return host metadata plus the CUDA-resident buffer.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for CudaEncodedJ2k
impl RefUnwindSafe for CudaEncodedJ2k
impl Send for CudaEncodedJ2k
impl Sync for CudaEncodedJ2k
impl Unpin for CudaEncodedJ2k
impl UnsafeUnpin for CudaEncodedJ2k
impl UnwindSafe for CudaEncodedJ2k
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> 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