27 #define BITSTREAM_READER_LE
42 #define CODE_VLC_BITS 14
66 if (out + c*2 > width)
68 for (i = 0; i < c * 2; i++)
71 dst[out++] = table[c * 2];
72 dst[out++] = table[(c * 2) + 1];
77 for (j = 1; j <
height; j++) {
83 if (out + c*2 > width)
85 for (i = 0; i < c * 2; i++) {
86 dst[
out] = dst[out - pitch];
90 int t = dst[out - pitch] + (table[c * 2] - 128);
94 t = dst[out - pitch] + (table[(c * 2) + 1] - 128);
116 for (j = 0; j <
height; j++) {
118 while (out < width) {
124 t = dst[
out] + (((table[c * 2] - 128)*3) >> 2);
125 t = av_clip_uint8(t);
128 t = dst[
out] + (((table[(c * 2) + 1] - 128)*3) >> 2);
129 t = av_clip_uint8(t);
140 void *
data,
int *got_frame,
145 int buf_size = avpkt->
size;
156 if (start >= buf_size) {
164 #ifndef BITSTREAM_READER_LE
165 for (i = 0; i < buf_size; i++)
171 ltab = buf[0x22] & 3;
172 ctab = buf[0x22] >> 2;
227 #ifdef BITSTREAM_READER_LE