[Libav-user] Copy Image Data from Decode Frame To Encode Frame

James Board jpboard2 at yahoo.com
Sun Sep 15 17:35:51 CEST 2013



>> In between the two calls above, I have to convert the image data from
>> myFrameDecode to image data in myFrameEncode.  That's what I'm having
>> trouble
>> with.  Right now I have lots of row/col loops and they do things differently
>> for different pixel formats.  Is there a single subroutine I can that can
>> convert the image data from myFrameDecode to the image data in
>> myFrameEncode?
>
>You can use same one if you enable reference counting, then you do not need to
>copy it every time you need it. Just when going to modify it (if it is
>referenced by something else it will be copied otherwise reused....).

What do you mean by 'reference counting'?  Is this memory reference counting in
the context of what some people do to implement smarter memory management in
C so they don't delete segments of memory that is being used by elsewhere?
Or is it something else?
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://ffmpeg.org/pipermail/libav-user/attachments/20130915/cfc482ef/attachment.html>


More information about the Libav-user mailing list