27 #define BITSTREAM_READER_LE
42 #define CODE_VLC_BITS 14
68 if (out + c*2 > width)
70 for (i = 0; i < c * 2; i++)
73 dst[out++] = table[c * 2];
74 dst[out++] = table[(c * 2) + 1];
79 for (j = 1; j <
height; j++) {
85 if (out + c*2 > width)
87 for (i = 0; i < c * 2; i++) {
92 t = dst[out -
stride] + (table[c * 2] - 128);
96 t = dst[out -
stride] + (table[(c * 2) + 1] - 128);
118 for (j = 0; j <
height; j++) {
120 while (out < width) {
126 t = dst[
out] + (((table[c * 2] - 128)*3) >> 2);
127 t = av_clip_uint8(t);
130 t = dst[
out] + (((table[(c * 2) + 1] - 128)*3) >> 2);
131 t = av_clip_uint8(t);
142 void *
data,
int *got_frame,
147 int buf_size = avpkt->
size;
157 if (start >= buf_size) {
165 #ifndef BITSTREAM_READER_LE
166 for (i = 0; i < buf_size; i++)
225 #ifdef BITSTREAM_READER_LE