JPEG: use restart interval 4 for UYVY

Seems to perform better for both 1080p and 2160p than 2.
This commit is contained in:
Martin Pulec
2015-06-11 12:16:03 +02:00
parent d884c2cfc0
commit 08dba834c1

View File

@@ -142,7 +142,7 @@ static bool configure_with(struct state_video_compress_jpeg *s, struct video_fra
s->encoder_param.sampling_factor[2].vertical = 1;
} else {
s->encoder_param.interleaved = 1;
s->encoder_param.restart_interval = s->restart_interval == -1 ? 2
s->encoder_param.restart_interval = s->restart_interval == -1 ? 4
: s->restart_interval;
/* LUMA */
s->encoder_param.sampling_factor[0].horizontal = 2;