mirror of
https://git.ffmpeg.org/ffmpeg.git
synced 2025-12-05 22:40:09 +01:00
avcodec/mpegvideo: Move ff_init_scantable() to mpegvideo_unquantize.c
This is necessary so that the mpegvideo_unquantize checkasm test does not pull mpegvideo.o and then all of libavcodec into checkasm. Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
This commit is contained in:
@@ -42,7 +42,6 @@
|
||||
#include "mpegutils.h"
|
||||
#include "mpegvideo.h"
|
||||
#include "mpegvideodata.h"
|
||||
#include "mpegvideo_unquantize.h"
|
||||
#include "libavutil/refstruct.h"
|
||||
|
||||
|
||||
@@ -79,20 +78,6 @@ static av_cold void dsp_init(MpegEncContext *s)
|
||||
}
|
||||
}
|
||||
|
||||
av_cold void ff_init_scantable(const uint8_t *permutation, ScanTable *st,
|
||||
const uint8_t *src_scantable)
|
||||
{
|
||||
st->scantable = src_scantable;
|
||||
|
||||
for (int i = 0, end = -1; i < 64; i++) {
|
||||
int j = src_scantable[i];
|
||||
st->permutated[i] = permutation[j];
|
||||
if (permutation[j] > end)
|
||||
end = permutation[j];
|
||||
st->raster_end[i] = end;
|
||||
}
|
||||
}
|
||||
|
||||
av_cold void ff_mpv_idct_init(MpegEncContext *s)
|
||||
{
|
||||
if (s->codec_id == AV_CODEC_ID_MPEG4)
|
||||
|
||||
@@ -33,6 +33,20 @@
|
||||
#include "mpegvideodata.h"
|
||||
#include "mpegvideo_unquantize.h"
|
||||
|
||||
av_cold void ff_init_scantable(const uint8_t *permutation, ScanTable *st,
|
||||
const uint8_t *src_scantable)
|
||||
{
|
||||
st->scantable = src_scantable;
|
||||
|
||||
for (int i = 0, end = -1; i < 64; i++) {
|
||||
int j = src_scantable[i];
|
||||
st->permutated[i] = permutation[j];
|
||||
if (permutation[j] > end)
|
||||
end = permutation[j];
|
||||
st->raster_end[i] = end;
|
||||
}
|
||||
}
|
||||
|
||||
static void dct_unquantize_mpeg1_intra_c(const MPVContext *s,
|
||||
int16_t *block, int n, int qscale)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user