Mercurial > libavcodec.hg
comparison armv4l/dsputil_iwmmxt.c @ 4197:bbe0bc387a19 libavcodec
revert bad checkin
author | mru |
---|---|
date | Tue, 14 Nov 2006 03:18:09 +0000 |
parents | fbac0859753d |
children | 9fad30d1230b |
comparison
equal
deleted
inserted
replaced
4196:fbac0859753d | 4197:bbe0bc387a19 |
---|---|
126 static void nop(uint8_t *block, const uint8_t *pixels, int line_size, int h) | 126 static void nop(uint8_t *block, const uint8_t *pixels, int line_size, int h) |
127 { | 127 { |
128 return; | 128 return; |
129 } | 129 } |
130 | 130 |
131 int ff_mm_flags; /* multimedia extension flags */ | 131 int mm_flags; /* multimedia extension flags */ |
132 | 132 |
133 int mm_support(void) | 133 int mm_support(void) |
134 { | 134 { |
135 return 0; /* TODO, implement proper detection */ | 135 return 0; /* TODO, implement proper detection */ |
136 } | 136 } |
137 | 137 |
138 void dsputil_init_iwmmxt(DSPContext* c, AVCodecContext *avctx) | 138 void dsputil_init_iwmmxt(DSPContext* c, AVCodecContext *avctx) |
139 { | 139 { |
140 ff_mm_flags = mm_support(); | 140 mm_flags = mm_support(); |
141 | 141 |
142 if (avctx->dsp_mask) { | 142 if (avctx->dsp_mask) { |
143 if (avctx->dsp_mask & FF_MM_FORCE) | 143 if (avctx->dsp_mask & FF_MM_FORCE) |
144 ff_mm_flags |= (avctx->dsp_mask & 0xffff); | 144 mm_flags |= (avctx->dsp_mask & 0xffff); |
145 else | 145 else |
146 ff_mm_flags &= ~(avctx->dsp_mask & 0xffff); | 146 mm_flags &= ~(avctx->dsp_mask & 0xffff); |
147 } | 147 } |
148 | 148 |
149 if (!(ff_mm_flags & MM_IWMMXT)) return; | 149 if (!(mm_flags & MM_IWMMXT)) return; |
150 | 150 |
151 c->add_pixels_clamped = add_pixels_clamped_iwmmxt; | 151 c->add_pixels_clamped = add_pixels_clamped_iwmmxt; |
152 | 152 |
153 c->put_pixels_tab[0][0] = put_pixels16_iwmmxt; | 153 c->put_pixels_tab[0][0] = put_pixels16_iwmmxt; |
154 c->put_pixels_tab[0][1] = put_pixels16_x2_iwmmxt; | 154 c->put_pixels_tab[0][1] = put_pixels16_x2_iwmmxt; |