<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Can give me jpeg2000 decode sample from memory? in Intel® Integrated Performance Primitives</title>
    <link>https://community.intel.com/t5/Intel-Integrated-Performance/Can-give-me-jpeg2000-decode-sample-from-memory/m-p/898667#M12455</link>
    <description>&lt;P&gt;Dear Mozart:&lt;/P&gt;
&lt;P&gt;jp2Stream is an instance of MapFileBoundedInputBE, soit's not network stream:)&lt;BR /&gt; But nothing special with network as well, you just need towrap your own stream with Read/Write functionality named as required (for example look into .srccommonstreammemorystream.h), something like the following&lt;/P&gt;
&lt;P&gt;class NetworkInput {&lt;BR /&gt;...&lt;BR /&gt;Ipp8u Read8u() { ... /* obtain byte from network*/ }&lt;BR /&gt;void Read(Ipp8u *dst, unsigned int size) { ... /* fill buffer by data from network */ }&lt;/P&gt;
&lt;P&gt;Than you need to add to your stream ready-made functionality of BELE:&lt;/P&gt;
&lt;P&gt;typedef ByteInputSigned&lt;BYTEINPUTBE&gt;&lt;NETWORKINPUT&gt; &amp;gt; NetworkInputBE;&lt;/NETWORKINPUT&gt;&lt;/BYTEINPUTBE&gt;&lt;/P&gt;
&lt;P&gt;After this just put some work-around about nested data boundary problem:&lt;/P&gt;
&lt;P&gt;class NetworkBoundedInputBE : public ByteInputBoundService&lt;NETWORKINPUTBE&gt;&lt;BR /&gt;{&lt;BR /&gt;public:&lt;BR /&gt;...&lt;BR /&gt; void Connect(...) { NetworkInput::Connect(...); PushSize(0xFFFFFFFF); }&lt;BR /&gt; void Disconnect() { NetworkInput::Disconnect(); PopSize(); }&lt;BR /&gt;};&lt;BR /&gt;&lt;/NETWORKINPUTBE&gt;&lt;/P&gt;
&lt;P&gt;Now it's ready to substitute in decoder:&lt;/P&gt;
&lt;P&gt; DJP2Codestream&lt;NETWORKBOUNDEDINPUTBE&gt; j2kCodestream;&lt;/NETWORKBOUNDEDINPUTBE&gt;&lt;/P&gt;
&lt;P&gt;an you may work with it to read and decode JPEG 2000 data from network.&lt;/P&gt;
&lt;P&gt;With Best Regards,&lt;BR /&gt;Mikhail&lt;BR /&gt;&lt;/P&gt;</description>
    <pubDate>Sat, 18 Nov 2006 00:56:18 GMT</pubDate>
    <dc:creator>Mikhail_Kulikov__Int</dc:creator>
    <dc:date>2006-11-18T00:56:18Z</dc:date>
    <item>
      <title>Can give me jpeg2000 decode sample from memory?</title>
      <link>https://community.intel.com/t5/Intel-Integrated-Performance/Can-give-me-jpeg2000-decode-sample-from-memory/m-p/898666#M12454</link>
      <description>&lt;P&gt;Dear Sir:&lt;/P&gt;
&lt;P&gt; I want to decode jpeg2000 codestream from network. I can find the decode sample from Intel which only can decode from a file.&lt;/P&gt;
&lt;P&gt; jp2Stream.Open(options.SrcFileName());&lt;/P&gt;
&lt;P&gt; ....&lt;/P&gt;
&lt;P&gt; I had tried to edit it to decode the data from network. But I can not success. I hope you can help me. give me a sample code.&lt;/P&gt;
&lt;P&gt;Thanks a lot!&lt;/P&gt;
&lt;P&gt;mozart&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 17 Nov 2006 16:50:36 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Integrated-Performance/Can-give-me-jpeg2000-decode-sample-from-memory/m-p/898666#M12454</guid>
      <dc:creator>mozartisme</dc:creator>
      <dc:date>2006-11-17T16:50:36Z</dc:date>
    </item>
    <item>
      <title>Re: Can give me jpeg2000 decode sample from memory?</title>
      <link>https://community.intel.com/t5/Intel-Integrated-Performance/Can-give-me-jpeg2000-decode-sample-from-memory/m-p/898667#M12455</link>
      <description>&lt;P&gt;Dear Mozart:&lt;/P&gt;
&lt;P&gt;jp2Stream is an instance of MapFileBoundedInputBE, soit's not network stream:)&lt;BR /&gt; But nothing special with network as well, you just need towrap your own stream with Read/Write functionality named as required (for example look into .srccommonstreammemorystream.h), something like the following&lt;/P&gt;
&lt;P&gt;class NetworkInput {&lt;BR /&gt;...&lt;BR /&gt;Ipp8u Read8u() { ... /* obtain byte from network*/ }&lt;BR /&gt;void Read(Ipp8u *dst, unsigned int size) { ... /* fill buffer by data from network */ }&lt;/P&gt;
&lt;P&gt;Than you need to add to your stream ready-made functionality of BELE:&lt;/P&gt;
&lt;P&gt;typedef ByteInputSigned&lt;BYTEINPUTBE&gt;&lt;NETWORKINPUT&gt; &amp;gt; NetworkInputBE;&lt;/NETWORKINPUT&gt;&lt;/BYTEINPUTBE&gt;&lt;/P&gt;
&lt;P&gt;After this just put some work-around about nested data boundary problem:&lt;/P&gt;
&lt;P&gt;class NetworkBoundedInputBE : public ByteInputBoundService&lt;NETWORKINPUTBE&gt;&lt;BR /&gt;{&lt;BR /&gt;public:&lt;BR /&gt;...&lt;BR /&gt; void Connect(...) { NetworkInput::Connect(...); PushSize(0xFFFFFFFF); }&lt;BR /&gt; void Disconnect() { NetworkInput::Disconnect(); PopSize(); }&lt;BR /&gt;};&lt;BR /&gt;&lt;/NETWORKINPUTBE&gt;&lt;/P&gt;
&lt;P&gt;Now it's ready to substitute in decoder:&lt;/P&gt;
&lt;P&gt; DJP2Codestream&lt;NETWORKBOUNDEDINPUTBE&gt; j2kCodestream;&lt;/NETWORKBOUNDEDINPUTBE&gt;&lt;/P&gt;
&lt;P&gt;an you may work with it to read and decode JPEG 2000 data from network.&lt;/P&gt;
&lt;P&gt;With Best Regards,&lt;BR /&gt;Mikhail&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Sat, 18 Nov 2006 00:56:18 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Integrated-Performance/Can-give-me-jpeg2000-decode-sample-from-memory/m-p/898667#M12455</guid>
      <dc:creator>Mikhail_Kulikov__Int</dc:creator>
      <dc:date>2006-11-18T00:56:18Z</dc:date>
    </item>
  </channel>
</rss>

