![]() |
Synergy Software Package User's Manual
|
#include <r_jpeg_decode_api.h>
Data Fields | |
| ssp_err_t(* | open )(jpeg_decode_ctrl_t *const p_ctrl, jpeg_decode_cfg_t const *const p_cfg) |
| ssp_err_t(* | outputBufferSet )(jpeg_decode_ctrl_t *const p_ctrl, void *p_buffer, uint32_t buffer_size) |
| ssp_err_t(* | horizontalStrideSet )(jpeg_decode_ctrl_t *const p_ctrl, uint32_t horizontal_stride) |
| ssp_err_t(* | imageSubsampleSet )(jpeg_decode_ctrl_t *const p_ctrl, jpeg_decode_subsample_t horizontal_subsample, jpeg_decode_subsample_t vertical_subsample) |
| ssp_err_t(* | inputBufferSet )(jpeg_decode_ctrl_t *const p_ctrl, void *p_buffer, uint32_t buffer_size) |
| ssp_err_t(* | linesDecodedGet )(jpeg_decode_ctrl_t *const p_ctrl, uint32_t *const p_lines) |
| ssp_err_t(* | imageSizeGet )(jpeg_decode_ctrl_t *const p_ctrl, uint16_t *p_horizontal_size, uint16_t *p_vertical_size) |
| ssp_err_t(* | statusGet )(jpeg_decode_ctrl_t *const p_ctrl, jpeg_decode_status_t *const p_status) |
| ssp_err_t(* | close )(jpeg_decode_ctrl_t *const p_ctrl) |
| ssp_err_t(* | versionGet )(ssp_version_t *p_version) |
| ssp_err_t(* | pixelFormatGet )(jpeg_decode_ctrl_t *const p_ctrl, jpeg_decode_color_space_t *const p_color_space) |
JPEG functions implemented at the HAL layer will follow this API.
| ssp_err_t(* jpeg_decode_api_t::close) (jpeg_decode_ctrl_t *const p_ctrl) |
Cancel an outstanding operation.
| [in] | p_ctrl | Control block set in jpeg_decode_api_t::Open call. |
| ssp_err_t(* jpeg_decode_api_t::horizontalStrideSet) (jpeg_decode_ctrl_t *const p_ctrl, uint32_t horizontal_stride) |
Configure the horizontal stride value.
| [in] | p_ctrl | Control block set in jpeg_decode_api_t::open call. |
| [in] | horizontal_stride | Horizontal stride value to be used for the decoded image data. |
| [in] | buffer_size | Size of the output buffer |
| ssp_err_t(* jpeg_decode_api_t::imageSizeGet) (jpeg_decode_ctrl_t *const p_ctrl, uint16_t *p_horizontal_size, uint16_t *p_vertical_size) |
Retrieve image size during decoding operation.
| [in] | p_ctrl | Control block set in jpeg_decode_api_t::open call. |
| [out] | p_horizontal_size | Image horizontal size, in number of pixels. |
| [out] | p_vertical_size | Image vertical size, in number of pixels. |
| ssp_err_t(* jpeg_decode_api_t::imageSubsampleSet) (jpeg_decode_ctrl_t *const p_ctrl, jpeg_decode_subsample_t horizontal_subsample, jpeg_decode_subsample_t vertical_subsample) |
Configure the horizontal and vertical subsample settings.
| [in] | p_ctrl | Control block set in jpeg_decode_api_t::open call. |
| [in] | horizontal_subsample | Horizontal subsample value |
| [in] | vertical_subsample | Vertical subsample value |
| ssp_err_t(* jpeg_decode_api_t::inputBufferSet) (jpeg_decode_ctrl_t *const p_ctrl, void *p_buffer, uint32_t buffer_size) |
Assign input data buffer to JPEG codec.
| [in] | p_ctrl | Control block set in jpeg_decode_api_t::open call. |
| [in] | p_buffer | Pointer to the input buffer space |
| [in] | buffer_size | Size of the input buffer |
| ssp_err_t(* jpeg_decode_api_t::linesDecodedGet) (jpeg_decode_ctrl_t *const p_ctrl, uint32_t *const p_lines) |
Return the number of lines decoded into the output buffer.
| [in] | p_ctrl | Control block set in jpeg_decode_api_t::open call. |
| [out] | p_lines | Number of lines decoded |
| ssp_err_t(* jpeg_decode_api_t::open) (jpeg_decode_ctrl_t *const p_ctrl, jpeg_decode_cfg_t const *const p_cfg) |
Initial configuration
| [in,out] | p_ctrl | Pointer to control block. Must be declared by user. Elements set here. |
| [in] | p_cfg | Pointer to configuration structure. All elements of this structure must be set by user. |
| ssp_err_t(* jpeg_decode_api_t::outputBufferSet) (jpeg_decode_ctrl_t *const p_ctrl, void *p_buffer, uint32_t buffer_size) |
Assign output buffer to JPEG codec for storing output data.
| [in] | p_ctrl | Control block set in jpeg_decode_api_t::open call. |
| [in] | p_buffer | Pointer to the output buffer space |
| [in] | buffer_size | Size of the output buffer |
| ssp_err_t(* jpeg_decode_api_t::pixelFormatGet) (jpeg_decode_ctrl_t *const p_ctrl, jpeg_decode_color_space_t *const p_color_space) |
Get the input pixel format.
| [in] | p_ctrl | Control block set in jpeg_decode_api_t::open call. |
| [out] | p_color_space | JPEG input format. |
| ssp_err_t(* jpeg_decode_api_t::statusGet) (jpeg_decode_ctrl_t *const p_ctrl, jpeg_decode_status_t *const p_status) |
Retrieve current status of the JPEG codec module.
| [in] | p_ctrl | Control block set in jpeg_decode_api_t::open call. |
| [out] | p_status | JPEG module status |
| ssp_err_t(* jpeg_decode_api_t::versionGet) (ssp_version_t *p_version) |
Get version and store it in provided pointer p_version.
| [out] | p_version | Code and API version used. |