[FFmpeg-devel] [PATCH] lavfi/atempo: fix range check if tempo is set by command

2018-10-03 Thread wbsecg1
From: wang-bin --- libavfilter/af_atempo.c | 11 ++- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/libavfilter/af_atempo.c b/libavfilter/af_atempo.c index 52f15f2769..1a004212a7 100644 --- a/libavfilter/af_atempo.c +++ b/libavfilter/af_atempo.c @@ -331,9 +331,10 @@ static

[FFmpeg-devel] [PATCH 09/14] videotoolbox: allow software implementation

2017-12-14 Thread wbsecg1
From: wang-bin hevc is supported on macOS 10.12+ and iOS11+. sw implementaion is provided for old devices. vt sw decoder is more energy effecient than ffmpeg sw decoder. the sum of program and vt service cpu usage is about 50% lower than ffmpeg. decoding speed is faster sometimes(if opengl compat

[FFmpeg-devel] [PATCH 07/14] mediacodec: check whether cropping is set before use

2017-12-14 Thread wbsecg1
From: wang-bin --- libavcodec/mediacodecdec_common.c | 23 +-- 1 file changed, 9 insertions(+), 14 deletions(-) diff --git a/libavcodec/mediacodecdec_common.c b/libavcodec/mediacodecdec_common.c index cb2f6ae5e5..05d3bcd4b5 100644 --- a/libavcodec/mediacodecdec_common.c +++

[FFmpeg-devel] [PATCH 13/14] mmal: add option copy_frame to support retrieving sw frames w/o copy

2017-12-14 Thread wbsecg1
From: wang-bin mmal buffer->data is already in host memory. AFAIK decoders implemented in omx must be configured to output frames to either memory or something directly used by renderer, for example mediacodec surface, mmal buffer and omxil eglimage. test result: big buck bunny 1080p fps increa

[FFmpeg-devel] [PATCH 03/14] configure: fix probing armv6zk

2017-12-14 Thread wbsecg1
From: wang-bin clang reports 6kz: https://reviews.llvm.org/D14568 --- configure | 1 + 1 file changed, 1 insertion(+) diff --git a/configure b/configure index d5bbb5b7a9..6065f01c5c 100755 --- a/configure +++ b/configure @@ -4521,6 +4521,7 @@ elif enabled arm; then elif check_arm_arch

[FFmpeg-devel] [PATCH 08/14] avcodec: add AV_HWACCEL_FLAG_ALLOW_SOFTWARE

2017-12-14 Thread wbsecg1
From: wang-bin a hw decoder may have software or hybrid implementation, for example videotoolbox hevc. the performance may be better than ffmpeg sw decoder. --- libavcodec/avcodec.h | 4 1 file changed, 4 insertions(+) diff --git a/libavcodec/avcodec.h b/libavcodec/avcodec.h index ce089b7

[FFmpeg-devel] [PATCH 14/14] videotoolbox: remove opengl compatibility attribute

2017-12-14 Thread wbsecg1
From: wang-bin 1. a cvpixelbuffer backed by iosurface can always be converted to an opengl texture, using CGLTexImageIOSurface2D for macOS, and undocumented api texImageIOSurface(which is internally used by public api CVOpenGLESTextureCacheCreateTextureFromImage) for iOS4.0+. 2. enabling the a

Re: [FFmpeg-devel] [PATCH] avcodec/mmaldec: use zero-copy forAV_PIX_FMT_MMAL

2017-11-02 Thread wbsecg1
> On Sun, 3 Sep 2017 15:44:36 +0300 Yevhen Kyriukha wrote: > >> Signed-off-by: Yevhen Kyriukha >> — >> libavcodec/mmaldec.c | 5 - >> 1 file changed, 4 insertions(+), 1 deletion(-) >>  >> diff --git a/libavcodec/mmaldec.c b/libavcodec/mmaldec.c >> index 0b1195dc3e..19ca6ce7e7 100644 >> --- a/