I have looked at the code and tested and it only partially works
currently:
If a vo is set in settings under "Video Output"
* if we use "vdpau" and we deinterlace, then options are removed
* if the driver is "gl" or "gl2" and "Enable Video Hardware Support" is
checked then any options are removed
The attached patch fixes this. Please review.
Testing: I have done comprehensive testing. Here are conditions (strings
given under "Video Output") and what is passed to mplayer's -vo option:
if( ! player->deinterlace ) {
"vdpau" -> "vdpau"
"vdpau:hqscaling=1:deint=4" -> "vdpau:hqscaling=1"
"vdpau:hqscaling=1" -> "vdpau:hqscaling=1"
}
if( player->deinterlace ) {
"vdpau" -> "vdpau:deint=2"
"vdpau:hqscaling=1:deint=4" -> "vdpau:hqscaling=1:deint=4"
"vdpau:hqscaling=1" -> "vdpau:hqscaling=1:deint=2"
if( player->enable_hardware_codecs ) {
"gl" -> "gl_nosw"
"gl2" -> "gl_nosw"
"gl:lscale=5:cscale=5" -> "gl_nosw:lscale=5:cscale=5"
"gl2:lscale=5:cscale=5" -> "gl_nosw:lscale=5:cscale=5"
}
All of these tests pass.
Cheers
Hans
--
Hans Ecke Department of Physics
he...@mines.edu Colorado School of Mines
(USA)
303-273-3850 Golden, Colorado
Diplomacy is the art of saying 'Nice doggie' until you can find a rock.
-- Will Rogers.