.. | .. |
---|
178 | 178 | ctx->sensor_info.voffset = 0; |
---|
179 | 179 | } |
---|
180 | 180 | |
---|
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 | + } |
---|
182 | 186 | ctx->stat.pic_size.height = cfg.height; |
---|
183 | 187 | |
---|
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 | + } |
---|
185 | 193 | ctx->stats_ctx.pic_h = cfg.height; |
---|
186 | 194 | // update otp infomation |
---|
187 | 195 | if(ctx->otp_enable == -1){ |
---|