/home/docs/checkouts/readthedocs.org/user_builds/advanced-micro-devices-rocjpeg/checkouts/latest/projects/rocjpeg/api/rocjpeg/rocjpeg.h Source File#
7 min read time
Applies to Linux
rocjpeg.h
Go to the documentation of this file.
103 uint8_t* channel[ROCJPEG_MAX_COMPONENT];
104 uint32_t pitch[ROCJPEG_MAX_COMPONENT];
157 } crop_rectangle;
213 RocJpegStatus ROCJPEGAPI rocJpegStreamParse(const unsigned char *data, size_t length, RocJpegStreamHandle jpeg_stream_handle);
320 uint32_t native_surface_format[ROCJPEG_NUM_CHROMA_SUBSAMPLINGS];
326 uint32_t reserved[15];
342 RocJpegStatus ROCJPEGAPI rocJpegCreate(RocJpegBackend backend, int device_id, RocJpegHandle *handle);
378 RocJpegStatus ROCJPEGAPI rocJpegGetImageInfo(RocJpegHandle handle, RocJpegStreamHandle jpeg_stream_handle, uint8_t *num_components, RocJpegChromaSubsampling *subsampling, uint32_t *widths, uint32_t *heights);
395 RocJpegStatus ROCJPEGAPI rocJpegDecode(RocJpegHandle handle, RocJpegStreamHandle jpeg_stream_handle, const RocJpegDecodeParams *decode_params, RocJpegImage *destination);
410 RocJpegStatus ROCJPEGAPI rocJpegDecodeBatched(RocJpegHandle handle, RocJpegStreamHandle *jpeg_stream_handles, int batch_size, const RocJpegDecodeParams *decode_params, RocJpegImage *destinations);
441 RocJpegStatus ROCJPEGAPI rocJpegDecodeAsync(RocJpegHandle handle, RocJpegStreamHandle jpeg_stream_handle, const RocJpegDecodeParams *decode_params, RocJpegImage *destination);
480 RocJpegStatus ROCJPEGAPI rocJpegDecodeBatchedAsync(RocJpegHandle handle, RocJpegStreamHandle *jpeg_stream_handles, int batch_size, const RocJpegDecodeParams *decode_params, RocJpegImage *destinations);
499 RocJpegStatus ROCJPEGAPI rocJpegDecodeBatchedSync(RocJpegHandle handle, RocJpegImage *destinations, int batch_size);
518 RocJpegStatus ROCJPEGAPI rocJpegGetDecoderCaps(RocJpegHandle handle, RocJpegDecodeCaps *decode_caps);
RocJpegStatus ROCJPEGAPI rocJpegGetDecoderCaps(RocJpegHandle handle, RocJpegDecodeCaps *decode_caps)
Queries the JPEG decode capabilities of a rocJPEG handle.
RocJpegStatus ROCJPEGAPI rocJpegDecodeAsync(RocJpegHandle handle, RocJpegStreamHandle jpeg_stream_handle, const RocJpegDecodeParams *decode_params, RocJpegImage *destination)
Submits a JPEG decode operation without waiting for the output.
const char *ROCJPEGAPI rocJpegGetErrorName(RocJpegStatus rocjpeg_status)
Retrieves the name of the error associated with the given RocJpegStatus.
RocJpegStatus ROCJPEGAPI rocJpegDecodeBatched(RocJpegHandle handle, RocJpegStreamHandle *jpeg_stream_handles, int batch_size, const RocJpegDecodeParams *decode_params, RocJpegImage *destinations)
Decodes a batch of JPEG images using the rocJPEG library.
RocJpegStatus ROCJPEGAPI rocJpegCreate(RocJpegBackend backend, int device_id, RocJpegHandle *handle)
Creates a RocJpegHandle for JPEG decoding.
RocJpegStatus ROCJPEGAPI rocJpegStreamParse(const unsigned char *data, size_t length, RocJpegStreamHandle jpeg_stream_handle)
Parses a JPEG stream.
RocJpegStatus ROCJPEGAPI rocJpegDecodeSync(RocJpegHandle handle, RocJpegImage *destination)
Synchronizes a pending asynchronous JPEG decode and retrieves the decoded output.
RocJpegStatus ROCJPEGAPI rocJpegStreamCreate(RocJpegStreamHandle *jpeg_stream_handle)
Creates a RocJpegStreamHandle for JPEG stream processing.
RocJpegOutputFormat
Enum representing the output format options for the RocJpegImage.
Definition: rocjpeg.h:121
RocJpegChromaSubsampling
Enum representing the chroma subsampling options for JPEG encoding/decoding.
Definition: rocjpeg.h:84
RocJpegStatus ROCJPEGAPI rocJpegDecode(RocJpegHandle handle, RocJpegStreamHandle jpeg_stream_handle, const RocJpegDecodeParams *decode_params, RocJpegImage *destination)
Decodes a JPEG image using the rocJPEG library.
RocJpegStatus ROCJPEGAPI rocJpegStreamDestroy(RocJpegStreamHandle jpeg_stream_handle)
Destroys a RocJpegStreamHandle object and releases associated resources.
RocJpegSurfaceFormat
Enum representing the layout of the decoded image produced by the VCN JPEG decoder.
Definition: rocjpeg.h:251
RocJpegStatus
Enumeration representing the status codes for the rocJPEG library.
Definition: rocjpeg.h:51
RocJpegStatus ROCJPEGAPI rocJpegDestroy(RocJpegHandle handle)
Destroys a RocJpegHandle object.
RocJpegStatus ROCJPEGAPI rocJpegGetImageInfo(RocJpegHandle handle, RocJpegStreamHandle jpeg_stream_handle, uint8_t *num_components, RocJpegChromaSubsampling *subsampling, uint32_t *widths, uint32_t *heights)
Retrieves information about the JPEG image.
RocJpegStatus ROCJPEGAPI rocJpegDecodeBatchedAsync(RocJpegHandle handle, RocJpegStreamHandle *jpeg_stream_handles, int batch_size, const RocJpegDecodeParams *decode_params, RocJpegImage *destinations)
Submits a batch of JPEG decode operations without waiting for the output.
RocJpegCodingProcess
Enum representing the JPEG coding processes (ISO/IEC 10918-1).
Definition: rocjpeg.h:266
RocJpegStatus ROCJPEGAPI rocJpegDecodeBatchedSync(RocJpegHandle handle, RocJpegImage *destinations, int batch_size)
Synchronizes a pending asynchronous batched JPEG decode and retrieves the decoded output.
@ ROCJPEG_STATUS_IMPLEMENTATION_NOT_SUPPORTED
Definition: rocjpeg.h:61
@ ROCJPEG_STATUS_HW_JPEG_DECODER_NOT_SUPPORTED
Definition: rocjpeg.h:62
void * RocJpegStreamHandle
A handle representing a RocJpegStream instance.
Definition: rocjpeg.h:183
Structure representing the JPEG decode capabilities of a rocJPEG handle.
Definition: rocjpeg.h:296
uint32_t hw_rgb_output_format_mask
Definition: rocjpeg.h:317