Skip to content
Snippets Groups Projects
  1. Aug 14, 2018
  2. Jun 10, 2018
    • Carl Eugen Hoyos's avatar
      lsws/rgb2rgb_template: Do not compile unneeded shuffle functions on big-endian. · 3a56ade1
      Carl Eugen Hoyos authored
      Fixes the following warnings:
      In file included from libswscale/rgb2rgb.c:128:0:
      libswscale/rgb2rgb_template.c:346:13: warning: 'shuffle_bytes_3210_c' defined but not used
      libswscale/rgb2rgb_template.c:346:13: warning: 'shuffle_bytes_3012_c' defined but not used
      libswscale/rgb2rgb_template.c:346:13: warning: 'shuffle_bytes_1230_c' defined but not used
      3a56ade1
  3. May 05, 2018
  4. Apr 22, 2018
  5. Apr 16, 2018
  6. Apr 03, 2018
    • 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
  7. Mar 31, 2018
  8. Mar 24, 2018
  9. Mar 03, 2018
  10. Mar 02, 2018
  11. Nov 13, 2017
    • Thomas Köppe's avatar
      Fix missing used attribute for inline assembly variables · 43171a2a
      Thomas Köppe authored
      
      Variables used in inline assembly need to be marked with attribute((used)).
      Static constants already were, via the define of DECLARE_ASM_CONST.
      But DECLARE_ALIGNED does not add this attribute, and some of the variables
      defined with it are const only used in inline assembly, and therefore
      appeared dead. This change adds a macro DECLARE_ASM_ALIGNED that marks
      variables as used.
      
      This change makes FFMPEG work with Clang's ThinLTO.
      
      Signed-off-by: default avatarMichael Niedermayer <michael@niedermayer.cc>
      43171a2a
  12. Oct 29, 2017
  13. Oct 25, 2017
  14. Oct 23, 2017
  15. Oct 11, 2017
  16. Oct 10, 2017
  17. Sep 22, 2017
  18. Aug 28, 2017
  19. Aug 25, 2017
  20. Aug 24, 2017
  21. Aug 07, 2017
  22. Aug 05, 2017
  23. Jul 30, 2017
  24. Jul 10, 2017
    • Diego Biurrun's avatar
      build: Add feature test macros for glibc 2.19+ · 825e463a
      Diego Biurrun authored
      glibc introduced _DEFAULT_SOURCE in version 2.19 to replace _BSD_SOURCE and
      _SVID_SOURCE, which were deprecated in version 2.20. Add _DEFAULT_SOURCE
      where the latter two are used to be forwards-compatible and avoid warnings
      about the use of deprecated definitions.
      825e463a
  25. Jun 21, 2017
  26. Apr 30, 2017
  27. Apr 24, 2017
  28. Apr 15, 2017
  29. Apr 13, 2017
  30. Apr 12, 2017
Loading