Re: [FFmpeg-devel] [PATCH] ffmpeg: remove usage of internal deprecation macro

2022-03-16 Thread Andreas Rheinhardt
James Almer: > Signed-off-by: James Almer > --- > fftools/ffmpeg.c | 4 ++-- > 1 file changed, 2 insertions(+), 2 deletions(-) > > diff --git a/fftools/ffmpeg.c b/fftools/ffmpeg.c > index a98e49b775..3b625a9918 100644 > --- a/fftools/ffmpeg.c > +++ b/fftools/ffmpeg.c > @@ -2880,9 +2880,9 @@ stat

Re: [FFmpeg-devel] [PATCH] ffmpeg: remove usage of internal deprecation macro

2022-03-16 Thread James Almer
On 3/16/2022 7:15 AM, Andreas Rheinhardt wrote: James Almer: Signed-off-by: James Almer --- fftools/ffmpeg.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/fftools/ffmpeg.c b/fftools/ffmpeg.c index a98e49b775..3b625a9918 100644 --- a/fftools/ffmpeg.c +++ b/fftools

Re: [FFmpeg-devel] [PATCH 2/4] avfilter/vf_zscale: fix number of threads

2022-03-16 Thread Victoria Zhislina
Thanks for the fix, lgtm as well. On Tue, Mar 15, 2022 at 12:56 AM Paul B Mahol wrote: > lgtm > ___ > ffmpeg-devel mailing list > ffmpeg-devel@ffmpeg.org > https://ffmpeg.org/mailman/listinfo/ffmpeg-devel > > To unsubscribe, visit link above, or email

Re: [FFmpeg-devel] [PATCH 1/2] lavc/bsf: add general documentation

2022-03-16 Thread Anton Khirnov
Quoting James Almer (2022-02-22 18:09:59) > > > On 2/22/2022 3:27 AM, Anton Khirnov wrote: > > Also, place the BSF api docs in their own doxygen group. > > --- > > libavcodec/bsf.h | 23 ++- > > 1 file changed, 22 insertions(+), 1 deletion(-) > > > > diff --git a/libavcode

Re: [FFmpeg-devel] [PATCH 1/2] lavc/bsf: add general documentation

2022-03-16 Thread James Almer
On 3/16/2022 8:36 AM, Anton Khirnov wrote: Quoting James Almer (2022-02-22 18:09:59) On 2/22/2022 3:27 AM, Anton Khirnov wrote: Also, place the BSF api docs in their own doxygen group. --- libavcodec/bsf.h | 23 ++- 1 file changed, 22 insertions(+), 1 deletion(-)

[FFmpeg-devel] [PATCH] avcodec/libvpxenc: enable dynamic max quantizer parameter reconfiguration

2022-03-16 Thread Danil Chapovalov
--- libavcodec/libvpxenc.c | 7 +++ 1 file changed, 7 insertions(+) diff --git a/libavcodec/libvpxenc.c b/libavcodec/libvpxenc.c index 8f94ba15dc..45baeed435 100644 --- a/libavcodec/libvpxenc.c +++ b/libavcodec/libvpxenc.c @@ -1658,6 +1658,13 @@ static int vpx_encode(AVCodecContext *avctx, AV

Re: [FFmpeg-devel] [PATCH] Allow to modify max qp configuration parameter in libvpx without reseting the encoder

2022-03-16 Thread Danil Chapovalov
On Mon, Mar 14, 2022 at 4:28 PM Jan Ekström wrote: > > On Mon, Mar 14, 2022 at 3:05 PM Danil Chapovalov > wrote: > > > > --- > > Probably something a la > > avcodec/libvpxenc: enable dynamic quantizer reconfiguration > > ? Thank you, resubmitted with new title > > > libavcodec/libvpxenc.c | 7

Re: [FFmpeg-devel] [PATCH 00/13] [RFC] Reduce unnecessary recompilation

2022-03-16 Thread Martin Storsjö
On Mon, 14 Mar 2022, Michael Niedermayer wrote: On Fri, Mar 11, 2022 at 02:17:42PM +0200, Martin Storsjö wrote: On Wed, 23 Feb 2022, Martin Storsjö wrote: When updating the ffmpeg source, one quite often ends up in a situation where practically all of the codebase (or all of a library) gets r

Re: [FFmpeg-devel] [PATCH] Allow to modify max qp configuration parameter in libvpx without reseting the encoder

2022-03-16 Thread Lynne
16 Mar 2022, 13:13 by danilchap-at-google@ffmpeg.org: > On Mon, Mar 14, 2022 at 4:28 PM Jan Ekström wrote: > >> >> On Mon, Mar 14, 2022 at 3:05 PM Danil Chapovalov >> wrote: >> > >> > --- >> >> Probably something a la >> >> avcodec/libvpxenc: enable dynamic quantizer reconfiguration >> >> ?

Re: [FFmpeg-devel] [PATCH] avcodec/libvpxenc: enable dynamic max quantizer parameter reconfiguration

2022-03-16 Thread Lynne
16 Mar 2022, 13:07 by danilchap-at-google@ffmpeg.org: > --- > libavcodec/libvpxenc.c | 7 +++ > 1 file changed, 7 insertions(+) > > diff --git a/libavcodec/libvpxenc.c b/libavcodec/libvpxenc.c > index 8f94ba15dc..45baeed435 100644 > --- a/libavcodec/libvpxenc.c > +++ b/libavcodec/libvpxen

Re: [FFmpeg-devel] [PATCH] avformat/mov: Add support for still image AVIF parsing

2022-03-16 Thread Lynne
15 Mar 2022, 22:38 by vigneshv-at-google@ffmpeg.org: > On Thu, Mar 3, 2022 at 3:58 PM Vignesh Venkatasubramanian > wrote: > >> >> Add support for parsing AVIF still images. This patches supports >> AVIF still images that have exactly 1 item (i.e.) no alpha channel. >> Essentially, we will hav

Re: [FFmpeg-devel] [PATCH] ffmpeg: remove usage of internal deprecation macro

2022-03-16 Thread Andreas Rheinhardt
James Almer: > > > On 3/16/2022 7:15 AM, Andreas Rheinhardt wrote: >> James Almer: >>> Signed-off-by: James Almer >>> --- >>>   fftools/ffmpeg.c | 4 ++-- >>>   1 file changed, 2 insertions(+), 2 deletions(-) >>> >>> diff --git a/fftools/ffmpeg.c b/fftools/ffmpeg.c >>> index a98e49b775..3b625a991

Re: [FFmpeg-devel] [PATCH] ffmpeg: remove usage of internal deprecation macro

2022-03-16 Thread James Almer
On 3/16/2022 9:58 AM, Andreas Rheinhardt wrote: James Almer: On 3/16/2022 7:15 AM, Andreas Rheinhardt wrote: James Almer: Signed-off-by: James Almer ---   fftools/ffmpeg.c | 4 ++--   1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/fftools/ffmpeg.c b/fftools/ffmpeg.c index

Re: [FFmpeg-devel] [PATCH] ffmpeg: remove usage of internal deprecation macro

2022-03-16 Thread Andreas Rheinhardt
James Almer: > > > On 3/16/2022 9:58 AM, Andreas Rheinhardt wrote: >> James Almer: >>> >>> >>> On 3/16/2022 7:15 AM, Andreas Rheinhardt wrote: James Almer: > Signed-off-by: James Almer > --- >    fftools/ffmpeg.c | 4 ++-- >    1 file changed, 2 insertions(+), 2 deletions(-)

Re: [FFmpeg-devel] [PATCH] ffmpeg: remove usage of internal deprecation macro

2022-03-16 Thread James Almer
On 3/16/2022 10:10 AM, Andreas Rheinhardt wrote: James Almer: On 3/16/2022 9:58 AM, Andreas Rheinhardt wrote: James Almer: On 3/16/2022 7:15 AM, Andreas Rheinhardt wrote: James Almer: Signed-off-by: James Almer ---    fftools/ffmpeg.c | 4 ++--    1 file changed, 2 insertions(+), 2 d

[FFmpeg-devel] libopusdec: Enable FEC/PLC

2022-03-16 Thread Philip-Dylan Gleonec
Hello, Please find attached a rebased patchset for the FEC implementation of libopus. Following the received feedbacks, some improvements have been done compared to the first version: - remove a log when a packet is decoded without FEC - add a check to only set libopus encoder packet loss estimat

[FFmpeg-devel] [PATCH 1/2] avcodec/libopusenc: reload packet loss at encode

2022-03-16 Thread Philip-Dylan Gleonec
An estimation of packet loss is required by libopus to compute its FEC data. Currently, this estimation is constant, and can not be changed after configuration. This means an application using libopus through ffmpeg can not adapt the packet loss estimation when the network quality degrades. This p

[FFmpeg-devel] [PATCH 2/2] avcodec/libopusdec: Enable FEC/PLC

2022-03-16 Thread Philip-Dylan Gleonec
Adds FEC/PLC support to libopus. The lost packets are detected as a discontinuity in the audio stream. When a discontinuity is used, this patch tries to decode the FEC data. If FEC data is present in the packet, it is decoded, otherwise audio is re-created through PLC. This patch is based on Stein

[FFmpeg-devel] [PATCH] avutil/attributes: add support for clang in AV_NOWARN_DEPRECATED

2022-03-16 Thread James Almer
Signed-off-by: James Almer --- libavutil/attributes.h | 2 +- libavutil/version.h| 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/libavutil/attributes.h b/libavutil/attributes.h index 5cb9fe3452..04c615c952 100644 --- a/libavutil/attributes.h +++ b/libavutil/attributes.h

Re: [FFmpeg-devel] [PATCH] avutil/attributes: add support for clang in AV_NOWARN_DEPRECATED

2022-03-16 Thread Martin Storsjö
On Wed, 16 Mar 2022, James Almer wrote: Signed-off-by: James Almer --- libavutil/attributes.h | 2 +- libavutil/version.h| 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/libavutil/attributes.h b/libavutil/attributes.h index 5cb9fe3452..04c615c952 100644 --- a/libavutil/a

[FFmpeg-devel] [PATCH] libavformat/dashenc: add an option to the dash muxer to create smaller manifests during live streams

2022-03-16 Thread Mathias Lacaud
Add an option 'live_window_size' which sets the maximum number of segments kept in the manifest during the transcoding. At the end, all of the segments are written in the manifest. Ignored if window_size is not set to 0. This option may be used to create smaller manifests during live streams an

Re: [FFmpeg-devel] [PATCH v4 1/4] lavc/vaapi_encode_h265: Add GPB frame support for hevc_vaapi

2022-03-16 Thread Xiang, Haihao
> > Hmm. So if we ignore both the names and the documentation as unhelpful then > the meanings you are intending are: > > Attribute unset -> no restrictions. > Attribute set -> PREVIOUS bit must be set: P and B slices are both supported > but RefPicList0 and RefPicList1 must in B slices must be

Re: [FFmpeg-devel] [PATCH] avutil/attributes: add support for clang in AV_NOWARN_DEPRECATED

2022-03-16 Thread James Almer
On 3/16/2022 11:18 AM, Martin Storsjö wrote: On Wed, 16 Mar 2022, James Almer wrote: Signed-off-by: James Almer --- libavutil/attributes.h | 2 +- libavutil/version.h    | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/libavutil/attributes.h b/libavutil/attributes.h index

Re: [FFmpeg-devel] [PATCH] avformat/mov: Add support for still image AVIF parsing

2022-03-16 Thread Vignesh Venkatasubramanian
On Wed, Mar 16, 2022 at 5:41 AM Lynne wrote: > > 15 Mar 2022, 22:38 by vigneshv-at-google@ffmpeg.org: > > > On Thu, Mar 3, 2022 at 3:58 PM Vignesh Venkatasubramanian > > wrote: > > > >> > >> Add support for parsing AVIF still images. This patches supports > >> AVIF still images that have exac

[FFmpeg-devel] [PATCH] avformat/mov: Add support for still image AVIF parsing

2022-03-16 Thread Vignesh Venkatasubramanian
Add support for parsing AVIF still images. This patches supports AVIF still images that have exactly 1 item (i.e.) no alpha channel. Essentially, we will have to parse the "iloc" box and populate the mov index. With this patch, we can decode still AVIF images like so: ffmpeg -i image.avif image.pn

[FFmpeg-devel] [PATCH] avformat/mov: Add support for still image AVIF parsing

2022-03-16 Thread Vignesh Venkatasubramanian
Add support for parsing AVIF still images. This patches supports AVIF still images that have exactly 1 item (i.e.) no alpha channel. Essentially, we will have to parse the "iloc" box and populate the mov index. With this patch, we can decode still AVIF images like so: ffmpeg -i image.avif image.pn

[FFmpeg-devel] [PATCH] Fix libversion.sh for split headers

2022-03-16 Thread Martin Storsjö
--- The extra dummy version_major.h isn't pretty though, but needed (I think?) to fulfill the make dependency. --- ffbuild/library.mak | 4 ++-- ffbuild/libversion.sh | 4 libavutil/version_major.h | 25 + 3 files changed, 31 insertions(+), 2 deletions(-)

Re: [FFmpeg-devel] [PATCH 2/2] avformat/mxfenc: do not write index tables with the same InstanceUID

2022-03-16 Thread Tomas Härdin
mån 2022-03-14 klockan 21:44 +0100 skrev Marton Balint: > > > On Mon, 14 Mar 2022, Tomas Härdin wrote: > > > mån 2022-03-14 klockan 20:54 +0100 skrev Marton Balint: > > > > > > > > > On Mon, 14 Mar 2022, Tomas Härdin wrote: > > > > > > > mån 2022-03-14 klockan 19:49 +0100 skrev Marton Balint:

Re: [FFmpeg-devel] [PATCH 02/21] avcodec/zlib_wrapper: Add wrappers for zlib inflateInit, inflateEnd

2022-03-16 Thread Tomas Härdin
> +int ff_inflate_init(FFZStream *z, void *logctx) > +{ > +    z_stream *const zstream = &z->zstream; > +    int zret; > + > +    z->inited = 0; > +    zstream->next_in  = Z_NULL; > +    zstream->avail_in = 0; > +    zstream->zalloc   = Z_NULL; > +    zstream->zfree    = Z_NULL; > +    zstream->opa

Re: [FFmpeg-devel] [PATCH 2/4] avfilter/vf_zscale: fix number of threads

2022-03-16 Thread Marton Balint
On Wed, 16 Mar 2022, Victoria Zhislina wrote: Thanks for the fix, lgtm as well. Thanks, applied the zscale patches in the series. Regards, Marton On Tue, Mar 15, 2022 at 12:56 AM Paul B Mahol wrote: lgtm ___ ffmpeg-devel mailing list ffmpeg

Re: [FFmpeg-devel] [PATCH 03/21] avcodec/zmbv: Use ff_inflate_init/end()

2022-03-16 Thread Tomas Härdin
tis 2022-03-15 klockan 21:05 +0100 skrev Andreas Rheinhardt: > Returns better error messages in case of error and deduplicates > the inflateInit() code. > > Signed-off-by: Andreas Rheinhardt > --- >  configure |  2 +- >  libavcodec/zmbv.c | 38 ++ >  2 f

Re: [FFmpeg-devel] [PATCH 02/21] avcodec/zlib_wrapper: Add wrappers for zlib inflateInit, inflateEnd

2022-03-16 Thread Andreas Rheinhardt
Tomas Härdin: >> +int ff_inflate_init(FFZStream *z, void *logctx) >> +{ >> +    z_stream *const zstream = &z->zstream; >> +    int zret; >> + >> +    z->inited = 0; >> +    zstream->next_in  = Z_NULL; >> +    zstream->avail_in = 0; >> +    zstream->zalloc   = Z_NULL; >> +    zstream->zfree    = Z_N

Re: [FFmpeg-devel] [PATCH 2/2] avformat/mxfenc: do not write index tables with the same InstanceUID

2022-03-16 Thread Marton Balint
On Wed, 16 Mar 2022, Tomas Härdin wrote: mån 2022-03-14 klockan 21:44 +0100 skrev Marton Balint: On Mon, 14 Mar 2022, Tomas Härdin wrote: > mån 2022-03-14 klockan 20:54 +0100 skrev Marton Balint: > > > > > > On Mon, 14 Mar 2022, Tomas Härdin wrote: > > > > > mån 2022-03-14 klockan 19:49

Re: [FFmpeg-devel] [PATCH 18/21] avcodec/zmbvenc: Use ff_deflate_init/end() wrappers

2022-03-16 Thread Tomas Härdin
tis 2022-03-15 klockan 21:06 +0100 skrev Andreas Rheinhardt: > They emit better error messages (it does not claim that inflateInit > failed upon an error from deflateInit!) and uses our allocation > functions. > > Signed-off-by: Andreas Rheinhardt > --- >  configure    |  2 +- >  libavcod

Re: [FFmpeg-devel] [PATCH 2/2] avformat/mxfenc: do not write index tables with the same InstanceUID

2022-03-16 Thread Tomas Härdin
ons 2022-03-16 klockan 20:38 +0100 skrev Marton Balint: > > > On Wed, 16 Mar 2022, Tomas Härdin wrote: > > > mån 2022-03-14 klockan 21:44 +0100 skrev Marton Balint: > > > > > > > > > On Mon, 14 Mar 2022, Tomas Härdin wrote: > > > > > > > mån 2022-03-14 klockan 20:54 +0100 skrev Marton Balint:

Re: [FFmpeg-devel] [PATCH 02/21] avcodec/zlib_wrapper: Add wrappers for zlib inflateInit, inflateEnd

2022-03-16 Thread Tomas Härdin
ons 2022-03-16 klockan 20:32 +0100 skrev Andreas Rheinhardt: > Tomas Härdin: > > > +int ff_inflate_init(FFZStream *z, void *logctx) > > > +{ > > > +    z_stream *const zstream = &z->zstream; > > > +    int zret; > > > + > > > +    z->inited = 0; > > > +    zstream->next_in  = Z_NULL; > > > +    zst

Re: [FFmpeg-devel] [PATCH] avfilter: add Audio Video Sync Test filter

2022-03-16 Thread Nicolas George
Paul B Mahol (12022-03-09): > Signed-off-by: Paul B Mahol > --- > libavfilter/Makefile | 1 + > libavfilter/allfilters.c | 1 + > libavfilter/src_avsynctest.c | 399 +++ > 3 files changed, 401 insertions(+) > create mode 100644 libavfilter/src_avsy

Re: [FFmpeg-devel] [PATCH 4/4] avfilter/vf_zscale: realign output buffer if needed

2022-03-16 Thread James Almer
On 3/14/2022 6:06 PM, Marton Balint wrote: Output buffer alignment might be different to ZIMG_ALIGNMENT or it may not be aligned at all if a downstream filter (e.g. vf_pad) intentionally misaligns it. av_frame_get_buffer() align parameter is used to align linesizes, not buffers. av_malloc() ha

Re: [FFmpeg-devel] [PATCH 4/4] avfilter/vf_zscale: realign output buffer if needed

2022-03-16 Thread James Almer
On 3/16/2022 5:52 PM, James Almer wrote: On 3/14/2022 6:06 PM, Marton Balint wrote: Output buffer alignment might be different to ZIMG_ALIGNMENT or it may not be aligned at all if a downstream filter (e.g. vf_pad) intentionally misaligns it. av_frame_get_buffer() align parameter is used to al

Re: [FFmpeg-devel] [PATCH 2/2] avformat/mxfenc: do not write index tables with the same InstanceUID

2022-03-16 Thread Marton Balint
On Wed, 16 Mar 2022, Tomas Härdin wrote: ons 2022-03-16 klockan 20:38 +0100 skrev Marton Balint: On Wed, 16 Mar 2022, Tomas Härdin wrote: > mån 2022-03-14 klockan 21:44 +0100 skrev Marton Balint: > > > > > > On Mon, 14 Mar 2022, Tomas Härdin wrote: > > > > > mån 2022-03-14 klockan 20:54

Re: [FFmpeg-devel] [PATCH] avfilter: add Audio Video Sync Test filter

2022-03-16 Thread Paul B Mahol
On Wed, Mar 16, 2022 at 9:08 PM Nicolas George wrote: > Paul B Mahol (12022-03-09): > > Signed-off-by: Paul B Mahol > > --- > > libavfilter/Makefile | 1 + > > libavfilter/allfilters.c | 1 + > > libavfilter/src_avsynctest.c | 399 +++ > > 3 files

[FFmpeg-devel] [PATCH 3/3] avcodec/codec_internal: Rename AVCodecDefault->FFCodecDefault

2022-03-16 Thread Andreas Rheinhardt
This structure is no longer declared in a public header, so using an FF-prefix is more appropriate. Signed-off-by: Andreas Rheinhardt --- libavcodec/aacenc.c| 2 +- libavcodec/ac3enc.c| 2 +- libavcodec/ac3enc.h| 2 +- libavcodec/amfenc_h264.c

Re: [FFmpeg-devel] [PATCH 4/4] avfilter/vf_zscale: realign output buffer if needed

2022-03-16 Thread Marton Balint
On Wed, 16 Mar 2022, James Almer wrote: On 3/14/2022 6:06 PM, Marton Balint wrote: Output buffer alignment might be different to ZIMG_ALIGNMENT or it may not be aligned at all if a downstream filter (e.g. vf_pad) intentionally misaligns it. av_frame_get_buffer() align parameter is used

Re: [FFmpeg-devel] [PATCH] avcodec/libvpxenc: enable dynamic max quantizer parameter reconfiguration

2022-03-16 Thread James Zern
Lynne, On Wed, Mar 16, 2022 at 5:39 AM Lynne wrote: > > 16 Mar 2022, 13:07 by danilchap-at-google@ffmpeg.org: > > > --- > > libavcodec/libvpxenc.c | 7 +++ > > 1 file changed, 7 insertions(+) > > > > diff --git a/libavcodec/libvpxenc.c b/libavcodec/libvpxenc.c > > index 8f94ba15dc..45ba

[FFmpeg-devel] [PATCH] fate: add a setts bsf test

2022-03-16 Thread James Almer
Signed-off-by: James Almer --- tests/fate/ffmpeg.mak | 2 ++ tests/ref/fate/ffmpeg-setts-bsf | 46 + 2 files changed, 48 insertions(+) create mode 100644 tests/ref/fate/ffmpeg-setts-bsf diff --git a/tests/fate/ffmpeg.mak b/tests/fate/ffmpeg.mak index 4

[FFmpeg-devel] [PATCH] avcodec/setts_bsf: don't repeatedly set start pts and dts

2022-03-16 Thread James Almer
Signed-off-by: James Almer --- libavcodec/setts_bsf.c | 17 ++--- 1 file changed, 6 insertions(+), 11 deletions(-) diff --git a/libavcodec/setts_bsf.c b/libavcodec/setts_bsf.c index b7732214ee..3c666b5061 100644 --- a/libavcodec/setts_bsf.c +++ b/libavcodec/setts_bsf.c @@ -91,9 +91,6

Re: [FFmpeg-devel] [PATCH 2/2] avutil/hwcontext_videotoolbox: fix declaration-after-statement

2022-03-16 Thread zhilizhao(赵志立)
Feel free to drop this one, there is no real gain. > On Mar 10, 2022, at 12:37 PM, Zhao Zhili wrote: > > --- > libavutil/hwcontext_videotoolbox.c | 8 > 1 file changed, 4 insertions(+), 4 deletions(-) > > diff --git a/libavutil/hwcontext_videotoolbox.c > b/libavutil/hwcontext_videotool

[FFmpeg-devel] [PATCH] libavcodec/hevc_mp4toannexb_bsf: insert extradata before non-AUD unit

2022-03-16 Thread Xiang, Haihao
From: Haihao Xiang It is possible that an IRAP frame in input AVPacket contains VPS, SPS and PPS, and these headers should take effect. However the prepended extradata might override these headers. This patch inserts extradata before non-AUD unit, hence VPS, SPS and PPS from the input AVPacket wi

[FFmpeg-devel] AAudio source for libavdevice

2022-03-16 Thread Dmitry A
Hello. Is there a way to grab audio under android? Do I need to create it by myself? -- Thanks! Dmitry ___ ffmpeg-devel mailing list ffmpeg-devel@ffmpeg.org https://ffmpeg.org/mailman/listinfo/ffmpeg-devel To unsubscribe, visit link above, or email ffm

[FFmpeg-devel] [PATCH v5 1/4] lavc/vaapi_encode_h265: Add GPB frame support for hevc_vaapi

2022-03-16 Thread Fei Wang
From: Linjie Fu Use GPB frames to replace regular P/B frames if backend driver does not support it. - GPB: Generalized P and B picture. Regular P/B frames replaced by B frames with previous-predict only, L0 == L1. Normal B frames still have 2 different ref_lists and allow bi-predicti

[FFmpeg-devel] [PATCH v5 2/4] vaapi_encode: Move block size calculation after entrypoint selection

2022-03-16 Thread Fei Wang
From: Mark Thompson The block size can be dependent on the profile and entrypoint selected. It defaults to 16x16, with codecs able to override this choice with their own function. Signed-off-by: Fei Wang --- libavcodec/vaapi_encode.c | 16 libavcodec/vaapi_encode.h

[FFmpeg-devel] [PATCH v5 3/4] vaapi_encode_h265: Explicitly set and correct some flags

2022-03-16 Thread Fei Wang
From: Mark Thompson max_14bit_constraint_flag should be set if the bit depth is not greater than 14 (currently always true). one_picture_only_flag should not be set because we don't support the still picture profiles. general_profile_compatibility_flag should be set according to general_profil

[FFmpeg-devel] [PATCH v5 4/4] vaapi_encode_h265: Query encoding block sizes and features

2022-03-16 Thread Fei Wang
From: Mark Thompson Signed-off-by: Fei Wang --- libavcodec/vaapi_encode_h265.c | 114 +++-- 1 file changed, 108 insertions(+), 6 deletions(-) diff --git a/libavcodec/vaapi_encode_h265.c b/libavcodec/vaapi_encode_h265.c index cafc860772..ad138b6ddb 100644 --- a/libav