feat(jpeg): Add config for reversing input pixel format in jpeg encoder

Also add format check on both encoder and decoder

Closes https://github.com/espressif/esp-idf/issues/18262
This commit is contained in:
C.S.M
2026-03-09 13:42:20 +08:00
parent 06b5b96b19
commit 7802bf4703
5 changed files with 48 additions and 4 deletions
@@ -24,6 +24,7 @@ typedef struct {
jpeg_enc_input_format_t src_type; /*!< Source type of raw image to be encoded, see `jpeg_enc_src_type_t` */
jpeg_down_sampling_type_t sub_sample; /*!< JPEG subsampling method */
uint32_t image_quality; /*!< JPEG compressing quality, value from 1-100, higher value means higher quality */
bool pixel_reverse; /*!< Whether to reverse the input pixel order, for detailed pixel order please refer to TRM */
} jpeg_encode_cfg_t;
/**