+
+int FileFFMPEG::get_best_colormodel(int driver, int vstream)
+{
+ if( vstream < 0 ) vstream = 0;
+ int is_mpeg = !ff ? 0 : ff->ff_video_mpeg_color_range(vstream);
+
+ switch(driver) {
+ case PLAYBACK_X11:
+ case PLAYBACK_X11_GL: return is_mpeg ? BC_YUV888 : BC_RGB888;
+ case PLAYBACK_X11_XV: return BC_YUV420P;
+ }
+
+ return BC_RGB888;
+}
+