liyujie
2025-08-28 d9927380ed7c8366f762049be9f3fee225860833
android/hardware/aw/camera/3_4/allwinnertech/libAWIspApi/libisp_new/isp_tuning/isp_tuning.c
....@@ -178,10 +178,18 @@
178178 ctx->sensor_info.voffset = 0;
179179 }
180180
181
- ctx->stat.pic_size.width = cfg.width;
181
+ if(ctx->sensor_info.sensor_width > 4000 && ctx->sensor_info.sensor_height > 3000) {
182
+ ctx->stat.pic_size.width = min(3264, cfg.width);
183
+ } else {
184
+ ctx->stat.pic_size.width = cfg.width;
185
+ }
182186 ctx->stat.pic_size.height = cfg.height;
183187
184
- ctx->stats_ctx.pic_w = cfg.width;
188
+ if(ctx->sensor_info.sensor_width > 4000 && ctx->sensor_info.sensor_height > 3000) {
189
+ ctx->stats_ctx.pic_w = min(3264, cfg.width);
190
+ } else {
191
+ ctx->stats_ctx.pic_w = cfg.width;
192
+ }
185193 ctx->stats_ctx.pic_h = cfg.height;
186194 // update otp infomation
187195 if(ctx->otp_enable == -1){