comparison arm/h264pred_init_arm.c @ 11918:823f332655e8 libavcodec

Add intra prediction functions for VP8. Patch by David Conrad <lessen42 gmail com> and myself.
author rbultje
date Tue, 22 Jun 2010 19:17:09 +0000
parents 21566c95834c
children f021be0e837c
comparison
equal deleted inserted replaced
11917:2952baf6a266 11918:823f332655e8
44 44
45 static void ff_h264_pred_init_neon(H264PredContext *h, int codec_id) 45 static void ff_h264_pred_init_neon(H264PredContext *h, int codec_id)
46 { 46 {
47 h->pred8x8[VERT_PRED8x8 ] = ff_pred8x8_vert_neon; 47 h->pred8x8[VERT_PRED8x8 ] = ff_pred8x8_vert_neon;
48 h->pred8x8[HOR_PRED8x8 ] = ff_pred8x8_hor_neon; 48 h->pred8x8[HOR_PRED8x8 ] = ff_pred8x8_hor_neon;
49 if (codec_id != CODEC_ID_VP8)
49 h->pred8x8[PLANE_PRED8x8 ] = ff_pred8x8_plane_neon; 50 h->pred8x8[PLANE_PRED8x8 ] = ff_pred8x8_plane_neon;
50 h->pred8x8[DC_128_PRED8x8 ] = ff_pred8x8_128_dc_neon; 51 h->pred8x8[DC_128_PRED8x8 ] = ff_pred8x8_128_dc_neon;
51 if (codec_id != CODEC_ID_RV40) { 52 if (codec_id != CODEC_ID_RV40 && codec_id != CODEC_ID_VP8) {
52 h->pred8x8[DC_PRED8x8 ] = ff_pred8x8_dc_neon; 53 h->pred8x8[DC_PRED8x8 ] = ff_pred8x8_dc_neon;
53 h->pred8x8[LEFT_DC_PRED8x8] = ff_pred8x8_left_dc_neon; 54 h->pred8x8[LEFT_DC_PRED8x8] = ff_pred8x8_left_dc_neon;
54 h->pred8x8[TOP_DC_PRED8x8 ] = ff_pred8x8_top_dc_neon; 55 h->pred8x8[TOP_DC_PRED8x8 ] = ff_pred8x8_top_dc_neon;
55 h->pred8x8[ALZHEIMER_DC_L0T_PRED8x8] = ff_pred8x8_l0t_dc_neon; 56 h->pred8x8[ALZHEIMER_DC_L0T_PRED8x8] = ff_pred8x8_l0t_dc_neon;
56 h->pred8x8[ALZHEIMER_DC_0LT_PRED8x8] = ff_pred8x8_0lt_dc_neon; 57 h->pred8x8[ALZHEIMER_DC_0LT_PRED8x8] = ff_pred8x8_0lt_dc_neon;
62 h->pred16x16[VERT_PRED8x8 ] = ff_pred16x16_vert_neon; 63 h->pred16x16[VERT_PRED8x8 ] = ff_pred16x16_vert_neon;
63 h->pred16x16[HOR_PRED8x8 ] = ff_pred16x16_hor_neon; 64 h->pred16x16[HOR_PRED8x8 ] = ff_pred16x16_hor_neon;
64 h->pred16x16[LEFT_DC_PRED8x8] = ff_pred16x16_left_dc_neon; 65 h->pred16x16[LEFT_DC_PRED8x8] = ff_pred16x16_left_dc_neon;
65 h->pred16x16[TOP_DC_PRED8x8 ] = ff_pred16x16_top_dc_neon; 66 h->pred16x16[TOP_DC_PRED8x8 ] = ff_pred16x16_top_dc_neon;
66 h->pred16x16[DC_128_PRED8x8 ] = ff_pred16x16_128_dc_neon; 67 h->pred16x16[DC_128_PRED8x8 ] = ff_pred16x16_128_dc_neon;
67 if (codec_id != CODEC_ID_SVQ3 && codec_id != CODEC_ID_RV40) 68 if (codec_id != CODEC_ID_SVQ3 && codec_id != CODEC_ID_RV40 && codec_id != CODEC_ID_VP8)
68 h->pred16x16[PLANE_PRED8x8 ] = ff_pred16x16_plane_neon; 69 h->pred16x16[PLANE_PRED8x8 ] = ff_pred16x16_plane_neon;
69 } 70 }
70 71
71 void ff_h264_pred_init_arm(H264PredContext *h, int codec_id) 72 void ff_h264_pred_init_arm(H264PredContext *h, int codec_id)
72 { 73 {