/home/docs/checkouts/readthedocs.org/user_builds/advanced-micro-devices-rocjpeg/checkouts/latest/api/rocjpeg.h Source File#
rocjpeg.h
Go to the documentation of this file.
105 uint8_t* channel[ROCJPEG_MAX_COMPONENT];
106 uint32_t pitch[ROCJPEG_MAX_COMPONENT];
160 } crop_rectangle;
219 RocJpegStatus ROCJPEGAPI rocJpegStreamParse(const unsigned char *data, size_t length, RocJpegStreamHandle jpeg_stream_handle);
258 RocJpegStatus ROCJPEGAPI rocJpegCreate(RocJpegBackend backend, int device_id, RocJpegHandle *handle);
296 RocJpegStatus ROCJPEGAPI rocJpegGetImageInfo(RocJpegHandle handle, RocJpegStreamHandle jpeg_stream_handle, uint8_t *num_components, RocJpegChromaSubsampling *subsampling, uint32_t *widths, uint32_t *heights);
314 RocJpegStatus ROCJPEGAPI rocJpegDecode(RocJpegHandle handle, RocJpegStreamHandle jpeg_stream_handle, const RocJpegDecodeParams *decode_params, RocJpegImage *destination);
331 RocJpegStatus ROCJPEGAPI rocJpegDecodeBatched(RocJpegHandle handle, RocJpegStreamHandle *jpeg_stream_handles, int batch_size, const RocJpegDecodeParams *decode_params, RocJpegImage *destinations);
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 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:124
RocJpegChromaSubsampling
Enum representing the chroma subsampling options for JPEG encoding/decoding.
Definition: rocjpeg.h:86
void * RocJpegStreamHandle
A handle representing a RocJpegStream instance.
Definition: rocjpeg.h:187
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.
RocJpegStatus
Enumeration representing the status codes for the rocJPEG library.
Definition: rocjpeg.h:53
@ ROCJPEG_STATUS_IMPLEMENTATION_NOT_SUPPORTED
Definition: rocjpeg.h:63
@ ROCJPEG_STATUS_HW_JPEG_DECODER_NOT_SUPPORTED
Definition: rocjpeg.h:64
const char *ROCJPEGAPI rocJpegGetErrorName(RocJpegStatus rocjpeg_status)
Retrieves the name of the error associated with the given RocJpegStatus.
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.