RocJpegDecodeParams Struct Reference

RocJpegDecodeParams Struct Reference#

rocJPEG: RocJpegDecodeParams Struct Reference
RocJpegDecodeParams Struct Reference

Structure containing parameters for JPEG decoding. More...

#include <rocjpeg.h>

Public Attributes

RocJpegOutputFormat output_format
 
struct {
   int16_t   left
 
   int16_t   top
 
   int16_t   right
 
   int16_t   bottom
 
crop_rectangle
 
struct {
   uint32_t   width
 
   uint32_t   height
 
target_dimension
 

Detailed Description

Structure containing parameters for JPEG decoding.

This structure defines the parameters for decoding a JPEG image using the rocJpeg library. It specifies the output format, crop rectangle, and target dimensions for the decoded image. Note that if both the crop rectangle and target dimensions are defined, cropping is done first, followed by resizing the resulting ROI to the target dimension.

Member Data Documentation

◆ bottom

int16_t RocJpegDecodeParams::bottom

Bottom coordinate of the crop rectangle.

◆ 

struct { ... } RocJpegDecodeParams::crop_rectangle

Defines the region of interest (ROI) to be copied into the RocJpegImage output buffers.

◆ height

uint32_t RocJpegDecodeParams::height

Target height of the picture to be resized.

◆ left

int16_t RocJpegDecodeParams::left

Left coordinate of the crop rectangle.

◆ output_format

RocJpegOutputFormat RocJpegDecodeParams::output_format

Output data format. See RocJpegOutputFormat for description.

◆ right

int16_t RocJpegDecodeParams::right

Right coordinate of the crop rectangle.

◆ 

struct { ... } RocJpegDecodeParams::target_dimension

(future use) Defines the target width and height of the picture to be resized. Both should be even. If specified, allocate the RocJpegImage buffers based on these dimensions.

◆ top

int16_t RocJpegDecodeParams::top

Top coordinate of the crop rectangle.

◆ width

uint32_t RocJpegDecodeParams::width

Target width of the picture to be resized.


The documentation for this struct was generated from the following file:
  • /home/docs/checkouts/readthedocs.org/user_builds/advanced-micro-devices-rocjpeg/checkouts/latest/api/rocjpeg.h