<?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 This is perfect. For some in Media (Intel® Video Processing Library, Intel Media SDK)</title>
    <link>https://community.intel.com/t5/Media-Intel-Video-Processing/mfxFrameSurface1-Pitch-size/m-p/1140853#M11746</link>
    <description>&lt;P&gt;I found that function myself before but that pitch is a local variable in that function (line 171) and it is used to allocate the surface size.&lt;BR /&gt;But It is never set to to the&amp;nbsp;mfxFrameSurface1.data.pitch.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;UPDATE&amp;nbsp;as i was looking at&amp;nbsp;https://software.intel.com/en-us/node/628470&amp;nbsp;mfxFrameData struct I see that pitch is a union and I now understand because I see that PItchLow is set in the&amp;nbsp;LockFrame. PitchLow is actually Pitch pretty much.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;Thanks you pointed me to the right file&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 08 May 2019 03:49:00 GMT</pubDate>
    <dc:creator>bingol__evren</dc:creator>
    <dc:date>2019-05-08T03:49:00Z</dc:date>
    <item>
      <title>mfxFrameSurface1 Pitch size</title>
      <link>https://community.intel.com/t5/Media-Intel-Video-Processing/mfxFrameSurface1-Pitch-size/m-p/1140849#M11742</link>
      <description>&lt;P&gt;How and where does pitch get set? I see that&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Encoder has a line&amp;nbsp;&lt;BR /&gt;MSDK_MEMCPY_VAR(m_pVppSurfaces&lt;I&gt;.Info, &amp;amp;(m_mfxVppParams.mfx.FrameInfo), sizeof(mfxFrameInfo));&lt;/I&gt;&lt;/P&gt;&lt;P&gt;This line&amp;nbsp; sets the info struct of&amp;nbsp;&amp;nbsp;mfxFrameSurface1&lt;BR /&gt;But where does the surface.data.pitch get set of&amp;nbsp;mfxFrameSurface1&lt;BR /&gt;Does it automatically mults width by 8 bytes and since we alight the width with&amp;nbsp;MSDK_ALIGN16 ?&lt;BR /&gt;&lt;BR /&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Tue, 07 May 2019 07:50:18 GMT</pubDate>
      <guid>https://community.intel.com/t5/Media-Intel-Video-Processing/mfxFrameSurface1-Pitch-size/m-p/1140849#M11742</guid>
      <dc:creator>bingol__evren</dc:creator>
      <dc:date>2019-05-07T07:50:18Z</dc:date>
    </item>
    <item>
      <title>Hi Evren,</title>
      <link>https://community.intel.com/t5/Media-Intel-Video-Processing/mfxFrameSurface1-Pitch-size/m-p/1140850#M11743</link>
      <description>&lt;P&gt;Hi Evren,&lt;/P&gt;&lt;P&gt;The macro is defined &lt;A href="https://github.com/Intel-Media-SDK/MediaSDK/blob/ec44711b13b1051e2bcfea3bd7455bea732cb93c/samples/sample_common/include/vm/strings_defs.h#L69"&gt;here&lt;/A&gt;, so it belongs to our sample code.&lt;/P&gt;&lt;P&gt;The usage can be found in &lt;A href="https://github.com/Intel-Media-SDK/MediaSDK/blob/ec44711b13b1051e2bcfea3bd7455bea732cb93c/samples/sample_common/src/sample_utils.cpp"&gt;sample_utils.cpp&lt;/A&gt; in common directory, so the real value will be filled when dealing with actual input/output video data, like &lt;A href="https://github.com/Intel-Media-SDK/MediaSDK/blob/ec44711b13b1051e2bcfea3bd7455bea732cb93c/samples/sample_common/src/sample_utils.cpp#L155"&gt;function CSmplYUVReader::LoadNextFrame()&lt;/A&gt;.&lt;/P&gt;&lt;P&gt;Let me know if this answers your question.&lt;/P&gt;&lt;P&gt;Mark&lt;/P&gt;</description>
      <pubDate>Tue, 07 May 2019 21:23:28 GMT</pubDate>
      <guid>https://community.intel.com/t5/Media-Intel-Video-Processing/mfxFrameSurface1-Pitch-size/m-p/1140850#M11743</guid>
      <dc:creator>Mark_L_Intel1</dc:creator>
      <dc:date>2019-05-07T21:23:28Z</dc:date>
    </item>
    <item>
      <title>Hi Mark.That does not answer</title>
      <link>https://community.intel.com/t5/Media-Intel-Video-Processing/mfxFrameSurface1-Pitch-size/m-p/1140851#M11744</link>
      <description>&lt;P&gt;Hi Mark.&lt;BR /&gt;That does not answer my question. My question is not the macro.&amp;nbsp;&lt;BR /&gt;My question is HOW and Where does the&amp;nbsp;pData.Pitch get set in Load Next frame.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;How does the system calculate the PITCH value ?&amp;nbsp;&lt;BR /&gt;In the encoder example we never set the pitch, so it must be calculated somewhere. I&amp;nbsp; know how pitch is usually calculated and what it means but I can not see the code that sets that value in the example or commons sample code.&amp;nbsp;&lt;BR /&gt;thanks&lt;/P&gt;</description>
      <pubDate>Tue, 07 May 2019 21:37:00 GMT</pubDate>
      <guid>https://community.intel.com/t5/Media-Intel-Video-Processing/mfxFrameSurface1-Pitch-size/m-p/1140851#M11744</guid>
      <dc:creator>bingol__evren</dc:creator>
      <dc:date>2019-05-07T21:37:00Z</dc:date>
    </item>
    <item>
      <title>Hi Evren,</title>
      <link>https://community.intel.com/t5/Media-Intel-Video-Processing/mfxFrameSurface1-Pitch-size/m-p/1140852#M11745</link>
      <description>&lt;P&gt;Hi Evren,&lt;/P&gt;&lt;P&gt;Since different frame type might have different pitch, I think this could be implementation of the virtual frame allocation function, here may be one of them:&lt;/P&gt;&lt;P&gt;&lt;A href="https://github.com/Intel-Media-SDK/MediaSDK/blob/238f5a2a6f2ec6044d3ac6035adccadd7aac7fd1/_studio/shared/src/libmfx_allocator.cpp#L150" target="_blank"&gt;https://github.com/Intel-Media-SDK/MediaSDK/blob/238f5a2a6f2ec6044d3ac6035adccadd7aac7fd1/_studio/shared/src/libmfx_allocator.cpp#L150&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Is this helpful?&lt;/P&gt;&lt;P&gt;Mark&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 07 May 2019 22:04:45 GMT</pubDate>
      <guid>https://community.intel.com/t5/Media-Intel-Video-Processing/mfxFrameSurface1-Pitch-size/m-p/1140852#M11745</guid>
      <dc:creator>Mark_L_Intel1</dc:creator>
      <dc:date>2019-05-07T22:04:45Z</dc:date>
    </item>
    <item>
      <title>This is perfect. For some</title>
      <link>https://community.intel.com/t5/Media-Intel-Video-Processing/mfxFrameSurface1-Pitch-size/m-p/1140853#M11746</link>
      <description>&lt;P&gt;I found that function myself before but that pitch is a local variable in that function (line 171) and it is used to allocate the surface size.&lt;BR /&gt;But It is never set to to the&amp;nbsp;mfxFrameSurface1.data.pitch.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;UPDATE&amp;nbsp;as i was looking at&amp;nbsp;https://software.intel.com/en-us/node/628470&amp;nbsp;mfxFrameData struct I see that pitch is a union and I now understand because I see that PItchLow is set in the&amp;nbsp;LockFrame. PitchLow is actually Pitch pretty much.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;Thanks you pointed me to the right file&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 08 May 2019 03:49:00 GMT</pubDate>
      <guid>https://community.intel.com/t5/Media-Intel-Video-Processing/mfxFrameSurface1-Pitch-size/m-p/1140853#M11746</guid>
      <dc:creator>bingol__evren</dc:creator>
      <dc:date>2019-05-08T03:49:00Z</dc:date>
    </item>
    <item>
      <title>Good to know you have solve</title>
      <link>https://community.intel.com/t5/Media-Intel-Video-Processing/mfxFrameSurface1-Pitch-size/m-p/1140854#M11747</link>
      <description>&lt;P&gt;Good to know you have solve the problem and thanks for the feedback.&lt;/P&gt;&lt;P&gt;Mark&lt;/P&gt;</description>
      <pubDate>Tue, 18 Jun 2019 22:08:23 GMT</pubDate>
      <guid>https://community.intel.com/t5/Media-Intel-Video-Processing/mfxFrameSurface1-Pitch-size/m-p/1140854#M11747</guid>
      <dc:creator>Mark_L_Intel1</dc:creator>
      <dc:date>2019-06-18T22:08:23Z</dc:date>
    </item>
  </channel>
</rss>

