[FFmpeg-trac] #7830(avutil:new): Allocation size of input surface for qsv not takes into account alignment required by qsv

FFmpeg trac at avcodec.org
Mon Apr 8 12:12:18 EEST 2019


#7830: Allocation size of input surface for qsv not takes into account alignment
required by qsv
-------------------------------------+-------------------------------------
             Reporter:  alexandr-    |                    Owner:
  konovalov                          |
                 Type:  defect       |                   Status:  new
             Priority:  normal       |                Component:  avutil
              Version:  git-master   |               Resolution:
             Keywords:  qsv          |               Blocked By:
             Blocking:               |  Reproduced by developer:  0
Analyzed by developer:  0            |
-------------------------------------+-------------------------------------

Comment (by fulinjie):

 I'm not sure I fullly understood the root cause you've filed, but I tried
 the provided command line, and dumped the allocated memory in iHD driver:
 {{{
 [AVHWFramesContext @ 0x562ecd6063c0] Created surface 0.
 [LIBVA]:ENTER    - DdiMedia_DeriveImage
 [AVHWFramesContext @ 0x562ecd6063c0] Direct mapping possible.
 [LIBVA]:ENTER    - DdiMedia_DestroyImage
 [LIBVA]:ENTER    - DdiMedia_DestroyBuffer
 [LIBVA]:ENTER    - DdiMedia_CreateSurfaces2
 [LIBVA]:VERBOSE  - DdiMediaUtil_AllocateSurface:605: Alloc  135168 bytes
 (192 x 208 resource).
 [AVHWFramesContext @ 0x562ecd6063c0] Created surface 0x1.
 [LIBVA]:ENTER    - DdiMedia_CreateSurfaces2
 [LIBVA]:VERBOSE  - DdiMediaUtil_AllocateSurface:605: Alloc  135168 bytes
 (192 x 208 resource).
 [AVHWFramesContext @ 0x562ecd6063c0] Created surface 0x2.
 [LIBVA]:ENTER    - DdiMedia_CreateSurfaces2
 [LIBVA]:VERBOSE  - DdiMediaUtil_AllocateSurface:605: Alloc  135168 bytes
 (192 x 208 resource).
 [AVHWFramesContext @ 0x562ecd6063c0] Created surface 0x3.
 [LIBVA]:ENTER    - DdiMedia_CreateSurfaces2
 [LIBVA]:VERBOSE  - DdiMediaUtil_AllocateSurface:605: Alloc  135168 bytes
 (192 x 208 resource).
 [AVHWFramesContext @ 0x562ecd6063c0] Created surface 0x4.
 [LIBVA]:ENTER    - DdiMedia_CreateSurfaces2
 [LIBVA]:VERBOSE  - DdiMediaUtil_AllocateSurface:605: Alloc  135168 bytes
 (192 x 208 resource).
 [AVHWFramesContext @ 0x562ecd6063c0] Created surface 0x5.
 [LIBVA]:ENTER    - DdiMedia_CreateSurfaces2
 [LIBVA]:VERBOSE  - DdiMediaUtil_AllocateSurface:605: Alloc  135168 bytes
 (192 x 208 resource).
 [AVHWFramesContext @ 0x562ecd6063c0] Created surface 0x6.
 [LIBVA]:ENTER    - DdiMedia_CreateSurfaces2
 [LIBVA]:VERBOSE  - DdiMediaUtil_AllocateSurface:605: Alloc  135168 bytes
 (192 x 208 resource).
 [AVHWFramesContext @ 0x562ecd6063c0] Created surface 0x7.
 [LIBVA]:ENTER    - DdiMedia_CreateSurfaces2
 [LIBVA]:VERBOSE  - DdiMediaUtil_AllocateSurface:605: Alloc  135168 bytes
 (192 x 208 resource).
 [AVHWFramesContext @ 0x562ecd6063c0] Created surface 0x8.
 [LIBVA]:ENTER    - DdiMedia_CreateSurfaces2
 [LIBVA]:VERBOSE  - DdiMediaUtil_AllocateSurface:605: Alloc  135168 bytes
 (192 x 208 resource).
 [AVHWFramesContext @ 0x562ecd6063c0] Created surface 0x9.
 [LIBVA]:ENTER    - DdiMedia_CreateSurfaces2
 [LIBVA]:VERBOSE  - DdiMediaUtil_AllocateSurface:605: Alloc  135168 bytes
 (192 x 208 resource).
 [AVHWFramesContext @ 0x562ecd6063c0] Created surface 0xa.
 [LIBVA]:ENTER    - DdiMedia_CreateSurfaces2
 [LIBVA]:VERBOSE  - DdiMediaUtil_AllocateSurface:605: Alloc  135168 bytes
 (192 x 208 resource).
 }}}

 The result shows that the allocated surface is enough(192 x 208, which
 means height is the aligned value).

--
Ticket URL: <https://trac.ffmpeg.org/ticket/7830#comment:1>
FFmpeg <https://ffmpeg.org>
FFmpeg issue tracker


More information about the FFmpeg-trac mailing list