change(jpeg): Clean up some mess code in jpeg encoder

This commit is contained in:
Cao Sen Miao
2024-04-07 17:11:41 +08:00
committed by BOT
parent 331a696d50
commit ca23d58cf3
10 changed files with 26 additions and 33 deletions
+2 -2
View File
@@ -632,10 +632,10 @@ static inline uint32_t jpeg_ll_get_intr_status(jpeg_dev_t *hw)
return hw->int_st.val;
}
static inline void jpeg_ll_config_picture_color_space(jpeg_dev_t *hw, jpeg_enc_src_type_t color_space)
static inline void jpeg_ll_config_picture_pixel_format(jpeg_dev_t *hw, jpeg_enc_src_type_t pixel_format)
{
uint8_t cs = 0;
switch (color_space) {
switch (pixel_format) {
case JPEG_ENC_SRC_RGB888:
cs = 0;
break;