Mercurial > libavcodec.hg
comparison msmpeg4.c @ 440:000aeeac27a2 libavcodec
* started to cleanup name clashes for onetime compilation
author | kabi |
---|---|
date | Mon, 27 May 2002 16:42:14 +0000 |
parents | 718a22dc121f |
children | 583dcee270d2 |
comparison
equal
deleted
inserted
replaced
439:6ae275655a23 | 440:000aeeac27a2 |
---|---|
932 } | 932 } |
933 | 933 |
934 return 0; | 934 return 0; |
935 } | 935 } |
936 | 936 |
937 static inline void memsetw(short *tab, int val, int n) | 937 static inline void msmpeg4_memsetw(short *tab, int val, int n) |
938 { | 938 { |
939 int i; | 939 int i; |
940 for(i=0;i<n;i++) | 940 for(i=0;i<n;i++) |
941 tab[i] = val; | 941 tab[i] = val; |
942 } | 942 } |
1072 if (s->mb_x == 0) { | 1072 if (s->mb_x == 0) { |
1073 if (s->slice_height && (s->mb_y % s->slice_height) == 0) { | 1073 if (s->slice_height && (s->mb_y % s->slice_height) == 0) { |
1074 int wrap; | 1074 int wrap; |
1075 /* reset DC pred (set previous line to 1024) */ | 1075 /* reset DC pred (set previous line to 1024) */ |
1076 wrap = 2 * s->mb_width + 2; | 1076 wrap = 2 * s->mb_width + 2; |
1077 memsetw(&s->dc_val[0][(1) + (2 * s->mb_y) * wrap], | 1077 msmpeg4_memsetw(&s->dc_val[0][(1) + (2 * s->mb_y) * wrap], |
1078 1024, 2 * s->mb_width); | 1078 1024, 2 * s->mb_width); |
1079 wrap = s->mb_width + 2; | 1079 wrap = s->mb_width + 2; |
1080 memsetw(&s->dc_val[1][(1) + (s->mb_y) * wrap], | 1080 msmpeg4_memsetw(&s->dc_val[1][(1) + (s->mb_y) * wrap], |
1081 1024, s->mb_width); | 1081 1024, s->mb_width); |
1082 memsetw(&s->dc_val[2][(1) + (s->mb_y) * wrap], | 1082 msmpeg4_memsetw(&s->dc_val[2][(1) + (s->mb_y) * wrap], |
1083 1024, s->mb_width); | 1083 1024, s->mb_width); |
1084 | 1084 |
1085 /* reset AC pred (set previous line to 0) */ | 1085 /* reset AC pred (set previous line to 0) */ |
1086 wrap = s->mb_width * 2 + 2; | 1086 wrap = s->mb_width * 2 + 2; |
1087 memsetw(s->ac_val[0][0] + (1 + (2 * s->mb_y) * wrap)*16, | 1087 msmpeg4_memsetw(s->ac_val[0][0] + (1 + (2 * s->mb_y) * wrap)*16, |
1088 0, 2 * s->mb_width*16); | 1088 0, 2 * s->mb_width*16); |
1089 wrap = s->mb_width + 2; | 1089 wrap = s->mb_width + 2; |
1090 memsetw(s->ac_val[1][0] + (1 + (s->mb_y) * wrap)*16, | 1090 msmpeg4_memsetw(s->ac_val[1][0] + (1 + (s->mb_y) * wrap)*16, |
1091 0, s->mb_width*16); | 1091 0, s->mb_width*16); |
1092 memsetw(s->ac_val[2][0] + (1 + (s->mb_y) * wrap)*16, | 1092 msmpeg4_memsetw(s->ac_val[2][0] + (1 + (s->mb_y) * wrap)*16, |
1093 0, s->mb_width*16); | 1093 0, s->mb_width*16); |
1094 | 1094 |
1095 s->first_slice_line = 1; | 1095 s->first_slice_line = 1; |
1096 } else { | 1096 } else { |
1097 s->first_slice_line = 0; | 1097 s->first_slice_line = 0; |
1098 } | 1098 } |