Switch scaling method according to the setting
authorXiang, Haihao <haihao.xiang@intel.com>
Thu, 10 Nov 2011 05:27:23 +0000 (13:27 +0800)
committerXiang, Haihao <haihao.xiang@intel.com>
Thu, 10 Nov 2011 05:27:23 +0000 (13:27 +0800)
Signed-off-by: Xiang, Haihao <haihao.xiang@intel.com>
src/i965_post_processing.c

index e6fda36..f8a52c3 100644 (file)
@@ -3785,7 +3785,8 @@ i965_proc_picture(VADriverContextP ctx,
                                   &input_param->region,
                                   &dst_surface,
                                   &pipeline_param->output_region,
-                                  PP_NV12_AVS,
+                                  (pipeline_param->flags & VA_FILTER_SCALING_MASK) == VA_FILTER_SCALING_NL_ANAMORPHIC ?
+                                  PP_NV12_AVS : PP_NV12_SCALING,
                                   NULL);
 
     if (num_tmp_surfaces)