From 06ccd9f6716ffb5220941bea12f345154545862e Mon Sep 17 00:00:00 2001 From: wm4 Date: Mon, 5 Nov 2012 19:27:38 +0100 Subject: video: simplify decoder pixel format handling Simplify the decoder pixel format handling by making it handle only the case vd_lavc needs: a video stream always decodes to a single pixel format. Remove the handling for multiple pixel formats, and remove the codecs.conf pixel format declarations that are left. Remove the handling of "ambiguous" pixel formats like YV12 vs. I420 (via VDCTRL_QUERY_FORMAT etc.). This is only a problem if the video chain supports I420, but not YV12, which doesn't seem to be the case anywhere, and in fact would not have any advantage. Make the "flip" flag a global per-codec flag, rather than a pixel format specific flag. (Some ffmpeg decoders still return a flipped image, so this has to be done manually.) Also fix handling of the flip operation: do not overwrite the global flip option, and make the --flip option invert the codec flip option rather than overriding it. --- demux/stheader.h | 1 - 1 file changed, 1 deletion(-) (limited to 'demux/stheader.h') diff --git a/demux/stheader.h b/demux/stheader.h index efcec02d7b..4745e452d5 100644 --- a/demux/stheader.h +++ b/demux/stheader.h @@ -156,7 +156,6 @@ typedef struct sh_video { int color_range; // mp_csp_levels // output driver/filters: (set by libmpcodecs core) unsigned int outfmt; - unsigned int outfmtidx; struct vf_instance *vfilter; // video filter chain int output_flags; // query_format() results for output filters+vo const struct vd_functions *vd_driver; -- cgit v1.2.3