/* SPDX-License-Identifier: GPL-2.0 */ /* * Copyright (C) STMicroelectronics SA 2015 * Author: Hugues Fruchet <hugues.fruchet@st.com> for STMicroelectronics.
*/
#ifndef DELTA_MJPEG_FW_H #define DELTA_MJPEG_FW_H
/* * struct jpeg_decoded_buffer_address_t * * defines the addresses where the decoded picture/additional * info related to the block structures will be stored * * @display_luma_p: address of the luma buffer * @display_chroma_p: address of the chroma buffer
*/ struct jpeg_decoded_buffer_address_t {
u32 luma_p;
u32 chroma_p;
};
/* * struct jpeg_display_buffer_address_t * * defines the addresses (used by the Display Reconstruction block) * where the pictures to be displayed will be stored * * @struct_size: size of the structure in bytes * @display_luma_p: address of the luma buffer * @display_chroma_p: address of the chroma buffer * @display_decimated_luma_p: address of the decimated luma buffer * @display_decimated_chroma_p: address of the decimated chroma buffer
*/ struct jpeg_display_buffer_address_t {
u32 struct_size;
u32 display_luma_p;
u32 display_chroma_p;
u32 display_decimated_luma_p;
u32 display_decimated_chroma_p;
};
/* * used for enabling main/aux outputs for both display & * reference reconstruction blocks
*/ enum jpeg_rcn_ref_disp_enable_t { /* enable decimated (for display) reconstruction */
JPEG_DISP_AUX_EN = 0x00000010, /* enable main (for display) reconstruction */
JPEG_DISP_MAIN_EN = 0x00000020, /* enable both main & decimated (for display) reconstruction */
JPEG_DISP_AUX_MAIN_EN = 0x00000030, /* enable only reference output(ex. for trick modes) */
JPEG_REF_MAIN_EN = 0x00000100, /* * enable reference output with decimated * (for display) reconstruction
*/
JPEG_REF_MAIN_DISP_AUX_EN = 0x00000110, /* * enable reference output with main * (for display) reconstruction
*/
JPEG_REF_MAIN_DISP_MAIN_EN = 0x00000120, /* * enable reference output with main & decimated * (for display) reconstruction
*/
JPEG_REF_MAIN_DISP_MAIN_AUX_EN = 0x00000130
};
/* * struct jpeg_decode_return_params_t * * status returned by firmware after decoding * * @decode_time_in_us: decoding time in microseconds * @pm_cycles: profiling information * @pm_dmiss: profiling information * @pm_imiss: profiling information * @pm_bundles: profiling information * @pm_pft: profiling information * @error_code: status of the decoding process * @ceh_registers: array where values of the Contrast Enhancement * Histogram (CEH) registers will be stored. * ceh_registers[0] correspond to register MBE_CEH_0_7, * ceh_registers[1] correspond to register MBE_CEH_8_15 * ceh_registers[2] correspond to register MBE_CEH_16_23 * Note that elements of this array will be updated only * if additional_flags has JPEG_ADDITIONAL_FLAG_CEH set.
*/ struct jpeg_decode_return_params_t { /* profiling info */
u32 decode_time_in_us;
u32 pm_cycles;
u32 pm_dmiss;
u32 pm_imiss;
u32 pm_bundles;
u32 pm_pft; enum jpeg_decoding_error_t error_code;
u32 ceh_registers[32];
};
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.