Git Inbox Mirror of the ffmpeg-devel mailing list - see https://ffmpeg.org/mailman/listinfo/ffmpeg-devel
 help / color / mirror / Atom feed
* [FFmpeg-devel] [PATCH 1/7] avcodec/av1dec: remove FF_CODEC_CAP_SETS_PKT_DTS flag
@ 2023-07-09 19:21 James Almer
  2023-07-09 19:21 ` [FFmpeg-devel] [PATCH 2/7] avcodec/libdav1d: " James Almer
                   ` (6 more replies)
  0 siblings, 7 replies; 8+ messages in thread
From: James Almer @ 2023-07-09 19:21 UTC (permalink / raw)
  To: ffmpeg-devel

It has no effect on receive_frame() decoders.

Signed-off-by: James Almer <jamrial@gmail.com>
---
 libavcodec/av1dec.c | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/libavcodec/av1dec.c b/libavcodec/av1dec.c
index e7f98a6c81..cc178464b9 100644
--- a/libavcodec/av1dec.c
+++ b/libavcodec/av1dec.c
@@ -1527,8 +1527,7 @@ const FFCodec ff_av1_decoder = {
     .close                 = av1_decode_free,
     FF_CODEC_RECEIVE_FRAME_CB(av1_receive_frame),
     .p.capabilities        = AV_CODEC_CAP_DR1 | AV_CODEC_CAP_AVOID_PROBING,
-    .caps_internal         = FF_CODEC_CAP_INIT_CLEANUP |
-                             FF_CODEC_CAP_SETS_PKT_DTS,
+    .caps_internal         = FF_CODEC_CAP_INIT_CLEANUP,
     .flush                 = av1_decode_flush,
     .p.profiles            = NULL_IF_CONFIG_SMALL(ff_av1_profiles),
     .p.priv_class          = &av1_class,
-- 
2.41.0

_______________________________________________
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] 8+ messages in thread

* [FFmpeg-devel] [PATCH 2/7] avcodec/libdav1d: remove FF_CODEC_CAP_SETS_PKT_DTS flag
  2023-07-09 19:21 [FFmpeg-devel] [PATCH 1/7] avcodec/av1dec: remove FF_CODEC_CAP_SETS_PKT_DTS flag James Almer
@ 2023-07-09 19:21 ` James Almer
  2023-07-09 19:21 ` [FFmpeg-devel] [PATCH 3/7] avcodec/mediacodecdec: " James Almer
                   ` (5 subsequent siblings)
  6 siblings, 0 replies; 8+ messages in thread
From: James Almer @ 2023-07-09 19:21 UTC (permalink / raw)
  To: ffmpeg-devel

It has no effect on receive_frame() decoders.

Signed-off-by: James Almer <jamrial@gmail.com>
---
 libavcodec/libdav1d.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/libavcodec/libdav1d.c b/libavcodec/libdav1d.c
index c263157a2a..11cdbca274 100644
--- a/libavcodec/libdav1d.c
+++ b/libavcodec/libdav1d.c
@@ -698,7 +698,7 @@ const FFCodec ff_libdav1d_decoder = {
     .flush          = libdav1d_flush,
     FF_CODEC_RECEIVE_FRAME_CB(libdav1d_receive_frame),
     .p.capabilities = AV_CODEC_CAP_DELAY | AV_CODEC_CAP_OTHER_THREADS,
-    .caps_internal  = FF_CODEC_CAP_SETS_PKT_DTS | FF_CODEC_CAP_SETS_FRAME_PROPS |
+    .caps_internal  = FF_CODEC_CAP_SETS_FRAME_PROPS |
                       FF_CODEC_CAP_AUTO_THREADS,
     .p.priv_class   = &libdav1d_class,
     .p.wrapper_name = "libdav1d",
-- 
2.41.0

_______________________________________________
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] 8+ messages in thread

* [FFmpeg-devel] [PATCH 3/7] avcodec/mediacodecdec: remove FF_CODEC_CAP_SETS_PKT_DTS flag
  2023-07-09 19:21 [FFmpeg-devel] [PATCH 1/7] avcodec/av1dec: remove FF_CODEC_CAP_SETS_PKT_DTS flag James Almer
  2023-07-09 19:21 ` [FFmpeg-devel] [PATCH 2/7] avcodec/libdav1d: " James Almer
@ 2023-07-09 19:21 ` James Almer
  2023-07-09 19:21 ` [FFmpeg-devel] [PATCH 4/7] avcodec/mjpegdec: " James Almer
                   ` (4 subsequent siblings)
  6 siblings, 0 replies; 8+ messages in thread
From: James Almer @ 2023-07-09 19:21 UTC (permalink / raw)
  To: ffmpeg-devel

It has no effect on receive_frame() decoders.

Signed-off-by: James Almer <jamrial@gmail.com>
---
 libavcodec/mediacodecdec.c | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/libavcodec/mediacodecdec.c b/libavcodec/mediacodecdec.c
index 21464900d1..44f55947be 100644
--- a/libavcodec/mediacodecdec.c
+++ b/libavcodec/mediacodecdec.c
@@ -577,8 +577,7 @@ const FFCodec ff_ ## short_name ## _mediacodec_decoder = {
     .flush          = mediacodec_decode_flush,                                                 \
     .close          = mediacodec_decode_close,                                                 \
     .p.capabilities = AV_CODEC_CAP_DELAY | AV_CODEC_CAP_AVOID_PROBING | AV_CODEC_CAP_HARDWARE, \
-    .caps_internal  = FF_CODEC_CAP_NOT_INIT_THREADSAFE |                                       \
-                      FF_CODEC_CAP_SETS_PKT_DTS,                                               \
+    .caps_internal  = FF_CODEC_CAP_NOT_INIT_THREADSAFE,                                        \
     .bsfs           = bsf,                                                                     \
     .hw_configs     = mediacodec_hw_configs,                                                   \
     .p.wrapper_name = "mediacodec",                                                            \
-- 
2.41.0

_______________________________________________
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] 8+ messages in thread

* [FFmpeg-devel] [PATCH 4/7] avcodec/mjpegdec: remove FF_CODEC_CAP_SETS_PKT_DTS flag
  2023-07-09 19:21 [FFmpeg-devel] [PATCH 1/7] avcodec/av1dec: remove FF_CODEC_CAP_SETS_PKT_DTS flag James Almer
  2023-07-09 19:21 ` [FFmpeg-devel] [PATCH 2/7] avcodec/libdav1d: " James Almer
  2023-07-09 19:21 ` [FFmpeg-devel] [PATCH 3/7] avcodec/mediacodecdec: " James Almer
@ 2023-07-09 19:21 ` James Almer
  2023-07-09 19:21 ` [FFmpeg-devel] [PATCH 5/7] avcodec/mmaldec: " James Almer
                   ` (3 subsequent siblings)
  6 siblings, 0 replies; 8+ messages in thread
From: James Almer @ 2023-07-09 19:21 UTC (permalink / raw)
  To: ffmpeg-devel

It has no effect on receive_frame() decoders.

Signed-off-by: James Almer <jamrial@gmail.com>
---
 libavcodec/mjpegdec.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/libavcodec/mjpegdec.c b/libavcodec/mjpegdec.c
index ab7fa73819..b42e75bcdd 100644
--- a/libavcodec/mjpegdec.c
+++ b/libavcodec/mjpegdec.c
@@ -3110,6 +3110,6 @@ const FFCodec ff_smvjpeg_decoder = {
     .flush          = decode_flush,
     .p.capabilities = AV_CODEC_CAP_DR1,
     .caps_internal  = FF_CODEC_CAP_EXPORTS_CROPPING |
-                      FF_CODEC_CAP_SETS_PKT_DTS | FF_CODEC_CAP_INIT_CLEANUP,
+                      FF_CODEC_CAP_INIT_CLEANUP,
 };
 #endif
-- 
2.41.0

_______________________________________________
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] 8+ messages in thread

* [FFmpeg-devel] [PATCH 5/7] avcodec/mmaldec: remove FF_CODEC_CAP_SETS_PKT_DTS flag
  2023-07-09 19:21 [FFmpeg-devel] [PATCH 1/7] avcodec/av1dec: remove FF_CODEC_CAP_SETS_PKT_DTS flag James Almer
                   ` (2 preceding siblings ...)
  2023-07-09 19:21 ` [FFmpeg-devel] [PATCH 4/7] avcodec/mjpegdec: " James Almer
@ 2023-07-09 19:21 ` James Almer
  2023-07-09 19:21 ` [FFmpeg-devel] [PATCH 6/7] avcodec/v4l2_m2m_dec: " James Almer
                   ` (2 subsequent siblings)
  6 siblings, 0 replies; 8+ messages in thread
From: James Almer @ 2023-07-09 19:21 UTC (permalink / raw)
  To: ffmpeg-devel

It has no effect on receive_frame() decoders.

Signed-off-by: James Almer <jamrial@gmail.com>
---
 libavcodec/mmaldec.c | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/libavcodec/mmaldec.c b/libavcodec/mmaldec.c
index 9bfb6778b6..8d67d10cd9 100644
--- a/libavcodec/mmaldec.c
+++ b/libavcodec/mmaldec.c
@@ -843,8 +843,7 @@ static const AVClass ffmmal_dec_class = {
         .flush          = ffmmal_flush, \
         .p.priv_class   = &ffmmal_dec_class, \
         .p.capabilities = AV_CODEC_CAP_DELAY | AV_CODEC_CAP_HARDWARE, \
-        .caps_internal  = FF_CODEC_CAP_NOT_INIT_THREADSAFE | \
-                          FF_CODEC_CAP_SETS_PKT_DTS, \
+        .caps_internal  = FF_CODEC_CAP_NOT_INIT_THREADSAFE \
         .p.pix_fmts     = (const enum AVPixelFormat[]) { AV_PIX_FMT_MMAL, \
                                                          AV_PIX_FMT_YUV420P, \
                                                          AV_PIX_FMT_NONE}, \
-- 
2.41.0

_______________________________________________
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] 8+ messages in thread

* [FFmpeg-devel] [PATCH 6/7] avcodec/v4l2_m2m_dec: remove FF_CODEC_CAP_SETS_PKT_DTS flag
  2023-07-09 19:21 [FFmpeg-devel] [PATCH 1/7] avcodec/av1dec: remove FF_CODEC_CAP_SETS_PKT_DTS flag James Almer
                   ` (3 preceding siblings ...)
  2023-07-09 19:21 ` [FFmpeg-devel] [PATCH 5/7] avcodec/mmaldec: " James Almer
@ 2023-07-09 19:21 ` James Almer
  2023-07-09 19:21 ` [FFmpeg-devel] [PATCH 7/7] avcodec/test/avcodec: check decoders for FF_CODEC_CAP_SETS_PKT_DTS James Almer
  2023-07-11 16:04 ` [FFmpeg-devel] [PATCH 1/7] avcodec/av1dec: remove FF_CODEC_CAP_SETS_PKT_DTS flag James Almer
  6 siblings, 0 replies; 8+ messages in thread
From: James Almer @ 2023-07-09 19:21 UTC (permalink / raw)
  To: ffmpeg-devel

It has no effect on receive_frame() decoders.

Signed-off-by: James Almer <jamrial@gmail.com>
---
 libavcodec/v4l2_m2m_dec.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/libavcodec/v4l2_m2m_dec.c b/libavcodec/v4l2_m2m_dec.c
index 4944d08511..aa2d759e1e 100644
--- a/libavcodec/v4l2_m2m_dec.c
+++ b/libavcodec/v4l2_m2m_dec.c
@@ -253,7 +253,7 @@ static const AVOption options[] = {
         .bsfs           = bsf_name, \
         .p.capabilities = AV_CODEC_CAP_HARDWARE | AV_CODEC_CAP_DELAY | AV_CODEC_CAP_AVOID_PROBING, \
         .caps_internal  = FF_CODEC_CAP_NOT_INIT_THREADSAFE | \
-                          FF_CODEC_CAP_SETS_PKT_DTS | FF_CODEC_CAP_INIT_CLEANUP, \
+                          FF_CODEC_CAP_INIT_CLEANUP, \
         .p.wrapper_name = "v4l2m2m", \
     }
 
-- 
2.41.0

_______________________________________________
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] 8+ messages in thread

* [FFmpeg-devel] [PATCH 7/7] avcodec/test/avcodec: check decoders for FF_CODEC_CAP_SETS_PKT_DTS
  2023-07-09 19:21 [FFmpeg-devel] [PATCH 1/7] avcodec/av1dec: remove FF_CODEC_CAP_SETS_PKT_DTS flag James Almer
                   ` (4 preceding siblings ...)
  2023-07-09 19:21 ` [FFmpeg-devel] [PATCH 6/7] avcodec/v4l2_m2m_dec: " James Almer
@ 2023-07-09 19:21 ` James Almer
  2023-07-11 16:04 ` [FFmpeg-devel] [PATCH 1/7] avcodec/av1dec: remove FF_CODEC_CAP_SETS_PKT_DTS flag James Almer
  6 siblings, 0 replies; 8+ messages in thread
From: James Almer @ 2023-07-09 19:21 UTC (permalink / raw)
  To: ffmpeg-devel

Ensure that only decode() callback ones set it.

Signed-off-by: James Almer <jamrial@gmail.com>
---
 libavcodec/tests/avcodec.c | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/libavcodec/tests/avcodec.c b/libavcodec/tests/avcodec.c
index bbf5289af2..08ca507bf0 100644
--- a/libavcodec/tests/avcodec.c
+++ b/libavcodec/tests/avcodec.c
@@ -175,6 +175,10 @@ int main(void){
                 !(codec->capabilities & AV_CODEC_CAP_FRAME_THREADS))
                 ERR("Decoder %s wants allocated progress without supporting"
                     "frame threads\n");
+            if (codec2->cb_type != FF_CODEC_CB_TYPE_DECODE &&
+                codec2->caps_internal & FF_CODEC_CAP_SETS_PKT_DTS)
+                ERR("Decoder %s is marked as setting pkt_dts when it doesn't have"
+                    "any effect\n");
         }
         if (priv_data_size_wrong(codec2))
             ERR_EXT("Private context of codec %s is impossibly-sized (size %d).",
-- 
2.41.0

_______________________________________________
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] 8+ messages in thread

* Re: [FFmpeg-devel] [PATCH 1/7] avcodec/av1dec: remove FF_CODEC_CAP_SETS_PKT_DTS flag
  2023-07-09 19:21 [FFmpeg-devel] [PATCH 1/7] avcodec/av1dec: remove FF_CODEC_CAP_SETS_PKT_DTS flag James Almer
                   ` (5 preceding siblings ...)
  2023-07-09 19:21 ` [FFmpeg-devel] [PATCH 7/7] avcodec/test/avcodec: check decoders for FF_CODEC_CAP_SETS_PKT_DTS James Almer
@ 2023-07-11 16:04 ` James Almer
  6 siblings, 0 replies; 8+ messages in thread
From: James Almer @ 2023-07-11 16:04 UTC (permalink / raw)
  To: ffmpeg-devel

On 7/9/2023 4:21 PM, James Almer wrote:
> It has no effect on receive_frame() decoders.
> 
> Signed-off-by: James Almer <jamrial@gmail.com>
> ---
>   libavcodec/av1dec.c | 3 +--
>   1 file changed, 1 insertion(+), 2 deletions(-)
> 
> diff --git a/libavcodec/av1dec.c b/libavcodec/av1dec.c
> index e7f98a6c81..cc178464b9 100644
> --- a/libavcodec/av1dec.c
> +++ b/libavcodec/av1dec.c
> @@ -1527,8 +1527,7 @@ const FFCodec ff_av1_decoder = {
>       .close                 = av1_decode_free,
>       FF_CODEC_RECEIVE_FRAME_CB(av1_receive_frame),
>       .p.capabilities        = AV_CODEC_CAP_DR1 | AV_CODEC_CAP_AVOID_PROBING,
> -    .caps_internal         = FF_CODEC_CAP_INIT_CLEANUP |
> -                             FF_CODEC_CAP_SETS_PKT_DTS,
> +    .caps_internal         = FF_CODEC_CAP_INIT_CLEANUP,
>       .flush                 = av1_decode_flush,
>       .p.profiles            = NULL_IF_CONFIG_SMALL(ff_av1_profiles),
>       .p.priv_class          = &av1_class,

Will apply set.
_______________________________________________
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] 8+ messages in thread

end of thread, other threads:[~2023-07-11 16:04 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-07-09 19:21 [FFmpeg-devel] [PATCH 1/7] avcodec/av1dec: remove FF_CODEC_CAP_SETS_PKT_DTS flag James Almer
2023-07-09 19:21 ` [FFmpeg-devel] [PATCH 2/7] avcodec/libdav1d: " James Almer
2023-07-09 19:21 ` [FFmpeg-devel] [PATCH 3/7] avcodec/mediacodecdec: " James Almer
2023-07-09 19:21 ` [FFmpeg-devel] [PATCH 4/7] avcodec/mjpegdec: " James Almer
2023-07-09 19:21 ` [FFmpeg-devel] [PATCH 5/7] avcodec/mmaldec: " James Almer
2023-07-09 19:21 ` [FFmpeg-devel] [PATCH 6/7] avcodec/v4l2_m2m_dec: " James Almer
2023-07-09 19:21 ` [FFmpeg-devel] [PATCH 7/7] avcodec/test/avcodec: check decoders for FF_CODEC_CAP_SETS_PKT_DTS James Almer
2023-07-11 16:04 ` [FFmpeg-devel] [PATCH 1/7] avcodec/av1dec: remove FF_CODEC_CAP_SETS_PKT_DTS flag James Almer

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