Re: in memory jpeg destination and source managers



OK, I could figure it out. I was calling jpeg_write_tables and this
call was adding the tables to my buffer a bit to early. It's better to
omit jpeg_write_tables and to call jpeg_suppress_tables(&cinfo, FALSE).
Then the first call to jpeg_write_scanlines will add the tables.

Christian


chhenning@xxxxxxxxx wrote:
Hi there, I have a problem with my own jpeg destination and source
managers. My goal is to compressed a jpeg buffer from an rgb buffer.
And also the vice versa. The compressed buffer created by the
destination manager starts with FFDB ( the quantization table ) rather
than with FFD8 ( Start of image ). When I try to get to my rgb buffer
the application crashes when calling jpeg_read_header.

I think the compressed buffer has all the necessary sections, but they
are ordered somehow in a weird way. Is that normal?

If you are interessted in the source code ( C ), let me know.

Thanks ahead,
Christian

.



Relevant Pages

  • Re: C# System.String Memory Usage [TCP IP Connections]
    ... If you're getting 5x the TCPIP performance by calling GC.Collect, ... suffering very badly from heap fragmentation due to all the pinning that's ... call "GC.Collect" is just before you're forced to grow your buffer pool. ...
    (microsoft.public.dotnet.framework.performance)
  • Re: C# System.String Memory Usage [TCP IP Connections]
    ... If you're getting 5x the TCPIP performance by calling GC.Collect, ... suffering very badly from heap fragmentation due to all the pinning that's ... "GC.Collect" is just before you're forced to grow your buffer pool. ...
    (microsoft.public.dotnet.framework.performance)
  • Re: Winsock -> Out of stack space
    ... there is a calling to same routine again and again. ... Regarding removing loop from dataarrival event: ... > remove it from the buffer. ... If no complete request is found let the event ...
    (microsoft.public.vb.controls)
  • RE: Simple questio on Buffered I/O
    ... Try calling CreateEvent with FALSE as the second parameter. ... structure to the non-signalled state. ... WaitForSingleObject is likely returning ... Is there any dependency on input buffer & output Buffer in buffered mechanism? ...
    (microsoft.public.development.device.drivers)
  • Re: MmGetSystemAddressForMdlSafe
    ... Why are you calling it with priority set to High? ... The function can fail when there's not enough kernel address space avaialble to map the buffer. ... MDLs always describe locked memory ranges - if you have one you don't need to lock it. ... Do i need to lock and MDL before calling this function? ...
    (microsoft.public.win32.programmer.kernel)