comparison libvo/vo_vdpau.c @ 28708:ebd393e9f567

Add one-field-only output for -vo vdpau. Change syntax of -vo vdpau:deint for the last time.
author cehoyos
date Fri, 27 Feb 2009 21:52:59 +0000
parents a81065b771e7
children 4e89476f8952
comparison
equal deleted inserted replaced
28707:a81065b771e7 28708:ebd393e9f567
206 if (vid_surface_num < 0) 206 if (vid_surface_num < 0)
207 return; 207 return;
208 208
209 // we would need to provide 2 past and 1 future frames to allow advanced 209 // we would need to provide 2 past and 1 future frames to allow advanced
210 // deinterlacing, which is not really possible currently. 210 // deinterlacing, which is not really possible currently.
211 for (i = 0; i <= !!deint; i++) { 211 for (i = 0; i <= !!(deint > 1); i++) {
212 int field = VDP_VIDEO_MIXER_PICTURE_STRUCTURE_FRAME; 212 int field = VDP_VIDEO_MIXER_PICTURE_STRUCTURE_FRAME;
213 VdpOutputSurface output_surface; 213 VdpOutputSurface output_surface;
214 if (i) 214 if (i)
215 flip_page(); 215 flip_page();
216 if (deint) 216 if (deint)
392 const void *const parameter_values[VDP_NUM_MIXER_PARAMETER] = { 392 const void *const parameter_values[VDP_NUM_MIXER_PARAMETER] = {
393 &vid_width, 393 &vid_width,
394 &vid_height, 394 &vid_height,
395 &vdp_chroma_type 395 &vdp_chroma_type
396 }; 396 };
397 if (deint == 2) 397 if (deint == 3)
398 features[feature_count++] = VDP_VIDEO_MIXER_FEATURE_DEINTERLACE_TEMPORAL; 398 features[feature_count++] = VDP_VIDEO_MIXER_FEATURE_DEINTERLACE_TEMPORAL;
399 if (deint == 3) 399 if (deint == 4)
400 features[feature_count++] = VDP_VIDEO_MIXER_FEATURE_DEINTERLACE_TEMPORAL_SPATIAL; 400 features[feature_count++] = VDP_VIDEO_MIXER_FEATURE_DEINTERLACE_TEMPORAL_SPATIAL;
401 if (pullup) 401 if (pullup)
402 features[feature_count++] = VDP_VIDEO_MIXER_FEATURE_INVERSE_TELECINE; 402 features[feature_count++] = VDP_VIDEO_MIXER_FEATURE_INVERSE_TELECINE;
403 if (denoise) 403 if (denoise)
404 features[feature_count++] = VDP_VIDEO_MIXER_FEATURE_NOISE_REDUCTION; 404 features[feature_count++] = VDP_VIDEO_MIXER_FEATURE_NOISE_REDUCTION;
944 "\n-vo vdpau command line help:\n" 944 "\n-vo vdpau command line help:\n"
945 "Example: mplayer -vo vdpau:deint=2\n" 945 "Example: mplayer -vo vdpau:deint=2\n"
946 "\nOptions:\n" 946 "\nOptions:\n"
947 " deint (all modes > 0 respect -field-dominance)\n" 947 " deint (all modes > 0 respect -field-dominance)\n"
948 " 0: no deinterlacing\n" 948 " 0: no deinterlacing\n"
949 " 1: bob deinterlacing (current fallback)\n" 949 " 1: only show first field\n"
950 " 2: temporal deinterlacing (not yet working)\n" 950 " 2: bob deinterlacing (current fallback)\n"
951 " 3: temporal-spatial deinterlacing (not yet working)\n" 951 " 3: temporal deinterlacing (not yet working)\n"
952 " 4: temporal-spatial deinterlacing (not yet working)\n"
952 " pullup\n" 953 " pullup\n"
953 " Try to apply inverse-telecine (needs deinterlacing, not working)\n" 954 " Try to apply inverse-telecine (needs deinterlacing, not working)\n"
954 " denoise\n" 955 " denoise\n"
955 " Apply denoising, argument is strength from 0.0 to 1.0\n" 956 " Apply denoising, argument is strength from 0.0 to 1.0\n"
956 " sharpen\n" 957 " sharpen\n"