Re: [FFmpeg-devel] lavfi: fix undefined ff_vk_shader_print if vulkan filters are disabled

2025-01-16 Thread Wang Bin
Lynne 于2025年1月16日周四 16:19写道: > On 16/01/2025 15:24, Wang Bin wrote: > > > > > > ___ > > ffmpeg-devel mailing list > > ffmpeg-devel@ffmpeg.org > > https://ffmpeg.org/mailman/listinfo/ffmpeg-devel > > &

[FFmpeg-devel] lavfi: fix undefined ff_vk_shader_print if vulkan filters are disabled

2025-01-15 Thread Wang Bin
0001-lavfi-fix-undefined-ff_vk_shader_print-if-vulkan-fil.patch Description: Binary data ___ ffmpeg-devel mailing list ffmpeg-devel@ffmpeg.org https://ffmpeg.org/mailman/listinfo/ffmpeg-devel To unsubscribe, visit link above, or email ffmpeg-devel-req

Re: [FFmpeg-devel] matroskadec: support S_TEXT/WEBVTT

2024-12-26 Thread Wang Bin
Leo Izen 于2024年12月26日周四 00:45写道: > On 12/25/24 3:46 AM, Wang Bin wrote: > > On 12/19/24 3:59 AM, Wang Bin wrote: > >>> based on Hendrik Leppkes's fork > >>> > >>> > >>> ___ > >&g

Re: [FFmpeg-devel] matroskadec: support S_TEXT/WEBVTT

2024-12-25 Thread Wang Bin
On 12/19/24 3:59 AM, Wang Bin wrote: > > based on Hendrik Leppkes's fork > > > > > > ___ > > ffmpeg-devel mailing list > > ffmpeg-devel@ffmpeg.org > > https://ffmpeg.org/mailman/listinfo/ffmpeg-devel >

[FFmpeg-devel] matroskadec: support S_TEXT/WEBVTT

2024-12-19 Thread Wang Bin
based on Hendrik Leppkes's fork 0001-matroskadec-support-S_TEXT-WEBVTT.patch Description: Binary data ___ ffmpeg-devel mailing list ffmpeg-devel@ffmpeg.org https://ffmpeg.org/mailman/listinfo/ffmpeg-devel To unsubscribe, visit link above, or email ffmp

Re: [FFmpeg-devel] [PATCH] avcodec/x86/vvc/vvcdsp_init: fix unresolved external symbol on ARCH_X86_32

2024-02-07 Thread Wang Bin
Andreas Rheinhardt 于2024年2月5日周一 20:04写道: > toq...@outlook.com: > > From: Wu Jianhua > > > > Signed-off-by: Wu Jianhua > > --- > > libavcodec/x86/vvc/vvcdsp_init.c | 78 > > 1 file changed, 40 insertions(+), 38 deletions(-) > > > > diff --git a/libavcodec/x86/vv

Re: [FFmpeg-devel] [PATCH v24 6/9] avformat/mov_muxer: Extended MOV muxer to handle EVC video content

2023-06-27 Thread Wang Bin
James Almer 于2023年6月19日周一 10:43写道: > On 6/18/2023 11:27 PM, Wang Bin wrote: > > - Changes in mov_write_video_tag function to handle EVC elementary stream > >> - Provided structure EVCDecoderConfigurationRecord that specifies the > >> decoder configuration informatio

Re: [FFmpeg-devel] [PATCH v24 6/9] avformat/mov_muxer: Extended MOV muxer to handle EVC video content

2023-06-18 Thread Wang Bin
ymbol ff_ue_golomb_vlc_code 2023-06-18T12:48:09.0122434Z libavformat\avformat-60.dll : fatal error LNK1120: 2 unresolved externals 2023-06-18T12:48:09.0517997Z make: *** [/d/a/avbuild/avbuild/ffmpeg-***/ffbuild/library.mak:119: libavformat/avformat-60.d

[FFmpeg-devel] vulkan build fix

2023-06-07 Thread Wang Bin
2023-06-08T02:04:18.3926210Z CC libavcodec/vulkan_decode.o 2023-06-08T02:04:18.5384903Z src/libavcodec/vulkan_decode.c:148:26: error: incompatible pointer to integer conversion assigning to 'VkImageView' (aka 'unsigned long long') from 'void *' [-Wint-conversion] 2023-06-08T02:04:18.5388615Z vk

Re: [FFmpeg-devel] Bump major version of swresample

2023-02-27 Thread Wang Bin
James Almer 于2023年2月27日周一 20:00写道: > On 2/27/2023 7:03 AM, Michael Niedermayer wrote: > > essOn Sat, Feb 25, 2023 at 12:03:02AM +0800, Wang Bin wrote: > >> > > > >> version_major.h |2 +- > >> 1 file changed, 1 insertion(+), 1 deletion(-) >

Re: [FFmpeg-devel] Bump major version of swresample

2023-02-27 Thread Wang Bin
> > > There is no major changes since last bump. Is it an option to keep current > major version? > > libpostproc changes less ___ ffmpeg-devel mailing list ffmpeg-devel@ffmpeg.org https://ffmpeg.org/mailman/listinfo/ffmpeg-devel To unsubscribe, visit li

Re: [FFmpeg-devel] FFmpeg 6.0

2023-02-26 Thread Wang Bin
On Fri, Feb 10, 2023 at 06:47:03PM +0100, Michael Niedermayer wrote: > > Hi all > > > > i plan to branch off release/6.0 from master in the next days > > If theres something blocking and i should wait, please reply here > > > > 6.0 release will be maybe 1 week after the branch point > > once it has

[FFmpeg-devel] Bump major version of swresample

2023-02-24 Thread Wang Bin
0001-Bump-major-version-of-swresample.patch Description: Binary data ___ ffmpeg-devel mailing list ffmpeg-devel@ffmpeg.org https://ffmpeg.org/mailman/listinfo/ffmpeg-devel To unsubscribe, visit link above, or email ffmpeg-devel-requ...@ffmpeg.org with

[FFmpeg-devel] lavc/videotoolboxenc: add hevc main42210 and p210

2023-02-11 Thread Wang Bin
0001-lavc-videotoolboxenc-add-hevc-main42210-and-p210.patch Description: Binary data ___ ffmpeg-devel mailing list ffmpeg-devel@ffmpeg.org https://ffmpeg.org/mailman/listinfo/ffmpeg-devel To unsubscribe, visit link above, or email ffmpeg-devel-requ...

[FFmpeg-devel] patch for ccaption decoder

2023-02-11 Thread Wang Bin
wrong decode() return value 0001-avcodec-ccaption_dec-return-the-number-of-bytes-deco.patch Description: Binary data ___ ffmpeg-devel mailing list ffmpeg-devel@ffmpeg.org https://ffmpeg.org/mailman/listinfo/ffmpeg-devel To unsubscribe, visit link above

Re: [FFmpeg-devel] [PATCH v7] libavfilter/x86/vf_convolution: add sobel filter optimization and unit test with intel AVX512 VNNI

2022-11-14 Thread Wang, Bin
> >> On 11/14/2022 10:30 AM, Wang, Bin wrote: > >>>> By using xmm# you're not taking into account any x86inc SWAPing, so > >>>> this is using xmm0 and xmm1 where the single scalar float input > >>>> arguments reside (at least on unix64)

Re: [FFmpeg-devel] [PATCH v7] libavfilter/x86/vf_convolution: add sobel filter optimization and unit test with intel AVX512 VNNI

2022-11-14 Thread Wang, Bin
ith intel AVX512 VNNI > > On 11/14/2022 10:30 AM, Wang, Bin wrote: > >> By using xmm# you're not taking into account any x86inc SWAPing, so > >> this is using xmm0 and xmm1 where the single scalar float input > >> arguments reside (at least on unix64), instead

Re: [FFmpeg-devel] [PATCH v7] libavfilter/x86/vf_convolution: add sobel filter optimization and unit test with intel AVX512 VNNI

2022-11-14 Thread Wang, Bin
> By using xmm# you're not taking into account any x86inc SWAPing, so this is > using xmm0 and xmm1 where the single scalar float input arguments reside (at > least on unix64), instead of xm0 and xm1 (xmm16 and xmm17) where the > broadcasted scalars were stored. > This, again, only worked by chance

Re: [FFmpeg-devel] [PATCH v7] libavfilter/x86/vf_convolution: add sobel filter optimization and unit test with intel AVX512 VNNI

2022-11-13 Thread Wang, Bin
-Original Message- From: ffmpeg-devel On Behalf Of James Almer Sent: Monday, November 14, 2022 10:43 AM To: ffmpeg-devel@ffmpeg.org Subject: Re: [FFmpeg-devel] [PATCH v7] libavfilter/x86/vf_convolution: add sobel filter optimization and unit test with intel AVX512 VNNI On 11/4/2022 5:29

Re: [FFmpeg-devel] [PATCH v5] libavfilter/x86/vf_convolution: add sobel filter optimization and unit test with intel AVX512 VNNI

2022-10-25 Thread Wang, Bin
-Original Message- From: Wang, Bin Sent: Tuesday, September 20, 2022 6:33 PM To: ffmpeg-devel@ffmpeg.org Cc: Wang, Bin Subject: [FFmpeg-devel] [PATCH v5] libavfilter/x86/vf_convolution: add sobel filter optimization and unit test with intel AVX512 VNNI From: bwang30 This commit

Re: [FFmpeg-devel] [PATCH v5] libavfilter/x86/vf_convolution: add sobel filter optimization and unit test with intel AVX512 VNNI

2022-10-17 Thread Wang, Bin
-Original Message- From: ffmpeg-devel On Behalf Of Wang, Bin Sent: Monday, September 26, 2022 4:56 PM To: ffmpeg-devel@ffmpeg.org Subject: Re: [FFmpeg-devel] [PATCH v5] libavfilter/x86/vf_convolution: add sobel filter optimization and unit test with intel AVX512 VNNI -Original

Re: [FFmpeg-devel] [PATCH v5] libavfilter/x86/vf_convolution: add sobel filter optimization and unit test with intel AVX512 VNNI

2022-10-07 Thread Wang, Bin
-Original Message- From: ffmpeg-devel On Behalf Of Wang, Bin Sent: Monday, September 26, 2022 4:56 PM To: ffmpeg-devel@ffmpeg.org Subject: Re: [FFmpeg-devel] [PATCH v5] libavfilter/x86/vf_convolution: add sobel filter optimization and unit test with intel AVX512 VNNI -Original

Re: [FFmpeg-devel] [PATCH v5] libavfilter/x86/vf_convolution: add sobel filter optimization and unit test with intel AVX512 VNNI

2022-09-26 Thread Wang, Bin
-Original Message- From: Wang, Bin Sent: Tuesday, September 20, 2022 6:33 PM To: ffmpeg-devel@ffmpeg.org Cc: Wang, Bin Subject: [FFmpeg-devel] [PATCH v5] libavfilter/x86/vf_convolution: add sobel filter optimization and unit test with intel AVX512 VNNI From: bwang30 This commit

Re: [FFmpeg-devel] [PATCH] lavc/pthread_frame: always transfer stashed hwaccel state

2022-09-22 Thread Wang Bin
Anton Khirnov 于2022年9月19日周一 21:22写道: > Fixes assertion failures after avcodec_flush_buffers(), where > stashed hwaccel state is present, but prev_thread is NULL. > > Found-by: Wang Bin > --- > libavcodec/pthread_frame.c | 12 ++-- > 1 file changed, 6 inser

Re: [FFmpeg-devel] [PATCH v4] libavfilter/x86/vf_convolution: add sobel filter optimization and unit test with intel AVX512 VNNI

2022-09-20 Thread Wang, Bin
Thanks for the review, based on the comments, patch v5 is sent out: https://patchwork.ffmpeg.org/project/ffmpeg/patch/20220920103305.7902-1-bin.w...@intel.com/ Changes: 1. Remove redundant zero-initializations in asm code 2. Pass depth and nb_planes as parameters to ff_sobel_init_x86()

Re: [FFmpeg-devel] [PATCH v4] libavfilter/x86/vf_convolution: add sobel filter optimization and unit test with intel AVX512 VNNI

2022-09-14 Thread Wang, Bin
-Original Message- From: Wang, Bin Sent: Wednesday, September 7, 2022 2:27 PM To: ffmpeg-devel@ffmpeg.org Cc: Wang, Bin Subject: [FFmpeg-devel] [PATCH v4] libavfilter/x86/vf_convolution: add sobel filter optimization and unit test with intel AVX512 VNNI From: bwang30 This commit

[FFmpeg-devel] multithreading hwaccel is broken on 5.1 and master branch

2022-09-12 Thread Wang Bin
cc867f2c09d2b69cee8a0eccd62aff002cbbfe11 this change breaks hwaccel. The assertion av_assert0(!p->parent->stash_hwaccel) fails when seeking. So this makes video players unusable. videotoolbox has another crash when starting to decode. The crash can be reproduce easily in ffmpeg: ./ffmpeg -stream_lo

Re: [FFmpeg-devel] [PATCH 2/2] lavc/pthread_frame: avoid leaving stale hwaccel state in worker threads

2022-09-11 Thread Wang Bin
Wang Bin 于2022年9月12日周一 10:02写道: > >> av_packet_unref(p->avpkt); >> @@ -655,6 +670,14 @@ void ff_thread_finish_setup(AVCodecContext *avctx) { >> async_lock(p->parent); >> } >> >> +/* save hwaccel state for passing to the next

Re: [FFmpeg-devel] [PATCH 2/2] lavc/pthread_frame: avoid leaving stale hwaccel state in worker threads

2022-09-11 Thread Wang Bin
> > > av_packet_unref(p->avpkt); > @@ -655,6 +670,14 @@ void ff_thread_finish_setup(AVCodecContext *avctx) { > async_lock(p->parent); > } > > +/* save hwaccel state for passing to the next thread; > + * this is done here so that this worker thread can wipe its own > hwacc

Re: [FFmpeg-devel] [PATCH v3] libavfilter/x86/vf_convolution: add sobel filter optimization and unit test with intel AVX512 VNNI

2022-09-07 Thread Wang, Bin
-Original Message- From: ffmpeg-devel On Behalf Of Henrik Gramner Sent: Tuesday, September 6, 2022 9:02 PM To: FFmpeg development discussions and patches Subject: Re: [FFmpeg-devel] [PATCH v3] libavfilter/x86/vf_convolution: add sobel filter optimization and unit test with intel AVX512 V

Re: [FFmpeg-devel] [PATCH v3] libavfilter/x86/vf_convolution: add sobel filter optimization and unit test with intel AVX512 VNNI

2022-09-06 Thread Wang, Bin
-Original Message- From: Wang, Bin Sent: Tuesday, August 23, 2022 4:23 PM To: ffmpeg-devel@ffmpeg.org Cc: Wang, Bin Subject: [FFmpeg-devel] [PATCH v3] libavfilter/x86/vf_convolution: add sobel filter optimization and unit test with intel AVX512 VNNI From: bwang30 This commit enabled

[FFmpeg-devel] [PATCH v2] libavfilter/x86/vf_convolution: add sobel filter optimization and unit test with intel AVX512 VNNI

2022-08-18 Thread Wang, Bin
Any comments on this patch V2? -Original Message- From: Wang, Bin Sent: Monday, August 15, 2022 1:39 PM To: ffmpeg-devel@ffmpeg.org Cc: Wang, Bin Subject: [FFmpeg-devel] [PATCH v2] libavfilter/x86/vf_convolution: add sobel filter optimization and unit test with intel AVX512 VNNI

Re: [FFmpeg-devel] [PATCH] libavfilter/x86/vf_convolution: add sobel filter optimization and unit test with intel AVX512 VNNI

2022-08-14 Thread Wang, Bin
-Original Message- From: ffmpeg-devel On Behalf Of Andreas Rheinhardt Sent: Friday, August 12, 2022 5:11 PM To: ffmpeg-devel@ffmpeg.org Subject: Re: [FFmpeg-devel] [PATCH] libavfilter/x86/vf_convolution: add sobel filter optimization and unit test with intel AVX512 VNNI bin.wang-at-inte

Re: [FFmpeg-devel] Weird cross platform support in ffmpeg

2022-05-31 Thread Wang Bin
Nicolas George 于2022年5月31日周二 22:40写道: > Александр (12022-05-31): > > I analyzed problem a little bit. Only gcc/clang allows to use this trick. > > Msvc compiler forbidens such code (even with different enabled > > optimizations like remove unused references, whole program optimization > > etc) I

Re: [FFmpeg-devel] [PATCH 03/15] lavu/videotoolbox: add 422 and 444 pixel format mappings

2021-11-15 Thread Wang Bin
Ridley Combs 于2021年11月16日周二 上午11:03写道: > > > > On Nov 15, 2021, at 19:35, Wang Bin wrote: > > > >> > >> +#if HAVE_KCVPIXELFORMATTYPE_422YPCBCR10BIPLANARVIDEORANGE > >> +{ kCVPixelFormatType_422YpCbCr10Bi

Re: [FFmpeg-devel] [PATCH 03/15] lavu/videotoolbox: add 422 and 444 pixel format mappings

2021-11-15 Thread Wang Bin
> > +#if HAVE_KCVPIXELFORMATTYPE_422YPCBCR10BIPLANARVIDEORANGE > +{ kCVPixelFormatType_422YpCbCr10BiPlanarVideoRange, false, > AV_PIX_FMT_NV20 }, > +{ kCVPixelFormatType_422YpCbCr10BiPlanarFullRange, true, > AV_PIX_FMT_NV20 }, > +#endif > It's p210, not nv20. Regards

Re: [FFmpeg-devel] [PATCH 1/3] nvenc: use runtime api version to support old drivers

2020-07-15 Thread Wang Bin
Timo Rothenpieler 于2020年7月15日周三 下午11:16写道: > On 15.07.2020 16:34, wangbin wrote: > > From: wang-bin > > > > There are reserved bit fields in nvEncoderAPI.h structs, so driver's abi > > is stable. Requesting runtime version of these structs should work. I'

Re: [FFmpeg-devel] [PATCH 3/3] nvenc: check sdk 10.0 ptrs at runtime

2020-07-15 Thread Wang Bin
Timo Rothenpieler 于2020年7月15日周三 下午11:19写道: > On 15.07.2020 16:34, wangbin wrote: > > From: wang-bin > > > > --- > > libavcodec/nvenc.c | 11 ++- > > 1 file changed, 6 insertions(+), 5 deletions(-) > > > > diff --git a/libavcodec/nven

[FFmpeg-devel] nvenc: support old drivers

2020-07-15 Thread Wang Bin
0003-nvenc-check-sdk-10.0-ptrs-at-runtime.patch Description: Binary data 0002-nvenc-check-runtime-9.1-function-ptrs-before-use.patch Description: Binary data 0001-nvenc-use-runtime-api-version-to-support-old-drivers.patch Description: Binary data _

Re: [FFmpeg-devel] [PATCH] libavcodec: vp8 neon optimizations for aarch64

2019-02-14 Thread Wang Bin
> > 2019-02-09 16:46 GMT+01:00, Wang Bin : > >> > >> 2019-02-05 0:59 GMT+01:00, James Almer : > >> > On 1/31/2019 4:23 PM, Carl Eugen Hoyos wrote: > >> >> 2019-01-31 17:04 GMT+01:00, Magnus Röös : > >> >>> Partial port of the ARM

Re: [FFmpeg-devel] [PATCH] libavcodec: vp8 neon optimizations for aarch64

2019-02-09 Thread Wang Bin
rtin plans to push his patch? > I can do it but I cannot test MS. > This breaks android(clang), ios and msvc. msvc: https://ci.appveyor.com/project/wang-bin/avbuild/builds/22246378/job/swwuj2t4djg2pec7 ios: https://travis-ci.org/wang-bin/avbuild/jobs/490977431 android: https://travis-ci.o

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

2018-10-03 Thread Wang Bin
Nicolas George 于2018年10月3日周三 下午11:05写道: > wbse...@gmail.com (2018-10-03): > > From: wang-bin > > > > --- > > libavfilter/af_atempo.c | 11 ++- > > 1 file changed, 6 insertions(+), 5 deletions(-) > > > > diff --git a/libavfilter/af_atempo.c b

Re: [FFmpeg-devel] [PATCH 2/6] avcodec/nvdec: avoid needless copy of output frame

2018-05-09 Thread Wang Bin
> > > > -offset += cpy.Height; > +frame->buf[1] = av_buffer_create((uint8_t *)unmap_data, > sizeof(*unmap_data), > + nvdec_unmap_mapped_frame, > (void*)devptr, > + AV_BUFFER_FLAG_READONLY); > +if (!frame->buf[1]

Re: [FFmpeg-devel] [PATCH] avutil/hwcontext_cuda: add AVCUDAFramesContext and AVCUDAFramesContext.flags

2018-05-07 Thread Wang Bin
_MINOR 19 > #define LIBAVUTIL_VERSION_MICRO 100 > > #define LIBAVUTIL_VERSION_INT AV_VERSION_INT(LIBAVUTIL_VERSION_MAJOR, \ > -- > I think the flag should be added in avcodec, maybe AVCodecContext.flags2, becuase 1. This flag is used by cuda decoder only, but not works avfilter and other cuda apis. 2. Other hw codecs may support referencing the decoded memory instead of copying it, for example, mmal decoder. see https://github.com/wang-bin/FFmpeg/commit/74390ec836743dd337c92dd5da5f4f9ff638316b#diff-26a23a40f16babe0068c7340c6160472 3. the flag can be turned on/off at any time ___ ffmpeg-devel mailing list ffmpeg-devel@ffmpeg.org http://ffmpeg.org/mailman/listinfo/ffmpeg-devel

Re: [FFmpeg-devel] [PATCH] configure: fix clang-cl detection

2018-04-18 Thread Wang Bin
2018-04-18 16:27 GMT+08:00 Timo Rothenpieler : > On 18.04.2018 10:05, Wang Bin wrote: > >> > >> > >> -elif $_cc -nologo- 2>&1 | grep -q Microsoft; then > >> +elif $_cc -nologo- 2>&1 | grep -q Microsoft || $_cc -v 2>&am

Re: [FFmpeg-devel] [PATCH] configure: fix clang-cl detection

2018-04-18 Thread Wang Bin
> > > -elif $_cc -nologo- 2>&1 | grep -q Microsoft; then > +elif $_cc -nologo- 2>&1 | grep -q Microsoft || $_cc -v 2>&1 | grep -q > clang && $_cc -? > /dev/null 2>&1; then > _type=msvc > _ident=$($_cc 2>&1 | head -n1) > _DEPCMD='$(DEP$(1)) $(DEP$(1)FLAGS) $($(1)DE

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

2017-12-16 Thread Wang Bin
2017-12-16 19:47 GMT+08:00 wm4 : > On Sat, 16 Dec 2017 13:48:05 +0800 > Wang Bin wrote: > >> 2017-12-16 2:50 GMT+08:00 wm4 : >> > On Fri, 15 Dec 2017 15:05:50 +0800 >> > wbse...@gmail.com wrote: >> > >> >> From: wang-bin >> >>

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

2017-12-16 Thread Wang Bin
2017-12-16 17:12 GMT+08:00 Matthieu Bouron : > On Sat, Dec 16, 2017 at 01:40:18PM +0800, Wang Bin wrote: >> > > +width = s->crop_right + 1 - s->crop_left; >> > > +else >> > > +width = s->width; >> > > >>

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

2017-12-16 Thread Wang Bin
2017-12-16 15:33 GMT+08:00 Xiaolei Yu : > On 12/16/2017 02:07 PM, Wang Bin wrote: >> 2017-12-16 2:52 GMT+08:00 wm4 : >>> On Fri, 15 Dec 2017 15:02:44 +0800 >>> wbse...@gmail.com wrote: >>> >>>> From: wang-bin >>>> >>>&

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

2017-12-15 Thread Wang Bin
2017-12-16 2:52 GMT+08:00 wm4 : > On Fri, 15 Dec 2017 15:02:44 +0800 > wbse...@gmail.com wrote: > >> From: wang-bin >> >> 1. a cvpixelbuffer backed by iosurface can always be converted to an opengl >> texture, using CGLTexImageIOSurface2D for macOS, and undoc

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

2017-12-15 Thread Wang Bin
2017-12-16 2:50 GMT+08:00 wm4 : > On Fri, 15 Dec 2017 15:05:50 +0800 > wbse...@gmail.com wrote: > >> From: wang-bin >> >> mmal buffer->data is already in host memory. AFAIK decoders implemented in >> omx must >> be configured to output frames to eithe

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

2017-12-15 Thread Wang Bin
> > +width = s->crop_right + 1 - s->crop_left; > > +else > > +width = s->width; > > > > av_log(avctx, AV_LOG_INFO, > > "Output crop parameters top=%d bottom=%d left=%d right=%d, " > > On which device does this happen ? None of my devices have such problem. It hap

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

2017-11-02 Thread Wang Bin
?? Outlook for Android From: ffmpeg-devel on behalf of wm4 Sent: Monday, September 4, 2017 6:04:22 PM To: ffmpeg-devel@ffmpeg.org Subject: Re: [FFmpeg-devel] [PATCH] avcodec/mmaldec: use zero-copy for AV_PIX_FMT_MMAL On Sun, 3 Sep 201

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

2017-11-02 Thread Wang Bin
获取 Outlook for Android<https://aka.ms/ghei36> 发件人: Wang Bin 发送时间: 11月2日星期四 16:40 主题: Re: [FFmpeg-devel] [PATCH] avcodec/mmaldec: use zero-copy for AV_PIX_FMT_MMAL 收件人: FFmpeg development discussions and patches 获取 Outlook for Android<https://aka.ms/ghei36> From: ffmpeg-deve

Re: [FFmpeg-devel] configure: clang -Oz for small size build to reduce size further

2017-03-13 Thread Wang Bin
http://stackoverflow.com/questions/15548023/clang-optimization-levels -Oz disables -slp-vectorizer and -vectorize-loops ___ ffmpeg-devel mailing list ffmpeg-devel@ffmpeg.org http://ffmpeg.org/mailman/listinfo/ffmpeg-devel

Re: [FFmpeg-devel] configure: clang -Oz for small size build to reduce size further

2017-03-12 Thread Wang Bin
How to benchmark codecs? Here is my configuration and result size. The total size of -Oz static or dynamic libraries is about 1M smaller. configure --disable-debug --enable-shared --enable-runtime-cpudetect --enable-hwaccels --enable-avresample --disable-postproc --install_name_dir=@rpath --enabl

[FFmpeg-devel] configure: clang -Oz for small size build to reduce size further

2017-03-09 Thread Wang Bin
0001-configure-clang-Oz-for-small-size-build-to-reduce-si.patch Description: Binary data ___ ffmpeg-devel mailing list ffmpeg-devel@ffmpeg.org http://ffmpeg.org/mailman/listinfo/ffmpeg-devel

Re: [FFmpeg-devel] [PATCH] lavc/videotoolbox: set kCVPixelBufferIOSurfaceOpenGLTextureCompatibilityKey

2017-03-03 Thread Wang Bin
From 011d03c4d2b6b138de539dcf5019169781ee7fb2 Mon Sep 17 00:00:00 2001 From: wang-bin Date: Fri, 3 Mar 2017 18:10:54 +0800 Subject: [PATCH] avcodec/videotoolbox: set kCVPixelBufferOpenGLESCompatibilityKey for iOS kCVPixelBufferIOSurfaceOpenGLTextureCompatibilityKey is not available in iOS

Re: [FFmpeg-devel] [PATCH] lavc/videotoolbox: set kCVPixelBufferIOSurfaceOpenGLTextureCompatibilityKey

2017-03-03 Thread Wang Bin
> > So what happens on iOS with the current code? Compile error. VLC uses kCVPixelBufferOpenGLESCompatibilityKey for iOS and kCVPixelBufferIOSurfaceOpenGLTextureCompatibilityKey for OSX. Should I send a patch? ___ ffmpeg-devel mailing list ffmpeg-devel@

Re: [FFmpeg-devel] [PATCH] lavc/videotoolbox: set kCVPixelBufferIOSurfaceOpenGLTextureCompatibilityKey

2017-03-02 Thread Wang Bin
It's macOS only. For iOS, we can use kCVPixelBufferOpenGLESCompatibilityKey ___ ffmpeg-devel mailing list ffmpeg-devel@ffmpeg.org http://ffmpeg.org/mailman/listinfo/ffmpeg-devel

Re: [FFmpeg-devel] mac, ios clock_gettime patch

2017-02-04 Thread Wang Bin
> > So how is it possible that clock_gettime() must not be defined to allow > starting the executable, but this object has to be? Because I build ffmpeg with cc and linker flag "-mmacosx-version-min=10.7" to support lower os versions. If no such flag, the target os is the sdk version you use, e.g

Re: [FFmpeg-devel] mac, ios clock_gettime patch

2017-02-04 Thread Wang Bin
> > dyld: Symbol not found: _kVTCompressionPropertyKey_H264EntropyMode What system? kVTCompressionPropertyKey_H264EntropyMode is available since macOS 10.9 and iOS 10.8. If targeting older system, we have to define it's value like kVTVideoDecoderSpecification_RequireHardwareAcceleratedVideoDecode

Re: [FFmpeg-devel] mac, ios clock_gettime patch

2017-01-08 Thread Wang Bin
ping 2017-01-03 14:26 GMT+08:00 Wang Bin : > If ffmpeg is build with iOS 10 sdk, program will crash on iOS 9. This > patch fixes the crash. > ___ ffmpeg-devel mailing list ffmpeg-devel@ffmpeg.org http://ffmpeg.org/mailman/listinfo/ffmpeg-devel

[FFmpeg-devel] mac, ios clock_gettime patch

2017-01-02 Thread Wang Bin
If ffmpeg is build with iOS 10 sdk, program will crash on iOS 9. This patch fixes the crash. 0001-check-clock_gettime-at-runtime-for-apple-platforms.patch Description: Binary data ___ ffmpeg-devel mailing list ffmpeg-devel@ffmpeg.org http://ffmpeg.org/m

Re: [FFmpeg-devel] add missing hw pixel format in mediacodec decoder

2016-11-24 Thread Wang Bin
Sorry, please ignore this patch. I forgot to add a suffix "_mediacodec" in codec name. ___ ffmpeg-devel mailing list ffmpeg-devel@ffmpeg.org http://ffmpeg.org/mailman/listinfo/ffmpeg-devel

Re: [FFmpeg-devel] add missing hw pixel format in mediacodec decoder

2016-11-24 Thread Wang Bin
this attachment is not base64 encoded 0001-add-missing-hw-pixel-format-in-mediacodec-decoder.patch Description: Binary data ___ ffmpeg-devel mailing list ffmpeg-devel@ffmpeg.org http://ffmpeg.org/mailman/listinfo/ffmpeg-devel

[FFmpeg-devel] add missing hw pixel format in mediacodec decoder

2016-11-24 Thread Wang Bin
This can fix AV_PIX_FMT_MEDIACODEC does not appear in get_format 0001-add-missing-hw-pixel-format-in-mediacodec-decoder.patch Description: Binary data ___ ffmpeg-devel mailing list ffmpeg-devel@ffmpeg.org http://ffmpeg.org/mailman/listinfo/ffmpeg-devel

Re: [FFmpeg-devel] FFmpeg 3.1 name

2016-06-23 Thread Wang Bin
What about choosing a scientist who was born in FFmpeg release month? ___ ffmpeg-devel mailing list ffmpeg-devel@ffmpeg.org http://ffmpeg.org/mailman/listinfo/ffmpeg-devel

Re: [FFmpeg-devel] [PATCH 1/2] avutil: add P010 pixel format

2016-01-26 Thread Wang Bin
Shall we add nv15 like other nv formats in pixfmt.h? ___ ffmpeg-devel mailing list ffmpeg-devel@ffmpeg.org http://ffmpeg.org/mailman/listinfo/ffmpeg-devel

Re: [FFmpeg-devel] [PATCH][RFC] avcodec: disallow hwaccel with frame threads

2015-10-22 Thread Wang Bin
VLC is using frame threading with hwaccel ___ ffmpeg-devel mailing list ffmpeg-devel@ffmpeg.org http://ffmpeg.org/mailman/listinfo/ffmpeg-devel

Re: [FFmpeg-devel] [PATCH] winrt: multithreading support

2015-10-14 Thread Wang Bin
0001-winrt-multithreading-support.patch Description: Binary data ___ ffmpeg-devel mailing list ffmpeg-devel@ffmpeg.org http://ffmpeg.org/mailman/listinfo/ffmpeg-devel

Re: [FFmpeg-devel] [PATCH] winrt: multithreading support

2015-10-09 Thread Wang Bin
I will update the patch next week ___ ffmpeg-devel mailing list ffmpeg-devel@ffmpeg.org http://ffmpeg.org/mailman/listinfo/ffmpeg-devel

Re: [FFmpeg-devel] [PATCH] winrt: multithreading support

2015-10-01 Thread Wang Bin
Seems that the function style macro is always evaluated. So gcc gives an error at WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) if WINAPI_FAMILY_PARTITION is not defined. Now I copy the macros from configure. 0001-winrt-multithreading-support.patch Description: Binary data ___

Re: [FFmpeg-devel] [PATCH] winrt: multithreading support

2015-09-30 Thread Wang Bin
> > with minng64: > compat/w32pthreads.h:40:55: error: missing binary operator before token "(" Which toolchain? What host os? Usually I use the toolchain from https://sourceforge.net/projects/mingw-w64/files/Toolchains%20targetting%20Win32/Personal%20Builds/mingw-builds/ I can try mingw about 24

[FFmpeg-devel] [PATCH] winrt: multithreading support

2015-09-29 Thread wang-bin
--- compat/w32pthreads.h | 11 +++ configure| 4 libavutil/cpu.c | 11 ++- 3 files changed, 25 insertions(+), 1 deletion(-) diff --git a/compat/w32pthreads.h b/compat/w32pthreads.h index 87e816f..9828e8a 100644 --- a/compat/w32pthreads.h +++ b/compat/w32pthr