1. 03 Jul, 2012 1 commit
  2. 02 Jul, 2012 14 commits
  3. 01 Jul, 2012 12 commits
  4. 30 Jun, 2012 10 commits
  5. 29 Jun, 2012 3 commits
    • Mans Rullgard's avatar
      x86: vc1: fix and enable optimised loop filter · f2fd1678
      Mans Rullgard authored
      The problem is that the ssse3 psign instruction does the wrong
      thing here.  Commit ea60dfe2 incorrectly removed a macro emulating
      this instruction for pre-ssse3 code.  However, the emulation is
      incorrect, and the code relies on the behaviour of the macro.
      Specifically, the psign sets destination elements to zero where
      the corresponding source element is zero, whereas the emulation
      only negates destination elements where the source is negative.
      
      Furthermore, the PSIGNW_MMX macro in x86util.asm is totally bogus,
      which is why the original VC-1 code had an additional right shift
      when using it.  Since the psign instruction cannot be used here,
      skip all the macro hell and use the working instruction sequence
      directly.
      
      None of this was noticed due a stray return statement in
      ff_vc1dsp_init_mmx() which meant that only the mmx version of the
      loop filter was ever used (before being removed in ea60dfe2).
      Signed-off-by: 's avatarMans Rullgard <mans@mansr.com>
      f2fd1678
    • Ronald S. Bultje's avatar
      file: Only include unistd.h if it exists · 3b1ab197
      Ronald S. Bultje authored
      It is included for the open/read/write/close functions. On
      MSVC, where this header does not exist, the same functions
      are provided by io.h, which is already included.
      
      On windows, these functions are provided by io.h. Make sure
      io.h is included if it exists, regardless of the setmode
      function.
      Signed-off-by: 's avatarMartin Storsjö <martin@martin.st>
      3b1ab197
    • Ronald S. Bultje's avatar
      random_seed: Only read /dev/*random if we have unistd.h · f9851130
      Ronald S. Bultje authored
      unistd.h is used for open/read/close, but if this header does not
      exist, there's probably no use in trying to open /dev/*random
      at all.
      Signed-off-by: 's avatarMartin Storsjö <martin@martin.st>
      f9851130