[Mesa-dev] [PATCH 3/3] vl: add support for bob deinterlacing

Christian König deathsimple at vodafone.de
Tue Feb 14 02:57:45 PST 2012


On 13.02.2012 16:09, Maarten Lankhorst wrote:
> Op 13-02-12 14:36, Christian König schreef:
>> @@ -242,8 +243,24 @@ VdpStatus vlVdpVideoMixerRender(VdpVideoMixer 
>> mixer,
>>      }
>>
>>      vl_compositor_clear_layers(&vmixer->compositor);
>> +
>> +   switch (current_picture_structure) {
>> +   case VDP_VIDEO_MIXER_PICTURE_STRUCTURE_TOP_FIELD:
>> +      deinterlace = VL_COMPOSITOR_BOB_TOP;
>> +      break;
>> +
>> +   case VDP_VIDEO_MIXER_PICTURE_STRUCTURE_BOTTOM_FIELD:
>> +      deinterlace = VL_COMPOSITOR_BOB_BOTTOM;
>> +      break;
>> +
>> +   case VDP_VIDEO_MIXER_PICTURE_STRUCTURE_FRAME:
>> +   default:
>> +      deinterlace = VL_COMPOSITOR_WEAVE;
>> +      break;
>> +   };
> return VDP_STATUS_INVALID_VIDEO_MIXER_PICTURE_STRUCTURE for default?
Ok, forgotten that VDPAU has error codes for nearly everything... Fixed!

Thanks,
Christian.


More information about the mesa-dev mailing list