Git Inbox Mirror of the ffmpeg-devel mailing list - see https://ffmpeg.org/mailman/listinfo/ffmpeg-devel
 help / color / mirror / Atom feed
From: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
To: ffmpeg-devel@ffmpeg.org
Cc: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
Subject: [FFmpeg-devel] [PATCH 12/20] avcodec/snow: Move initializing HpelDSPContext to snowenc.c
Date: Mon, 10 Oct 2022 05:13:02 +0200
Message-ID: <AS8P250MB07449A6945A589CE5EB283C28F209@AS8P250MB0744.EURP250.PROD.OUTLOOK.COM> (raw)
In-Reply-To: <AS8P250MB0744A449D7ECAC0BC79C9D658F219@AS8P250MB0744.EURP250.PROD.OUTLOOK.COM>

Only used by the encoder.

Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
---
 configure            | 2 +-
 libavcodec/snow.c    | 1 -
 libavcodec/snowenc.c | 2 ++
 3 files changed, 3 insertions(+), 2 deletions(-)

diff --git a/configure b/configure
index f3fd91f592..bccbf1bdbf 100755
--- a/configure
+++ b/configure
@@ -2946,7 +2946,7 @@ screenpresso_decoder_deps="zlib"
 shorten_decoder_select="bswapdsp"
 sipr_decoder_select="lsp"
 smvjpeg_decoder_select="mjpeg_decoder"
-snow_decoder_select="dwt h264qpel hpeldsp rangecoder videodsp"
+snow_decoder_select="dwt h264qpel rangecoder videodsp"
 snow_encoder_select="dwt h264qpel hpeldsp me_cmp mpegvideoenc rangecoder videodsp"
 sonic_decoder_select="golomb rangecoder"
 sonic_encoder_select="golomb rangecoder"
diff --git a/libavcodec/snow.c b/libavcodec/snow.c
index c9bc4dbab9..4a6c781a95 100644
--- a/libavcodec/snow.c
+++ b/libavcodec/snow.c
@@ -433,7 +433,6 @@ av_cold int ff_snow_common_init(AVCodecContext *avctx){
     s->max_ref_frames=1; //just make sure it's not an invalid value in case of no initial keyframe
     s->spatial_decomposition_count = 1;
 
-    ff_hpeldsp_init(&s->hdsp, avctx->flags);
     ff_videodsp_init(&s->vdsp, 8);
     ff_dwt_init(&s->dwt);
     ff_h264qpel_init(&s->h264qpel, 8);
diff --git a/libavcodec/snowenc.c b/libavcodec/snowenc.c
index addca0ced9..0854f78da7 100644
--- a/libavcodec/snowenc.c
+++ b/libavcodec/snowenc.c
@@ -128,6 +128,8 @@ static av_cold int encode_init(AVCodecContext *avctx)
         s->plane[plane_index].fast_mc= 1;
     }
 
+    // Must be before ff_snow_common_init()
+    ff_hpeldsp_init(&s->hdsp, avctx->flags);
     if ((ret = ff_snow_common_init(avctx)) < 0) {
         return ret;
     }
-- 
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".

  parent reply	other threads:[~2022-10-10  3:13 UTC|newest]

Thread overview: 27+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-10-09 18:08 [FFmpeg-devel] [PATCH 1/8] configure: Remove dependencies of inexistant rtjpeg decoder Andreas Rheinhardt
2022-10-09 18:10 ` [FFmpeg-devel] [PATCH 2/8] configure: Add missing prores_(aw|ks)_encoder->fdctdsp dependencies Andreas Rheinhardt
2022-10-09 18:10 ` [FFmpeg-devel] [PATCH 3/8] configure: Add mpegvideoenc->fdctdsp dependency Andreas Rheinhardt
2022-10-09 18:10 ` [FFmpeg-devel] [PATCH 4/8] configure: Remove unnecessary me_cmp dependencies Andreas Rheinhardt
2022-10-09 18:10 ` [FFmpeg-devel] [PATCH 5/8] configure: Remove unnecessary binkaudio dependencies Andreas Rheinhardt
2022-10-09 18:10 ` [FFmpeg-devel] [PATCH 6/8] configure: Remove unnecessary qdm2_decoder->mdct dependency Andreas Rheinhardt
2022-10-09 18:10 ` [FFmpeg-devel] [PATCH 7/8] configure: Remove unnecessary wmavoice->mdct dependency Andreas Rheinhardt
2022-10-09 18:10 ` [FFmpeg-devel] [PATCH 8/8] configure: Add (dnxhd|snow)_encoder->videodsp dependency Andreas Rheinhardt
2022-10-10  3:12 ` [FFmpeg-devel] [PATCH 09/20] avcodec/snow: Move initializing MotionEstContext to snowenc.c Andreas Rheinhardt
2022-10-10 16:14   ` Michael Niedermayer
2022-10-10  3:13 ` [FFmpeg-devel] [PATCH 10/20] avcodec/snow: Move initializing QpelDSPContext " Andreas Rheinhardt
2023-09-28 14:39   ` Andreas Rheinhardt
2022-10-10  3:13 ` [FFmpeg-devel] [PATCH 11/20] avcodec/snow: Move decoder/encoder-only inline funcs to snow(dec|enc).c Andreas Rheinhardt
2022-10-10 16:16   ` Michael Niedermayer
2022-10-10  3:13 ` Andreas Rheinhardt [this message]
2022-10-10  3:13 ` [FFmpeg-devel] [PATCH 13/20] avcodec/snow: Move freeing encoder-only buffers to snowenc.c Andreas Rheinhardt
2022-10-10 16:19   ` Michael Niedermayer
2022-10-10  3:13 ` [FFmpeg-devel] [PATCH 14/20] avcodec/snow: Only allocate mconly_picture for the decoder Andreas Rheinhardt
2022-10-10  3:13 ` [FFmpeg-devel] [PATCH 15/20] avcodec/snowdec: Don't zero encoder-only buffer Andreas Rheinhardt
2022-10-10  3:13 ` [FFmpeg-devel] [PATCH 16/20] avcodec/snow: Move allocating encoder-only buffers to snowenc.c Andreas Rheinhardt
2022-10-10 16:23   ` Michael Niedermayer
2022-10-10  3:13 ` [FFmpeg-devel] [PATCH 17/20] avcodec/snow: Remove outdated assert Andreas Rheinhardt
2022-10-10  3:13 ` [FFmpeg-devel] [PATCH 18/20] avcodec/snow: Only allocate x_coeffs for decoder Andreas Rheinhardt
2022-10-10  3:13 ` [FFmpeg-devel] [PATCH 19/20] avcodec/snow: Reindent after previous commit Andreas Rheinhardt
2022-10-10  3:13 ` [FFmpeg-devel] [PATCH 20/20] avcodec/snowdec: Remove debug code Andreas Rheinhardt
2022-10-10 16:26   ` Michael Niedermayer
2022-10-11 14:21 ` [FFmpeg-devel] [PATCH 1/8] configure: Remove dependencies of inexistant rtjpeg decoder Andreas Rheinhardt

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=AS8P250MB07449A6945A589CE5EB283C28F209@AS8P250MB0744.EURP250.PROD.OUTLOOK.COM \
    --to=andreas.rheinhardt@outlook.com \
    --cc=ffmpeg-devel@ffmpeg.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link

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