<?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 uic jpec encoder in Intel® Integrated Performance Primitives</title>
    <link>https://community.intel.com/t5/Intel-Integrated-Performance/uic-jpec-encoder/m-p/793789#M2619</link>
    <description>hi Vladimir,&lt;BR /&gt;&lt;BR /&gt;i found it and i tried somthing equivalent of it, but without success. In fact, it's not possible to verify if this sample works as it is not a complete applicationexemple and so this imply to imagine the values of the input parameters! In addition, there is a "strange" parameter on the line:&lt;BR /&gt;&lt;BR /&gt;dataOrder.ReAlloc(Plane, in_image-&amp;gt;nChannels);&lt;BR /&gt;i would expect "interleaced" rather than "Plane" with YUV422 (YUY2).&lt;BR /&gt;&lt;BR /&gt;Really, what can be really helpfull, is to have a complete application exemple with project file for Visual Studio (yes, i work under windows). I already lost too much time for just evaluating the performances.&lt;BR /&gt;Is there something like this?&lt;BR /&gt;&lt;BR /&gt;thanks in advance,&lt;BR /&gt;Pascal</description>
    <pubDate>Fri, 08 Jul 2011 18:37:33 GMT</pubDate>
    <dc:creator>pas059</dc:creator>
    <dc:date>2011-07-08T18:37:33Z</dc:date>
    <item>
      <title>uic jpec encoder</title>
      <link>https://community.intel.com/t5/Intel-Integrated-Performance/uic-jpec-encoder/m-p/793785#M2615</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;I'm trying to evaluate uic jpeg encoder performancesand encounter manydifficulties. I can present source image in BGRA or YUV422 (YUY2) and i just want to convert it in jpeg in a memory stream (CMemBuffOutput). I started from samples and generally all seam to be correct beforethecall to encoder.WriteHeader() wich returns -1 (which is not informative) or simply crashes.&lt;BR /&gt;&lt;BR /&gt;Someone can indicate a sample that just works or a more complete documentation?&lt;BR /&gt;&lt;BR /&gt;thanks in advance&lt;BR /&gt;&lt;BR /&gt;Pascal</description>
      <pubDate>Wed, 06 Jul 2011 16:53:38 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Integrated-Performance/uic-jpec-encoder/m-p/793785#M2615</guid>
      <dc:creator>pas059</dc:creator>
      <dc:date>2011-07-06T16:53:38Z</dc:date>
    </item>
    <item>
      <title>uic jpec encoder</title>
      <link>https://community.intel.com/t5/Intel-Integrated-Performance/uic-jpec-encoder/m-p/793786#M2616</link>
      <description>Hi Pascal,&lt;BR /&gt;&lt;BR /&gt;it seems you arleade started from UIC samples (uic_transcoder_con and/or picnic). We do not have other samples for UIC framework.&lt;BR /&gt;&lt;BR /&gt;I think that error which you get is related to uncorrect parameters you apply to UIC codec. Is it possible to provide a code snippet to see how you call UIC codec?&lt;BR /&gt;&lt;BR /&gt;Regards,&lt;BR /&gt; Vladimir</description>
      <pubDate>Thu, 07 Jul 2011 12:59:01 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Integrated-Performance/uic-jpec-encoder/m-p/793786#M2616</guid>
      <dc:creator>Vladimir_Dudnik</dc:creator>
      <dc:date>2011-07-07T12:59:01Z</dc:date>
    </item>
    <item>
      <title>uic jpec encoder</title>
      <link>https://community.intel.com/t5/Intel-Integrated-Performance/uic-jpec-encoder/m-p/793787#M2617</link>
      <description>Hi Vladimir,&lt;BR /&gt;&lt;BR /&gt;i'm agree with you, this is probably a bad parameterization. I also found a sample (from you?) called 'jpeg_ycbcr422'.&lt;BR /&gt;&lt;BR /&gt;below a code snippet&lt;BR /&gt;&amp;gt;&amp;gt;&lt;BR /&gt;&lt;P&gt;JPEGEncoder encoder;&lt;/P&gt;&lt;P&gt;CMemBuffOutput mso;&lt;/P&gt;&lt;P&gt;ImageDataPtr imDataPtr[3];&lt;/P&gt;&lt;P&gt;ExcStatus status = encoder.Init();&lt;/P&gt;&lt;P&gt;status = mso.Open( *compImage , outputBufferLength );&lt;/P&gt;&lt;P&gt;status = encoder.AttachStream( mso );&lt;/P&gt;&lt;P&gt;JPEGEncoderParamsBAS jpegParam;&lt;/P&gt;&lt;P&gt;jpegParam.SetRestartInterval(0);&lt;/P&gt;&lt;P&gt;jpegParam.SetHuffmanOption(0);&lt;/P&gt;&lt;P&gt;jpegParam.SetQuality( 80 );&lt;/P&gt;&lt;P&gt;jpegParam.SetColor( JC_YCBCR ); // JC_YCBCR or(JCOLOR)YCbCr )?&lt;/P&gt;&lt;P&gt;jpegParam.SetSampling( JS_422 );&lt;/P&gt;&lt;P&gt;status = encoder.SetParams( jpegParam );&lt;/P&gt;&lt;P&gt;int nOfComponents = 3; &lt;/P&gt;&lt;P&gt;UIC::Image uicImage;&lt;/P&gt;&lt;P&gt;UIC::RectSize size( width , height );&lt;/P&gt;&lt;P&gt;UIC::Point origin( 0 , 0 );&lt;/P&gt;&lt;P&gt;UIC::Rect refgrid( origin , size );&lt;/P&gt;&lt;P&gt;UIC::ImageSamplingGeometry geometry;&lt;/P&gt;&lt;P&gt;geometry.SetRefGridRect( refgrid );&lt;/P&gt;&lt;P&gt;status = geometry.ReAlloc( nOfComponents );&lt;/P&gt;&lt;P&gt;status = geometry.SetEnumSampling( S422 ); // UIC::ImageEnumSampling::S422&lt;/P&gt;&lt;P&gt;ImageDataOrder dataOrder;&lt;/P&gt;&lt;P&gt;dataOrder.SetDataType( T8u );&lt;/P&gt;&lt;P&gt;status = dataOrder.ReAlloc( Plane , nOfComponents ); //or Interleaved?&lt;/P&gt;&lt;P&gt;for( int i = 0; i &amp;lt; nOfComponents; i++)&lt;/P&gt;&lt;P&gt;{&lt;/P&gt;&lt;P&gt;dataOrder.PixelStep()&lt;I&gt; = i == 0 ? 2 : 4;&lt;/I&gt;&lt;/P&gt;&lt;P&gt;dataOrder.LineStep() &lt;I&gt; = width * 2;&lt;/I&gt;&lt;/P&gt;&lt;P&gt;}&lt;/P&gt;&lt;P&gt;status = uicImage.ColorSpec().ReAlloc( nOfComponents );&lt;/P&gt;&lt;P&gt;uicImage.ColorSpec().SetColorSpecMethod( Enumerated );&lt;/P&gt;&lt;P&gt;uicImage.ColorSpec().SetComponentToColorMap( Direct );&lt;/P&gt;&lt;P&gt;for( int i = 0; i &amp;lt; nOfComponents; i++)&lt;/P&gt;&lt;P&gt;{&lt;/P&gt;&lt;P&gt;uicImage.ColorSpec().DataRange()&lt;I&gt;.SetAsRange8u( 255 );&lt;/I&gt;&lt;/P&gt;&lt;P&gt;}&lt;/P&gt;&lt;P&gt;uicImage.ColorSpec().SetEnumColorSpace( YCbCr ); //ImageEnumColorSpace::YCbCr&lt;/P&gt;&lt;P&gt;// yuv422Ptr is initialized elsewhere as a byte *&lt;BR /&gt;imDataPtr[0].p8u = yuv422Ptr; // 1st Y component&lt;/P&gt;&lt;P&gt;imDataPtr[1].p8u = yuv422Ptr + 1; // 1st U component&lt;/P&gt;&lt;P&gt;imDataPtr[2].p8u = yuv422Ptr + 3; // 1st V component&lt;/P&gt;&lt;P&gt;status = uicImage.Buffer().Attach( imDataPtr , dataOrder , geometry );&lt;/P&gt;&lt;P&gt;status = encoder.AttachImage( uicImage );&lt;/P&gt;&lt;P&gt;status = encoder.WriteHeader();&lt;/P&gt;&lt;P&gt;if(ExcStatusOk != status) return 0;&lt;/P&gt;&lt;BR /&gt;&amp;gt;&amp;gt;&lt;BR /&gt;thanks in advance for your help&lt;BR /&gt;Pascal</description>
      <pubDate>Thu, 07 Jul 2011 16:42:40 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Integrated-Performance/uic-jpec-encoder/m-p/793787#M2617</guid>
      <dc:creator>pas059</dc:creator>
      <dc:date>2011-07-07T16:42:40Z</dc:date>
    </item>
    <item>
      <title>uic jpec encoder</title>
      <link>https://community.intel.com/t5/Intel-Integrated-Performance/uic-jpec-encoder/m-p/793788#M2618</link>
      <description>The sampleproject you mentioned should be available on this forum. It was indended to showcase how to encode from YUY2 format to JPEG and how to decode to YUY2 fomat (instead of RGB).&lt;BR /&gt;&lt;BR /&gt;This sample should work (at least it did once posted :) )&lt;BR /&gt;&lt;BR /&gt;Vladimir</description>
      <pubDate>Thu, 07 Jul 2011 16:49:47 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Integrated-Performance/uic-jpec-encoder/m-p/793788#M2618</guid>
      <dc:creator>Vladimir_Dudnik</dc:creator>
      <dc:date>2011-07-07T16:49:47Z</dc:date>
    </item>
    <item>
      <title>uic jpec encoder</title>
      <link>https://community.intel.com/t5/Intel-Integrated-Performance/uic-jpec-encoder/m-p/793789#M2619</link>
      <description>hi Vladimir,&lt;BR /&gt;&lt;BR /&gt;i found it and i tried somthing equivalent of it, but without success. In fact, it's not possible to verify if this sample works as it is not a complete applicationexemple and so this imply to imagine the values of the input parameters! In addition, there is a "strange" parameter on the line:&lt;BR /&gt;&lt;BR /&gt;dataOrder.ReAlloc(Plane, in_image-&amp;gt;nChannels);&lt;BR /&gt;i would expect "interleaced" rather than "Plane" with YUV422 (YUY2).&lt;BR /&gt;&lt;BR /&gt;Really, what can be really helpfull, is to have a complete application exemple with project file for Visual Studio (yes, i work under windows). I already lost too much time for just evaluating the performances.&lt;BR /&gt;Is there something like this?&lt;BR /&gt;&lt;BR /&gt;thanks in advance,&lt;BR /&gt;Pascal</description>
      <pubDate>Fri, 08 Jul 2011 18:37:33 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Integrated-Performance/uic-jpec-encoder/m-p/793789#M2619</guid>
      <dc:creator>pas059</dc:creator>
      <dc:date>2011-07-08T18:37:33Z</dc:date>
    </item>
    <item>
      <title>uic jpec encoder</title>
      <link>https://community.intel.com/t5/Intel-Integrated-Performance/uic-jpec-encoder/m-p/793790#M2620</link>
      <description>Deleted and submitted issue on premier.intel.com.&lt;BR /&gt;</description>
      <pubDate>Sun, 10 Jul 2011 11:39:38 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Integrated-Performance/uic-jpec-encoder/m-p/793790#M2620</guid>
      <dc:creator>levicki</dc:creator>
      <dc:date>2011-07-10T11:39:38Z</dc:date>
    </item>
  </channel>
</rss>

