1. 12 Oct, 2018 1 commit
  2. 12 Mar, 2018 1 commit
  3. 08 Mar, 2018 2 commits
    • Aman Gupta's avatar
    • Aman Gupta's avatar
      avcodec/mediacodecdec: add delay_flush option · 2a0eb868
      Aman Gupta authored
      The default behavior of the mediacodec decoder before this commit
      was to delay flushes until all pending hardware frames were
      returned to the decoder. This was useful for certain types of
      applications, but was unexpected behavior for others.
      
      The new default behavior with this commit is now to execute
      flushes immediately to invalidate all pending frames. The old
      behavior can be enabled by setting delay_flush=1.
      
      With the new behavior, video players implementing seek can simply
      call flush on the decoder without having to worry about whether
      they have one or more mediacodec frames still buffered in their
      rendering pipeline. Previously, all these frames had to be
      explictly freed (or rendered) before the seek/flush would execute.
      
      The new behavior matches the behavior of all other lavc decoders,
      reducing the amount of special casing required when using the
      mediacodec decoder.
      Signed-off-by: 's avatarAman Gupta <aman@tmm1.net>
      Signed-off-by: 's avatarMatthieu Bouron <matthieu.bouron@gmail.com>
      2a0eb868
  4. 26 Nov, 2017 1 commit
  5. 23 Mar, 2017 1 commit
  6. 19 Oct, 2016 1 commit
  7. 18 Oct, 2016 1 commit
  8. 03 Aug, 2016 1 commit
  9. 27 Jul, 2016 1 commit
    • Matthieu Bouron's avatar
      lavc/ffjni: replace ff_jni_{attach,detach} with ff_jni_get_env · 376d8fb2
      Matthieu Bouron authored
      If a JNI environment is not already attached to the thread where the
      MediaCodec calls are made the current implementation will attach /
      detach an environment for each MediaCodec call wasting some CPU time.
      
      ff_jni_get_env replaces ff_jni_{attach,detach} by permanently attaching
      an environment (if it is not already the case) to the current thread.
      The environment will be automatically detached at the thread destruction
      using a pthread_key callback.
      
      Saves around 5% of CPU time (out of 20%) while decoding a stream with
      MediaCodec.
      376d8fb2
  10. 08 Jul, 2016 1 commit