Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | avcodec/mediacodec_wrapper: use MediaCodecInfo.isSoftwareOnly() when available | sfan5 | 2021-03-10 | 1 | -0/+13 |
| | | | | | Added in Android 10 it provides a reliable way of filtering out software decoders, unlike existing string-based checks. | ||||
* | avcodec/mediacodec_wrapper: check if codec is software earlier | sfan5 | 2021-03-10 | 1 | -56/+57 |
| | |||||
* | avcodec/mediacodec_wrapper: fix {input,output}_buffers global reference leak | Matthieu Bouron | 2020-04-15 | 1 | -0/+6 |
| | | | | | | Fixes ticket #8607. Signed-off-by: Matthieu Bouron <matthieu.bouron@gmail.com> | ||||
* | avcodec/mediacodec_wrapper: remove unused local variables in ↵ | Matthieu Bouron | 2019-07-22 | 1 | -10/+0 |
| | | | | ff_AMediaCodec_getCodecNameByType() | ||||
* | avcodec/mediacodec_wrapper: fix a potential local reference leak in ↵ | Matthieu Bouron | 2019-07-22 | 1 | -0/+5 |
| | | | | ff_AMediaCodec_getCodecNameByType() | ||||
* | avcodec/mediacodec_wrapper: fix a local reference leak in ↵ | Matthieu Bouron | 2019-07-22 | 1 | -0/+4 |
| | | | | ff_AMediaCodec_getName() | ||||
* | avcodec/mediacodec: add av_mediacodec_render_buffer_at_time() | Aman Gupta | 2018-10-11 | 1 | -1/+1 |
| | | | | | | | | | | The existing av_mediacodec_release_buffer allows the user to render or discard the Surface-backed frame. This new method allows the user to control exactly when the frame will be rendered to its SurfaceView. Available since Android API 21. Signed-off-by: Aman Gupta <aman@tmm1.net> | ||||
* | avcodec/mediacodec_wrapper: add helper to fetch SDK_INT | Aman Gupta | 2018-05-04 | 1 | -0/+15 |
| | | | | | Signed-off-by: Matthieu Bouron <matthieu.bouron@gmail.com> Signed-off-by: Aman Gupta <aman@tmm1.net> | ||||
* | avcodec: Fix AVClass .version | Michael Niedermayer | 2018-04-19 | 1 | -2/+2 |
| | | | | Signed-off-by: Michael Niedermayer <michael@niedermayer.cc> | ||||
* | avcodec/mediacodec_wrapper: fix false positives in swdec blacklist | Stefan _ | 2018-03-07 | 1 | -1/+1 |
| | | | | | 'OMX.SEC.avc.dec' is a valid hardware decoder, while the decoders we seek to blacklist all match 'OMX.SEC.*.sw.dec'. | ||||
* | avcodec/mediacodec_wrapper: blacklist more software decoders | Stefan _ | 2018-03-06 | 1 | -1/+6 |
| | | | | | | | | Additionally blacklist ffmpeg, Samsung and Qualcomm software implementations offered through MediaCodec. Signed-off-by: Aman Gupta <aman@tmm1.net> Signed-off-by: Matthieu Bouron <matthieu.bouron@gmail.com> | ||||
* | avcodec/mediacodec_wrapper: load and use MediaFormat.constainsKey() | Matthieu Bouron | 2018-03-03 | 1 | -0/+39 |
| | | | | | Avoids triggering an exception in MediaFormat getter functions if the key does not exist. | ||||
* | lavc/mediacodec_wrapper: allocate MediaCodec.BufferInfo once | Matthieu Bouron | 2018-01-06 | 1 | -27/+34 |
| | |||||
* | lavc/mediacodec_wrapper: fix potential jni global reference leak | Matthieu Bouron | 2017-12-16 | 1 | -0/+3 |
| | |||||
* | lavc/mediacodec_wrapper: factorize MediaCodec creation functions | Matthieu Bouron | 2017-12-16 | 1 | -133/+29 |
| | |||||
* | lavc/mediacodec_wrapper: fix jni vaargs types | Matthieu Bouron | 2017-09-15 | 1 | -5/+5 |
| | | | | Fixes decoding on 32-bit devices with Android NDK >= 15. | ||||
* | lavc/mediacodec_wrapper: do not declare ↵ | Matthieu Bouron | 2017-05-23 | 1 | -3/+3 |
| | | | | JNIAMedia{Codec,CodecList,Format}Fields on the stack | ||||
* | lavc/mediacodec_wrapper: fix local reference leaks | Matthieu Bouron | 2017-05-23 | 1 | -11/+26 |
| | |||||
* | lavc/mediacodec_wrapper: fix local reference leaks | Matthieu Bouron | 2017-05-11 | 1 | -21/+42 |
| | | | | Reviewed-by: Clément Bœsch <u@pkh.me> | ||||
* | lavc/mediacodec_wrapper: do not discard codecs reporting they do not support ↵ | Matthieu Bouron | 2016-10-19 | 1 | -0/+3 |
| | | | | | | | any profile Depending on the device, some (VP8/VP9/...) decoders report that they do not support any profiles. | ||||
* | lavc: add hevc mediacodec decoder | Matthieu Bouron | 2016-09-15 | 1 | -3/+20 |
| | |||||
* | lavc/ffjni: replace ff_jni_{attach,detach} with ff_jni_get_env | Matthieu Bouron | 2016-07-27 | 1 | -161/+39 |
| | | | | | | | | | | | | | | 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 support | Matthieu Bouron | 2016-07-08 | 1 | -4/+1 |
| | |||||
* | lavc/mediacodec: re-indent after previous commit | Matthieu Bouron | 2016-06-15 | 1 | -93/+93 |
| | |||||
* | lavc/mediacodec: refactor ff_AMediaCodecList_getCodecByType | Matthieu Bouron | 2016-06-15 | 1 | -71/+206 |
| | | | | | | | | | | | | | Allows to select a codec (encoder or decoder) only if it supports a specific profile. Adds ff_AMediaCodecProfile_getProfileFromAVCodecContext to convert an AVCodecContext profile to a MediaCodec profile. It only supports H264 for now. The codepath using MediaCodecList.findDecoderForFormat() (Android >= 5.0) has been dropped as this method does not allow to select a decoder compatible with a specific profile. | ||||
* | lavc/mediacodec: bypass width/height restrictions when looking for a decoder | Matthieu Bouron | 2016-06-07 | 1 | -9/+28 |
| | | | | | | | | | Codec width/height restrictions seem hardcoded at the OMX level and seem arbitrary. Bypassing those restrictions allows a device to decode streams at higher resolutions. For example it allows a Nexus 5 to decode h264 streams with a resolution higher than 1920x1080. | ||||
* | lavc/mediacodec: rename MediaFormat field clazz to mediaformat_class for ↵ | Matthieu Bouron | 2016-06-07 | 1 | -3/+3 |
| | | | | consistency | ||||
* | lavc/mediacodec: move struct declarations at the begin | Matthieu Bouron | 2016-06-07 | 1 | -186/+186 |
| | |||||
* | lavc/mediacodec: rename jfields_mapping to jni_amediacodeclist_mapping | Matthieu Bouron | 2016-06-07 | 1 | -3/+3 |
| | |||||
* | lavc/mediacodec: do not delete a local reference twice in case of error | Matthieu Bouron | 2016-06-07 | 1 | -0/+1 |
| | |||||
* | lavc/mediacodec: add missing MediaCodec.Get{Input,Output}Buffer() checks | Matthieu Bouron | 2016-05-25 | 1 | -0/+8 |
| | |||||
* | lavc/mediacodec: factorize static fields initialization | Matthieu Bouron | 2016-05-25 | 1 | -110/+57 |
| | |||||
* | lavc/mediacodec: remove stray empty lines | Matthieu Bouron | 2016-03-15 | 1 | -7/+0 |
| | |||||
* | lavc: add h264 mediacodec decoder | Matthieu Bouron | 2016-03-07 | 1 | -0/+1705 |