Mercurial > libavcodec.hg
comparison ppc/dsputil_ppc.c @ 3532:95e2e92328c0 libavcodec
Cosmetics
author | lu_zero |
---|---|
date | Wed, 02 Aug 2006 11:18:10 +0000 |
parents | 0b482ccd7f0e |
children | f52e3f60481b |
comparison
equal
deleted
inserted
replaced
3531:db56a7f0768a | 3532:95e2e92328c0 |
---|---|
22 | 22 |
23 #include "dsputil_ppc.h" | 23 #include "dsputil_ppc.h" |
24 | 24 |
25 #ifdef HAVE_ALTIVEC | 25 #ifdef HAVE_ALTIVEC |
26 #include "dsputil_altivec.h" | 26 #include "dsputil_altivec.h" |
27 #endif | |
28 | 27 |
29 extern void fdct_altivec(int16_t *block); | 28 extern void fdct_altivec(int16_t *block); |
30 extern void idct_put_altivec(uint8_t *dest, int line_size, int16_t *block); | 29 extern void idct_put_altivec(uint8_t *dest, int line_size, int16_t *block); |
31 extern void idct_add_altivec(uint8_t *dest, int line_size, int16_t *block); | 30 extern void idct_add_altivec(uint8_t *dest, int line_size, int16_t *block); |
32 | |
33 extern void ff_snow_horizontal_compose97i_altivec(DWTELEM *b, int width); | 31 extern void ff_snow_horizontal_compose97i_altivec(DWTELEM *b, int width); |
34 extern void ff_snow_vertical_compose97i_altivec(DWTELEM *b0, DWTELEM *b1, | 32 extern void ff_snow_vertical_compose97i_altivec(DWTELEM *b0, DWTELEM *b1, |
35 DWTELEM *b2, DWTELEM *b3, | 33 DWTELEM *b2, DWTELEM *b3, |
36 DWTELEM *b4, DWTELEM *b5, | 34 DWTELEM *b4, DWTELEM *b5, |
37 int width); | 35 int width); |
38 extern void ff_snow_inner_add_yblock_altivec(uint8_t *obmc, const int obmc_stride, | 36 extern void ff_snow_inner_add_yblock_altivec(uint8_t *obmc, |
39 uint8_t * * block, int b_w, int b_h, | 37 const int obmc_stride, |
40 int src_x, int src_y, int src_stride, | 38 uint8_t * * block, int b_w, |
41 slice_buffer * sb, int add, | 39 int b_h, int src_x, int src_y, |
42 uint8_t * dst8); | 40 int src_stride, slice_buffer * sb, |
41 int add, uint8_t * dst8); | |
42 | |
43 void dsputil_h264_init_ppc(DSPContext* c, AVCodecContext *avctx); | |
44 | |
45 #endif | |
43 | 46 |
44 int mm_flags = 0; | 47 int mm_flags = 0; |
45 | 48 |
46 int mm_support(void) | 49 int mm_support(void) |
47 { | 50 { |
246 { | 249 { |
247 return 0; | 250 return 0; |
248 } | 251 } |
249 #endif | 252 #endif |
250 | 253 |
251 | |
252 void dsputil_h264_init_ppc(DSPContext* c, AVCodecContext *avctx); | |
253 | |
254 void dsputil_init_ppc(DSPContext* c, AVCodecContext *avctx) | 254 void dsputil_init_ppc(DSPContext* c, AVCodecContext *avctx) |
255 { | 255 { |
256 // Common optimizations whether Altivec is available or not | 256 // Common optimizations whether Altivec is available or not |
257 | 257 |
258 switch (check_dcbzl_effect()) { | 258 switch (check_dcbzl_effect()) { |
304 c->gmc1 = gmc1_altivec; | 304 c->gmc1 = gmc1_altivec; |
305 | 305 |
306 c->hadamard8_diff[0] = hadamard8_diff16_altivec; | 306 c->hadamard8_diff[0] = hadamard8_diff16_altivec; |
307 c->hadamard8_diff[1] = hadamard8_diff8x8_altivec; | 307 c->hadamard8_diff[1] = hadamard8_diff8x8_altivec; |
308 | 308 |
309 | |
310 c->horizontal_compose97i = ff_snow_horizontal_compose97i_altivec; | 309 c->horizontal_compose97i = ff_snow_horizontal_compose97i_altivec; |
311 c->vertical_compose97i = ff_snow_vertical_compose97i_altivec; | 310 c->vertical_compose97i = ff_snow_vertical_compose97i_altivec; |
312 c->inner_add_yblock = ff_snow_inner_add_yblock_altivec; | 311 c->inner_add_yblock = ff_snow_inner_add_yblock_altivec; |
313 | 312 |
314 #ifdef CONFIG_ENCODERS | 313 #ifdef CONFIG_ENCODERS |