made interlacing configurable

This commit is contained in:
itsmattkc
2018-10-14 02:20:25 +11:00
parent 1d96363aaa
commit fc28900c9c
6 changed files with 98 additions and 17 deletions
+1 -6
View File
@@ -173,12 +173,7 @@ void PreviewGenerator::generate_waveform() {
s->video_preview = QImage(data, dstW, dstH, linesize[0], QImage::Format_RGB888);
// is video interlaced?
if (temp_frame->interlaced_frame) {
s->video_interlacing = (temp_frame->top_field_first) ? VIDEO_TOP_FIELD_FIRST : VIDEO_BOTTOM_FIELD_FIRST;
s->video_frame_rate *= 2;
} else {
s->video_interlacing = VIDEO_PROGRESSIVE;
}
s->video_interlacing = (temp_frame->interlaced_frame) ? ((temp_frame->top_field_first) ? VIDEO_TOP_FIELD_FIRST : VIDEO_BOTTOM_FIELD_FIRST) : VIDEO_PROGRESSIVE;
s->preview_done = true;