1. 13 Jan, 2016 4 commits
  2. 12 Jan, 2016 7 commits
    • Anton Khirnov's avatar
      nvenc: generate dts properly · c59fec78
      Anton Khirnov authored
      When there is a non-zero decoding delay due to reordering, the first dts
      should be lower than the first pts (since the first packet fed to the
      decoder does not produce any output).
      
      Use the same scheme used in mpegvideo_enc (which comes from x264
      originally) -- wait for first two timestamps and extrapolate linearly to
      the past to produce the first dts value.
      c59fec78
    • Anton Khirnov's avatar
      nvenc: fix encoding with B-frames · 9d36cab4
      Anton Khirnov authored
      When B-frames are enabled and the encoder returns success, all currently
      pending buffers immediately become valid and can be returned to the
      caller. We can only return one packet at a time, so all the other
      pending buffers should be transferred to a new 'ready' fifo, from where
      they can be returned in subsequent calls (in which the encoder does not
      produce any new output). This bug was hidden by the incorrect testing of
      the encoder return value (the return value was overwritten before it was
      tested).
      9d36cab4
    • Anton Khirnov's avatar
      nvenc: flush the encoder before closing it, as required by the docs · aac7d6b2
      Anton Khirnov authored
      Otherwise, closing the encoder can crash.
      aac7d6b2
    • Anton Khirnov's avatar
      nvenc: rename encoders · ee359c72
      Anton Khirnov authored
      Change 'nvenc_<codec>' to '<codec>_nvenc', which is consistent with
      other similar decoders and encoders (QSV, MMAL).
      ee359c72
    • Anton Khirnov's avatar
      nvenc: better error handling · 39571e86
      Anton Khirnov authored
      Return proper error codes and print more descriptive error messages.
      39571e86
    • Anton Khirnov's avatar
      movenc-test: stop setting the GLOBAL_HEADER codec flag · 9cce011b
      Anton Khirnov authored
      This test does no encoding, setting the flag was done just to silence
      the warning removed in the previous commit.
      9cce011b
    • Anton Khirnov's avatar
      mux: drop the warning about global headers · 521dc783
      Anton Khirnov authored
      The AVStream codec context is often not (and should not be) the actual
      encoding context, so this warning will be spurious in many cases.
      521dc783
  3. 11 Jan, 2016 8 commits
  4. 08 Jan, 2016 1 commit
  5. 07 Jan, 2016 8 commits
  6. 04 Jan, 2016 2 commits
  7. 03 Jan, 2016 2 commits
  8. 01 Jan, 2016 3 commits
  9. 31 Dec, 2015 1 commit
  10. 30 Dec, 2015 1 commit
    • Janne Grunau's avatar
      x86: use emms after ff_int32_to_float_fmul_scalar_sse · 8563f988
      Janne Grunau authored
      Intel's Instruction Set Reference (as of September 2015) clearly states
      that cvtpi2ps switches to MMX state. Actual CPUs do not switch if the
      source is a memory location. The Instruction Set Reference from 1999
      (Order Number 243191) describes this behaviour but all later versions
      I've seen have make no distinction whether MMX registers or memory is
      used as source.
      The documentation for the matching SSE2 instruction to convert to double
      (cvtpi2pd) was fixed (see the valgrind bug
      https://bugs.kde.org/show_bug.cgi?id=210264).
      
      It will take time to get a clarification and fixes in place. In the
      meantime it makes sense to change ff_int32_to_float_fmul_scalar_sse to
      be correct according to the documentation. The vast majority of users
      will have SSE2 so a change to the SSE version has little effect.
      
      Fixes fate-checkasm on x86 valgrind targets.
      
      Valgrind 'bug' reported as https://bugs.kde.org/show_bug.cgi?id=357059
      8563f988
  11. 29 Dec, 2015 2 commits
  12. 26 Dec, 2015 1 commit