Revision 8dbe5856 libavcodec/arm/dsputil_init_armv6.c
libavcodec/arm/dsputil_init_armv6.c | ||
---|---|---|
72 | 72 |
|
73 | 73 |
void av_cold ff_dsputil_init_armv6(DSPContext* c, AVCodecContext *avctx) |
74 | 74 |
{ |
75 |
const int h264_high_depth = avctx->codec_id == CODEC_ID_H264 && avctx->bits_per_raw_sample > 8; |
|
76 |
|
|
75 | 77 |
if (!avctx->lowres && (avctx->idct_algo == FF_IDCT_AUTO || |
76 | 78 |
avctx->idct_algo == FF_IDCT_SIMPLEARMV6)) { |
77 | 79 |
c->idct_put = ff_simple_idct_put_armv6; |
... | ... | |
80 | 82 |
c->idct_permutation_type = FF_LIBMPEG2_IDCT_PERM; |
81 | 83 |
} |
82 | 84 |
|
85 |
if (!h264_high_depth) { |
|
83 | 86 |
c->put_pixels_tab[0][0] = ff_put_pixels16_armv6; |
84 | 87 |
c->put_pixels_tab[0][1] = ff_put_pixels16_x2_armv6; |
85 | 88 |
c->put_pixels_tab[0][2] = ff_put_pixels16_y2_armv6; |
... | ... | |
100 | 103 |
|
101 | 104 |
c->avg_pixels_tab[0][0] = ff_avg_pixels16_armv6; |
102 | 105 |
c->avg_pixels_tab[1][0] = ff_avg_pixels8_armv6; |
106 |
} |
|
103 | 107 |
|
104 | 108 |
c->add_pixels_clamped = ff_add_pixels_clamped_armv6; |
105 | 109 |
c->get_pixels = ff_get_pixels_armv6; |
Also available in: Unified diff