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/2] avcodec/libjxlenc: Don't refer to decoder in comments
@ 2023-12-21 23:01 Andreas Rheinhardt
  2023-12-21 23:03 ` [FFmpeg-devel] [PATCH 2/2] avcodec/libjxlenc: Set AV_CODEC_CAP_DR1 Andreas Rheinhardt
  2023-12-23  3:00 ` [FFmpeg-devel] [PATCH 1/2] avcodec/libjxlenc: Don't refer to decoder in comments Leo Izen
  0 siblings, 2 replies; 3+ messages in thread
From: Andreas Rheinhardt @ 2023-12-21 23:01 UTC (permalink / raw)
  To: ffmpeg-devel; +Cc: Andreas Rheinhardt

Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
---
 libavcodec/libjxlenc.c | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/libavcodec/libjxlenc.c b/libavcodec/libjxlenc.c
index d707f3a61b..055c9b7bb1 100644
--- a/libavcodec/libjxlenc.c
+++ b/libavcodec/libjxlenc.c
@@ -85,8 +85,8 @@ static float quality_to_distance(float quality)
 }
 
 /**
- * Initalize the decoder on a per-frame basis. All of these need to be set
- * once each time the decoder is reset, which it must be each frame to make
+ * Initalize the encoder on a per-frame basis. All of these need to be set
+ * once each time the encoder is reset, which it must be each frame to make
  * the image2 muxer work.
  *
  * @return       0 upon success, negative on failure.
@@ -104,7 +104,7 @@ static int libjxl_init_jxl_encoder(AVCodecContext *avctx)
         return AVERROR_EXTERNAL;
     }
 
-    /* This needs to be set each time the decoder is reset */
+    /* This needs to be set each time the encoder is reset */
     if (JxlEncoderSetParallelRunner(ctx->encoder, JxlThreadParallelRunner, ctx->runner)
             != JXL_ENC_SUCCESS) {
         av_log(avctx, AV_LOG_ERROR, "Failed to set JxlThreadParallelRunner\n");
@@ -446,7 +446,7 @@ static av_cold int libjxl_encode_close(AVCodecContext *avctx)
     ctx->runner = NULL;
 
     /*
-     * destroying the decoder also frees
+     * destroying the encoder also frees
      * ctx->options so we don't need to
      */
     if (ctx->encoder)
-- 
2.34.1

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

* [FFmpeg-devel] [PATCH 2/2] avcodec/libjxlenc: Set AV_CODEC_CAP_DR1
  2023-12-21 23:01 [FFmpeg-devel] [PATCH 1/2] avcodec/libjxlenc: Don't refer to decoder in comments Andreas Rheinhardt
@ 2023-12-21 23:03 ` Andreas Rheinhardt
  2023-12-23  3:00 ` [FFmpeg-devel] [PATCH 1/2] avcodec/libjxlenc: Don't refer to decoder in comments Leo Izen
  1 sibling, 0 replies; 3+ messages in thread
From: Andreas Rheinhardt @ 2023-12-21 23:03 UTC (permalink / raw)
  To: ffmpeg-devel; +Cc: Andreas Rheinhardt

This encoder uses ff_get_encode_buffer() to allocate the packet buffer.

Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
---
 libavcodec/libjxlenc.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/libavcodec/libjxlenc.c b/libavcodec/libjxlenc.c
index 055c9b7bb1..021e558687 100644
--- a/libavcodec/libjxlenc.c
+++ b/libavcodec/libjxlenc.c
@@ -486,6 +486,7 @@ const FFCodec ff_libjxl_encoder = {
     FF_CODEC_ENCODE_CB(libjxl_encode_frame),
     .close            = libjxl_encode_close,
     .p.capabilities   = AV_CODEC_CAP_OTHER_THREADS |
+                        AV_CODEC_CAP_DR1 |
                         AV_CODEC_CAP_ENCODER_REORDERED_OPAQUE,
     .caps_internal    = FF_CODEC_CAP_NOT_INIT_THREADSAFE |
                         FF_CODEC_CAP_AUTO_THREADS | FF_CODEC_CAP_INIT_CLEANUP |
-- 
2.34.1

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

* Re: [FFmpeg-devel] [PATCH 1/2] avcodec/libjxlenc: Don't refer to decoder in comments
  2023-12-21 23:01 [FFmpeg-devel] [PATCH 1/2] avcodec/libjxlenc: Don't refer to decoder in comments Andreas Rheinhardt
  2023-12-21 23:03 ` [FFmpeg-devel] [PATCH 2/2] avcodec/libjxlenc: Set AV_CODEC_CAP_DR1 Andreas Rheinhardt
@ 2023-12-23  3:00 ` Leo Izen
  1 sibling, 0 replies; 3+ messages in thread
From: Leo Izen @ 2023-12-23  3:00 UTC (permalink / raw)
  To: ffmpeg-devel

On 12/21/23 18:01, Andreas Rheinhardt wrote:
> Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
> ---
>   libavcodec/libjxlenc.c | 8 ++++----
>   1 file changed, 4 insertions(+), 4 deletions(-)
> 
> diff --git a/libavcodec/libjxlenc.c b/libavcodec/libjxlenc.c
> index d707f3a61b..055c9b7bb1 100644
> --- a/libavcodec/libjxlenc.c
> +++ b/libavcodec/libjxlenc.c
> @@ -85,8 +85,8 @@ static float quality_to_distance(float quality)
>   }
>   

Both of these LGTM.

- Leo Izen (Traneptora)


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

end of thread, other threads:[~2023-12-23  3:01 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-12-21 23:01 [FFmpeg-devel] [PATCH 1/2] avcodec/libjxlenc: Don't refer to decoder in comments Andreas Rheinhardt
2023-12-21 23:03 ` [FFmpeg-devel] [PATCH 2/2] avcodec/libjxlenc: Set AV_CODEC_CAP_DR1 Andreas Rheinhardt
2023-12-23  3:00 ` [FFmpeg-devel] [PATCH 1/2] avcodec/libjxlenc: Don't refer to decoder in comments Leo Izen

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