Hi,<div>I'm developing a module for paying from a capture card (within a video framework that uses libav in other modules) and I'd like to use the libav yadif filter.</div><div><br></div><div>I have stored the captured picture in <span style="color:rgb(128,0,128)">PIX_FMT_UYVY422 </span>pixel format and I've been able to use the swscale for converting the image and avpicture_deinterlace to apply the old libav deinterlacing method, but the results aren't as good as expected.</div>
<div><br></div><div>First of all, I have to make one copy and convert the image to <span style="color:rgb(128,0,128)">PIX_FMT_YUV422P </span>(the one this method requires), apply the deinterlace method and then re-convert the result image to the needed original pixel format, so it would be 3 copies and 3 modifications... a huge delay for such bad results.</div>
<div><br></div><div>I have an AVPicture source frame (easy to convert to an AVFrame) and I need to get the same as result.</div><div>Questions:</div><div>- Do I need to convert my original frame to an specific pixel format?</div>
<div>- Do I need another data structure for frame storage (vector/array/list)?</div><div>- Is there any independent function to do that (inside vf_yadif.c) I could use?</div><div><br></div><div>Thank you in advance,</div>
<div>Hector.</div>