[FFmpeg-devel] [PATCH v1 1/2] avutil/buffer: support represents dma-buf

2021-11-12 Thread Ming Qian
add a member dmafd in buffer struct. we can use it represents dma-buf. Signed-off-by: Ming Qian --- libavutil/buffer.c | 12 libavutil/buffer.h | 14 ++ libavutil/buffer_internal.h | 1 + 3 files changed, 27 insertions(+) diff --git a/libavutil/buffer

[FFmpeg-devel] [PATCH v1 2/2] avcodec/v4l2_buffer: export v4l2 buffer dma-buf

2021-11-12 Thread Ming Qian
Signed-off-by: Ming Qian --- libavcodec/v4l2_buffers.c | 14 ++ libavcodec/v4l2_buffers.h | 1 + libavcodec/v4l2_context.c | 4 3 files changed, 19 insertions(+) diff --git a/libavcodec/v4l2_buffers.c b/libavcodec/v4l2_buffers.c index 4b2679eb3814..efa42f4c58ea 100644 --- a/li

Re: [FFmpeg-devel] [PATCH v1 2/2] avcodec/v4l2_buffer: export v4l2 buffer dma-buf

2021-11-12 Thread Lynne
12 Nov 2021, 09:36 by ming.q...@nxp.com: > Signed-off-by: Ming Qian > --- > libavcodec/v4l2_buffers.c | 14 ++ > libavcodec/v4l2_buffers.h | 1 + > libavcodec/v4l2_context.c | 4 > 3 files changed, 19 insertions(+) > > diff --git a/libavcodec/v4l2_buffers.c b/libavcodec/v4l2_b

[FFmpeg-devel] [PATCH 01/11] avformat/rtpdec_rfc4175: use rawvideo for uyvy422

2021-11-12 Thread lance . lmwang
From: Limin Wang Signed-off-by: Limin Wang --- libavformat/rtpdec_rfc4175.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/libavformat/rtpdec_rfc4175.c b/libavformat/rtpdec_rfc4175.c index f50cad7..f13736b 100644 --- a/libavformat/rtpdec_rfc4175.c +++ b/libavformat/rtpde

[FFmpeg-devel] [PATCH 02/11] avcodec/bitpacked: remove unneeded 8bit support

2021-11-12 Thread lance . lmwang
From: Limin Wang Signed-off-by: Limin Wang --- libavcodec/bitpacked.c | 44 +--- 1 file changed, 5 insertions(+), 39 deletions(-) diff --git a/libavcodec/bitpacked.c b/libavcodec/bitpacked.c index 0440df9..d239141 100644 --- a/libavcodec/bitpacked.c +++

[FFmpeg-devel] [PATCH 03/11] avformat/rtpdec_rfc4175: remove the unused tag

2021-11-12 Thread lance . lmwang
From: Limin Wang Signed-off-by: Limin Wang --- libavformat/rtpdec_rfc4175.c | 3 --- 1 file changed, 3 deletions(-) diff --git a/libavformat/rtpdec_rfc4175.c b/libavformat/rtpdec_rfc4175.c index f13736b..fe0754f 100644 --- a/libavformat/rtpdec_rfc4175.c +++ b/libavformat/rtpdec_rfc4175.c @@ -4

[FFmpeg-devel] [PATCH 04/11] avformat/rtpdec_rfc4175: support for yuv420p format

2021-11-12 Thread lance . lmwang
From: Limin Wang Signed-off-by: Limin Wang --- libavformat/rtpdec_rfc4175.c | 11 +++ 1 file changed, 11 insertions(+) diff --git a/libavformat/rtpdec_rfc4175.c b/libavformat/rtpdec_rfc4175.c index fe0754f..81930ce 100644 --- a/libavformat/rtpdec_rfc4175.c +++ b/libavformat/rtpdec_rfc4

[FFmpeg-devel] [PATCH 05/11] avformat/rtpenc: adds partial support for the RFC 4175

2021-11-12 Thread lance . lmwang
From: Limin Wang Signed-off-by: Limin Wang --- libavformat/Makefile | 1 + libavformat/rtpenc.c | 4 ++ libavformat/rtpenc.h | 1 + libavformat/rtpenc_rfc4175.c | 116 +++ libavformat/sdp.c| 25 ++ 5 file

[FFmpeg-devel] [PATCH 06/11] avcodec: use s210 fourcc for 10-bit 4:2:2 packed

2021-11-12 Thread lance . lmwang
From: Limin Wang s210 is used by AWS Elemental Live encoder so I prefer to use same to support 4:2:2 10-bit packed uncompressed video. Refer to: https://docs.aws.amazon.com/elemental-live/latest/ug/codec-vod-outputs.html I split the patch for better review, next patch will rename bitpacked.c to

[FFmpeg-devel] [PATCH 11/11] avformat/movenc: add s210 4:2:2 10-bit packed

2021-11-12 Thread lance . lmwang
From: Limin Wang S210 is not regiestered by official registration authority yet, so the patch is just to help testing s210 encoder/decode locally. Signed-off-by: Limin Wang --- libavformat/isom_tags.c | 1 + libavformat/movenc.c| 1 + 2 files changed, 2 insertions(+) diff --git a/libavfor

[FFmpeg-devel] [PATCH 07/11] avcodec: rename bitpacked.c to s210dec.c

2021-11-12 Thread lance . lmwang
From: Limin Wang Signed-off-by: Limin Wang --- libavcodec/Makefile| 2 +- libavcodec/bitpacked.c | 125 - libavcodec/s210dec.c | 125 + 3 files changed, 126 insertions(+), 126 deletions(-) d

[FFmpeg-devel] [PATCH 08/11] avcodec: suppport for s210 encode

2021-11-12 Thread lance . lmwang
From: Limin Wang Signed-off-by: Limin Wang --- libavcodec/Makefile| 1 + libavcodec/allcodecs.c | 1 + libavcodec/s210enc.c | 90 ++ 3 files changed, 92 insertions(+) create mode 100644 libavcodec/s210enc.c diff --git a/libavcodec/Makefi

[FFmpeg-devel] [PATCH 09/11] avformat: suppport for 4:2:2 10-bit for rfc4175

2021-11-12 Thread lance . lmwang
From: Limin Wang Signed-off-by: Limin Wang --- libavformat/rtpenc.c | 2 ++ libavformat/rtpenc_rfc4175.c | 4 libavformat/sdp.c| 5 + 3 files changed, 11 insertions(+) diff --git a/libavformat/rtpenc.c b/libavformat/rtpenc.c index 4f115cc..a60e647 100644 --- a/liba

[FFmpeg-devel] [PATCH 10/11] avcodec/s210dec: support 4:2:2 10bit only and remove the EXPERIMENTAL capability

2021-11-12 Thread lance . lmwang
From: Limin Wang Don't need set the pix_fmt to YUV422P10 anymore. Signed-off-by: Limin Wang --- libavcodec/s210dec.c | 9 +++-- 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/libavcodec/s210dec.c b/libavcodec/s210dec.c index 7bc5dbc..a89546f 100644 --- a/libavcodec/s210dec.c

[FFmpeg-devel] [PATCH v2] lavfi: add a libplacebo filter

2021-11-12 Thread Niklas Haas
From: Niklas Haas This filter conceptually maps the libplacebo `pl_renderer` API into libavfilter, which is a high-level image rendering API designed to work with an RGB pipeline internally. As such, there's no way to avoid e.g. chroma interpolation with this filter, although new versions of libp

Re: [FFmpeg-devel] [PATCH 06/11] avcodec: use s210 fourcc for 10-bit 4:2:2 packed

2021-11-12 Thread zhilizhao(赵志立)
> On Nov 12, 2021, at 6:22 PM, lance.lmw...@gmail.com wrote: > > From: Limin Wang > > s210 is used by AWS Elemental Live encoder so I prefer to use same to support > 4:2:2 10-bit packed uncompressed video. Refer to: > https://docs.aws.amazon.com/elemental-live/latest/ug/codec-vod-outputs.html

[FFmpeg-devel] [PATCH] */version.h: define FF_API macros unconditionally

2021-11-12 Thread Anton Khirnov
There is no reason to wrap them in #ifndef guards, they should only be defined here and nowhere else. The define guards just add the possibility to accidentally use the same FF_API name in different libraries. --- libavcodec/version.h | 24 libavdevice/version.h | 2 --

Re: [FFmpeg-devel] [PATCH] */version.h: define FF_API macros unconditionally

2021-11-12 Thread James Almer
On 11/12/2021 10:34 AM, Anton Khirnov wrote: There is no reason to wrap them in #ifndef guards, they should only be defined here and nowhere else. The define guards just add the possibility to accidentally use the same FF_API name in different libraries. Should be ok. We can also later look in

Re: [FFmpeg-devel] [PATCH v2] lavfi: add a libplacebo filter

2021-11-12 Thread Lynne
Nov 12, 2021, 11:58 by ffm...@haasn.xyz: > From: Niklas Haas > > This filter conceptually maps the libplacebo `pl_renderer` API into > libavfilter, which is a high-level image rendering API designed to work > with an RGB pipeline internally. As such, there's no way to avoid e.g. > chroma interpol

Re: [FFmpeg-devel] [PATCH] */version.h: define FF_API macros unconditionally

2021-11-12 Thread Hendrik Leppkes
On Fri, Nov 12, 2021 at 2:35 PM Anton Khirnov wrote: > > There is no reason to wrap them in #ifndef guards, they should only be > defined here and nowhere else. The define guards just add the > possibility to accidentally use the same FF_API name in different > libraries. Wasn't the idea here tha

Re: [FFmpeg-devel] [PATCH] */version.h: define FF_API macros unconditionally

2021-11-12 Thread Anton Khirnov
Quoting Hendrik Leppkes (2021-11-12 14:59:41) > On Fri, Nov 12, 2021 at 2:35 PM Anton Khirnov wrote: > > > > There is no reason to wrap them in #ifndef guards, they should only be > > defined here and nowhere else. The define guards just add the > > possibility to accidentally use the same FF_API

Re: [FFmpeg-devel] [FFmpeg-cvslog] avcodec/mlpdec: cover case when >2 channels are in single substream

2021-11-12 Thread Michael Niedermayer
On Thu, Nov 11, 2021 at 08:56:54PM +, Paul B Mahol wrote: > ffmpeg | branch: master | Paul B Mahol | Thu Nov 11 > 09:48:07 2021 +0100| [946493eb3e072b499909f606625480c928834a44] | committer: > Paul B Mahol > > avcodec/mlpdec: cover case when >2 channels are in single substream > > Previous

[FFmpeg-devel] [PATCH 1/2] avdevice/dshow: fix print format for some variables

2021-11-12 Thread James Almer
WAVEFORMATEX.nChannels and WAVEFORMATEX.wBitsPerSample are of type WORD, aka unsigned short. Signed-off-by: James Almer --- libavdevice/dshow.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libavdevice/dshow.c b/libavdevice/dshow.c index e313c9a2bf..fd62d79443 100644 --- a/

[FFmpeg-devel] [PATCH 2/2] avdevice/dshow: remove unused acaps variable

2021-11-12 Thread James Almer
Unused since commit d9a9b4c877b85fea5a5bad74c3d592a756047f79. Signed-off-by: James Almer --- libavdevice/dshow.c | 4 1 file changed, 4 deletions(-) diff --git a/libavdevice/dshow.c b/libavdevice/dshow.c index fd62d79443..0f954dde6f 100644 --- a/libavdevice/dshow.c +++ b/libavdevice/dshow.

[FFmpeg-devel] trac spiders

2021-11-12 Thread Michael Niedermayer
Hi all i just made the following changes to robots.txt on trac because trac seemed a bit unhappy and the logs showed some spiders indexing strange things. I do not know if that was the cause for occasional trac overload @@ -15,9 +15,20 @@ Disallow: /timeline Disallow: /vote Disallow: /zip-atta

[FFmpeg-devel] [PATCH 3/6] lavf: add public functions converting dispositions to/from strings

2021-11-12 Thread Anton Khirnov
--- doc/APIchanges | 1 + libavformat/avformat.h | 14 + libavformat/utils.c| 47 ++ 3 files changed, 62 insertions(+) diff --git a/doc/APIchanges b/doc/APIchanges index a86f4b936e..53f229d41a 100644 --- a/doc/APIchanges +++ b/doc/A

[FFmpeg-devel] [PATCH 2/6] lavf: add an AVClass to AVStream on next major bump

2021-11-12 Thread Anton Khirnov
Also add a function to retrieve that class, analogously to avformat_get_class(). This will be useful for adding an AVOption for dispositions. --- doc/APIchanges | 4 libavformat/avformat.h | 15 +++ libavformat/utils.c| 15 +++ libavformat/version.h | 3

[FFmpeg-devel] [PATCH 1/6] lavf: improve AV_DISPOSITION_* doxy

2021-11-12 Thread Anton Khirnov
Also switch the values definition to the (1 << N) style, which is easier to read. --- libavformat/avformat.h | 96 +- 1 file changed, 77 insertions(+), 19 deletions(-) diff --git a/libavformat/avformat.h b/libavformat/avformat.h index a2af7e9f89..7d8ad08f07

[FFmpeg-devel] [PATCH 4/6] lavf: add "disposition" AVOption to AVStream AVClass

2021-11-12 Thread Anton Khirnov
Use it to remove custom disposition parsing code from ffmpeg.c --- doc/APIchanges | 1 + fftools/ffmpeg.c| 40 libavformat/utils.c | 24 3 files changed, 37 insertions(+), 28 deletions(-) diff --git a/doc/APIchanges b/doc

[FFmpeg-devel] [PATCH 5/6] cmdutils: add an option for listing stream dispositions

2021-11-12 Thread Anton Khirnov
--- doc/fftools-common-opts.texi | 3 +++ fftools/cmdutils.c | 10 ++ fftools/cmdutils.h | 6 ++ 3 files changed, 19 insertions(+) diff --git a/doc/fftools-common-opts.texi b/doc/fftools-common-opts.texi index 7643dd8396..d9145704d6 100644 --- a/doc/fftools-commo

[FFmpeg-devel] [PATCH 6/6] ffmpeg: rewrite setting the stream disposition

2021-11-12 Thread Anton Khirnov
Currently, the code doing this is spread over several places and may behave in unexpected ways. E.g. automatic 'default' marking is only done for streams fed by complex filtergraphs. It is also applied in the order in which the output streams are initialized, which is effectively random. Move proc

Re: [FFmpeg-devel] [PATCH 2/6] lavf: add an AVClass to AVStream on next major bump

2021-11-12 Thread James Almer
On 11/12/2021 1:32 PM, Anton Khirnov wrote: Also add a function to retrieve that class, analogously to avformat_get_class(). This will be useful for adding an AVOption for dispositions. While it's true that quite a few months have passed since the bump, we haven't made a release just yet that

Re: [FFmpeg-devel] [PATCH 2/6] lavf: add an AVClass to AVStream on next major bump

2021-11-12 Thread Anton Khirnov
Quoting James Almer (2021-11-12 17:36:58) > On 11/12/2021 1:32 PM, Anton Khirnov wrote: > > Also add a function to retrieve that class, analogously to > > avformat_get_class(). > > > > This will be useful for adding an AVOption for dispositions. > > While it's true that quite a few months have pa

Re: [FFmpeg-devel] [PATCH 2/6] lavf: add an AVClass to AVStream on next major bump

2021-11-12 Thread James Almer
On 11/12/2021 1:47 PM, Anton Khirnov wrote: Quoting James Almer (2021-11-12 17:36:58) On 11/12/2021 1:32 PM, Anton Khirnov wrote: Also add a function to retrieve that class, analogously to avformat_get_class(). This will be useful for adding an AVOption for dispositions. While it's true that

[FFmpeg-devel] [PATCH 1/2] aarch64: Use ret x instead of br x where possible

2021-11-12 Thread Jonathan Wright
Hi, This patch changes all AArch64 assembly code to use: ret x instead of: br x "ret x" is already used in a lot of places so this patch makes it consistent across the code base. This does not change behavior or performance. In addition, this change reduces the number of landing pad

[FFmpeg-devel] [PATCH 2/2] aarch64: Add Armv8.5-A BTI support

2021-11-12 Thread Jonathan Wright
Hi, This patch adds Branch Target Identifiers (BTIs) to all functions defined in AArch64 assembly files. Most of the BTI landing pads are added automatically by the 'function' macro. BTI support is turned on or off at compile time based on the presence of the __ARM_FEATURE_BTI_DEFAULT feature mac

Re: [FFmpeg-devel] [PATCH] avformat/scd: add demuxer

2021-11-12 Thread Zane van Iperen
Ping? Pretty sure most people didn't get this as I was making DMARC changes at the time. I can re-send if necessary. On 4/11/21 00:29, Zane van Iperen wrote: Adds demuxer for Square Enux SCD files. s/Enux/Enix/ Based off [1] and personal investigation. This has only been tested against D

Re: [FFmpeg-devel] [PATCH 2/6] lavf: add an AVClass to AVStream on next major bump

2021-11-12 Thread Hendrik Leppkes
On Fri, Nov 12, 2021 at 5:47 PM Anton Khirnov wrote: > > Quoting James Almer (2021-11-12 17:36:58) > > On 11/12/2021 1:32 PM, Anton Khirnov wrote: > > > Also add a function to retrieve that class, analogously to > > > avformat_get_class(). > > > > > > This will be useful for adding an AVOption for

Re: [FFmpeg-devel] [PATCH 1/2] aarch64: Use ret x instead of br x where possible

2021-11-12 Thread Jonathan Wright
Resend patch as a text attachment... Apologies, Jonathan From: ffmpeg-devel on behalf of Jonathan Wright Sent: 12 November 2021 17:30 To: ffmpeg-devel@ffmpeg.org Cc: mar...@martin.st Subject: [FFmpeg-devel] [PATCH 1/2] aarch64: Use ret x instead of br x

[FFmpeg-devel] [PATCH] lavfi/vf_libplacebo: pick log level dynamically

2021-11-12 Thread Niklas Haas
From: Niklas Haas In particular, allows users to go all the way up to PL_LOG_TRACE if desired. (While also avoiding some potentially unnecessary callbacks for filtered messages, including e.g. the CPU cost of printing out shader sources) Response to runtime log level changes by updating it once

Re: [FFmpeg-devel] [PATCH 2/6] lavf: add an AVClass to AVStream on next major bump

2021-11-12 Thread Lynne
12 Nov 2021, 20:00 by h.lepp...@gmail.com: > On Fri, Nov 12, 2021 at 5:47 PM Anton Khirnov wrote: > >> >> Quoting James Almer (2021-11-12 17:36:58) >> > On 11/12/2021 1:32 PM, Anton Khirnov wrote: >> > > Also add a function to retrieve that class, analogously to >> > > avformat_get_class(). >> >

Re: [FFmpeg-devel] FFmpeg UDP multicast support broken on OpenBSD

2021-11-12 Thread Marton Balint
On Fri, 12 Nov 2021, Brad Smith wrote: Hi, I am looking for some feedback regarding a ticket I opened for UDP multicast support currently being broken on OpenBSD. https://trac.ffmpeg.org/ticket/9449 Well, send the patch to the list. I believe it is platform dependant which type should

Re: [FFmpeg-devel] [PATCH] lavfi/vf_libplacebo: pick log level dynamically

2021-11-12 Thread Lynne
12 Nov 2021, 20:24 by ffm...@haasn.xyz: > From: Niklas Haas > > In particular, allows users to go all the way up to PL_LOG_TRACE if > desired. (While also avoiding some potentially unnecessary callbacks for > filtered messages, including e.g. the CPU cost of printing out shader > sources) > > Res

Re: [FFmpeg-devel] doc/t2h.pm: change INLINE_CONTENTS to CONTENTS_OUTPUT_LOCATION

2021-11-12 Thread Gyan Doshi
On 2021-11-13 12:08 am, Matthew White wrote: On 2021-11-12 11:00 am, Gyan Doshi wrote: Which version of texinfo are you using? texi2any (GNU texinfo) 6.8 ffmpeg version 4.4 Copyright (c) 2000-2021 the FFmpeg developers With this patch, do you get any warnings or errors during build? Test