Skip to content
Snippets Groups Projects
  1. Oct 11, 2018
    • Zhong Li's avatar
      lavu/qsv: make a copy as libmfx alignment requirement for uploading · 681aa7d1
      Zhong Li authored
      
      Libmfx requires 16 bytes aligned input/output for uploading.
      Currently only output is 16 byte aligned and assigning same width/height to
      input with smaller buffer size actually, thus definitely will cause segment fault.
      
      Can reproduce with any 1080p nv12 rawvideo input:
      ffmpeg -init_hw_device qsv=qsv:hw -hwaccel qsv -filter_hw_device qsv -f rawvideo -pix_fmt nv12 -s:v 1920x1080
      -i 1080p_nv12.yuv -vf 'format=nv12,hwupload=extra_hw_frames=16,hwdownload,format=nv12' -an -y out_nv12.yuv
      
      It can fix #7418
      
      Signed-off-by: default avatarZhong Li <zhong.li@intel.com>
      681aa7d1
    • Zhong Li's avatar
      lavu/hwcontext_qsv: Add support for AV_PIX_FMT_BGRA. · a5e1cb9e
      Zhong Li authored
      
      RGB32(AV_PIX_FMT_BGRA on intel platforms) format may be used as overlay with alpha blending.
      So add AV_PIX_FMT_BGRA format support.
      
      One example of alpha blending overlay: ffmpeg -hwaccel qsv -c:v h264_qsv -i BA1_Sony_D.jsv
      -filter_complex 'movie=lena-rgba.png,hwupload=extra_hw_frames=16[a];[0:v][a]overlay_qsv=x=10:y=10'
      -c:v h264_qsv -y out.mp4
      
      Rename RGB32 to be BGRA to make it clearer as Mark Thompson's suggestion.
      
      V2: Add P010 format support else will introduce HEVC 10bit encoding regression.
          Thanks for LinJie's discovery.
      
      Signed-off-by: default avatarZhong Li <zhong.li@intel.com>
      Verified-by: default avatarFu, Linjie <linjie.fu@intel.com>
      a5e1cb9e
  2. Oct 07, 2018
  3. Oct 03, 2018
  4. Sep 23, 2018
    • Mark Thompson's avatar
      hwcontext_vaapi: Improve format mapping · 40724026
      Mark Thompson authored
      Give the entries in the VAAPI format map table an explicit type and add
      functions to do the necessary lookups.  Add another field to this table
      indicating whether the chroma planes are swapped (as in YV12), and use
      that rather than explicit comparisons where swapping is needed.
      40724026
    • Mark Thompson's avatar
      hwcontext_vaapi: Improve logging around quirk detection · 852c7ba3
      Mark Thompson authored
      Clarify that the list is the naughty list, and therefore being on it is
      not desirable.  The i965 driver does not need to be on the list after
      version 2.0 (when the standard parameter buffer rendering behaviour was
      changed).
      852c7ba3
  5. Sep 21, 2018
  6. Sep 14, 2018
  7. Sep 12, 2018
  8. Sep 09, 2018
  9. Sep 04, 2018
  10. Sep 02, 2018
  11. Aug 14, 2018
  12. Aug 11, 2018
  13. Aug 05, 2018
  14. Aug 01, 2018
  15. Jul 31, 2018
    • Jun Zhao's avatar
      avutil/pixelutils: sad_32x32 sse2/avx2 optimizations. · d36b8394
      Jun Zhao authored
      
      add ff_pixelutils_sad_32x32_sse2, ff_pixelutils_sad_{a,u}_32x32_sse2,
      ff_pixelutils_sad_32x32_avx22, ff_pixelutils_sad_{a,u}_32x32_avx2
      
      use perf record/report profiling, get instructions:u for avx2 sad_32x32:
      
        72.05%  pixelutils  pixelutils     [.] block_sad_32x32_c
        18.50%  pixelutils  pixelutils     [.] block_sad_16x16_c
         4.78%  pixelutils  pixelutils     [.] block_sad_8x8_c
         2.69%  pixelutils  pixelutils     [.] block_sad_4x4_c
         0.89%  pixelutils  pixelutils     [.] block_sad_2x2_c
         0.16%  pixelutils  pixelutils     [.] ff_pixelutils_sad_32x32_avx2
         0.16%  pixelutils  pixelutils     [.] ff_pixelutils_sad_u_32x32_avx2
         0.12%  pixelutils  pixelutils     [.] ff_pixelutils_sad_a_32x32_avx2
      
      sse2 sad_32x32 instructions:u like:
      
        71.86%  pixelutils  pixelutils     [.] block_sad_32x32_c
        18.42%  pixelutils  pixelutils     [.] block_sad_16x16_c
         4.81%  pixelutils  pixelutils     [.] block_sad_8x8_c
         2.68%  pixelutils  pixelutils     [.] block_sad_4x4_c
         0.88%  pixelutils  pixelutils     [.] block_sad_2x2_c
         0.29%  pixelutils  pixelutils     [.] ff_pixelutils_sad_32x32_sse2
         0.26%  pixelutils  pixelutils     [.] ff_pixelutils_sad_u_32x32_sse2
         0.23%  pixelutils  pixelutils     [.] ff_pixelutils_sad_a_32x32_sse2
      
      Signed-off-by: default avatarJun Zhao <mypopydev@gmail.com>
      d36b8394
    • Jun Zhao's avatar
      lavutil/pixelutils: add sad_32x32 in pixelutils API. · b8bf7408
      Jun Zhao authored
      
      add sad_32x32 in pixelutils API, and update the fate.
      
      Signed-off-by: default avatarJun Zhao <mypopydev@gmail.com>
      b8bf7408
  16. Jul 25, 2018
  17. Jul 20, 2018
  18. Jul 19, 2018
  19. Jul 11, 2018
  20. Jun 28, 2018
  21. Jun 27, 2018
  22. Jun 24, 2018
  23. Jun 22, 2018
  24. Jun 21, 2018
  25. Jun 17, 2018
Loading