diff --git a/libavcodec/arm/h264dsp_init_arm.c b/libavcodec/arm/h264dsp_init_arm.c
index 367ba81..a3a8c66 100644
|
a
|
b
|
void ff_h264_idct8_add4_neon(uint8_t *dst, const int *block_offset, |
| 70 | 70 | |
| 71 | 71 | static void ff_h264dsp_init_neon(H264DSPContext *c, const int bit_depth, const int chroma_format_idc) |
| 72 | 72 | { |
| | 73 | const int cpu_flags = av_get_cpu_flags(); |
| | 74 | |
| | 75 | if (!have_neon(cpu_flags)) |
| | 76 | return; |
| | 77 | |
| 73 | 78 | if (bit_depth == 8) { |
| 74 | 79 | c->h264_v_loop_filter_luma = ff_h264_v_loop_filter_luma_neon; |
| 75 | 80 | c->h264_h_loop_filter_luma = ff_h264_h_loop_filter_luma_neon; |
| … |
… |
static void ff_h264dsp_init_neon(H264DSPContext *c, const int bit_depth, const i |
| 100 | 105 | |
| 101 | 106 | void ff_h264dsp_init_arm(H264DSPContext *c, const int bit_depth, const int chroma_format_idc) |
| 102 | 107 | { |
| 103 | | int cpu_flags = av_get_cpu_flags(); |
| 104 | | |
| 105 | | if (have_neon(cpu_flags)) |
| 106 | 108 | ff_h264dsp_init_neon(c, bit_depth, chroma_format_idc); |
| 107 | 109 | } |
diff --git a/libavcodec/arm/h264pred_init_arm.c b/libavcodec/arm/h264pred_init_arm.c
index 13aea32..df81050 100644
|
a
|
b
|
void ff_pred8x8_0l0_dc_neon(uint8_t *src, int stride); |
| 46 | 46 | static void ff_h264_pred_init_neon(H264PredContext *h, int codec_id, const int bit_depth, const int chroma_format_idc) |
| 47 | 47 | { |
| 48 | 48 | const int high_depth = bit_depth > 8; |
| | 49 | const int cpu_flags = av_get_cpu_flags(); |
| 49 | 50 | |
| 50 | | if (high_depth) |
| | 51 | if (!have_neon(cpu_flags) || high_depth) |
| 51 | 52 | return; |
| 52 | 53 | if(chroma_format_idc == 1){ |
| 53 | 54 | h->pred8x8[VERT_PRED8x8 ] = ff_pred8x8_vert_neon; |
| … |
… |
static void ff_h264_pred_init_neon(H264PredContext *h, int codec_id, const int b |
| 78 | 79 | |
| 79 | 80 | void ff_h264_pred_init_arm(H264PredContext *h, int codec_id, int bit_depth, const int chroma_format_idc) |
| 80 | 81 | { |
| 81 | | int cpu_flags = av_get_cpu_flags(); |
| 82 | | |
| 83 | | if (have_neon(cpu_flags)) |
| 84 | 82 | ff_h264_pred_init_neon(h, codec_id, bit_depth, chroma_format_idc); |
| 85 | 83 | } |