Mercurial > libavcodec.hg
comparison ppc/h264_altivec.c @ 9439:ef3a7b711cc0 libavcodec
Rename put_no_rnd_h264_chroma* to reflect its usage in VC1 only
author | conrad |
---|---|
date | Tue, 14 Apr 2009 23:55:39 +0000 |
parents | dd2b5e52336a |
children | fe17033a79ed |
comparison
equal
deleted
inserted
replaced
9438:7f84bce8dd26 | 9439:ef3a7b711cc0 |
---|---|
178 put_h264_qpel ## SIZE ## _hv_lowpass_ ## CODETYPE(halfHV, tmp, src, SIZE, SIZE, stride);\ | 178 put_h264_qpel ## SIZE ## _hv_lowpass_ ## CODETYPE(halfHV, tmp, src, SIZE, SIZE, stride);\ |
179 OPNAME ## pixels ## SIZE ## _l2_ ## CODETYPE(dst, halfV, halfHV, stride, SIZE, SIZE);\ | 179 OPNAME ## pixels ## SIZE ## _l2_ ## CODETYPE(dst, halfV, halfHV, stride, SIZE, SIZE);\ |
180 }\ | 180 }\ |
181 | 181 |
182 /* this code assume that stride % 16 == 0 */ | 182 /* this code assume that stride % 16 == 0 */ |
183 void put_no_rnd_h264_chroma_mc8_altivec(uint8_t * dst, uint8_t * src, int stride, int h, int x, int y) { | 183 void put_no_rnd_vc1_chroma_mc8_altivec(uint8_t * dst, uint8_t * src, int stride, int h, int x, int y) { |
184 DECLARE_ALIGNED_16(signed int, ABCD[4]) = | 184 DECLARE_ALIGNED_16(signed int, ABCD[4]) = |
185 {((8 - x) * (8 - y)), | 185 {((8 - x) * (8 - y)), |
186 (( x) * (8 - y)), | 186 (( x) * (8 - y)), |
187 ((8 - x) * ( y)), | 187 ((8 - x) * ( y)), |
188 (( x) * ( y))}; | 188 (( x) * ( y))}; |
1088 | 1088 |
1089 void dsputil_h264_init_ppc(DSPContext* c, AVCodecContext *avctx) { | 1089 void dsputil_h264_init_ppc(DSPContext* c, AVCodecContext *avctx) { |
1090 | 1090 |
1091 if (has_altivec()) { | 1091 if (has_altivec()) { |
1092 c->put_h264_chroma_pixels_tab[0] = put_h264_chroma_mc8_altivec; | 1092 c->put_h264_chroma_pixels_tab[0] = put_h264_chroma_mc8_altivec; |
1093 c->put_no_rnd_h264_chroma_pixels_tab[0] = put_no_rnd_h264_chroma_mc8_altivec; | |
1094 c->avg_h264_chroma_pixels_tab[0] = avg_h264_chroma_mc8_altivec; | 1093 c->avg_h264_chroma_pixels_tab[0] = avg_h264_chroma_mc8_altivec; |
1094 c->put_no_rnd_vc1_chroma_pixels_tab[0] = put_no_rnd_vc1_chroma_mc8_altivec; | |
1095 c->h264_idct_add = ff_h264_idct_add_altivec; | 1095 c->h264_idct_add = ff_h264_idct_add_altivec; |
1096 c->h264_idct_add8 = ff_h264_idct_add8_altivec; | 1096 c->h264_idct_add8 = ff_h264_idct_add8_altivec; |
1097 c->h264_idct_add16 = ff_h264_idct_add16_altivec; | 1097 c->h264_idct_add16 = ff_h264_idct_add16_altivec; |
1098 c->h264_idct_add16intra = ff_h264_idct_add16intra_altivec; | 1098 c->h264_idct_add16intra = ff_h264_idct_add16intra_altivec; |
1099 c->h264_idct_dc_add= h264_idct_dc_add_altivec; | 1099 c->h264_idct_dc_add= h264_idct_dc_add_altivec; |