[FFmpeg-devel] [PATCH 2/2] avutil/pixelutils: sad_32x32 sse2/avx2 optimizations.

2018-07-17 Thread Jun Zhao
% pixelutils pixelutils [.] ff_pixelutils_sad_a_32x32_sse2 Signed-off-by: Jun Zhao --- libavutil/x86/pixelutils.asm| 220 +++ libavutil/x86/pixelutils_init.c | 30 ++ 2 files changed, 250 insertions(+), 0 deletions(-) diff --git a/libavutil/x86

[FFmpeg-devel] [PATCH 1/2] lavutil/pixelutils: add sad_32x32 in pixelutils API.

2018-07-17 Thread Jun Zhao
add sad_32x32 in pixelutils API, and update the fate. Signed-off-by: Jun Zhao --- libavutil/pixelutils.c |2 ++ libavutil/tests/pixelutils.c |2 +- tests/ref/fate/pixelutils| 12 3 files changed, 15 insertions(+), 1 deletions(-) diff --git a/libavutil

[FFmpeg-devel] [PATCH 1/3] lavc/vaapi_encode: Add max slices number query.

2018-07-30 Thread Jun Zhao
From: Jun Zhao Add max slices number query. Signed-off-by: Jun Zhao --- libavcodec/vaapi_encode.c |4 libavcodec/vaapi_encode.h |4 2 files changed, 8 insertions(+), 0 deletions(-) diff --git a/libavcodec/vaapi_encode.c b/libavcodec/vaapi_encode.c index 910fd1b..53d6424

[FFmpeg-devel] [PATCH 2/3] lavc/vaapi_encode_h264: respect "slices" option in h264 vaapi encoder

2018-07-30 Thread Jun Zhao
Enable multi-slice support in AVC/H.264 vaapi encoder. Signed-off-by: Wang, Yi A Signed-off-by: Jun Zhao --- libavcodec/vaapi_encode_h264.c | 31 +-- 1 files changed, 25 insertions(+), 6 deletions(-) diff --git a/libavcodec/vaapi_encode_h264.c b/libavcodec

[FFmpeg-devel] [PATCH 3/3] lavc/vaapi_encode_h265: respect "slices" option in h265 vaapi encoder

2018-07-30 Thread Jun Zhao
Enable multi-slice support in HEVC/H.265 vaapi encoder. Signed-off-by: Wang, Yi A Signed-off-by: Jun Zhao --- libavcodec/vaapi_encode_h265.c | 30 -- 1 files changed, 24 insertions(+), 6 deletions(-) diff --git a/libavcodec/vaapi_encode_h265.c b/libavcodec

[FFmpeg-devel] [PATCH 0/3] enable multi-slices in vaapi_h264/265 encoder

2018-07-30 Thread Jun Zhao
- Re-work distributing the macro-blocks for multi-slices function. V2: - Change the slice/parameter buffers to dynamic alloc and split the mutil-slice support for AVC/HEVC. Jun Zhao (3): lavc/vaapi_encode: Add max slices number query. lavc/vaapi_encode_h264: respect "slices" o

[FFmpeg-devel] [PATCH 0/4] check return value of setsockopt

2018-08-05 Thread Jun Zhao
V1: - check return value of setsockopt in network/tcp. - move log_net_error as ff_log_net_error for udp/tcp error log reuse. Jun Zhao (4): lavf/network: add a ff_log_net_error function. lavf/network: check return value of setsockopt. lavf/tcp: check return value of setsockopt. lavf

[FFmpeg-devel] [PATCH 1/4] lavf/network: add a ff_log_net_error function.

2018-08-05 Thread Jun Zhao
add a ff_log_net_error function for error log. Signed-off-by: Jun Zhao --- libavformat/network.c |7 +++ libavformat/network.h |2 ++ 2 files changed, 9 insertions(+), 0 deletions(-) diff --git a/libavformat/network.c b/libavformat/network.c index d5c82e9..21c836a 100644 --- a

[FFmpeg-devel] [PATCH 2/4] lavf/network: check return value of setsockopt.

2018-08-05 Thread Jun Zhao
Signed-off-by: Jun Zhao --- libavformat/network.c |7 +-- 1 files changed, 5 insertions(+), 2 deletions(-) diff --git a/libavformat/network.c b/libavformat/network.c index 21c836a..4bae7e2 100644 --- a/libavformat/network.c +++ b/libavformat/network.c @@ -194,8 +194,11 @@ int ff_socket

[FFmpeg-devel] [PATCH 3/4] lavf/tcp: check return value of setsockopt.

2018-08-05 Thread Jun Zhao
when setsockopt fail, use ff_log_net_error to dump the string describing for error number. Signed-off-by: Jun Zhao --- libavformat/tcp.c | 16 1 files changed, 12 insertions(+), 4 deletions(-) diff --git a/libavformat/tcp.c b/libavformat/tcp.c index 499e365..8bff9a3 100644

[FFmpeg-devel] [PATCH 4/4] lavf/udp: use ff_log_net_error to replace log_net_error

2018-08-05 Thread Jun Zhao
Signed-off-by: Jun Zhao --- libavformat/udp.c | 41 + 1 files changed, 17 insertions(+), 24 deletions(-) diff --git a/libavformat/udp.c b/libavformat/udp.c index 0dde035..bbdeda0 100644 --- a/libavformat/udp.c +++ b/libavformat/udp.c @@ -150,20 +150,13

[FFmpeg-devel] [PATCH] lavc/hevcdec: add ONLY_IF_THREADS_ENABLED where it is missing.

2018-08-08 Thread Jun Zhao
add add ONLY_IF_THREADS_ENABLED where it is missing. Signed-off-by: Jun Zhao --- libavcodec/hevcdec.c |4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff --git a/libavcodec/hevcdec.c b/libavcodec/hevcdec.c index 409e77f..fec9218 100644 --- a/libavcodec/hevcdec.c +++ b/libavcodec

[FFmpeg-devel] [PATCH] libavcodec/vp8dec: fix the multi-thread HWAccel decode error

2018-08-09 Thread Jun Zhao
ed-by: Jun, Zhao --- libavcodec/vp8.c |7 +-- 1 files changed, 5 insertions(+), 2 deletions(-) diff --git a/libavcodec/vp8.c b/libavcodec/vp8.c index 3adfeac..18d1ada 100644 --- a/libavcodec/vp8.c +++ b/libavcodec/vp8.c @@ -187,7 +187,7 @@ static av_always_inline int update_dimensions(VP8Co

[FFmpeg-devel] [PATCH] lavc/hevcdec: add ONLY_IF_THREADS_ENABLED where it is missing.

2018-08-09 Thread Jun Zhao
add add ONLY_IF_THREADS_ENABLED where it is missing. Signed-off-by: Jun Zhao --- libavcodec/hevcdec.c |8 ++-- 1 files changed, 6 insertions(+), 2 deletions(-) diff --git a/libavcodec/hevcdec.c b/libavcodec/hevcdec.c index 409e77f..a3b5c8c 100644 --- a/libavcodec/hevcdec.c +++ b

[FFmpeg-devel] [PATCH V3] add ONLY_IF_THREADS_ENABLED where it is missing in hevcdec

2018-08-09 Thread Jun Zhao
V3: - clean the commit message. V2: - wrap the two functions with HAVE_THREADS as James Almer's review. Jun Zhao (1): lavc/hevcdec: add ONLY_IF_THREADS_ENABLED where it is missing. libavcodec/hevcdec.c |8 ++-- 1 files changed, 6 insertions(+), 2 dele

[FFmpeg-devel] [PATCH V3] lavc/hevcdec: add ONLY_IF_THREADS_ENABLED where it is missing.

2018-08-09 Thread Jun Zhao
add ONLY_IF_THREADS_ENABLED where it is missing. Signed-off-by: Jun Zhao --- libavcodec/hevcdec.c |8 ++-- 1 files changed, 6 insertions(+), 2 deletions(-) diff --git a/libavcodec/hevcdec.c b/libavcodec/hevcdec.c index 409e77f..a3b5c8c 100644 --- a/libavcodec/hevcdec.c +++ b/libavcodec

[FFmpeg-devel] [PATCH] lavc/pthread: use THREAD_SAFE_CALLBACKS() to simplifx more code

2018-08-11 Thread Jun Zhao
use THREAD_SAFE_CALLBACKS() to simplifx more code Signed-off-by: Jun Zhao --- libavcodec/pthread_frame.c |6 ++ 1 files changed, 2 insertions(+), 4 deletions(-) diff --git a/libavcodec/pthread_frame.c b/libavcodec/pthread_frame.c index 5104b1b..36ac0ac 100644 --- a/libavcodec

[FFmpeg-devel] [PATCH 0/4] fix "ffmpeg -h full" can't dump some options issue

2018-08-13 Thread Jun Zhao
V1: - add a new avfilter_graph_get_class function for AVFilterGraph options. - fix can't dump "slice" sub-option for AVFilter. - fix can't dump mpeg4videodec options issue. (use command "ffmpeg -h decoder=mpeg4") Jun Zhao (4): lavfi: fix can't dispa

[FFmpeg-devel] [PATCH 1/4] lavfi: fix can't dispaly "slice" sub-option in "ffmpeg -h full"

2018-08-13 Thread Jun Zhao
fix can't dispaly "slice" sub-option in "ffmpeg -h full" for AVFilter options. Signed-off-by: Jun Zhao --- libavfilter/avfilter.c |2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/libavfilter/avfilter.c b/libavfilter/avfilter.c index ed81

[FFmpeg-devel] [PATCH 3/4] fftools/ffmpeg: dump AVFilterGraph options in "ffmpeg -h full".

2018-08-13 Thread Jun Zhao
dump AVFilterGraph options in "ffmpeg -h full". Signed-off-by: Jun Zhao --- fftools/ffmpeg_opt.c |1 + 1 files changed, 1 insertions(+), 0 deletions(-) diff --git a/fftools/ffmpeg_opt.c b/fftools/ffmpeg_opt.c index 58ec13e..6b5e8db 100644 --- a/fftools/ffmpeg_opt.c +++

[FFmpeg-devel] [PATCH 4/4] lavc/mpeg4videodec: fix can't dump AVOptions issue.

2018-08-13 Thread Jun Zhao
fix can't dump the mpeg4videodec option with the command "ffmpeg -h decoder=mpeg4". Signed-off-by: Jun Zhao --- libavcodec/mpeg4videodec.c |5 +++-- 1 files changed, 3 insertions(+), 2 deletions(-) diff --git a/libavcodec/mpeg4videodec.c b/libavcodec/mpeg4videodec.c index 2

[FFmpeg-devel] [PATCH 2/4] lavfi: add new function avfilter_graph_get_class.

2018-08-13 Thread Jun Zhao
add new avfilter_graph_get_class for AVFilterGraph options. Signed-off-by: Jun Zhao --- libavfilter/avfilter.h |7 +++ libavfilter/avfiltergraph.c |5 + 2 files changed, 12 insertions(+), 0 deletions(-) diff --git a/libavfilter/avfilter.h b/libavfilter/avfilter.h index

[FFmpeg-devel] [PATCH] lavc/encode: remove redundant av_init_packet after av_packet_unref.

2018-08-16 Thread Jun Zhao
remove redundant av_init_packet after av_packet_unref. av_packet_unref have call av_init_packet and reset the packet size. Signed-off-by: Jun Zhao --- libavcodec/encode.c |4 1 files changed, 0 insertions(+), 4 deletions(-) diff --git a/libavcodec/encode.c b/libavcodec/encode.c index

[FFmpeg-devel] [PATCH 2/2] lavc/libkvazaar: fix incompatible pointer type.

2018-08-20 Thread Jun Zhao
c:31:0: ./libavutil/imgutils.h:119:6: note: expected ‘const uint8_t ** {aka const unsigned char **}’ but argument is of type ‘uint8_t * const* {aka unsigned char * const*}’ void av_image_copy(uint8_t *dst_data[4], int dst_linesizes[4], Signed-off-by: Jun Zhao --- libavcodec/libkvazaar.c |2

[FFmpeg-devel] [PATCH 1/2] lavf/hlsenc: fix mixed declarations and code warning.

2018-08-20 Thread Jun Zhao
fix the build warning for "ISO C90 forbids mixed declarations and code" Signed-off-by: Jun Zhao --- libavformat/hlsenc.c |2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/libavformat/hlsenc.c b/libavformat/hlsenc.c index 43e6fc8..c261016 100644 --- a/libavforma

[FFmpeg-devel] [PATCH] lavc/Makefile: fix make checkheaders fail

2022-08-04 Thread Jun Zhao
Fix the break when used libavcodec/Makefile Signed-off-by: Jun Zhao --- libavcodec/Makefile | 2 ++ 1 file changed, 2 insertions(+) diff --git a/libavcodec/Makefile b/libavcodec/Makefile index 836132f430..5ba7fb6b86 100644 --- a/libavcodec/Makefile +++ b/libavcodec/Makefile @@ -1234,6 +1234,7

[FFmpeg-devel] [PATCH] lavf/hevc: replace the unicode signal quotation with normal

2022-08-04 Thread Jun Zhao
replace the unicode left/right signal quotation mark with normal signal quotation. Signed-off-by: Jun Zhao --- libavformat/hevc.c | 10 +- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/libavformat/hevc.c b/libavformat/hevc.c index df141aec26..37d97941d5 100644 --- a

[FFmpeg-devel] [PATCH 1/3] lavc/libuavs3d: fix incorrect comments

2022-05-01 Thread Jun Zhao
From: Jun Zhao fix incorrect comments Signed-off-by: Jun Zhao --- libavcodec/libuavs3d.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libavcodec/libuavs3d.c b/libavcodec/libuavs3d.c index 48333f17d1..6966e00b62 100644 --- a/libavcodec/libuavs3d.c +++ b/libavcodec

[FFmpeg-devel] [PATCH 2/3] lavc/cavsdec: Add profile check

2022-05-01 Thread Jun Zhao
From: Jun Zhao Add profile check for cavs decoder, now cavs decoder only support JiZhun(0x20) profile Signed-off-by: Jun Zhao --- libavcodec/cavsdec.c | 5 + 1 file changed, 5 insertions(+) diff --git a/libavcodec/cavsdec.c b/libavcodec/cavsdec.c index 7aaf3f2bcf..6c69c2c94e 100644 --- a

[FFmpeg-devel] [PATCH 3/3] lavf/cavsvideodec: Add GuangDian profile support

2022-05-01 Thread Jun Zhao
From: Jun Zhao Enable the Guangdian profile support Signed-off-by: Jun Zhao --- libavformat/cavsvideodec.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/libavformat/cavsvideodec.c b/libavformat/cavsvideodec.c index 1fa3aa5e92..437ad544d3 100644 --- a/libavformat

[FFmpeg-devel] [PATCH 1/2] doc/examples/muxing: Remove unnecessary ret

2023-02-25 Thread Jun Zhao
From: Jun Zhao Remove unnecessary ret and make the code more compact Signed-off-by: Jun Zhao --- doc/examples/muxing.c | 5 + 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/doc/examples/muxing.c b/doc/examples/muxing.c index 3acb778322..cd997d5431 100644 --- a/doc/examples

[FFmpeg-devel] [PATCH 2/2] doc/protocols: update rtsp options

2023-02-25 Thread Jun Zhao
From: Jun Zhao Split the rtsp options to muxer/demuxer, and update the options. Signed-off-by: Jun Zhao --- doc/protocols.texi | 64 ++ 1 file changed, 64 insertions(+) diff --git a/doc/protocols.texi b/doc/protocols.texi index 0df38d790c

[FFmpeg-devel] [PATCH 1/2] lavfi/coreimage: suppress OpenGL deprecation warning

2023-02-25 Thread Jun Zhao
From: Jun Zhao suppress OpenGL deprecation warning. Signed-off-by: Jun Zhao --- libavfilter/vf_coreimage.m | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/libavfilter/vf_coreimage.m b/libavfilter/vf_coreimage.m index b1959861de..17b2cde6fe 100644 --- a/libavfilter

[FFmpeg-devel] [PATCH 2/2] fftools/ffmpeg_filter: initialize the 'o' to silence the warning

2023-02-25 Thread Jun Zhao
From: Jun Zhao silence the warning: variable 'o' is used uninitialized whenever '&&' condition is false Signed-off-by: Jun Zhao --- fftools/ffmpeg_filter.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fftools/ffmpeg_filter.c b/fftools/ffmp

[FFmpeg-devel] [PATCH 1/2] ffbuild/bin2c: misc fix

2025-01-08 Thread Jun Zhao
From: Jun Zhao close the input file if open output fail Signed-off-by: Jun Zhao --- ffbuild/bin2c.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/ffbuild/bin2c.c b/ffbuild/bin2c.c index dfeedd7669..168b0c658d 100644 --- a/ffbuild/bin2c.c +++ b/ffbuild/bin2c.c @@ -38,8

[FFmpeg-devel] [PATCH 2/2] lavc/ac3dsp: fix R-V HAVE_RVV scope issue

2025-01-08 Thread Jun Zhao
From: Jun Zhao fix R-V HAVE_RVV scope issue Signed-off-by: Jun Zhao --- libavcodec/riscv/ac3dsp_init.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libavcodec/riscv/ac3dsp_init.c b/libavcodec/riscv/ac3dsp_init.c index 24b3881854..f68a592839 100644 --- a/libavcodec/riscv

[FFmpeg-devel] [PATCH 2/2] doc/ffmpeg: document videotoolbox in -hwaccel option

2025-03-26 Thread Jun Zhao
From: Jun Zhao Add videotoolbox to the list of supported hardware acceleration methods in the -hwaccel option documentation. This option allows users to utilize Apple's VideoToolbox framework for hardware-accelerated video decoding on macOS and iOS devices. The videotoolbox acceleratio

[FFmpeg-devel] [PATCH 1/2] fftools/cmdutils: fix error message for "ffmpeg -init_hw_device list"

2025-03-26 Thread Jun Zhao
From: Jun Zhao When running 'ffmpeg -init_hw_device list' to display available hardware devices, it incorrectly shows an error message: "Failed to set value 'list' for option 'init_hw_device': Immediate exit requested" This is a regression introduc

<    6   7   8   9   10   11