Git Inbox Mirror of the ffmpeg-devel mailing list - see https://ffmpeg.org/mailman/listinfo/ffmpeg-devel
 help / color / mirror / Atom feed
* [FFmpeg-devel] [RFC] [PATCH] avfilter/avfilter: add flag to signal filters that support w/h change
@ 2023-06-13 14:47 Paul B Mahol
  2023-06-14 16:44 ` Paul B Mahol
  0 siblings, 1 reply; 9+ messages in thread
From: Paul B Mahol @ 2023-06-13 14:47 UTC (permalink / raw)
  To: FFmpeg development discussions and patches

[-- Attachment #1: Type: text/plain, Size: 10 bytes --]

Attached.

[-- Attachment #2: 0001-avfilter-avfilter-add-flag-to-signal-filters-that-su.patch --]
[-- Type: text/x-patch, Size: 1087 bytes --]

From 440616b9400d6d6a4705b6feedcd5439cd9e54c2 Mon Sep 17 00:00:00 2001
From: Paul B Mahol <onemda@gmail.com>
Date: Tue, 13 Jun 2023 16:39:12 +0200
Subject: [PATCH] avfilter/avfilter: add flag to signal filters that support
 w/h change

Signed-off-by: Paul B Mahol <onemda@gmail.com>
---
 libavfilter/avfilter.h | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/libavfilter/avfilter.h b/libavfilter/avfilter.h
index d69381aed4..f5df36dd65 100644
--- a/libavfilter/avfilter.h
+++ b/libavfilter/avfilter.h
@@ -159,6 +159,12 @@ enum AVMediaType avfilter_pad_get_type(const AVFilterPad *pads, int pad_idx);
  */
 #define AVFILTER_FLAG_SUPPORT_TIMELINE (AVFILTER_FLAG_SUPPORT_TIMELINE_GENERIC | AVFILTER_FLAG_SUPPORT_TIMELINE_INTERNAL)
 
+/**
+ * The filter supports variable image size processing. This means
+ * input frames width and/or height can change in size.
+ */
+#define AVFILTER_FLAG_SUPPORT_VARIABLE_IMAGE_SIZE (1 << 18)
+
 /**
  * Filter definition. This defines the pads a filter contains, and all the
  * callback functions used to interact with the filter.
-- 
2.39.1


[-- Attachment #3: Type: text/plain, Size: 251 bytes --]

_______________________________________________
ffmpeg-devel mailing list
ffmpeg-devel@ffmpeg.org
https://ffmpeg.org/mailman/listinfo/ffmpeg-devel

To unsubscribe, visit link above, or email
ffmpeg-devel-request@ffmpeg.org with subject "unsubscribe".

^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: [FFmpeg-devel] [RFC] [PATCH] avfilter/avfilter: add flag to signal filters that support w/h change
  2023-06-13 14:47 [FFmpeg-devel] [RFC] [PATCH] avfilter/avfilter: add flag to signal filters that support w/h change Paul B Mahol
@ 2023-06-14 16:44 ` Paul B Mahol
  2023-06-14 17:05   ` Nicolas George
  0 siblings, 1 reply; 9+ messages in thread
From: Paul B Mahol @ 2023-06-14 16:44 UTC (permalink / raw)
  To: FFmpeg development discussions and patches

Will apply soon.
_______________________________________________
ffmpeg-devel mailing list
ffmpeg-devel@ffmpeg.org
https://ffmpeg.org/mailman/listinfo/ffmpeg-devel

To unsubscribe, visit link above, or email
ffmpeg-devel-request@ffmpeg.org with subject "unsubscribe".

^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: [FFmpeg-devel] [RFC] [PATCH] avfilter/avfilter: add flag to signal filters that support w/h change
  2023-06-14 16:44 ` Paul B Mahol
@ 2023-06-14 17:05   ` Nicolas George
  2023-06-14 17:31     ` Paul B Mahol
  0 siblings, 1 reply; 9+ messages in thread
From: Nicolas George @ 2023-06-14 17:05 UTC (permalink / raw)
  To: FFmpeg development discussions and patches


[-- Attachment #1.1: Type: text/plain, Size: 142 bytes --]

Paul B Mahol (12023-06-14):
> Will apply soon.

A flag connected with no code at all? What is it supposed to do?

-- 
  Nicolas George

[-- Attachment #1.2: signature.asc --]
[-- Type: application/pgp-signature, Size: 833 bytes --]

[-- Attachment #2: Type: text/plain, Size: 251 bytes --]

_______________________________________________
ffmpeg-devel mailing list
ffmpeg-devel@ffmpeg.org
https://ffmpeg.org/mailman/listinfo/ffmpeg-devel

To unsubscribe, visit link above, or email
ffmpeg-devel-request@ffmpeg.org with subject "unsubscribe".

^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: [FFmpeg-devel] [RFC] [PATCH] avfilter/avfilter: add flag to signal filters that support w/h change
  2023-06-14 17:05   ` Nicolas George
@ 2023-06-14 17:31     ` Paul B Mahol
  2023-06-14 17:33       ` Nicolas George
  0 siblings, 1 reply; 9+ messages in thread
From: Paul B Mahol @ 2023-06-14 17:31 UTC (permalink / raw)
  To: FFmpeg development discussions and patches

On Wed, Jun 14, 2023 at 7:05 PM Nicolas George <george@nsup.org> wrote:

> Paul B Mahol (12023-06-14):
> > Will apply soon.
>
> A flag connected with no code at all? What is it supposed to do?
>

To flag filters that can work with variable frame size changes
all the time in graph. So no rescalers are need to be inserted or
filtergraph reset.

Once all such filters are flaged with such capability then code will be
added so auto inserted rescale filter is inserted where neccesarry to
filters in
filtergraph that do not support dynamic width/height changes.


>
> --
>   Nicolas George
> _______________________________________________
> ffmpeg-devel mailing list
> ffmpeg-devel@ffmpeg.org
> https://ffmpeg.org/mailman/listinfo/ffmpeg-devel
>
> To unsubscribe, visit link above, or email
> ffmpeg-devel-request@ffmpeg.org with subject "unsubscribe".
>
_______________________________________________
ffmpeg-devel mailing list
ffmpeg-devel@ffmpeg.org
https://ffmpeg.org/mailman/listinfo/ffmpeg-devel

To unsubscribe, visit link above, or email
ffmpeg-devel-request@ffmpeg.org with subject "unsubscribe".

^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: [FFmpeg-devel] [RFC] [PATCH] avfilter/avfilter: add flag to signal filters that support w/h change
  2023-06-14 17:31     ` Paul B Mahol
@ 2023-06-14 17:33       ` Nicolas George
  2023-06-17  6:52         ` Paul B Mahol
  0 siblings, 1 reply; 9+ messages in thread
From: Nicolas George @ 2023-06-14 17:33 UTC (permalink / raw)
  To: FFmpeg development discussions and patches


[-- Attachment #1.1: Type: text/plain, Size: 593 bytes --]

Paul B Mahol (12023-06-14):
> To flag filters that can work with variable frame size changes
> all the time in graph. So no rescalers are need to be inserted or
> filtergraph reset.
> 
> Once all such filters are flaged with such capability then code will be
> added so auto inserted rescale filter is inserted where neccesarry to
> filters in
> filtergraph that do not support dynamic width/height changes.

If you have a proof-of-concept patch series where this flag is actually
useful, I will review it.

As it is, it is dead code and not for commit.

-- 
  Nicolas George

[-- Attachment #1.2: signature.asc --]
[-- Type: application/pgp-signature, Size: 833 bytes --]

[-- Attachment #2: Type: text/plain, Size: 251 bytes --]

_______________________________________________
ffmpeg-devel mailing list
ffmpeg-devel@ffmpeg.org
https://ffmpeg.org/mailman/listinfo/ffmpeg-devel

To unsubscribe, visit link above, or email
ffmpeg-devel-request@ffmpeg.org with subject "unsubscribe".

^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: [FFmpeg-devel] [RFC] [PATCH] avfilter/avfilter: add flag to signal filters that support w/h change
  2023-06-14 17:33       ` Nicolas George
@ 2023-06-17  6:52         ` Paul B Mahol
  2023-06-17  8:27           ` Anton Khirnov
  0 siblings, 1 reply; 9+ messages in thread
From: Paul B Mahol @ 2023-06-17  6:52 UTC (permalink / raw)
  To: FFmpeg development discussions and patches

On Wed, Jun 14, 2023 at 7:33 PM Nicolas George <george@nsup.org> wrote:

> Paul B Mahol (12023-06-14):
> > To flag filters that can work with variable frame size changes
> > all the time in graph. So no rescalers are need to be inserted or
> > filtergraph reset.
> >
> > Once all such filters are flaged with such capability then code will be
> > added so auto inserted rescale filter is inserted where neccesarry to
> > filters in
> > filtergraph that do not support dynamic width/height changes.
>
> If you have a proof-of-concept patch series where this flag is actually
> useful, I will review it.
>
> As it is, it is dead code and not for commit.
>

More code will come later, no reasons to block this patch for no valid
reasons.


>
> --
>   Nicolas George
> _______________________________________________
> ffmpeg-devel mailing list
> ffmpeg-devel@ffmpeg.org
> https://ffmpeg.org/mailman/listinfo/ffmpeg-devel
>
> To unsubscribe, visit link above, or email
> ffmpeg-devel-request@ffmpeg.org with subject "unsubscribe".
>
_______________________________________________
ffmpeg-devel mailing list
ffmpeg-devel@ffmpeg.org
https://ffmpeg.org/mailman/listinfo/ffmpeg-devel

To unsubscribe, visit link above, or email
ffmpeg-devel-request@ffmpeg.org with subject "unsubscribe".

^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: [FFmpeg-devel] [RFC] [PATCH] avfilter/avfilter: add flag to signal filters that support w/h change
  2023-06-17  6:52         ` Paul B Mahol
@ 2023-06-17  8:27           ` Anton Khirnov
  2023-06-17  8:28             ` Paul B Mahol
  0 siblings, 1 reply; 9+ messages in thread
From: Anton Khirnov @ 2023-06-17  8:27 UTC (permalink / raw)
  To: FFmpeg development discussions and patches

Quoting Paul B Mahol (2023-06-17 08:52:33)
> On Wed, Jun 14, 2023 at 7:33 PM Nicolas George <george@nsup.org> wrote:
> 
> > Paul B Mahol (12023-06-14):
> > > To flag filters that can work with variable frame size changes
> > > all the time in graph. So no rescalers are need to be inserted or
> > > filtergraph reset.
> > >
> > > Once all such filters are flaged with such capability then code will be
> > > added so auto inserted rescale filter is inserted where neccesarry to
> > > filters in
> > > filtergraph that do not support dynamic width/height changes.
> >
> > If you have a proof-of-concept patch series where this flag is actually
> > useful, I will review it.
> >
> > As it is, it is dead code and not for commit.
> >
> 
> More code will come later, no reasons to block this patch for no valid
> reasons.

I agree with Nicolas, we should not add flags that are not used for
anything.

-- 
Anton Khirnov
_______________________________________________
ffmpeg-devel mailing list
ffmpeg-devel@ffmpeg.org
https://ffmpeg.org/mailman/listinfo/ffmpeg-devel

To unsubscribe, visit link above, or email
ffmpeg-devel-request@ffmpeg.org with subject "unsubscribe".

^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: [FFmpeg-devel] [RFC] [PATCH] avfilter/avfilter: add flag to signal filters that support w/h change
  2023-06-17  8:27           ` Anton Khirnov
@ 2023-06-17  8:28             ` Paul B Mahol
  2023-06-17  8:42               ` Gyan Doshi
  0 siblings, 1 reply; 9+ messages in thread
From: Paul B Mahol @ 2023-06-17  8:28 UTC (permalink / raw)
  To: FFmpeg development discussions and patches

On Sat, Jun 17, 2023 at 10:27 AM Anton Khirnov <anton@khirnov.net> wrote:

> Quoting Paul B Mahol (2023-06-17 08:52:33)
> > On Wed, Jun 14, 2023 at 7:33 PM Nicolas George <george@nsup.org> wrote:
> >
> > > Paul B Mahol (12023-06-14):
> > > > To flag filters that can work with variable frame size changes
> > > > all the time in graph. So no rescalers are need to be inserted or
> > > > filtergraph reset.
> > > >
> > > > Once all such filters are flaged with such capability then code will
> be
> > > > added so auto inserted rescale filter is inserted where neccesarry to
> > > > filters in
> > > > filtergraph that do not support dynamic width/height changes.
> > >
> > > If you have a proof-of-concept patch series where this flag is actually
> > > useful, I will review it.
> > >
> > > As it is, it is dead code and not for commit.
> > >
> >
> > More code will come later, no reasons to block this patch for no valid
> > reasons.
>
> I agree with Nicolas, we should not add flags that are not used for
> anything.
>

Does not really matter who agrees to whom.

Patch goes in.


>
> --
> Anton Khirnov
> _______________________________________________
> ffmpeg-devel mailing list
> ffmpeg-devel@ffmpeg.org
> https://ffmpeg.org/mailman/listinfo/ffmpeg-devel
>
> To unsubscribe, visit link above, or email
> ffmpeg-devel-request@ffmpeg.org with subject "unsubscribe".
>
_______________________________________________
ffmpeg-devel mailing list
ffmpeg-devel@ffmpeg.org
https://ffmpeg.org/mailman/listinfo/ffmpeg-devel

To unsubscribe, visit link above, or email
ffmpeg-devel-request@ffmpeg.org with subject "unsubscribe".

^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: [FFmpeg-devel] [RFC] [PATCH] avfilter/avfilter: add flag to signal filters that support w/h change
  2023-06-17  8:28             ` Paul B Mahol
@ 2023-06-17  8:42               ` Gyan Doshi
  0 siblings, 0 replies; 9+ messages in thread
From: Gyan Doshi @ 2023-06-17  8:42 UTC (permalink / raw)
  To: ffmpeg-devel



On 2023-06-17 01:58 pm, Paul B Mahol wrote:
> On Sat, Jun 17, 2023 at 10:27 AM Anton Khirnov <anton@khirnov.net> wrote:
>
>> Quoting Paul B Mahol (2023-06-17 08:52:33)
>>> On Wed, Jun 14, 2023 at 7:33 PM Nicolas George <george@nsup.org> wrote:
>>>
>>>> Paul B Mahol (12023-06-14):
>>>>> To flag filters that can work with variable frame size changes
>>>>> all the time in graph. So no rescalers are need to be inserted or
>>>>> filtergraph reset.
>>>>>
>>>>> Once all such filters are flaged with such capability then code will
>> be
>>>>> added so auto inserted rescale filter is inserted where neccesarry to
>>>>> filters in
>>>>> filtergraph that do not support dynamic width/height changes.
>>>> If you have a proof-of-concept patch series where this flag is actually
>>>> useful, I will review it.
>>>>
>>>> As it is, it is dead code and not for commit.
>>>>
>>> More code will come later, no reasons to block this patch for no valid
>>> reasons.
>> I agree with Nicolas, we should not add flags that are not used for
>> anything.
>>
> Does not really matter who agrees to whom.
>
> Patch goes in.

At least patch some of the applicable filters and you could use the flag 
in buffersrc param check.

Regards,
Gyan

_______________________________________________
ffmpeg-devel mailing list
ffmpeg-devel@ffmpeg.org
https://ffmpeg.org/mailman/listinfo/ffmpeg-devel

To unsubscribe, visit link above, or email
ffmpeg-devel-request@ffmpeg.org with subject "unsubscribe".

^ permalink raw reply	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2023-06-17  8:43 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-06-13 14:47 [FFmpeg-devel] [RFC] [PATCH] avfilter/avfilter: add flag to signal filters that support w/h change Paul B Mahol
2023-06-14 16:44 ` Paul B Mahol
2023-06-14 17:05   ` Nicolas George
2023-06-14 17:31     ` Paul B Mahol
2023-06-14 17:33       ` Nicolas George
2023-06-17  6:52         ` Paul B Mahol
2023-06-17  8:27           ` Anton Khirnov
2023-06-17  8:28             ` Paul B Mahol
2023-06-17  8:42               ` Gyan Doshi

Git Inbox Mirror of the ffmpeg-devel mailing list - see https://ffmpeg.org/mailman/listinfo/ffmpeg-devel

This inbox may be cloned and mirrored by anyone:

	git clone --mirror https://master.gitmailbox.com/ffmpegdev/0 ffmpegdev/git/0.git

	# If you have public-inbox 1.1+ installed, you may
	# initialize and index your mirror using the following commands:
	public-inbox-init -V2 ffmpegdev ffmpegdev/ https://master.gitmailbox.com/ffmpegdev \
		ffmpegdev@gitmailbox.com
	public-inbox-index ffmpegdev

Example config snippet for mirrors.


AGPL code for this site: git clone https://public-inbox.org/public-inbox.git