<html><body><div style="color:#000; background-color:#fff; font-family:times new roman, new york, times, serif;font-size:12pt"><br><div style="font-family: times new roman, new york, times, serif; font-size: 12pt;"><div style="font-family: times new roman, new york, times, serif; font-size: 12pt;"><div class="y_msg_container">>> In between the two calls above, I have to convert the image data from<br>>> myFrameDecode to image data in myFrameEncode.  That's what I'm having<br>>> trouble<br>>> with.  Right now I have lots of row/col loops and they do things differently<br>>> for different pixel formats.  Is there a single subroutine I can that can<br>>> convert the image data from myFrameDecode to the image data in<br>>> myFrameEncode?<br>><br>>You can use same one if you enable reference counting, then you do not need to<br>>copy it every time you need it. Just when going to modify it (if
 it is<br>>referenced by something else it will be copied otherwise reused....).<br><br>What do you mean by 'reference counting'?  Is this memory reference counting in<br>the context of what some people do to implement smarter memory management in<br>C so they don't delete segments of memory that is being used by elsewhere?<br>Or is it something else?<br><br></div> </div> </div>  </div></body></html>