Re: [FFmpeg-devel] [PATCH v2 1/4] avformat: add av_program_copy()

2023-02-15 Thread Gyan Doshi
On 2023-02-16 12:22 pm, Andreas Rheinhardt wrote: Gyan Doshi: Helper to transfer programs from one muxing context to another. --- doc/APIchanges | 3 ++ libavformat/avformat.c | 70 ++ libavformat/avformat.h | 14 + libavformat/vers

[FFmpeg-devel] [PATCH v7 08/10] lavc/vaapi_hevc: Add vaapi profile parse support for SCC

2023-02-15 Thread Fei Wang
From: Linjie Fu Note that Screen-Extended Main 4:4:4 and 4:4:4 10 supports chroma_format_idc from 0, 1 or 3, hence both 420 and 444 are supported. Signed-off-by: Linjie Fu Signed-off-by: Fei Wang --- libavcodec/vaapi_decode.c | 4 +++- libavcodec/vaapi_hevc.c | 14 -- libavcode

[FFmpeg-devel] [PATCH v7 07/10] lavc/vaapi_hevc: Pass SCC parameters Through VA-API

2023-02-15 Thread Fei Wang
From: Linjie Fu Including sps/pps/slice parameters. Signed-off-by: Linjie Fu Signed-off-by: Fei Wang --- libavcodec/vaapi_hevc.c | 57 + 1 file changed, 52 insertions(+), 5 deletions(-) diff --git a/libavcodec/vaapi_hevc.c b/libavcodec/vaapi_hevc.c ind

[FFmpeg-devel] [PATCH v7 10/10] lavc/vaapi_hevc: Loose the restricts for SCC decoding

2023-02-15 Thread Fei Wang
From: Linjie Fu Allow current picture as the reference picture. Signed-off-by: Linjie Fu Signed-off-by: Fei Wang --- libavcodec/vaapi_hevc.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/libavcodec/vaapi_hevc.c b/libavcodec/vaapi_hevc.c index a06785f7a6..0e5da15e53 100

[FFmpeg-devel] [PATCH v7 09/10] lavc/vaapi_hevc: Set correct rps type for scc

2023-02-15 Thread Fei Wang
From: Linjie Fu According to 8.1.3 and 8.3.2. Signed-off-by: Linjie Fu Signed-off-by: Fei Wang --- libavcodec/vaapi_hevc.c | 4 1 file changed, 4 insertions(+) diff --git a/libavcodec/vaapi_hevc.c b/libavcodec/vaapi_hevc.c index 1cf43bd4dc..a06785f7a6 100644 --- a/libavcodec/vaapi_hevc.

[FFmpeg-devel] [PATCH v7 06/10] lavc/hevc: Update reference list for SCC

2023-02-15 Thread Fei Wang
From: Linjie Fu Screen Content Coding allows non-intra slice in an IRAP frame which can reference the frame itself, and would mark the current decoded picture as "used for long-term reference", no matter TwoVersionsOfCurrDecPicFlag(8.1.3), hence some previous restricts are not suitable any more.

[FFmpeg-devel] [PATCH v7 05/10] lavc/hevcdec: Set max_num_merge_cand to uint8_t

2023-02-15 Thread Fei Wang
From: Linjie Fu uint8_t is big enough and keep consistent with the definition in cbs_h265.h. Signed-off-by: Linjie Fu Signed-off-by: Fei Wang --- libavcodec/hevcdec.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libavcodec/hevcdec.h b/libavcodec/hevcdec.h index a7fc669b

[FFmpeg-devel] [PATCH v7 04/10] lavc/hevcdec: Fix the parsing for use_integer_mv_flag

2023-02-15 Thread Fei Wang
From: Linjie Fu According to 7.3.6.1, use_integer_mv_flag should be parsed if motion_vector_resolution_control_idc equals to 2. If not present, it equals to motion_vector_resolution_control_idc. Signed-off-by: Linjie Fu Signed-off-by: Fei Wang --- libavcodec/hevcdec.c | 8 libavcodec

[FFmpeg-devel] [PATCH v7 02/10] lavc/hevc_ps: Add SPS/PPS parse support for HEVC extension syntax

2023-02-15 Thread Fei Wang
From: Linjie Fu 1. Add extension syntax according to 7.3.2.2.3/7.3.2.3.3 in T-REC-H.265-201911. 2. Keep using parsed PPS when bitstream overread for compatibility. For example, the clip PS_A_VIDYO_3.bit in FATE test has incomplete extension syntax which will be overread and un-decodable if withou

[FFmpeg-devel] [PATCH v7 03/10] lavc/hevcdec: Add slice parse support for HEVC SCC extension

2023-02-15 Thread Fei Wang
From: Linjie Fu Signed-off-by: Linjie Fu Signed-off-by: Fei Wang --- libavcodec/hevcdec.c | 6 ++ libavcodec/hevcdec.h | 4 2 files changed, 10 insertions(+) diff --git a/libavcodec/hevcdec.c b/libavcodec/hevcdec.c index 567e8d81d4..f9a97ac7f5 100644 --- a/libavcodec/hevcdec.c +++ b/

[FFmpeg-devel] [PATCH v7 01/10] lavc/avcodec: Add HEVC Screen Content Coding Extensions profile

2023-02-15 Thread Fei Wang
From: Linjie Fu Described in HEVC spec A.3.7. Bump minor version and add APIchanges entry for new added profile. Signed-off-by: Linjie Fu Signed-off-by: Fei Wang --- 1. fix warning of patchwork report for V6. doc/APIchanges| 3 +++ libavcodec/avcodec.h | 1 + libavcodec/hevc_ps.c |

Re: [FFmpeg-devel] [PATCH v2 1/4] avformat: add av_program_copy()

2023-02-15 Thread Gyan Doshi
On 2023-02-11 11:26 am, Gyan Doshi wrote: On 2023-02-09 04:25 pm, Gyan Doshi wrote: Helper to transfer programs from one muxing context to another. Comments? Comments? Plan to push in 48h. Regards, Gyan ---   doc/APIchanges |  3 ++   libavformat/avformat.c | 70 +++

Re: [FFmpeg-devel] [PATCH v5 01/10] lavc/avcodec: Add HEVC Screen Content Coding Extensions profile

2023-02-15 Thread Wang, Fei W
On Tue, 2023-02-14 at 11:11 +0100, Anton Khirnov wrote: > Quoting Fei Wang (2023-02-06 06:44:49) > > From: Linjie Fu > > > > Described in HEVC spec A.3.7. > > > > Signed-off-by: Linjie Fu > > Signed-off-by: Fei Wang > > --- > > 1. fix compile warning with VAAPI version less than 1.2.0 > > > >

[FFmpeg-devel] [PATCH v6 08/10] lavc/vaapi_hevc: Add vaapi profile parse support for SCC

2023-02-15 Thread Fei Wang
From: Linjie Fu Note that Screen-Extended Main 4:4:4 and 4:4:4 10 supports chroma_format_idc from 0, 1 or 3, hence both 420 and 444 are supported. Signed-off-by: Linjie Fu Signed-off-by: Fei Wang --- libavcodec/vaapi_decode.c | 4 +++- libavcodec/vaapi_hevc.c | 14 -- libavcode

[FFmpeg-devel] [PATCH v6 09/10] lavc/vaapi_hevc: Set correct rps type for scc

2023-02-15 Thread Fei Wang
From: Linjie Fu According to 8.1.3 and 8.3.2. Signed-off-by: Linjie Fu Signed-off-by: Fei Wang --- libavcodec/vaapi_hevc.c | 4 1 file changed, 4 insertions(+) diff --git a/libavcodec/vaapi_hevc.c b/libavcodec/vaapi_hevc.c index 1cf43bd4dc..a06785f7a6 100644 --- a/libavcodec/vaapi_hevc.

[FFmpeg-devel] [PATCH v6 10/10] lavc/vaapi_hevc: Loose the restricts for SCC decoding

2023-02-15 Thread Fei Wang
From: Linjie Fu Allow current picture as the reference picture. Signed-off-by: Linjie Fu Signed-off-by: Fei Wang --- libavcodec/vaapi_hevc.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/libavcodec/vaapi_hevc.c b/libavcodec/vaapi_hevc.c index a06785f7a6..0e5da15e53 100

[FFmpeg-devel] [PATCH v6 07/10] lavc/vaapi_hevc: Pass SCC parameters Through VA-API

2023-02-15 Thread Fei Wang
From: Linjie Fu Including sps/pps/slice parameters. Signed-off-by: Linjie Fu Signed-off-by: Fei Wang --- libavcodec/vaapi_hevc.c | 57 + 1 file changed, 52 insertions(+), 5 deletions(-) diff --git a/libavcodec/vaapi_hevc.c b/libavcodec/vaapi_hevc.c ind

[FFmpeg-devel] [PATCH v6 06/10] lavc/hevc: Update reference list for SCC

2023-02-15 Thread Fei Wang
From: Linjie Fu Screen Content Coding allows non-intra slice in an IRAP frame which can reference the frame itself, and would mark the current decoded picture as "used for long-term reference", no matter TwoVersionsOfCurrDecPicFlag(8.1.3), hence some previous restricts are not suitable any more.

[FFmpeg-devel] [PATCH v6 05/10] lavc/hevcdec: Set max_num_merge_cand to uint8_t

2023-02-15 Thread Fei Wang
From: Linjie Fu uint8_t is big enough and keep consistent with the definition in cbs_h265.h. Signed-off-by: Linjie Fu Signed-off-by: Fei Wang --- libavcodec/hevcdec.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libavcodec/hevcdec.h b/libavcodec/hevcdec.h index a7fc669b

[FFmpeg-devel] [PATCH v6 04/10] lavc/hevcdec: Fix the parsing for use_integer_mv_flag

2023-02-15 Thread Fei Wang
From: Linjie Fu According to 7.3.6.1, use_integer_mv_flag should be parsed if motion_vector_resolution_control_idc equals to 2. If not present, it equals to motion_vector_resolution_control_idc. Signed-off-by: Linjie Fu Signed-off-by: Fei Wang --- libavcodec/hevcdec.c | 8 libavcodec

[FFmpeg-devel] [PATCH v6 03/10] lavc/hevcdec: Add slice parse support for HEVC SCC extension

2023-02-15 Thread Fei Wang
From: Linjie Fu Signed-off-by: Linjie Fu Signed-off-by: Fei Wang --- libavcodec/hevcdec.c | 6 ++ libavcodec/hevcdec.h | 4 2 files changed, 10 insertions(+) diff --git a/libavcodec/hevcdec.c b/libavcodec/hevcdec.c index 567e8d81d4..f9a97ac7f5 100644 --- a/libavcodec/hevcdec.c +++ b/

[FFmpeg-devel] [PATCH v6 02/10] lavc/hevc_ps: Add SPS/PPS parse support for HEVC extension syntax

2023-02-15 Thread Fei Wang
From: Linjie Fu 1. Add extension syntax according to 7.3.2.2.3/7.3.2.3.3 in T-REC-H.265-201911. 2. Keep using parsed PPS when bitstream overread for compatibility. For example, the clip PS_A_VIDYO_3.bit in FATE test has incomplete extension syntax which will be overread and un-decodable if withou

[FFmpeg-devel] [PATCH v6 01/10] lavc/avcodec: Add HEVC Screen Content Coding Extensions profile

2023-02-15 Thread Fei Wang
From: Linjie Fu Described in HEVC spec A.3.7. Bump minor version and add APIchanges entry for new added profile. Signed-off-by: Linjie Fu Signed-off-by: Fei Wang --- update: 1. bump minor version and add APIchanges entry for new profile. doc/APIchanges| 3 +++ libavcodec/avcodec.h |

Re: [FFmpeg-devel] [PATCH v3 1/3] hwcontext_d3d11va: add mutiple supported DXGI formats

2023-02-15 Thread Xiang, Haihao
On Di, 2023-02-14 at 10:45 +0800, Tong Wu wrote: > Add support for VUYX, YUYV422, Y210, XV30, P012, Y212, XV36. > > The added formats work with qsv acceleration and will not have > impact on d3d11va acceleration(-hwaccel d3d11va) since so far > these formats are still not supported by using d3d11v

Re: [FFmpeg-devel] [PATCH v2] libavcodec/qsvenc: Do not pass RGB solorspace to VPL/MSDK

2023-02-15 Thread Xiang, Haihao
On Ma, 2023-02-13 at 16:49 +0800, wenbin.chen-at-intel@ffmpeg.org wrote: > From: Wenbin Chen > > When encode RGB frame, Intel driver convert RGB to YUV, so we cannot > set RGB colorspace to VPL/MSDK. > > Signed-off-by: Wenbin Chen > --- > libavcodec/qsvenc.c | 7 ++- > 1 file changed,

Re: [FFmpeg-devel] [PATCH v2] libavcodec/qsvenc: Flush cached frames before reset encoder

2023-02-15 Thread Xiang, Haihao
On Ma, 2023-02-13 at 17:03 +0800, wenbin.chen-at-intel@ffmpeg.org wrote: > From: Wenbin Chen > > According to > https://github.com/Intel-Media-SDK/MediaSDK/blob/master/doc/mediasdk-man.md#configuration-change > . > Before calling MFXVideoENCODE_Reset, The application needs to retrieve > any

[FFmpeg-devel] [PATCH] doc: remove docs for options removed at the bump

2023-02-15 Thread Marton Balint
Signed-off-by: Marton Balint --- doc/encoders.texi | 16 doc/filters.texi | 5 - doc/muxers.texi | 6 -- 3 files changed, 27 deletions(-) diff --git a/doc/encoders.texi b/doc/encoders.texi index 727f12a59d..b02737b9df 100644 --- a/doc/encoders.texi +++ b/doc/encoder

Re: [FFmpeg-devel] [PATCH] avformat: deprecate AVFormatContext io_close callback

2023-02-15 Thread Marton Balint
On Wed, 15 Feb 2023, Anton Khirnov wrote: Quoting Marton Balint (2023-02-14 21:30:09) On Tue, 14 Feb 2023, Anton Khirnov wrote: Quoting Marton Balint (2023-02-13 22:37:54) diff --git a/libavformat/version.h b/libavformat/version.h index 904e7f06aa..7ff1483912 100644 --- a/libavformat/ve

Re: [FFmpeg-devel] [PATCH] avcodec/libx265: fix else clause when zeroing reordered_opaque

2023-02-15 Thread Marton Balint
On Mon, 13 Feb 2023, Marton Balint wrote: CC libavcodec/libx265.o libavcodec/libx265.c: In function ‘libx265_encode_frame’: libavcodec/libx265.c:781:5: warning: this ‘else’ clause does not guard... [-Wmisleading-indentation] else ^~~~ libavcodec/libx265.c:782:1: note: ...this sta

Re: [FFmpeg-devel] FFmpeg 6.0

2023-02-15 Thread Michael Niedermayer
On Fri, Feb 10, 2023 at 07:50:29PM +0100, Lynne wrote: > Feb 10, 2023, 18:47 by mich...@niedermayer.cc: > > > 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

[FFmpeg-devel] [PATCH] avformat/matroskadec: Prevent expensive get_cue_desc lookups

2023-02-15 Thread Tom Boshoven
Due to the way the bandwidth estimation code works, the get_cue_desc function was called many times over. This function did a from-scratch lookup using a timestamp. This lookup was done using linear iteration (O(n)), resulting in significant overhead when many cues exist. This change uses ff_ind

Re: [FFmpeg-devel] [PATCH v14 9/9] avcodec/evc: Changes in Changelog and MAINTAINERS files

2023-02-15 Thread Kieran Kunhya
On Wed, 15 Feb 2023 at 08:49, Dawid Kozinski/Multimedia (PLT) /SRPOL/Staff Engineer/Samsung Electronics wrote: > > Dear Kieran, > > While I appreciate your concerns, I must point out that the issues you > mentioned regarding the maintenance of third-party libraries are not > limited > to corporat

Re: [FFmpeg-devel] [PATCH] RK Audio demuxer and decoder

2023-02-15 Thread James Almer
On 2/5/2023 4:17 PM, Paul B Mahol wrote: On 2/4/23, Paul B Mahol wrote: Hi, Patches attached, decoder is not bit by bit exact yet for lossless mode because some samples are not properly rounded. Now lossless mode is bit exact. [...] +static av_cold int rka_decode_init(AVCodecContext *av

[FFmpeg-devel] [PATCH] lavfi/metal: fix build for iOS with deployment target lower than 13

2023-02-15 Thread Rechi
supportsFamily: is only available on iOS 13.0 or newer Signed-off-by: Rechi --- libavfilter/metal/utils.m | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libavfilter/metal/utils.m b/libavfilter/metal/utils.m index f365d3cee..bb1825ae3 100644 --- a/libavfilter/metal/utils.m +++

Re: [FFmpeg-devel] Towards YUVJ removal

2023-02-15 Thread Martin Storsjö
On Fri, 9 Dec 2022, Niklas Haas wrote: So, as was discussed at the last meeting, we should move towards removing YUVJ. Libswscale still does have cases where it doesn't work correctly, for some conversions, unless differences in range is signalled with the YUVJ pixel formats (this, despite t

Re: [FFmpeg-devel] [PATCH v14 9/9] avcodec/evc: Changes in Changelog and MAINTAINERS files

2023-02-15 Thread Dawid Kozinski/Multimedia (PLT) /SRPOL/Staff Engineer/Samsung Electronics
-Original Message- From: ffmpeg-devel On Behalf Of Lynne Sent: wtorek, 14 lutego 2023 19:01 To: FFmpeg development discussions and patches Subject: Re: [FFmpeg-devel] [PATCH v14 9/9] avcodec/evc: Changes in Changelog and MAINTAINERS files Feb 14, 2023, 13:10 by d.kozin...@samsung.co

Re: [FFmpeg-devel] [PATCH v14 9/9] avcodec/evc: Changes in Changelog and MAINTAINERS files

2023-02-15 Thread Dawid Kozinski/Multimedia (PLT) /SRPOL/Staff Engineer/Samsung Electronics
-Original Message- From: ffmpeg-devel On Behalf Of Kieran Kunhya Sent: wtorek, 14 lutego 2023 19:04 To: FFmpeg development discussions and patches Subject: Re: [FFmpeg-devel] [PATCH v14 9/9] avcodec/evc: Changes in Changelog and MAINTAINERS files On Tue, 14 Feb 2023 at 12:10, Dawid