1
0
mirror of https://github.com/FFmpeg/FFmpeg.git synced 2024-11-21 10:55:51 +02:00

avcodec/cavsdsp: Remove unused function parameter

Reviewed-by: Rémi Denis-Courmont <remi@remlab.net>
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
This commit is contained in:
Andreas Rheinhardt 2022-09-20 02:43:02 +02:00
parent 6a288ada55
commit 57f3ca20dc
4 changed files with 10 additions and 12 deletions

View File

@ -797,7 +797,7 @@ av_cold int ff_cavs_init(AVCodecContext *avctx)
ff_h264chroma_init(&h->h264chroma, 8); ff_h264chroma_init(&h->h264chroma, 8);
ff_idctdsp_init(&h->idsp, avctx); ff_idctdsp_init(&h->idsp, avctx);
ff_videodsp_init(&h->vdsp, 8); ff_videodsp_init(&h->vdsp, 8);
ff_cavsdsp_init(&h->cdsp, avctx); ff_cavsdsp_init(&h->cdsp);
ff_init_scantable_permutation(h->idsp.idct_permutation, ff_init_scantable_permutation(h->idsp.idct_permutation,
h->cdsp.idct_perm); h->cdsp.idct_perm);
ff_init_scantable(h->idsp.idct_permutation, &h->scantable, ff_zigzag_direct); ff_init_scantable(h->idsp.idct_permutation, &h->scantable, ff_zigzag_direct);

View File

@ -22,8 +22,6 @@
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*/ */
#include <stdio.h>
#include "idctdsp.h" #include "idctdsp.h"
#include "mathops.h" #include "mathops.h"
#include "cavsdsp.h" #include "cavsdsp.h"
@ -548,7 +546,8 @@ CAVS_MC(avg_, 16)
#define put_cavs_qpel16_mc00_c ff_put_pixels16x16_c #define put_cavs_qpel16_mc00_c ff_put_pixels16x16_c
#define avg_cavs_qpel16_mc00_c ff_avg_pixels16x16_c #define avg_cavs_qpel16_mc00_c ff_avg_pixels16x16_c
av_cold void ff_cavsdsp_init(CAVSDSPContext* c, AVCodecContext *avctx) { av_cold void ff_cavsdsp_init(CAVSDSPContext* c)
{
#define dspfunc(PFX, IDX, NUM) \ #define dspfunc(PFX, IDX, NUM) \
c->PFX ## _pixels_tab[IDX][ 0] = PFX ## NUM ## _mc00_c; \ c->PFX ## _pixels_tab[IDX][ 0] = PFX ## NUM ## _mc00_c; \
c->PFX ## _pixels_tab[IDX][ 1] = PFX ## NUM ## _mc10_c; \ c->PFX ## _pixels_tab[IDX][ 1] = PFX ## NUM ## _mc10_c; \
@ -578,6 +577,6 @@ av_cold void ff_cavsdsp_init(CAVSDSPContext* c, AVCodecContext *avctx) {
c->idct_perm = FF_IDCT_PERM_NONE; c->idct_perm = FF_IDCT_PERM_NONE;
#if ARCH_X86 #if ARCH_X86
ff_cavsdsp_init_x86(c, avctx); ff_cavsdsp_init_x86(c);
#endif #endif
} }

View File

@ -22,9 +22,9 @@
#ifndef AVCODEC_CAVSDSP_H #ifndef AVCODEC_CAVSDSP_H
#define AVCODEC_CAVSDSP_H #define AVCODEC_CAVSDSP_H
#include <stddef.h>
#include <stdint.h> #include <stdint.h>
#include "avcodec.h"
#include "qpeldsp.h" #include "qpeldsp.h"
typedef struct CAVSDSPContext { typedef struct CAVSDSPContext {
@ -38,7 +38,7 @@ typedef struct CAVSDSPContext {
int idct_perm; int idct_perm;
} CAVSDSPContext; } CAVSDSPContext;
void ff_cavsdsp_init(CAVSDSPContext* c, AVCodecContext *avctx); void ff_cavsdsp_init(CAVSDSPContext* c);
void ff_cavsdsp_init_x86(CAVSDSPContext* c, AVCodecContext *avctx); void ff_cavsdsp_init_x86(CAVSDSPContext* c);
#endif /* AVCODEC_CAVSDSP_H */ #endif /* AVCODEC_CAVSDSP_H */

View File

@ -345,8 +345,7 @@ static void avg_cavs_qpel16_mc00_sse2(uint8_t *dst, const uint8_t *src,
} }
#endif #endif
static av_cold void cavsdsp_init_mmx(CAVSDSPContext *c, static av_cold void cavsdsp_init_mmx(CAVSDSPContext *c)
AVCodecContext *avctx)
{ {
#if HAVE_MMX_EXTERNAL #if HAVE_MMX_EXTERNAL
c->put_cavs_qpel_pixels_tab[1][0] = put_cavs_qpel8_mc00_mmx; c->put_cavs_qpel_pixels_tab[1][0] = put_cavs_qpel8_mc00_mmx;
@ -369,12 +368,12 @@ CAVS_MC(avg_, 8, mmxext)
CAVS_MC(avg_, 16, mmxext) CAVS_MC(avg_, 16, mmxext)
#endif /* HAVE_MMXEXT_INLINE */ #endif /* HAVE_MMXEXT_INLINE */
av_cold void ff_cavsdsp_init_x86(CAVSDSPContext *c, AVCodecContext *avctx) av_cold void ff_cavsdsp_init_x86(CAVSDSPContext *c)
{ {
av_unused int cpu_flags = av_get_cpu_flags(); av_unused int cpu_flags = av_get_cpu_flags();
if (X86_MMX(cpu_flags)) if (X86_MMX(cpu_flags))
cavsdsp_init_mmx(c, avctx); cavsdsp_init_mmx(c);
#if HAVE_MMXEXT_INLINE #if HAVE_MMXEXT_INLINE
if (INLINE_MMXEXT(cpu_flags)) { if (INLINE_MMXEXT(cpu_flags)) {