- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Ihave writtena program to successfully encode RGB buffers to JpegXR files.
I'm usingthe uic sample codes provided in "w_ipp-samples_p_7.0.7.064\\\\ipp-samples\\\\image-codecs\\\\uic\\\\src\\\\application\\\\uic_transcoder_con".
However, now, I need to access the JpegXR image buffer (with headers and everything) after encoding, and not write them to file at all. Is this JpegXR image buffer "BaseStreamOutput& out" in "jpegxr.cpp"? How can I prevent writing to JpegXR files?
[cpp]"jpegxr.cpp" //found in sample code IM_ERROR SaveImageJPEGXR( CIppImage& image, PARAMS_JPEGXR& param, BaseStreamOutput& out) { // Some code.... if(ExcStatusOk != encoder.WriteHeader()) return IE_WHEADER; if(ExcStatusOk != encoder.WriteData()) return IE_WDATA; if(ExcStatusOk != encoder.FreeData()) return IE_RESET; // Some more code... }
[/cpp]
I'm usingthe uic sample codes provided in "w_ipp-samples_p_7.0.7.064\\\\ipp-samples\\\\image-codecs\\\\uic\\\\src\\\\application\\\\uic_transcoder_con".
However, now, I need to access the JpegXR image buffer (with headers and everything) after encoding, and not write them to file at all. Is this JpegXR image buffer "BaseStreamOutput& out" in "jpegxr.cpp"? How can I prevent writing to JpegXR files?
[cpp]"jpegxr.cpp" //found in sample code IM_ERROR SaveImageJPEGXR( CIppImage& image, PARAMS_JPEGXR& param, BaseStreamOutput& out) { // Some code.... if(ExcStatusOk != encoder.WriteHeader()) return IE_WHEADER; if(ExcStatusOk != encoder.WriteData()) return IE_WDATA; if(ExcStatusOk != encoder.FreeData()) return IE_RESET; // Some more code... }
[/cpp]
1 Solution
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hello,
In the UMC sample code, there is a memory buffer output (\ipp-samples\image-codecs\uic\src\io\uic_io). You can use the memory buffer output, other than file output.
Thanks,
Chao
Link Copied
1 Reply
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hello,
In the UMC sample code, there is a memory buffer output (\ipp-samples\image-codecs\uic\src\io\uic_io). You can use the memory buffer output, other than file output.
Thanks,
Chao
Reply
Topic Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page