Mercurial > libavcodec.hg
comparison armv4l/dsputil_arm.c @ 1092:f59c3f66363b libavcodec
MpegEncContext.(i)dct_* -> DspContext.(i)dct_*
bitexact cleanup
author | michaelni |
---|---|
date | Mon, 03 Mar 2003 14:54:00 +0000 |
parents | 8cc0d241da37 |
children | 7d328fd9d8a5 |
comparison
equal
deleted
inserted
replaced
1091:03df246fb06b | 1092:f59c3f66363b |
---|---|
19 | 19 |
20 #include "../dsputil.h" | 20 #include "../dsputil.h" |
21 | 21 |
22 extern void j_rev_dct_ARM(DCTELEM *data); | 22 extern void j_rev_dct_ARM(DCTELEM *data); |
23 | 23 |
24 void dsputil_init_armv4l(DSPContext* c, unsigned mask) | 24 /* XXX: local hack */ |
25 static void (*ff_put_pixels_clamped)(const DCTELEM *block, uint8_t *pixels, int line_size); | |
26 static void (*ff_add_pixels_clamped)(const DCTELEM *block, uint8_t *pixels, int line_size); | |
27 | |
28 /* XXX: those functions should be suppressed ASAP when all IDCTs are | |
29 converted */ | |
30 static void arm_idct_put(uint8_t *dest, int line_size, DCTELEM *block) | |
25 { | 31 { |
26 // ff_idct = j_rev_dct_ARM; | 32 j_rev_dct_ARM (block); |
33 ff_put_pixels_clamped(block, dest, line_size); | |
27 } | 34 } |
35 static void arm_idct_add(uint8_t *dest, int line_size, DCTELEM *block) | |
36 { | |
37 j_rev_dct_ARM (block); | |
38 ff_add_pixels_clamped(block, dest, line_size); | |
39 } | |
40 | |
41 void dsputil_init_armv4l(DSPContext* c, AVCodecContext *avctx) | |
42 { | |
43 const int idct_algo= avctx->idct_algo; | |
44 | |
45 ff_put_pixels_clamped = c->put_pixels_clamped; | |
46 ff_add_pixels_clamped = c->add_pixels_clamped; | |
47 | |
48 if(idct_algo==FF_IDCT_AUTO || idct_algo==FF_IDCT_ARM){ | |
49 c->idct_put= arm_idct_put; | |
50 c->idct_add= arm_idct_add; | |
51 c->idct_permutation_type= FF_LIBMPEG2_IDCT_PERM;/* FF_NO_IDCT_PERM */ | |
52 } | |
53 } |