Support rendering YUV formatted frames

This commit is contained in:
Martijn Braam
2023-11-24 16:28:25 +01:00
parent 8a3f1a5540
commit 9d189b88b4
10 changed files with 146 additions and 53 deletions

View File

@@ -457,6 +457,9 @@ update_state(MPPipeline *pipeline, const mp_state_io *new_state)
float score = 0;
int area_preview =
state_io.preview_width * state_io.preview_height;
if (area_preview == 0) {
area_preview = 1280 * 720;
}
for (int m = 0; m < state_io.camera->num_modes; m++) {
float mscore = 0;
if (state_io.camera->modes[m]->rate > 29) {