[Ffmpeg-devel] img_convert() ???

Luca Abeni lucabe72
Wed Mar 22 13:20:31 CET 2006


Hi all,

I am feeling very stupid, but...
When trying to modify ffmpeg.c to directly use swscaler interface, I
found something that looks strange around line 629 of ffmpeg.c:

      if (do_deinterlace){
            if(avpicture_deinterlace(picture2, picture,
                                     dec->pix_fmt, dec->width, dec->height) < 0) {
                /* if error, do not deinterlace */
                av_free(buf);
                buf = NULL;
                picture2 = picture; 
            }
        } else {
            if (img_convert(picture2, dec->pix_fmt, picture,
                            dec->pix_fmt, dec->width, dec->height) < 0) {
                /* if error, do not copy */
                av_free(buf);
                buf = NULL;
                picture2 = picture;
            }
        }

Now, what's the purpose of this img_convert? It seems that it's just
copying picture in picture2, No? So, why not using img_copy? Also, why
is a copy needed at all? I think I am really missing something here...

			Thanks,
				Luca
-- 
_____________________________________________________________________________
Copy this in your signature, if you think it is important:
                               N O    W A R ! ! !

 
 
 --
 Email.it, the professional e-mail, gratis per te: http://www.email.it/f
 
 Sponsor:
 Prestiti Online. Scopri subito se sei finanziabile. in 24 ore senza spese n? anticipi, clicca qui
* 
 Clicca qui: http://adv.email.it/cgi-bin/foclick.cgi?mid=2908&d=22-3





More information about the ffmpeg-devel mailing list