comparison rv40.c @ 5993:5dfff8f6f524 libavcodec

Intra types will be stored in int8_t array
author kostya
date Fri, 07 Dec 2007 05:50:23 +0000
parents 61f0987be684
children 625b4a680d41
comparison
equal deleted inserted replaced
5992:61f0987be684 5993:5dfff8f6f524
129 } 129 }
130 130
131 /** 131 /**
132 * Decode 4x4 intra types array. 132 * Decode 4x4 intra types array.
133 */ 133 */
134 static int rv40_decode_intra_types(RV34DecContext *r, GetBitContext *gb, int *dst) 134 static int rv40_decode_intra_types(RV34DecContext *r, GetBitContext *gb, int8_t *dst)
135 { 135 {
136 MpegEncContext *s = &r->s; 136 MpegEncContext *s = &r->s;
137 int i, j, k, v; 137 int i, j, k, v;
138 int A, B, C; 138 int A, B, C;
139 int pattern; 139 int pattern;
140 int *ptr; 140 int8_t *ptr;
141 141
142 for(i = 0; i < 4; i++, dst += s->b4_stride){ 142 for(i = 0; i < 4; i++, dst += s->b4_stride){
143 if(!i && s->first_slice_line){ 143 if(!i && s->first_slice_line){
144 pattern = get_vlc2(gb, aic_top_vlc.table, AIC_TOP_BITS, 1); 144 pattern = get_vlc2(gb, aic_top_vlc.table, AIC_TOP_BITS, 1);
145 dst[0] = (pattern >> 2) & 2; 145 dst[0] = (pattern >> 2) & 2;