-
Notifications
You must be signed in to change notification settings - Fork 53
Open
Description
Checklist
- Checked the issue tracker for similar issues to ensure this is not a duplicate
- Read the documentation to confirm the issue is not addressed there and your configuration is set correctly
- Tested with the latest version to ensure the issue hasn't been fixed
How often does this bug occurs?
always
Expected behavior
jpeg_enc_config_t jpeg_enc_cfg = DEFAULT_JPEG_ENC_CONFIG();
jpeg_enc_cfg.width = 240;// 编码图像宽度(需与摄像头分辨率匹配)
jpeg_enc_cfg.height = 240;// 编码图像高度
jpeg_enc_cfg.src_type = JPEG_PIXEL_FORMAT_CbYCrY;// YUV422像素格式
jpeg_enc_cfg.subsampling = JPEG_SUBSAMPLE_422;// 4:2:0色度抽样
jpeg_enc_cfg.quality = 80; // 压缩质量(0-100)
jpeg_enc_cfg.rotate = JPEG_ROTATE_0D;// 无旋转
jpeg_enc_cfg.task_enable = false;// 禁用硬件加速任务
jpeg_enc_cfg.hfm_task_priority = 13;// 硬件任务优先级(未启用)
jpeg_enc_cfg.hfm_task_core = 1;// 指定运行核心
jpeg_error_t ret = JPEG_ERR_OK;
int image_size = jpeg_enc_cfg.width * jpeg_enc_cfg.height * 2;// 原始数据大小
int outbuf_size = 240 * 240;// 输出缓冲区大小
jpeg_enc_handle_t jpeg_enc = NULL;// 编码器句柄
Actual behavior (suspected bug)
没有加这个格式
Error logs or terminal output
E (1998350) JPEG_ENC: JPEG src type(7) error, line 525
E (1998350) JPEG_ENC: JPEG encoder open fail. line 74
W (1998350) httpd_uri: httpd_uri: uri handler execution failedSteps to reproduce the behavior
jpeg_enc_cfg.src_type = JPEG_PIXEL_FORMAT_CbYCrY;// YUV422像素格式
Project release version
V0.6.1
System architecture
Intel/AMD 64-bit (modern PC, older Mac)
Operating system
Windows
Operating system version
win10
Shell
ZSH
Additional context
No response
Metadata
Metadata
Assignees
Labels
No labels