Acquire a JPEG decode engine with the specified configuration. This function acquires a JPEG decode engine with the specified configuration. The configuration parameters are provided through the `dec_eng_cfg` structure, and the resulting JPEG decoder handle is returned through the `ret_decoder` pointer.
Pointer to a variable that will receive the JPEG decoder handle.
Return value
- ESP_OK: JPEG decoder initialized successfully. - ESP_ERR_INVALID_ARG: JPEG decoder initialization failed because of invalid argument. - ESP_ERR_NO_MEM: Create JPEG decoder failed because of out of memory.
Examples
jpeg_new_decoder_engine() is referenced by 1 libraries and example projects: