1. 04 Dec, 2018 1 commit
  2. 06 Nov, 2018 1 commit
  3. 14 Aug, 2018 1 commit
  4. 03 Apr, 2018 1 commit
    • wm4's avatar
      avutil/pixdesc: deprecate AV_PIX_FMT_FLAG_PSEUDOPAL · d6fc031c
      wm4 authored
      PSEUDOPAL pixel formats are not paletted, but carried a palette with the
      intention of allowing code to treat unpaletted formats as paletted. The
      palette simply mapped the byte values to the resulting RGB values,
      making it some sort of LUT for RGB conversion.
      
      It was used for 1 byte formats only: RGB4_BYTE, BGR4_BYTE, RGB8, BGR8,
      GRAY8. The first 4 are awfully obscure, used only by some ancient bitmap
      formats. The last one, GRAY8, is more common, but its treatment is
      grossly incorrect. It considers full range GRAY8 only, so GRAY8 coming
      from typical Y video planes was not mapped to the correct RGB values.
      This cannot be fixed, because AVFrame.color_range can be freely changed
      at runtime, and there is nothing to ensure the pseudo palette is
      updated.
      
      Also, nothing actually used the PSEUDOPAL palette data, except xwdenc
      (trivially changed in the previous commit). All other code had to treat
      it as a special case, just to ignore or to propagate palette data.
      
      In conclusion, this was just a very strange old mechnaism that has no
      real justification to exist anymore (although it may have been nice and
      useful in the past). Now it's an artifact that makes the API harder to
      use: API users who allocate their own pixel data have to be aware that
      they need to allocate the palette, or FFmpeg will crash on them in
      _some_ situations. On top of this, there was no API to allocate the
      pseuo palette outside of av_frame_get_buffer().
      
      This patch not only deprecates AV_PIX_FMT_FLAG_PSEUDOPAL, but also makes
      the pseudo palette optional. Nothing accesses it anymore, though if it's
      set, it's propagated. It's still allocated and initialized for
      compatibility with API users that rely on this feature. But new API
      users do not need to allocate it. This was an explicit goal of this
      patch.
      
      Most changes replace AV_PIX_FMT_FLAG_PSEUDOPAL with FF_PSEUDOPAL. I
      first tried #ifdefing all code, but it was a mess. The FF_PSEUDOPAL
      macro reduces the mess, and still allows defining FF_API_PSEUDOPAL to 0.
      
      Passes FATE with FF_API_PSEUDOPAL enabled and disabled. In addition,
      FATE passes with FF_API_PSEUDOPAL set to 1, but with allocation
      functions manually changed to not allocating a palette.
      d6fc031c
  5. 03 Mar, 2018 1 commit
  6. 23 Mar, 2017 1 commit
  7. 20 Mar, 2017 6 commits
  8. 14 Dec, 2016 1 commit
  9. 14 Nov, 2016 1 commit
  10. 09 Nov, 2016 2 commits
  11. 07 Nov, 2016 1 commit
  12. 27 Sep, 2016 2 commits
  13. 17 Aug, 2016 1 commit
  14. 16 Jul, 2016 1 commit
  15. 11 Jul, 2016 1 commit
  16. 30 Jun, 2016 1 commit
  17. 04 May, 2016 1 commit
  18. 08 Apr, 2016 1 commit
  19. 01 Apr, 2016 1 commit
  20. 31 Mar, 2016 2 commits
    • Pedro Arthur's avatar
      swscale: cleanup unused code · 6de58b49
      Pedro Arthur authored
      Removed previous swscale code under '#ifndef NEW_FILTER'
      and removed unused fields of SwsContext
      6de58b49
    • Clément Bœsch's avatar
      sws/aarch64: add ff_hscale_8_to_15_neon · 263eb76b
      Clément Bœsch authored
      ./ffmpeg -nostats -f lavfi -i testsrc2=4k:d=2 -vf bench=start,scale=1024x1024,bench=stop -f null -
      
          before: t:0.489726 avg:0.489883 max:0.491852 min:0.489482
          after:  t:0.256515 avg:0.256458 max:0.256999 min:0.253755
      263eb76b
  21. 28 Mar, 2016 1 commit
  22. 01 Mar, 2016 1 commit
  23. 14 Jan, 2016 5 commits
  24. 29 Oct, 2015 1 commit
  25. 13 Oct, 2015 1 commit
    • Pedro Arthur's avatar
      swscale: fix ticket #4881 · 5bd62a1b
      Pedro Arthur authored
      When scaling only a slice of a frame the output was written always
      in the first lines leaving the rest of the frame black.
      5bd62a1b
  26. 10 Sep, 2015 1 commit
  27. 07 Sep, 2015 1 commit
  28. 04 Sep, 2015 1 commit