[FFmpeg-devel] [PATCH] avcodec/videotoolboxenc: replace VT_H264Profile with avctx profile

2023-05-21 Thread xufuji456
For compatibility with constrained_baseline in the future, replace VT_H264Profile/VT_HEVCProfile with avctx->profile. Signed-off-by: xufuji456 <839789...@qq.com> --- libavcodec/videotoolboxenc.c | 55 +++- 1 file changed, 16 insertions(+), 39 deletions

[FFmpeg-devel] [PATCH] avcodec/mediacodecdec: add low latency decoding

2023-05-21 Thread xufuji456
The low-latency decoding mode has available in Android api 30. See https://developer.android.google.cn/reference/android/media/MediaCodec?hl=en#PARAMETER_KEY_LOW_LATENCY Signed-off-by: xufuji456 <839789...@qq.com> --- libavcodec/mediacodecdec.c | 7 ++- 1 file changed, 6 insertions

[FFmpeg-devel] [PATCH] avcodec/mediacodecdec: add low-latency decoding

2023-05-22 Thread xufuji456
The low-latency decoding mode has available in Android api 30. It will keep less buffer internally, and output frame as fast as possible. See https://developer.android.google.cn/reference/android/media/MediaCodec?hl=en#PARAMETER_KEY_LOW_LATENCY Signed-off-by: xufuji456 <839789...@qq.

[FFmpeg-devel] [PATCH] avcodec/videotoolboxenc: add CBP/CHP profile

2023-05-22 Thread xufuji456
The Constrained_Baseline and Constrained_High profile of H264 has available in iOS 15.0 Signed-off-by: xufuji456 <839789...@qq.com> --- libavcodec/videotoolboxenc.c | 25 + 1 file changed, 21 insertions(+), 4 deletions(-) diff --git a/libavcodec/videotoolboxe

[FFmpeg-devel] [PATCH] lavc/videotoolboxenc: fix enabling low-latency encode

2023-06-21 Thread xufuji456
Use CFDictionarySetValue to enable low-latency encoding mode. Since the key is a type of "EncoderSpecification", instead of "CompressionProperty". Signed-off-by: xufuji456 <839789...@qq.com> --- libavcodec/videotoolboxenc.c | 18 +++--- 1 file changed, 7 i

[FFmpeg-devel] [PATCH] add skip_loop_filter flag to decide whether loop-filter

2023-02-07 Thread xufuji456
--- libavcodec/vp9.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/libavcodec/vp9.c b/libavcodec/vp9.c index 7c0a246446..ebb89a413c 100644 --- a/libavcodec/vp9.c +++ b/libavcodec/vp9.c @@ -1371,7 +1371,7 @@ static int decode_tiles(AVCodecContext *avctx, }

[FFmpeg-devel] [PATCH] avcodec/vp9:add skip-loop-filter flag

2023-02-08 Thread xufuji456
--- libavcodec/vp9.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/libavcodec/vp9.c b/libavcodec/vp9.c index 7c0a246446..ebb89a413c 100644 --- a/libavcodec/vp9.c +++ b/libavcodec/vp9.c @@ -1371,7 +1371,7 @@ static int decode_tiles(AVCodecContext *avctx, }

[FFmpeg-devel] [PATCH] libavcodec/hevc: add hevc idct_4x4_neon of aarch64

2023-02-14 Thread xufuji456
--- libavcodec/aarch64/hevcdsp_idct_neon.S| 51 +++ libavcodec/aarch64/hevcdsp_init_aarch64.c | 4 ++ 2 files changed, 55 insertions(+) diff --git a/libavcodec/aarch64/hevcdsp_idct_neon.S b/libavcodec/aarch64/hevcdsp_idct_neon.S index 124c50998a..fe8baf1348 100644 --- a/

[FFmpeg-devel] [PATCH] libavcodec/vp9:reduce memory copy of prob.coef

2023-02-20 Thread xufuji456
--- libavcodec/vp9.c | 14 +- 1 file changed, 1 insertion(+), 13 deletions(-) diff --git a/libavcodec/vp9.c b/libavcodec/vp9.c index ebb89a413c..4a9fed62e0 100644 --- a/libavcodec/vp9.c +++ b/libavcodec/vp9.c @@ -948,7 +948,7 @@ static int decode_frame_header(AVCodecContext *avctx,

[FFmpeg-devel] [PATCH] libavcodec/hevc: add hevc idct4x4 neon of aarch64 after fixed

2023-02-23 Thread xufuji456
--- libavcodec/aarch64/hevcdsp_idct_neon.S| 40 +++ libavcodec/aarch64/hevcdsp_init_aarch64.c | 4 +++ 2 files changed, 44 insertions(+) diff --git a/libavcodec/aarch64/hevcdsp_idct_neon.S b/libavcodec/aarch64/hevcdsp_idct_neon.S index 124c50998a..f5135160b6 100644 --- a

[FFmpeg-devel] [PATCH] libavcodec/hevc: reuse scale_store on idct32x32_neon

2023-02-24 Thread xufuji456
--- libavcodec/arm/hevcdsp_idct_neon.S | 18 ++ 1 file changed, 2 insertions(+), 16 deletions(-) diff --git a/libavcodec/arm/hevcdsp_idct_neon.S b/libavcodec/arm/hevcdsp_idct_neon.S index 75795e6a6a..41ca3b83a8 100644 --- a/libavcodec/arm/hevcdsp_idct_neon.S +++ b/libavcodec/arm/

[FFmpeg-devel] [PATCH] libavcodec/hevc: add epel_put_pixels which same as qpel in arm

2023-02-26 Thread xufuji456
--- libavcodec/arm/hevcdsp_init_neon.c | 21 +++-- 1 file changed, 19 insertions(+), 2 deletions(-) diff --git a/libavcodec/arm/hevcdsp_init_neon.c b/libavcodec/arm/hevcdsp_init_neon.c index 8094e6c62e..4063acaf51 100644 --- a/libavcodec/arm/hevcdsp_init_neon.c +++ b/libavcodec/a

[FFmpeg-devel] [PATCH] libavcodec/hevc: remove duplicate semicolon in hevcdsp_init_neon

2023-02-28 Thread xufuji456
--- libavcodec/arm/hevcdsp_init_neon.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/libavcodec/arm/hevcdsp_init_neon.c b/libavcodec/arm/hevcdsp_init_neon.c index 34f51b00d1..19e00af50e 100644 --- a/libavcodec/arm/hevcdsp_init_neon.c +++ b/libavcodec/arm/hevcdsp_init_neo

[FFmpeg-devel] [PATCH] libswresample/audioconvert: check whether input frame data is null pointer

2023-02-28 Thread xufuji456
--- libswresample/audioconvert.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libswresample/audioconvert.c b/libswresample/audioconvert.c index 1d75ba1495..b297514b1a 100644 --- a/libswresample/audioconvert.c +++ b/libswresample/audioconvert.c @@ -242,7 +242,7 @@ int swri_au

[FFmpeg-devel] [PATCH] fftools/ffmpeg: reset pointer, which could be reused by Android and iOS

2023-03-02 Thread xufuji456
--- fftools/ffmpeg.c | 7 +++ 1 file changed, 7 insertions(+) diff --git a/fftools/ffmpeg.c b/fftools/ffmpeg.c index 743bc0c6b6..0ce9531235 100644 --- a/fftools/ffmpeg.c +++ b/fftools/ffmpeg.c @@ -569,6 +569,13 @@ static void ffmpeg_cleanup(int ret) av_freep(&input_files); av_freep(

[FFmpeg-devel] [PATCH] codec/arm/hevcdsp_idct_neon: remove duplicate mov

2023-03-05 Thread xufuji456
--- libavcodec/arm/hevcdsp_idct_neon.S | 10 ++ 1 file changed, 2 insertions(+), 8 deletions(-) diff --git a/libavcodec/arm/hevcdsp_idct_neon.S b/libavcodec/arm/hevcdsp_idct_neon.S index 41ca3b83a8..66ed1c6785 100644 --- a/libavcodec/arm/hevcdsp_idct_neon.S +++ b/libavcodec/arm/hevcdsp_i

[FFmpeg-devel] [PATCH] avcodec/aarch64/hevc: add transform_luma_4x4_neon note: run_count=1000, CPU=Cortex A53 transform_4x4_luma_neon: 45 transform_4x4_luma_c: 103

2023-03-10 Thread xufuji456
--- libavcodec/aarch64/hevcdsp_idct_neon.S| 52 ++- libavcodec/aarch64/hevcdsp_init_aarch64.c | 2 + 2 files changed, 53 insertions(+), 1 deletion(-) diff --git a/libavcodec/aarch64/hevcdsp_idct_neon.S b/libavcodec/aarch64/hevcdsp_idct_neon.S index b11f56862a..00d9690466

[FFmpeg-devel] [PATCH] avcodec/arm/hevc: remove duplicate mov of deblock neon

2023-03-15 Thread xufuji456
--- libavcodec/arm/hevcdsp_deblock_neon.S | 2 -- 1 file changed, 2 deletions(-) diff --git a/libavcodec/arm/hevcdsp_deblock_neon.S b/libavcodec/arm/hevcdsp_deblock_neon.S index 7cb7487ef6..ebcd056430 100644 --- a/libavcodec/arm/hevcdsp_deblock_neon.S +++ b/libavcodec/arm/hevcdsp_deblock_neon.S

[FFmpeg-devel] [PATCH] avutil/imgutils: optimize image copy efficiency

2023-05-04 Thread xufuji456
It makes sense when copying 4K/8K video, if linesize equals to aligned linesize. Signed-off-by: xufuji456 <839789...@qq.com> --- libavutil/imgutils.c | 15 +++ 1 file changed, 11 insertions(+), 4 deletions(-) diff --git a/libavutil/imgutils.c b/libavutil/imgutils.c index 9ab5

[FFmpeg-devel] [PATCH] avutil/imgutils: optimize image copying

2023-05-05 Thread xufuji456
27718 2.4% 31288 30056 3.9% 32336 31571 2.4% Signed-off-by: xufuji456 <839789...@qq.com> --- libavutil/imgutils.c | 16 1 file changed, 12 insertions(+), 4 deletions(-) diff --git a/libavutil/imgutils.c b/libavutil/imgutils.c index 9ab5757cf6..f5898756ba

[FFmpeg-devel] [PATCH] avcodec/videotoolboxenc: add low-latency encoding

2023-05-18 Thread xufuji456
Signed-off-by: xufuji456 <839789...@qq.com> --- libavcodec/videotoolboxenc.c | 12 1 file changed, 12 insertions(+) diff --git a/libavcodec/videotoolboxenc.c b/libavcodec/videotoolboxenc.c index c6f22723d6..88334f1851 100644 --- a/libavcodec/videotoolboxenc.c +++ b/liba

[FFmpeg-devel] [PATCH] avcodec/videotoolboxenc: add low-latency encoding

2023-05-18 Thread xufuji456
When using low-latency mode, it eliminates frame reordering and follows a one-in-one-out encoding mode Signed-off-by: xufuji456 <839789...@qq.com> --- libavcodec/videotoolboxenc.c | 11 +++ 1 file changed, 11 insertions(+) diff --git a/libavcodec/videotoolboxenc.c b/liba

[FFmpeg-devel] [PATCH] avcodec/videotoolboxenc: add low-latency encoding

2023-05-18 Thread xufuji456
When using low-latency mode, it eliminates frame reordering and follows a one-in-one-out encoding mode Signed-off-by: xufuji456 <839789...@qq.com> --- libavcodec/videotoolboxenc.c | 14 ++ 1 file changed, 14 insertions(+) diff --git a/libavcodec/videotoolboxenc.c b/liba

[FFmpeg-devel] [PATCH] avcodec/videotoolboxenc: add CBP/CHP profile

2023-05-21 Thread xufuji456
The CBP/CHP profile has available with H264 in iOS 15.0. Official Doc: https://developer.apple.com/documentation/videotoolbox/kvtprofilelevel_h264_constrainedbaseline_autolevel Signed-off-by: xufuji456 <839789...@qq.com> --- libavcodec/videotoolboxenc.c | 24 ++--

[FFmpeg-devel] [PATCH] lavc/hevcdsp_qpel_neon: using movi.16b instead of movi.2d

2023-11-14 Thread xufuji456 via ffmpeg-devel
Building iOS platform with arm64, the compiler has a warning: "instruction movi.2d with immediate #0 may not function correctly on this CPU, converting to movi.16b" Signed-off-by: xufuji456 <839789...@qq.com> --- libavcodec/aarch64/hevcdsp_e

[FFmpeg-devel] [PATCH] avdevice/avfoundation: replace AVCaptureDevice with new api

2023-12-04 Thread xufuji456 via ffmpeg-devel
Building with iOS platform, the compiler has a warning: "'devicesWithMediaType:' is deprecated: first deprecated in iOS 10.0 - Use AVCaptureDeviceDiscoverySession instead" Signed-off-by: xufuji456 <839789...@qq.com> --- libavdevice/avfoundation.m | 81 +++

[FFmpeg-devel] [PATCH] avdevice/avfoundation: replace AVCaptureDevice with new api

2023-12-05 Thread xufuji456 via ffmpeg-devel
Building with iOS platform, the compiler has a warning: "'devicesWithMediaType:' is deprecated: first deprecated in iOS 10.0 - Use AVCaptureDeviceDiscoverySession instead" Signed-off-by: xufuji456 <839789...@qq.com> --- libavdevice/avfoundation.m | 25 +++

[FFmpeg-devel] [PATCH] avdevice/avfoundation: replace deprecated AVCaptureDevice

2023-12-06 Thread xufuji456 via ffmpeg-devel
Building with iOS platform, the compiler has a warning: "'devicesWithMediaType:' is deprecated: first deprecated in iOS 10.0 - Use AVCaptureDeviceDiscoverySession instead" Signed-off-by: xufuji456 <839789...@qq.com> --- libavdevice/avfoundation.m | 23 +

[FFmpeg-devel] [PATCH] avdevice/avfoundation: replace deprecated AVCaptureDevice

2023-12-09 Thread xufuji456 via ffmpeg-devel
Building with iOS platform, the compiler has a warning: "'devicesWithMediaType:' is deprecated: first deprecated in iOS 10.0 - Use AVCaptureDeviceDiscoverySession instead" Signed-off-by: xufuji456 <839789...@qq.com> --- libavdevice/avfoundation.m | 65 +++

[FFmpeg-devel] [PATCH] avdevice/audiotoolbox: silence warning with new api

2023-12-09 Thread xufuji456 via ffmpeg-devel
Building with macOS platform, the compiler has a warning: 'kAudioObjectPropertyElementMaster' is deprecated in macOS 12.0 Signed-off-by: xufuji456 <839789...@qq.com> --- libavdevice/audiotoolbox.m | 4 1 file changed, 4 insertions(+) diff --git a/libavdevice/audiotoolbox

[FFmpeg-devel] [PATCH] avfilter/metal: fix compile below iOS 13

2023-12-16 Thread xufuji456 via ffmpeg-devel
Here is the msg: "libavfilter/metal/utils.m:35: error: 'MTLGPUFamilyCommon3' is only available on iOS 13.0" More Info: https://developer.apple.com/documentation/metal/mtlgpufamily/mtlgpufamilycommon3 Signed-off-by: xufuji456 <839789...@qq.com> --- libavfilter/me

[FFmpeg-devel] [PATCH] fftool/ffplay: avoid same name in local variable

2023-12-30 Thread xufuji456 via ffmpeg-devel
There is a warning in XCode:"Declaration shadows a local variable" Signed-off-by: xufuji456 <839789...@qq.com> --- fftools/ffplay.c | 10 +- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/fftools/ffplay.c b/fftools/ffplay.c index ea5ff31393..17861e60be 1006