Updated on 2022-03-13 GMT+08:00

DvppGetOutParameter

Syntax

int32_t DvppGetOutParameter(void* in, void* out, int32_t cmd)

Function

Obtains the output buffer size of the JPEGD/JPEGE/PNGD module.

Input

  • in pointer, which varies according to the module. For details, see Table 1.
  • out pointer, which varies according to the module. For details, see Table 1.
  • Command word (CMD)

Output

Output buffer size of each module:

  • For the JPEGE function, the output buffer size is the value of jpgSize in the sJpegeOut struct.
  • For the JPEGD function, the output buffer size is the value of yuvDataSize in the JpegdOut struct.
  • For the PNGD function, the output buffer size is the value of outputSize in the PngOutputInfoAPI struct.

Return Value

  • 0: success
  • –1: failure

Instructions

The caller calls the DvppGetOutParameter function, passes the in and out pointers and the correct CMD command word.

The calling example is as follows:

Restriction

None

Table 1 Input parameter description

Input Parameter

Description

Value Range

void* in

Pointer to the input structure

  • Input parameter of the JPEGE function: sJpegeIn
  • Input parameter of the JPEGD function: JpegdIn
  • Input parameter of the PNGD function: PngInputInfoAPI
NOTICE:

This function does not support the jpegd_raw_data_info structure of the JPEGD.

void* out

Pointer to the output structure

NOTICE:

This function does not support the jpegd_yuv_data_info structure of the JPEGD.

int32_t cmd

Command word for obtaining output parameters

  • Command word of the JPEGE function: GET_JPEGE_OUT_PARAMETER
  • Command word of the JPEGD function: GET_JPEGD_OUT_PARAMETER
  • Command word of the PNGD function: GET_PNGD_OUT_PARAMETER