From: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
To: ffmpeg-devel@ffmpeg.org
Subject: Re: [FFmpeg-devel] [PATCH 1/4] avcodec/intrax8: Remove unused IDCTDSPContext
Date: Wed, 3 Aug 2022 07:11:09 +0200
Message-ID: <DB6PR0101MB221406A15E7A66085D1003E08F9C9@DB6PR0101MB2214.eurprd01.prod.exchangelabs.com> (raw)
In-Reply-To: <DB6PR0101MB2214ED81E6C30F2F5E3E67E48F9B9@DB6PR0101MB2214.eurprd01.prod.exchangelabs.com>
Andreas Rheinhardt:
> Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
> ---
> configure | 2 +-
> libavcodec/intrax8.c | 4 +---
> libavcodec/intrax8.h | 3 +--
> libavcodec/vc1dec.c | 2 +-
> libavcodec/wmv2dec.c | 2 +-
> 5 files changed, 5 insertions(+), 8 deletions(-)
>
> diff --git a/configure b/configure
> index 8c7e8c9d1d..974768a663 100755
> --- a/configure
> +++ b/configure
> @@ -2733,7 +2733,7 @@ h264dsp_select="startcode"
> hevcparse_select="atsc_a53 golomb"
> frame_thread_encoder_deps="encoders threads"
> inflate_wrapper_deps="zlib"
> -intrax8_select="blockdsp idctdsp"
> +intrax8_select="blockdsp"
> iso_media_select="mpeg4audio"
> mdct_select="fft"
> mdct15_select="fft"
> diff --git a/libavcodec/intrax8.c b/libavcodec/intrax8.c
> index 73b8aeea78..b99e8590b1 100644
> --- a/libavcodec/intrax8.c
> +++ b/libavcodec/intrax8.c
> @@ -25,7 +25,6 @@
> #include "libavutil/thread.h"
> #include "avcodec.h"
> #include "get_bits.h"
> -#include "idctdsp.h"
> #include "msmpeg4data.h"
> #include "intrax8huf.h"
> #include "intrax8.h"
> @@ -692,7 +691,7 @@ static void x8_init_block_index(IntraX8Context *w, AVFrame *frame)
> }
>
> av_cold int ff_intrax8_common_init(AVCodecContext *avctx,
> - IntraX8Context *w, IDCTDSPContext *idsp,
> + IntraX8Context *w,
> int16_t (*block)[64],
> int block_last_index[12],
> int mb_width, int mb_height)
> @@ -700,7 +699,6 @@ av_cold int ff_intrax8_common_init(AVCodecContext *avctx,
> static AVOnce init_static_once = AV_ONCE_INIT;
>
> w->avctx = avctx;
> - w->idsp = *idsp;
> w->mb_width = mb_width;
> w->mb_height = mb_height;
> w->block = block;
> diff --git a/libavcodec/intrax8.h b/libavcodec/intrax8.h
> index 5b8946ea25..3ebbf73434 100644
> --- a/libavcodec/intrax8.h
> +++ b/libavcodec/intrax8.h
> @@ -44,7 +44,6 @@ typedef struct IntraX8Context {
>
> // set by the caller codec
> IntraX8DSPContext dsp;
> - IDCTDSPContext idsp;
> BlockDSPContext bdsp;
> int quant;
> int dquant;
> @@ -86,7 +85,7 @@ typedef struct IntraX8Context {
> * @return 0 on success, a negative AVERROR value on error
> */
> int ff_intrax8_common_init(AVCodecContext *avctx,
> - IntraX8Context *w, IDCTDSPContext *idsp,
> + IntraX8Context *w,
> int16_t (*block)[64],
> int block_last_index[12],
> int mb_width, int mb_height);
> diff --git a/libavcodec/vc1dec.c b/libavcodec/vc1dec.c
> index 5c5b31ad32..b53490b3ab 100644
> --- a/libavcodec/vc1dec.c
> +++ b/libavcodec/vc1dec.c
> @@ -391,7 +391,7 @@ av_cold int ff_vc1_decode_init_alloc_tables(VC1Context *v)
> goto error;
> }
>
> - ret = ff_intrax8_common_init(s->avctx, &v->x8, &s->idsp,
> + ret = ff_intrax8_common_init(s->avctx, &v->x8,
> s->block, s->block_last_index,
> s->mb_width, s->mb_height);
> if (ret < 0)
> diff --git a/libavcodec/wmv2dec.c b/libavcodec/wmv2dec.c
> index e61b549439..6d9b72d123 100644
> --- a/libavcodec/wmv2dec.c
> +++ b/libavcodec/wmv2dec.c
> @@ -578,7 +578,7 @@ static av_cold int wmv2_decode_init(AVCodecContext *avctx)
> ff_init_scantable(s->idsp.idct_permutation, &w->abt_scantable[1],
> ff_wmv2_scantableB);
>
> - return ff_intrax8_common_init(avctx, &w->x8, &w->s.idsp,
> + return ff_intrax8_common_init(avctx, &w->x8,
> w->s.block, w->s.block_last_index,
> w->s.mb_width, w->s.mb_height);
> }
Will apply this patchset tonight unless there are objections.
- Andreas
_______________________________________________
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".
prev parent reply other threads:[~2022-08-03 5:11 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-07-31 9:37 Andreas Rheinhardt
2022-07-31 9:41 ` [FFmpeg-devel] [PATCH 2/4] configure, avcodec/Makefile: Make IntraX8 select WMV2DSP, fix MIPS build Andreas Rheinhardt
2022-07-31 9:41 ` [FFmpeg-devel] [PATCH 3/4] configure: Add msmpeg4(dec|enc) subsystems Andreas Rheinhardt
2022-07-31 10:06 ` Martin Storsjö
2022-07-31 18:33 ` Andreas Rheinhardt
2022-07-31 9:41 ` [FFmpeg-devel] [PATCH 4/4] avcodec/intrax8: Avoid indirection when accessing VLC table Andreas Rheinhardt
2022-08-03 5:11 ` Andreas Rheinhardt [this message]
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=DB6PR0101MB221406A15E7A66085D1003E08F9C9@DB6PR0101MB2214.eurprd01.prod.exchangelabs.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