summaryrefslogtreecommitdiff
path: root/libavcodec/mediacodec_surface.c
Commit message (Collapse)AuthorAge
* avcodec/mediacodec_surface: define and use FFANativeWindow to mimic NDK ↵Aman Gupta2019-09-10
| | | | | | | | | interface This will make it easy to switch to ANativeWindow_fromSurface and ANativeWindow_release in the future. Signed-off-by: Aman Gupta <aman@tmm1.net>
* avcodec/mediacodec_surface: drop unnecessary local variableAman Gupta2019-09-09
| | | | Signed-off-by: Aman Gupta <aman@tmm1.net>
* lavc/ffjni: replace ff_jni_{attach,detach} with ff_jni_get_envMatthieu Bouron2016-07-27
| | | | | | | | | | | | | | 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.
* lavc: add mediacodec hwaccel supportMatthieu Bouron2016-07-08