Re: [FFmpeg-devel] [PATCH] avutil/timestamp: avoid using INFINITY for log10 result in av_ts_make_time_string2

2024-08-27 Thread Marton Balint
On Tue, 27 Aug 2024, Rémi Denis-Courmont wrote: Le 27 août 2024 03:03:37 GMT+03:00, Marton Balint a écrit : Using INFINITY can cause issues with -ffast-math, and since we only use this value to decide the formatting, we can just as easily use 0 for log10 of zero. FFmpeg does not enable f

Re: [FFmpeg-devel] [PATCH] avutil/timestamp: avoid using INFINITY for log10 result in av_ts_make_time_string2

2024-08-27 Thread Rémi Denis-Courmont
Le 27 août 2024 10:00:08 GMT+03:00, Marton Balint a écrit : >IMHO the patch itself is harmless (simple, easy to follow), and if it helps >somebody (no matter how unupported its use-case is), then why the hell not. >But I can understand your point of view, that we should not bother with it, if

[FFmpeg-devel] [PATCH] avcodec/cbs_h265: fix valid range for {left, right}_view_id

2024-08-27 Thread James Almer
view_id_len in VPS is 4 bits, so view_id values can be up to 15 bits long. Signed-off-by: James Almer --- libavcodec/cbs_h265.h | 4 ++-- libavcodec/cbs_h265_syntax_template.c | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/libavcodec/cbs_h265.h b/libavco

Re: [FFmpeg-devel] [PATCH v2 3/4] checkasm: improve print format

2024-08-27 Thread J. Dekker
On Mon, Aug 26, 2024, at 12:41, Ramiro Polla wrote: > On Sun, Aug 25, 2024 at 7:52 PM J. Dekker wrote: >> On Thu, Aug 22, 2024, at 16:57, Ramiro Polla wrote: >> > On Wed, Aug 21, 2024 at 1:26 PM J. Dekker wrote: >> >> >> >> Port dav1d's checkasm output format to FFmpeg's checkasm, includes >> >>

Re: [FFmpeg-devel] [PATCH] lavc/vvc: Fix assertion bound on qPy_{a, b}

2024-08-27 Thread Nuo Mi
On Sun, Aug 25, 2024 at 10:37 PM Nicolas George wrote: > Nuo Mi (12024-08-25): > > Yes, I mean the v1. sorry for misleading you. > > Ah, ok. Then… maybe. > > Maybe v1 is the proper fix. Maybe the proper fix is to find where qPy_a > or qPy_b are set to 63 if they can only be <63 and fix that part

Re: [FFmpeg-devel] [PATCH] avutil/timestamp: avoid using INFINITY for log10 result in av_ts_make_time_string2

2024-08-27 Thread Michael Niedermayer
On Tue, Aug 27, 2024 at 02:03:37AM +0200, Marton Balint wrote: > Using INFINITY can cause issues with -ffast-math, and since we only use this > value to decide the formatting, we can just as easily use 0 for log10 of zero. > > Signed-off-by: Marton Balint > --- > libavutil/timestamp.c | 2 +- >

Re: [FFmpeg-devel] [PATCH 7/7] avcodec/riscv: add h264 qpel

2024-08-27 Thread Niklas Haas
On Mon, 19 Aug 2024 21:27:38 +0300 Rémi Denis-Courmont wrote: > Le tiistaina 13. elokuuta 2024, 17.03.36 EEST J. Dekker a écrit : > > +#include "libavutil/riscv/asm.S" > > + > > +.macro vnclipsu.wi shifti, lmul, lmul2, vregs:vararg > > +vsetvli zero, zero, e16, \lmul2, ta, ma

Re: [FFmpeg-devel] [PATCH 1/3] lavu/opt: document underlying C types for enum AVOptionType

2024-08-27 Thread Anton Khirnov
Quoting Michael Niedermayer (2024-08-23 21:30:06) > On Thu, Aug 22, 2024 at 02:39:10PM +0200, Anton Khirnov wrote: > > Quoting Michael Niedermayer (2024-08-20 22:57:37) > > > Hi > > > > > > On Sun, Aug 18, 2024 at 01:26:53PM +0200, Anton Khirnov wrote: > > > > --- > > > > libavutil/opt.h | 78 +++

[FFmpeg-devel] [PATCH 01/42] lavu/opt: add API for setting array-type option values

2024-08-27 Thread Anton Khirnov
Previously one could only replace the entire array with a new one deserialized from a string. The new API allows inserting, replacing, and removing arbitrary element ranges. --- doc/APIchanges | 3 + libavutil/opt.c | 186 libavutil/opt.h

[FFmpeg-devel] [PATCH 02/42] lavu/opt: handle UINT options as the POD they are

2024-08-27 Thread Anton Khirnov
Fixes operations on array UINT options. --- libavutil/opt.c | 1 + 1 file changed, 1 insertion(+) diff --git a/libavutil/opt.c b/libavutil/opt.c index e07ec8ce0f..d2af76478c 100644 --- a/libavutil/opt.c +++ b/libavutil/opt.c @@ -98,6 +98,7 @@ static int opt_is_pod(enum AVOptionType type) cas

[FFmpeg-devel] [RFC/PATCH] MV-HEVC decoding

2024-08-27 Thread Anton Khirnov
Hi, this patchset adds support for decoding MV-HEVC (multiview, typically used for stereoscopic 3D video). The code currently supports at most two views, with the second depending on the first (i.e. using it for inter prediction). Both views have to be of the same size; the spec allows them not to

[FFmpeg-devel] [PATCH 03/42] MAINTAINERS: add myself for hevc/*

2024-08-27 Thread Anton Khirnov
--- MAINTAINERS | 1 + 1 file changed, 1 insertion(+) diff --git a/MAINTAINERS b/MAINTAINERS index 1f758f401c..d79920d9d6 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -174,6 +174,7 @@ Codecs: h263* Michael Niedermayer h264* Lo

[FFmpeg-devel] [PATCH 15/42] lavc/hevcdec: move HEVCContext.tab_ipm to HEVCLayerContext

2024-08-27 Thread Anton Khirnov
--- libavcodec/hevc/hevcdec.c | 32 ++-- libavcodec/hevc/hevcdec.h | 2 +- 2 files changed, 19 insertions(+), 15 deletions(-) diff --git a/libavcodec/hevc/hevcdec.c b/libavcodec/hevc/hevcdec.c index 1887a44e3e..0a3b5ba4c4 100644 --- a/libavcodec/hevc/hevcdec.c +++ b/l

[FFmpeg-devel] [PATCH 04/42] lavu/frame: add side data storing view ID for multi-view video

2024-08-27 Thread Anton Khirnov
--- doc/APIchanges| 3 +++ fftools/ffprobe.c | 2 ++ libavfilter/vf_showinfo.c | 2 ++ libavutil/frame.c | 1 + libavutil/frame.h | 9 + libavutil/version.h | 2 +- 6 files changed, 18 insertions(+), 1 deletion(-) diff --git a/doc/APIchanges b/doc

[FFmpeg-devel] [PATCH 24/42] lavc/hevcdec: move active SPS from HEVCParamSets to HEVCLayerContext

2024-08-27 Thread Anton Khirnov
Currently active SPS is a per-layer property. --- libavcodec/hevc/hevcdec.c | 29 - libavcodec/hevc/hevcdec.h | 2 ++ libavcodec/hevc/ps.c | 6 -- libavcodec/hevc/ps.h | 3 --- libavcodec/hevc/refs.c| 24 libavcodec/vaapi_he

[FFmpeg-devel] [PATCH 28/42] lavc/hevc/ps: implement SPS parsing for nuh_layer_id>0

2024-08-27 Thread Anton Khirnov
Cf. F.7.3.2.2 "Sequence parameter set RBSP syntax", which extends normal SPS parsing with special clauses depending on MultiLayerExtSpsFlag. --- libavcodec/hevc/hevcdec.c | 2 +- libavcodec/hevc/parse.c | 3 +- libavcodec/hevc/parser.c | 2 +- libavcodec/hevc/ps.c | 62 +

[FFmpeg-devel] [PATCH 21/42] lavc/hevcdec: move HEVCContext.{tab_mvf, rpl_tab}_pool to HEVCLayerContext

2024-08-27 Thread Anton Khirnov
pic_arrays_{init,free}() no longer access HEVCContext --- libavcodec/hevc/hevcdec.c | 24 libavcodec/hevc/hevcdec.h | 6 +++--- libavcodec/hevc/refs.c| 4 ++-- 3 files changed, 17 insertions(+), 17 deletions(-) diff --git a/libavcodec/hevc/hevcdec.c b/libavcodec/hev

[FFmpeg-devel] [PATCH 09/42] lavc/hevcdec: move HEVCContext.bs_{width, height} to HEVCLayerContext

2024-08-27 Thread Anton Khirnov
--- libavcodec/hevc/filter.c | 43 --- libavcodec/hevc/hevcdec.c | 73 ++- libavcodec/hevc/hevcdec.h | 14 +--- 3 files changed, 73 insertions(+), 57 deletions(-) diff --git a/libavcodec/hevc/filter.c b/libavcodec/hevc/filter.c index 56

[FFmpeg-devel] [PATCH 13/42] lavc/hevcdec: move HEVCContext.tab_ct_depth to HEVCLayerContext

2024-08-27 Thread Anton Khirnov
--- libavcodec/hevc/cabac.c | 8 libavcodec/hevc/hevcdec.c | 11 ++- libavcodec/hevc/hevcdec.h | 6 +++--- 3 files changed, 13 insertions(+), 12 deletions(-) diff --git a/libavcodec/hevc/cabac.c b/libavcodec/hevc/cabac.c index 12d477b2bd..892dd1c215 100644 --- a/libavcodec/he

[FFmpeg-devel] [PATCH 25/42] avcodec/hevc/sei: add support for 3D Reference Displays Information SEI

2024-08-27 Thread Anton Khirnov
From: James Almer Signed-off-by: James Almer --- libavcodec/hevc/sei.c | 55 +++ libavcodec/hevc/sei.h | 17 + 2 files changed, 72 insertions(+) diff --git a/libavcodec/hevc/sei.c b/libavcodec/hevc/sei.c index e39ac0c38a..6c2b55b43c 100644 --

[FFmpeg-devel] [PATCH 06/42] lavc: add HEVC Multiview Main profile

2024-08-27 Thread Anton Khirnov
--- doc/APIchanges| 3 +++ libavcodec/defs.h | 1 + libavcodec/hevc/ps.c | 21 + libavcodec/profiles.c | 1 + libavcodec/version.h | 2 +- 5 files changed, 15 insertions(+), 13 deletions(-) diff --git a/doc/APIchanges b/doc/APIchanges index a8f84ca45f..a4cf1b

[FFmpeg-devel] [PATCH 12/42] lavc/hevcdec: move HEVCContext.skip_flag to HEVCLayerContext

2024-08-27 Thread Anton Khirnov
--- libavcodec/hevc/cabac.c | 9 +++ libavcodec/hevc/hevcdec.c | 56 --- libavcodec/hevc/hevcdec.h | 8 +++--- 3 files changed, 38 insertions(+), 35 deletions(-) diff --git a/libavcodec/hevc/cabac.c b/libavcodec/hevc/cabac.c index 33f8241bb3..12d477b2bd

[FFmpeg-devel] [PATCH 30/42] lavc/hevcdec/parse: process NALUs with nuh_layer_id>0

2024-08-27 Thread Anton Khirnov
Otherwise parameter sets from extradata with nuh_layer_id>0 would be ignored. Needed for upcoming MV-HEVC support. --- libavcodec/hevc/parse.c | 3 --- 1 file changed, 3 deletions(-) diff --git a/libavcodec/hevc/parse.c b/libavcodec/hevc/parse.c index ad84b7b152..29f21a5966 100644 --- a/libavcode

[FFmpeg-devel] [PATCH 42/42] tests/fate/hevc: add a test for switching between single and multi-view

2024-08-27 Thread Anton Khirnov
--- tests/fate/hevc.mak | 10 ++ tests/ref/fate/hevc-mv-switch | 172 ++ 2 files changed, 182 insertions(+) create mode 100644 tests/ref/fate/hevc-mv-switch diff --git a/tests/fate/hevc.mak b/tests/fate/hevc.mak index e75fbd3c16..5631ded860 100644 --- a

[FFmpeg-devel] [PATCH 36/42] fftools/cmdutils: tighten condition for media type stream specifiers

2024-08-27 Thread Anton Khirnov
Require the character indicating media type to be followed by a non-alphanumeric character (or end of string). Needed by future syntax extensions. --- fftools/cmdutils.c | 11 +-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/fftools/cmdutils.c b/fftools/cmdutils.c index f

[FFmpeg-devel] [PATCH 29/42] lavc/hevc/ps: reindent

2024-08-27 Thread Anton Khirnov
--- libavcodec/hevc/ps.c | 178 +-- 1 file changed, 89 insertions(+), 89 deletions(-) diff --git a/libavcodec/hevc/ps.c b/libavcodec/hevc/ps.c index 0b34dd10a8..5aebd66ba7 100644 --- a/libavcodec/hevc/ps.c +++ b/libavcodec/hevc/ps.c @@ -1182,10 +1182,10 @@

[FFmpeg-devel] [PATCH 40/42] tests/fate/hevc: add MV-HEVC conformance sample tests

2024-08-27 Thread Anton Khirnov
Only those that can be decoded with our implementation, so excluding * C and D - independent layers * G, H, I - more than 2 layers Frame hashes verified against the reference implementation from https://hevc.hhi.fraunhofer.de/svn/svn_3DVCSoftware/ --- tests/fate/hevc.mak |

[FFmpeg-devel] [PATCH 26/42] lavc/hevc_ps: parse VPS extension

2024-08-27 Thread Anton Khirnov
From: Niklas Haas Only implementing what's needed for MV-HEVC with two views. Signed-off-by: Anton Khirnov --- libavcodec/hevc/hevc.h | 9 +- libavcodec/hevc/ps.c | 307 +++-- libavcodec/hevc/ps.h | 62 + 3 files changed, 364 insertions(+), 14

[FFmpeg-devel] [PATCH 34/42] lavc/hevcdec: implement decoding MV-HEVC

2024-08-27 Thread Anton Khirnov
At most two layers are supported. --- doc/decoders.texi | 68 +++ libavcodec/hevc/hevcdec.c | 375 ++ libavcodec/hevc/hevcdec.h | 41 - libavcodec/hevc/refs.c| 64 +-- libavcodec/version.h | 2 +- 5 files changed, 493 insertions

[FFmpeg-devel] [PATCH 23/42] lavc/hevcdec: make a HEVCFrame hold a reference to its PPS

2024-08-27 Thread Anton Khirnov
ff_hevc_get_ref_list() needs the PPS of a previously decoded frame, which may be different from the currently active one. --- libavcodec/hevc/filter.c | 4 ++-- libavcodec/hevc/hevcdec.c | 1 + libavcodec/hevc/hevcdec.h | 4 ++-- libavcodec/hevc/mvs.c | 2 +- libavcodec/hevc/refs.c| 1

[FFmpeg-devel] [PATCH 19/42] lavc/hevcdec: move HEVCContext.qp_y_tab to HEVCLayerContext

2024-08-27 Thread Anton Khirnov
--- libavcodec/hevc/filter.c | 34 ++ libavcodec/hevc/hevcdec.c | 17 + libavcodec/hevc/hevcdec.h | 6 -- 3 files changed, 31 insertions(+), 26 deletions(-) diff --git a/libavcodec/hevc/filter.c b/libavcodec/hevc/filter.c index 14afb147b9..ad6

[FFmpeg-devel] [PATCH 17/42] lavc/hevcdec: move HEVCContext.filter_slice_edges to HEVCLayerContext

2024-08-27 Thread Anton Khirnov
--- libavcodec/hevc/filter.c | 2 +- libavcodec/hevc/hevcdec.c | 8 libavcodec/hevc/hevcdec.h | 6 +++--- 3 files changed, 8 insertions(+), 8 deletions(-) diff --git a/libavcodec/hevc/filter.c b/libavcodec/hevc/filter.c index f5224151b6..12a57eb223 100644 --- a/libavcodec/hevc/filter.c

[FFmpeg-devel] [PATCH 39/42] fftools/ffmpeg_mux_init: cosmetics

2024-08-27 Thread Anton Khirnov
Restore vertical alignment to OutputFilterOptions initializer. The flags field is kept as-is, since the corresponding lines are already long, aligning them would make them even longer, and breaking them would look worse. --- fftools/ffmpeg_mux_init.c | 31 --- 1 file c

[FFmpeg-devel] [PATCH 11/42] lavc/hevcdec: move HEVCContext.deblock to HEVCLayerContext

2024-08-27 Thread Anton Khirnov
--- libavcodec/hevc/filter.c | 8 libavcodec/hevc/hevcdec.c | 10 +- libavcodec/hevc/hevcdec.h | 2 +- 3 files changed, 10 insertions(+), 10 deletions(-) diff --git a/libavcodec/hevc/filter.c b/libavcodec/hevc/filter.c index 78f408f170..4d5ef631d7 100644 --- a/libavcodec/hevc/

[FFmpeg-devel] [PATCH 27/42] lavc/hevc/ps: drop a warning for sps_multilayer_extension_flag

2024-08-27 Thread Anton Khirnov
SPS multilayer extension contains a single flag that we are free to ignore, no reason to print a warning. --- libavcodec/hevc/ps.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/libavcodec/hevc/ps.c b/libavcodec/hevc/ps.c index 0f4ae92588..0e084958be 100644 --- a/libavcodec/hevc/ps.c +++ b/l

[FFmpeg-devel] [PATCH 38/42] fftools/ffmpeg: add support for multiview video

2024-08-27 Thread Anton Khirnov
This extends the syntax for specifying input streams in -map and complex filtergraph labels, to allow selecting a view by view ID, index, or position. The corresponding decoder is then set up to decode the appropriate view and send frames for that view to the correct filtergraph input(s). --- doc/

[FFmpeg-devel] [PATCH 16/42] lavc/hevcdec: move HEVCContext.is_pcm to HEVCLayerContext

2024-08-27 Thread Anton Khirnov
--- libavcodec/hevc/filter.c | 40 +++ libavcodec/hevc/hevcdec.c | 18 +- libavcodec/hevc/hevcdec.h | 5 + 3 files changed, 30 insertions(+), 33 deletions(-) diff --git a/libavcodec/hevc/filter.c b/libavcodec/hevc/filter.c index 379c488d78

[FFmpeg-devel] [PATCH 22/42] lavc/hevcdec: move HEVCContext.sao_pixel_buffer_[vh] to HEVCLayerContext

2024-08-27 Thread Anton Khirnov
Handle them together with other sps-dependent arrays. Note that current code only allocates these arrays when hwaccel is not set, but this is wrong as the relevant code runs BEFORE get_format() is called and hence before we know whether hwaccel is in use. --- libavcodec/hevc/filter.c | 22 ++

[FFmpeg-devel] [PATCH 05/42] lavfi/f_select: allow selection based on view ID

2024-08-27 Thread Anton Khirnov
Can be used together with the split filter to decompose multiview video into individual views. --- doc/filters.texi | 3 +++ libavfilter/f_select.c | 9 + 2 files changed, 12 insertions(+) diff --git a/doc/filters.texi b/doc/filters.texi index 2eb4a380fb..3d524e5d96 100644 --- a/doc

[FFmpeg-devel] [PATCH 07/42] lavc/hevcdec: add a per-layer context

2024-08-27 Thread Anton Khirnov
Start by moving the DPB to it. Only one context exists for now, so decoder behaviour should not change with this commit, but that will change in the future. --- libavcodec/dxva2_hevc.c | 7 ++-- libavcodec/hevc/hevcdec.c | 63 +- libavcodec/hevc/hevcdec.h | 19 +

[FFmpeg-devel] [PATCH 10/42] lavc/hevcdec: move HEVCContext.sao to HEVCLayerContext

2024-08-27 Thread Anton Khirnov
--- libavcodec/hevc/filter.c | 29 +++-- libavcodec/hevc/hevcdec.c | 29 +++-- libavcodec/hevc/hevcdec.h | 3 ++- 3 files changed, 32 insertions(+), 29 deletions(-) diff --git a/libavcodec/hevc/filter.c b/libavcodec/hevc/filter.c index 18c73dc2fa.

[FFmpeg-devel] [PATCH 14/42] lavc/hevcdec: move HEVCContext.cbf_luma to HEVCLayerContext

2024-08-27 Thread Anton Khirnov
--- libavcodec/hevc/filter.c | 8 libavcodec/hevc/hevcdec.c | 10 +- libavcodec/hevc/hevcdec.h | 4 +++- 3 files changed, 12 insertions(+), 10 deletions(-) diff --git a/libavcodec/hevc/filter.c b/libavcodec/hevc/filter.c index 4d5ef631d7..379c488d78 100644 --- a/libavcodec/hev

[FFmpeg-devel] [PATCH 08/42] lavc/hevcdec: move active VPS from HEVCParamSets to HEVCContext

2024-08-27 Thread Anton Khirnov
Active VPS is a property of the decoding process, not of the list of parameter sets. Check that the VPS can only change in a base layer - while this can never happen currently (as no other layers can exist in the decoder), it will become useful when multilayer decoding is supported. --- libavcode

[FFmpeg-devel] [PATCH 18/42] lavc/hevcdec: move HEVCContext.tab_slice_address to HEVCLayerContext

2024-08-27 Thread Anton Khirnov
--- libavcodec/hevc/filter.c | 16 libavcodec/hevc/hevcdec.c | 34 ++ libavcodec/hevc/hevcdec.h | 4 ++-- 3 files changed, 28 insertions(+), 26 deletions(-) diff --git a/libavcodec/hevc/filter.c b/libavcodec/hevc/filter.c index 12a57eb223..14afb1

[FFmpeg-devel] [PATCH 20/42] lavc/hevcdec: move HEVCContext.{horizontal, vertical}_bs to HEVCLayerContext

2024-08-27 Thread Anton Khirnov
--- libavcodec/hevc/filter.c | 24 libavcodec/hevc/hevcdec.c | 14 +++--- libavcodec/hevc/hevcdec.h | 5 +++-- 3 files changed, 22 insertions(+), 21 deletions(-) diff --git a/libavcodec/hevc/filter.c b/libavcodec/hevc/filter.c index ad655a2b36..db82f2319f 100644

[FFmpeg-devel] [PATCH 33/42] lavc/hevc/hevcdec: implement MV-HEVC inter-layer prediction

2024-08-27 Thread Anton Khirnov
The per-frame reference picture set contains two more lists - INTER_LAYER[01]. Assuming at most two layers, INTER_LAYER1 is always empty, but is added anyway for completeness. When inter-layer prediction is enabled, INTER_LAYER0 for the second-layer frame will contain the base-layer frame from the

[FFmpeg-devel] [PATCH 37/42] fftools/ffmpeg_sched: allow decoders to have multiple outputs

2024-08-27 Thread Anton Khirnov
Will be useful for multilayer video. --- fftools/ffmpeg_dec.c | 10 ++-- fftools/ffmpeg_demux.c| 2 +- fftools/ffmpeg_filter.c | 4 +- fftools/ffmpeg_mux_init.c | 2 +- fftools/ffmpeg_sched.c| 102 -- fftools/ffmpeg_sched.h| 21 ++-

[FFmpeg-devel] [PATCH 31/42] lavc/hevc/parser: only split packets on NALUs with nuh_layer_id=0

2024-08-27 Thread Anton Khirnov
A packet should contain a full access unit, which for multilayer video should contain all the layers. --- libavcodec/hevc/parser.c | 7 ++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/libavcodec/hevc/parser.c b/libavcodec/hevc/parser.c index a10f38941b..05b92b21ee 100644 --- a

[FFmpeg-devel] [PATCH 32/42] lavc/hevcdec: implement slice header parsing for nuh_layer_id>0

2024-08-27 Thread Anton Khirnov
Cf. F.7.3.6.1 "General slice segment header syntax" --- libavcodec/hevc/hevcdec.c | 36 libavcodec/hevc/hevcdec.h | 1 + 2 files changed, 33 insertions(+), 4 deletions(-) diff --git a/libavcodec/hevc/hevcdec.c b/libavcodec/hevc/hevcdec.c index 260b9abef0..d9a

[FFmpeg-devel] [PATCH 41/42] tests/fate/hevc: add a test for nontrivial values of nuh_layer_id

2024-08-27 Thread Anton Khirnov
Typical files use 0 for the base layer and 1 for the secondary one, but any value for the secondary layer should be supported. --- tests/fate/hevc.mak | 4 tests/ref/fate/hevc-mv-nuh-layer-id | 15 +++ 2 files changed, 19 insertions(+) create mode 100644 tests/re

[FFmpeg-devel] [PATCH 35/42] avcodec/hevc/refs: export Stereo 3D side data

2024-08-27 Thread Anton Khirnov
From: James Almer Use the 3D Reference Displays Info SEI message to link a view_id with an eye. Signed-off-by: James Almer --- libavcodec/hevc/hevcdec.c | 1 + libavcodec/hevc/refs.c| 19 +++ 2 files changed, 20 insertions(+) diff --git a/libavcodec/hevc/hevcdec.c b/libav

Re: [FFmpeg-devel] [PATCH 7/7] avcodec/riscv: add h264 qpel

2024-08-27 Thread Rémi Denis-Courmont
Le 27 août 2024 17:12:03 GMT+03:00, Niklas Haas a écrit : >> > +.irp x, \vregs >> > +vmax.vx \x, \x, zero >> > +.endr >> > +vsetvli zero, zero, e8, \lmul, ta, ma >> > +.irp x, \vregs >> > +vnclipu.wi \x, \x, \shifti >> > +.endr >> > +.en

Re: [FFmpeg-devel] [PATCH 1/2] lavc/vp9dsp: R-V V mc tap h v

2024-08-27 Thread Rémi Denis-Courmont
Le sunnuntaina 25. elokuuta 2024, 14.41.22 EEST flow gg a écrit : > > Does not assemble with binutils 2.43.1 and default flags. > > Fixed through zve32x -> zve32x, zba Are the Bitmanip runtime support checks missing or did I miss them? -- Rémi Denis-Courmont http://www.remlab.net/ __

Re: [FFmpeg-devel] [PATCH] lavc/vvc_mc: R-V V avg w_avg

2024-08-27 Thread Rémi Denis-Courmont
Le sunnuntaina 18. elokuuta 2024, 13.19.33 EEST flow gg a écrit : > Based on the test results for 49 different resolutions, most of them were > significantly slower. OK, thanks for checking. The heights are probably not large enough for this to work. I don't have any objection on the RISC-V side

Re: [FFmpeg-devel] [PATCH] lavc/qsvenc: Remove duplicate include header file

2024-08-27 Thread Xiang, Haihao
On Ma, 2024-08-26 at 09:41 +0800, fei.w.wang-at-intel@ffmpeg.org wrote: > From: Fei Wang > > Signed-off-by: Fei Wang > --- >  libavcodec/qsvenc.h | 2 -- >  libavcodec/qsvenc_av1.c | 2 -- >  2 files changed, 4 deletions(-) > > diff --git a/libavcodec/qsvenc.h b/libavcodec/qsvenc.h > inde

Re: [FFmpeg-devel] [PATCH 1/2] doc/av1_qsv: Fix typo

2024-08-27 Thread Xiang, Haihao
On Ma, 2024-08-26 at 09:40 +0800, fei.w.wang-at-intel@ffmpeg.org wrote: > From: Fei Wang > > Signed-off-by: Fei Wang > --- >  doc/encoders.texi | 2 +- >  1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/doc/encoders.texi b/doc/encoders.texi > index 496852faeb..1035be0052 10064

[FFmpeg-devel] [PATCH] lavu/opt: Fix return of uninitialised value

2024-08-27 Thread Marvin Scholz
In one of the failure paths of av_opt_get_array, the ret variable was accidentally declared again, shadowing the outer one and once when jumping to the fail label would return the still uninitialised outer one. To fix this simply remove the local declaration of ret that shadowed the outer one. In

Re: [FFmpeg-devel] [PATCH] avutil/timestamp: avoid using INFINITY for log10 result in av_ts_make_time_string2

2024-08-27 Thread Kacper Michajlow
On Tue, 27 Aug 2024 at 09:51, Rémi Denis-Courmont wrote: > > > > Le 27 août 2024 10:00:08 GMT+03:00, Marton Balint a écrit : > > >IMHO the patch itself is harmless (simple, easy to follow), and if it helps > >somebody (no matter how unupported its use-case is), then why the hell not. > >But I c

Re: [FFmpeg-devel] [PATCH] avutil/timestamp: avoid using INFINITY for log10 result in av_ts_make_time_string2

2024-08-27 Thread Rémi Denis-Courmont
Le 28 août 2024 06:29:30 GMT+03:00, Kacper Michajlow a écrit : >On Tue, 27 Aug 2024 at 09:51, Rémi Denis-Courmont wrote: >> >> >> >> Le 27 août 2024 10:00:08 GMT+03:00, Marton Balint a écrit : >> >> >IMHO the patch itself is harmless (simple, easy to follow), and if it helps >> >somebody (no

[FFmpeg-devel] [PATCH] lavc/vvc_mc: R-V V avg w_avg

2024-08-27 Thread uk7b
From: sunyuechi C908 X60 avg_8_2x2_c:1.21.0 avg_8_2x2_rvv_i32 :0.70.7 avg_8_2x4_c:2.02.2 avg_8_2x4_rvv_i3

Re: [FFmpeg-devel] [PATCH] lavc/vvc_mc: R-V V avg w_avg

2024-08-27 Thread flow gg
Updated: zve32x -> zve32x, zbb, zba 于2024年8月28日周三 14:37写道: > From: sunyuechi > > C908 X60 > avg_8_2x2_c:1.21.0 > avg_8_2x2_rvv_i32 :0.70.7 > avg_8_2x4_

Re: [FFmpeg-devel] [PATCH 1/2] lavc/vp9dsp: R-V V mc tap h v

2024-08-27 Thread flow gg
It seems that the previous patch have partially lacked if RVB, but now it has if (flags & AV_CPU_FLAG_RVB). Rémi Denis-Courmont 于2024年8月28日周三 03:00写道: > Le sunnuntaina 25. elokuuta 2024, 14.41.22 EEST flow gg a écrit : > > > Does not assemble with binutils 2.43.1 and default flags. > > > > Fixed