Lines Matching refs:gb

36     void (*decode_frame)(AVCodecContext *avctx, AVFrame *p, GetBitContext *gb);
39 static void decode_ca4i(AVCodecContext *avctx, AVFrame *p, GetBitContext *gb)
51 if (get_bits1(gb)) {
53 dst_a[x] = get_bits(gb, 10);
54 dst_y[x] = get_bits(gb, 10);
55 dst_u[x] = get_bits(gb, 10);
56 dst_v[x] = get_bits(gb, 10);
64 a = get_vlc2(gb, s->vlc[1].table, SHEER_VLC_BITS, 2);
65 y = get_vlc2(gb, s->vlc[0].table, SHEER_VLC_BITS, 2);
66 u = get_vlc2(gb, s->vlc[1].table, SHEER_VLC_BITS, 2);
67 v = get_vlc2(gb, s->vlc[1].table, SHEER_VLC_BITS, 2);
83 static void decode_ca4p(AVCodecContext *avctx, AVFrame *p, GetBitContext *gb)
94 if (get_bits1(gb)) {
96 dst_a[x] = get_bits(gb, 10);
97 dst_y[x] = get_bits(gb, 10);
98 dst_u[x] = get_bits(gb, 10);
99 dst_v[x] = get_bits(gb, 10);
107 a = get_vlc2(gb, s->vlc[1].table, SHEER_VLC_BITS, 2);
108 y = get_vlc2(gb, s->vlc[0].table, SHEER_VLC_BITS, 2);
109 u = get_vlc2(gb, s->vlc[1].table, SHEER_VLC_BITS, 2);
110 v = get_vlc2(gb, s->vlc[1].table, SHEER_VLC_BITS, 2);
125 if (get_bits1(gb)) {
127 dst_a[x] = get_bits(gb, 10);
128 dst_y[x] = get_bits(gb, 10);
129 dst_u[x] = get_bits(gb, 10);
130 dst_v[x] = get_bits(gb, 10);
147 a = get_vlc2(gb, s->vlc[1].table, SHEER_VLC_BITS, 2);
148 y = get_vlc2(gb, s->vlc[0].table, SHEER_VLC_BITS, 2);
149 u = get_vlc2(gb, s->vlc[1].table, SHEER_VLC_BITS, 2);
150 v = get_vlc2(gb, s->vlc[1].table, SHEER_VLC_BITS, 2);
171 static void decode_ybr10i(AVCodecContext *avctx, AVFrame *p, GetBitContext *gb)
182 if (get_bits1(gb)) {
184 dst_y[x] = get_bits(gb, 10);
185 dst_u[x] = get_bits(gb, 10);
186 dst_v[x] = get_bits(gb, 10);
194 y = get_vlc2(gb, s->vlc[0].table, SHEER_VLC_BITS, 2);
195 u = get_vlc2(gb, s->vlc[1].table, SHEER_VLC_BITS, 2);
196 v = get_vlc2(gb, s->vlc[1].table, SHEER_VLC_BITS, 2);
210 static void decode_ybr10(AVCodecContext *avctx, AVFrame *p, GetBitContext *gb)
220 if (get_bits1(gb)) {
222 dst_y[x] = get_bits(gb, 10);
223 dst_u[x] = get_bits(gb, 10);
224 dst_v[x] = get_bits(gb, 10);
232 y = get_vlc2(gb, s->vlc[0].table, SHEER_VLC_BITS, 2);
233 u = get_vlc2(gb, s->vlc[1].table, SHEER_VLC_BITS, 2);
234 v = get_vlc2(gb, s->vlc[1].table, SHEER_VLC_BITS, 2);
247 if (get_bits1(gb)) {
249 dst_y[x] = get_bits(gb, 10);
250 dst_u[x] = get_bits(gb, 10);
251 dst_v[x] = get_bits(gb, 10);
266 y = get_vlc2(gb, s->vlc[0].table, SHEER_VLC_BITS, 2);
267 u = get_vlc2(gb, s->vlc[1].table, SHEER_VLC_BITS, 2);
268 v = get_vlc2(gb, s->vlc[1].table, SHEER_VLC_BITS, 2);
286 static void decode_yry10i(AVCodecContext *avctx, AVFrame *p, GetBitContext *gb)
297 if (get_bits1(gb)) {
299 dst_y[x ] = get_bits(gb, 10);
300 dst_u[x / 2] = get_bits(gb, 10);
301 dst_y[x + 1] = get_bits(gb, 10);
302 dst_v[x / 2] = get_bits(gb, 10);
310 y1 = get_vlc2(gb, s->vlc[0].table, SHEER_VLC_BITS, 2);
311 u = get_vlc2(gb, s->vlc[1].table, SHEER_VLC_BITS, 2);
312 y2 = get_vlc2(gb, s->vlc[0].table, SHEER_VLC_BITS, 2);
313 v = get_vlc2(gb, s->vlc[1].table, SHEER_VLC_BITS, 2);
328 static void decode_yry10(AVCodecContext *avctx, AVFrame *p, GetBitContext *gb)
338 if (get_bits1(gb)) {
340 dst_y[x ] = get_bits(gb, 10);
341 dst_u[x / 2] = get_bits(gb, 10);
342 dst_y[x + 1] = get_bits(gb, 10);
343 dst_v[x / 2] = get_bits(gb, 10);
351 y1 = get_vlc2(gb, s->vlc[0].table, SHEER_VLC_BITS, 2);
352 u = get_vlc2(gb, s->vlc[1].table, SHEER_VLC_BITS, 2);
353 y2 = get_vlc2(gb, s->vlc[0].table, SHEER_VLC_BITS, 2);
354 v = get_vlc2(gb, s->vlc[1].table, SHEER_VLC_BITS, 2);
368 if (get_bits1(gb)) {
370 dst_y[x ] = get_bits(gb, 10);
371 dst_u[x / 2] = get_bits(gb, 10);
372 dst_y[x + 1] = get_bits(gb, 10);
373 dst_v[x / 2] = get_bits(gb, 10);
389 y1 = get_vlc2(gb, s->vlc[0].table, SHEER_VLC_BITS, 2);
390 u = get_vlc2(gb, s->vlc[1].table, SHEER_VLC_BITS, 2);
391 y2 = get_vlc2(gb, s->vlc[0].table, SHEER_VLC_BITS, 2);
392 v = get_vlc2(gb, s->vlc[1].table, SHEER_VLC_BITS, 2);
411 static void decode_ca2i(AVCodecContext *avctx, AVFrame *p, GetBitContext *gb)
423 if (get_bits1(gb)) {
425 dst_a[x ] = get_bits(gb, 10);
426 dst_y[x ] = get_bits(gb, 10);
427 dst_u[x / 2] = get_bits(gb, 10);
428 dst_a[x + 1] = get_bits(gb, 10);
429 dst_y[x + 1] = get_bits(gb, 10);
430 dst_v[x / 2] = get_bits(gb, 10);
438 a1 = get_vlc2(gb, s->vlc[1].table, SHEER_VLC_BITS, 2);
439 y1 = get_vlc2(gb, s->vlc[0].table, SHEER_VLC_BITS, 2);
440 u = get_vlc2(gb, s->vlc[1].table, SHEER_VLC_BITS, 2);
441 a2 = get_vlc2(gb, s->vlc[1].table, SHEER_VLC_BITS, 2);
442 y2 = get_vlc2(gb, s->vlc[0].table, SHEER_VLC_BITS, 2);
443 v = get_vlc2(gb, s->vlc[1].table, SHEER_VLC_BITS, 2);
461 static void decode_ca2p(AVCodecContext *avctx, AVFrame *p, GetBitContext *gb)
472 if (get_bits1(gb)) {
474 dst_a[x ] = get_bits(gb, 10);
475 dst_y[x ] = get_bits(gb, 10);
476 dst_u[x / 2] = get_bits(gb, 10);
477 dst_a[x + 1] = get_bits(gb, 10);
478 dst_y[x + 1] = get_bits(gb, 10);
479 dst_v[x / 2] = get_bits(gb, 10);
487 a1 = get_vlc2(gb, s->vlc[1].table, SHEER_VLC_BITS, 2);
488 y1 = get_vlc2(gb, s->vlc[0].table, SHEER_VLC_BITS, 2);
489 u = get_vlc2(gb, s->vlc[1].table, SHEER_VLC_BITS, 2);
490 a2 = get_vlc2(gb, s->vlc[1].table, SHEER_VLC_BITS, 2);
491 y2 = get_vlc2(gb, s->vlc[0].table, SHEER_VLC_BITS, 2);
492 v = get_vlc2(gb, s->vlc[1].table, SHEER_VLC_BITS, 2);
509 if (get_bits1(gb)) {
511 dst_a[x ] = get_bits(gb, 10);
512 dst_y[x ] = get_bits(gb, 10);
513 dst_u[x / 2] = get_bits(gb, 10);
514 dst_a[x + 1] = get_bits(gb, 10);
515 dst_y[x + 1] = get_bits(gb, 10);
516 dst_v[x / 2] = get_bits(gb, 10);
535 a1 = get_vlc2(gb, s->vlc[1].table, SHEER_VLC_BITS, 2);
536 y1 = get_vlc2(gb, s->vlc[0].table, SHEER_VLC_BITS, 2);
537 u = get_vlc2(gb, s->vlc[1].table, SHEER_VLC_BITS, 2);
538 a2 = get_vlc2(gb, s->vlc[1].table, SHEER_VLC_BITS, 2);
539 y2 = get_vlc2(gb, s->vlc[0].table, SHEER_VLC_BITS, 2);
540 v = get_vlc2(gb, s->vlc[1].table, SHEER_VLC_BITS, 2);
563 static void decode_c82i(AVCodecContext *avctx, AVFrame *p, GetBitContext *gb)
575 if (get_bits1(gb)) {
577 dst_a[x ] = get_bits(gb, 8);
578 dst_y[x ] = get_bits(gb, 8);
579 dst_u[x / 2] = get_bits(gb, 8);
580 dst_a[x + 1] = get_bits(gb, 8);
581 dst_y[x + 1] = get_bits(gb, 8);
582 dst_v[x / 2] = get_bits(gb, 8);
590 a1 = get_vlc2(gb, s->vlc[1].table, SHEER_VLC_BITS, 2);
591 y1 = get_vlc2(gb, s->vlc[0].table, SHEER_VLC_BITS, 2);
592 u = get_vlc2(gb, s->vlc[1].table, SHEER_VLC_BITS, 2);
593 a2 = get_vlc2(gb, s->vlc[1].table, SHEER_VLC_BITS, 2);
594 y2 = get_vlc2(gb, s->vlc[0].table, SHEER_VLC_BITS, 2);
595 v = get_vlc2(gb, s->vlc[1].table, SHEER_VLC_BITS, 2);
613 static void decode_c82p(AVCodecContext *avctx, AVFrame *p, GetBitContext *gb)
624 if (get_bits1(gb)) {
626 dst_a[x ] = get_bits(gb, 8);
627 dst_y[x ] = get_bits(gb, 8);
628 dst_u[x / 2] = get_bits(gb, 8);
629 dst_a[x + 1] = get_bits(gb, 8);
630 dst_y[x + 1] = get_bits(gb, 8);
631 dst_v[x / 2] = get_bits(gb, 8);
639 a1 = get_vlc2(gb, s->vlc[1].table, SHEER_VLC_BITS, 2);
640 y1 = get_vlc2(gb, s->vlc[0].table, SHEER_VLC_BITS, 2);
641 u = get_vlc2(gb, s->vlc[1].table, SHEER_VLC_BITS, 2);
642 a2 = get_vlc2(gb, s->vlc[1].table, SHEER_VLC_BITS, 2);
643 y2 = get_vlc2(gb, s->vlc[0].table, SHEER_VLC_BITS, 2);
644 v = get_vlc2(gb, s->vlc[1].table, SHEER_VLC_BITS, 2);
661 if (get_bits1(gb)) {
663 dst_a[x ] = get_bits(gb, 8);
664 dst_y[x ] = get_bits(gb, 8);
665 dst_u[x / 2] = get_bits(gb, 8);
666 dst_a[x + 1] = get_bits(gb, 8);
667 dst_y[x + 1] = get_bits(gb, 8);
668 dst_v[x / 2] = get_bits(gb, 8);
687 a1 = get_vlc2(gb, s->vlc[1].table, SHEER_VLC_BITS, 2);
688 y1 = get_vlc2(gb, s->vlc[0].table, SHEER_VLC_BITS, 2);
689 u = get_vlc2(gb, s->vlc[1].table, SHEER_VLC_BITS, 2);
690 a2 = get_vlc2(gb, s->vlc[1].table, SHEER_VLC_BITS, 2);
691 y2 = get_vlc2(gb, s->vlc[0].table, SHEER_VLC_BITS, 2);
692 v = get_vlc2(gb, s->vlc[1].table, SHEER_VLC_BITS, 2);
715 static void decode_ybyr(AVCodecContext *avctx, AVFrame *p, GetBitContext *gb)
725 if (get_bits1(gb)) {
727 dst_y[x ] = get_bits(gb, 8);
728 dst_u[x / 2] = get_bits(gb, 8) + 128;
729 dst_y[x + 1] = get_bits(gb, 8);
730 dst_v[x / 2] = get_bits(gb, 8) + 128;
738 y1 = get_vlc2(gb, s->vlc[0].table, SHEER_VLC_BITS, 2);
739 u = get_vlc2(gb, s->vlc[1].table, SHEER_VLC_BITS, 2);
740 y2 = get_vlc2(gb, s->vlc[0].table, SHEER_VLC_BITS, 2);
741 v = get_vlc2(gb, s->vlc[1].table, SHEER_VLC_BITS, 2);
755 if (get_bits1(gb)) {
757 dst_y[x ] = get_bits(gb, 8);
758 dst_u[x / 2] = get_bits(gb, 8) + 128;
759 dst_y[x + 1] = get_bits(gb, 8);
760 dst_v[x / 2] = get_bits(gb, 8) + 128;
776 y1 = get_vlc2(gb, s->vlc[0].table, SHEER_VLC_BITS, 2);
777 u = get_vlc2(gb, s->vlc[1].table, SHEER_VLC_BITS, 2);
778 y2 = get_vlc2(gb, s->vlc[0].table, SHEER_VLC_BITS, 2);
779 v = get_vlc2(gb, s->vlc[1].table, SHEER_VLC_BITS, 2);
798 static void decode_byryi(AVCodecContext *avctx, AVFrame *p, GetBitContext *gb)
808 if (get_bits1(gb)) {
810 dst_y[x ] = get_bits(gb, 8);
811 dst_u[x / 2] = get_bits(gb, 8);
812 dst_y[x + 1] = get_bits(gb, 8);
813 dst_v[x / 2] = get_bits(gb, 8);
821 y1 = get_vlc2(gb, s->vlc[0].table, SHEER_VLC_BITS, 2);
822 u = get_vlc2(gb, s->vlc[1].table, SHEER_VLC_BITS, 2);
823 y2 = get_vlc2(gb, s->vlc[0].table, SHEER_VLC_BITS, 2);
824 v = get_vlc2(gb, s->vlc[1].table, SHEER_VLC_BITS, 2);
838 if (get_bits1(gb)) {
840 dst_y[x ] = get_bits(gb, 8);
841 dst_u[x / 2] = get_bits(gb, 8);
842 dst_y[x + 1] = get_bits(gb, 8);
843 dst_v[x / 2] = get_bits(gb, 8);
854 y1 = get_vlc2(gb, s->vlc[0].table, SHEER_VLC_BITS, 2);
855 u = get_vlc2(gb, s->vlc[1].table, SHEER_VLC_BITS, 2);
856 y2 = get_vlc2(gb, s->vlc[0].table, SHEER_VLC_BITS, 2);
857 v = get_vlc2(gb, s->vlc[1].table, SHEER_VLC_BITS, 2);
872 static void decode_byry(AVCodecContext *avctx, AVFrame *p, GetBitContext *gb)
882 if (get_bits1(gb)) {
884 dst_y[x ] = get_bits(gb, 8);
885 dst_u[x / 2] = get_bits(gb, 8);
886 dst_y[x + 1] = get_bits(gb, 8);
887 dst_v[x / 2] = get_bits(gb, 8);
895 y1 = get_vlc2(gb, s->vlc[0].table, SHEER_VLC_BITS, 2);
896 u = get_vlc2(gb, s->vlc[1].table, SHEER_VLC_BITS, 2);
897 y2 = get_vlc2(gb, s->vlc[0].table, SHEER_VLC_BITS, 2);
898 v = get_vlc2(gb, s->vlc[1].table, SHEER_VLC_BITS, 2);
912 if (get_bits1(gb)) {
914 dst_y[x ] = get_bits(gb, 8);
915 dst_u[x / 2] = get_bits(gb, 8);
916 dst_y[x + 1] = get_bits(gb, 8);
917 dst_v[x / 2] = get_bits(gb, 8);
933 y1 = get_vlc2(gb, s->vlc[0].table, SHEER_VLC_BITS, 2);
934 u = get_vlc2(gb, s->vlc[1].table, SHEER_VLC_BITS, 2);
935 y2 = get_vlc2(gb, s->vlc[0].table, SHEER_VLC_BITS, 2);
936 v = get_vlc2(gb, s->vlc[1].table, SHEER_VLC_BITS, 2);
955 static void decode_ybri(AVCodecContext *avctx, AVFrame *p, GetBitContext *gb)
965 if (get_bits1(gb)) {
967 dst_y[x] = get_bits(gb, 8);
968 dst_u[x] = get_bits(gb, 8);
969 dst_v[x] = get_bits(gb, 8);
977 y = get_vlc2(gb, s->vlc[0].table, SHEER_VLC_BITS, 2);
978 u = get_vlc2(gb, s->vlc[1].table, SHEER_VLC_BITS, 2);
979 v = get_vlc2(gb, s->vlc[1].table, SHEER_VLC_BITS, 2);
992 if (get_bits1(gb)) {
994 dst_y[x] = get_bits(gb, 8);
995 dst_u[x] = get_bits(gb, 8);
996 dst_v[x] = get_bits(gb, 8);
1007 y = get_vlc2(gb, s->vlc[0].table, SHEER_VLC_BITS, 2);
1008 u = get_vlc2(gb, s->vlc[1].table, SHEER_VLC_BITS, 2);
1009 v = get_vlc2(gb, s->vlc[1].table, SHEER_VLC_BITS, 2);
1023 static void decode_ybr(AVCodecContext *avctx, AVFrame *p, GetBitContext *gb)
1033 if (get_bits1(gb)) {
1035 dst_y[x] = get_bits(gb, 8);
1036 dst_u[x] = get_bits(gb, 8);
1037 dst_v[x] = get_bits(gb, 8);
1045 y = get_vlc2(gb, s->vlc[0].table, SHEER_VLC_BITS, 2);
1046 u = get_vlc2(gb, s->vlc[1].table, SHEER_VLC_BITS, 2);
1047 v = get_vlc2(gb, s->vlc[1].table, SHEER_VLC_BITS, 2);
1060 if (get_bits1(gb)) {
1062 dst_y[x] = get_bits(gb, 8);
1063 dst_u[x] = get_bits(gb, 8);
1064 dst_v[x] = get_bits(gb, 8);
1079 y = get_vlc2(gb, s->vlc[0].table, SHEER_VLC_BITS, 2);
1080 u = get_vlc2(gb, s->vlc[1].table, SHEER_VLC_BITS, 2);
1081 v = get_vlc2(gb, s->vlc[1].table, SHEER_VLC_BITS, 2);
1099 static void decode_aybri(AVCodecContext *avctx, AVFrame *p, GetBitContext *gb)
1110 if (get_bits1(gb)) {
1112 dst_a[x] = get_bits(gb, 8);
1113 dst_y[x] = get_bits(gb, 8);
1114 dst_u[x] = get_bits(gb, 8);
1115 dst_v[x] = get_bits(gb, 8);
1123 a = get_vlc2(gb, s->vlc[1].table, SHEER_VLC_BITS, 2);
1124 y = get_vlc2(gb, s->vlc[0].table, SHEER_VLC_BITS, 2);
1125 u = get_vlc2(gb, s->vlc[1].table, SHEER_VLC_BITS, 2);
1126 v = get_vlc2(gb, s->vlc[1].table, SHEER_VLC_BITS, 2);
1141 if (get_bits1(gb)) {
1143 dst_a[x] = get_bits(gb, 8);
1144 dst_y[x] = get_bits(gb, 8);
1145 dst_u[x] = get_bits(gb, 8);
1146 dst_v[x] = get_bits(gb, 8);
1158 a = get_vlc2(gb, s->vlc[1].table, SHEER_VLC_BITS, 2);
1159 y = get_vlc2(gb, s->vlc[0].table, SHEER_VLC_BITS, 2);
1160 u = get_vlc2(gb, s->vlc[1].table, SHEER_VLC_BITS, 2);
1161 v = get_vlc2(gb, s->vlc[1].table, SHEER_VLC_BITS, 2);
1177 static void decode_aybr(AVCodecContext *avctx, AVFrame *p, GetBitContext *gb)
1188 if (get_bits1(gb)) {
1190 dst_a[x] = get_bits(gb, 8);
1191 dst_y[x] = get_bits(gb, 8);
1192 dst_u[x] = get_bits(gb, 8);
1193 dst_v[x] = get_bits(gb, 8);
1201 a = get_vlc2(gb, s->vlc[1].table, SHEER_VLC_BITS, 2);
1202 y = get_vlc2(gb, s->vlc[0].table, SHEER_VLC_BITS, 2);
1203 u = get_vlc2(gb, s->vlc[1].table, SHEER_VLC_BITS, 2);
1204 v = get_vlc2(gb, s->vlc[1].table, SHEER_VLC_BITS, 2);
1219 if (get_bits1(gb)) {
1221 dst_a[x] = get_bits(gb, 8);
1222 dst_y[x] = get_bits(gb, 8);
1223 dst_u[x] = get_bits(gb, 8);
1224 dst_v[x] = get_bits(gb, 8);
1241 a = get_vlc2(gb, s->vlc[1].table, SHEER_VLC_BITS, 2);
1242 y = get_vlc2(gb, s->vlc[0].table, SHEER_VLC_BITS, 2);
1243 u = get_vlc2(gb, s->vlc[1].table, SHEER_VLC_BITS, 2);
1244 v = get_vlc2(gb, s->vlc[1].table, SHEER_VLC_BITS, 2);
1265 static void decode_argxi(AVCodecContext *avctx, AVFrame *p, GetBitContext *gb)
1277 if (get_bits1(gb)) {
1279 dst_a[x] = get_bits(gb, 10);
1280 dst_r[x] = get_bits(gb, 10);
1281 dst_g[x] = get_bits(gb, 10);
1282 dst_b[x] = get_bits(gb, 10);
1290 a = get_vlc2(gb, s->vlc[1].table, SHEER_VLC_BITS, 2);
1291 r = get_vlc2(gb, s->vlc[0].table, SHEER_VLC_BITS, 2);
1292 g = get_vlc2(gb, s->vlc[1].table, SHEER_VLC_BITS, 2);
1293 b = get_vlc2(gb, s->vlc[1].table, SHEER_VLC_BITS, 2);
1309 static void decode_argx(AVCodecContext *avctx, AVFrame *p, GetBitContext *gb)
1320 if (get_bits1(gb)) {
1322 dst_a[x] = get_bits(gb, 10);
1323 dst_r[x] = get_bits(gb, 10);
1324 dst_g[x] = get_bits(gb, 10);
1325 dst_b[x] = get_bits(gb, 10);
1333 a = get_vlc2(gb, s->vlc[1].table, SHEER_VLC_BITS, 2);
1334 r = get_vlc2(gb, s->vlc[0].table, SHEER_VLC_BITS, 2);
1335 g = get_vlc2(gb, s->vlc[1].table, SHEER_VLC_BITS, 2);
1336 b = get_vlc2(gb, s->vlc[1].table, SHEER_VLC_BITS, 2);
1351 if (get_bits1(gb)) {
1353 dst_a[x] = get_bits(gb, 10);
1354 dst_r[x] = get_bits(gb, 10);
1355 dst_g[x] = get_bits(gb, 10);
1356 dst_b[x] = get_bits(gb, 10);
1373 a = get_vlc2(gb, s->vlc[1].table, SHEER_VLC_BITS, 2);
1374 r = get_vlc2(gb, s->vlc[0].table, SHEER_VLC_BITS, 2);
1375 g = get_vlc2(gb, s->vlc[1].table, SHEER_VLC_BITS, 2);
1376 b = get_vlc2(gb, s->vlc[1].table, SHEER_VLC_BITS, 2);
1397 static void decode_rgbxi(AVCodecContext *avctx, AVFrame *p, GetBitContext *gb)
1408 if (get_bits1(gb)) {
1410 dst_r[x] = get_bits(gb, 10);
1411 dst_g[x] = get_bits(gb, 10);
1412 dst_b[x] = get_bits(gb, 10);
1420 r = get_vlc2(gb, s->vlc[0].table, SHEER_VLC_BITS, 2);
1421 g = get_vlc2(gb, s->vlc[1].table, SHEER_VLC_BITS, 2);
1422 b = get_vlc2(gb, s->vlc[1].table, SHEER_VLC_BITS, 2);
1436 static void decode_rgbx(AVCodecContext *avctx, AVFrame *p, GetBitContext *gb)
1446 if (get_bits1(gb)) {
1448 dst_r[x] = get_bits(gb, 10);
1449 dst_g[x] = get_bits(gb, 10);
1450 dst_b[x] = get_bits(gb, 10);
1458 r = get_vlc2(gb, s->vlc[0].table, SHEER_VLC_BITS, 2);
1459 g = get_vlc2(gb, s->vlc[1].table, SHEER_VLC_BITS, 2);
1460 b = get_vlc2(gb, s->vlc[1].table, SHEER_VLC_BITS, 2);
1473 if (get_bits1(gb)) {
1475 dst_r[x] = get_bits(gb, 10);
1476 dst_g[x] = get_bits(gb, 10);
1477 dst_b[x] = get_bits(gb, 10);
1492 r = get_vlc2(gb, s->vlc[0].table, SHEER_VLC_BITS, 2);
1493 g = get_vlc2(gb, s->vlc[1].table, SHEER_VLC_BITS, 2);
1494 b = get_vlc2(gb, s->vlc[1].table, SHEER_VLC_BITS, 2);
1512 static void decode_argbi(AVCodecContext *avctx, AVFrame *p, GetBitContext *gb)
1519 if (get_bits1(gb)) {
1521 dst[x * 4 + 0] = get_bits(gb, 8);
1522 dst[x * 4 + 1] = get_bits(gb, 8);
1523 dst[x * 4 + 2] = get_bits(gb, 8);
1524 dst[x * 4 + 3] = get_bits(gb, 8);
1532 a = get_vlc2(gb, s->vlc[1].table, SHEER_VLC_BITS, 2);
1533 r = get_vlc2(gb, s->vlc[0].table, SHEER_VLC_BITS, 2);
1534 g = get_vlc2(gb, s->vlc[1].table, SHEER_VLC_BITS, 2);
1535 b = get_vlc2(gb, s->vlc[1].table, SHEER_VLC_BITS, 2);
1546 if (get_bits1(gb)) {
1548 dst[x * 4 + 0] = get_bits(gb, 8);
1549 dst[x * 4 + 1] = get_bits(gb, 8);
1550 dst[x * 4 + 2] = get_bits(gb, 8);
1551 dst[x * 4 + 3] = get_bits(gb, 8);
1563 a = get_vlc2(gb, s->vlc[1].table, SHEER_VLC_BITS, 2);
1564 r = get_vlc2(gb, s->vlc[0].table, SHEER_VLC_BITS, 2);
1565 g = get_vlc2(gb, s->vlc[1].table, SHEER_VLC_BITS, 2);
1566 b = get_vlc2(gb, s->vlc[1].table, SHEER_VLC_BITS, 2);
1578 static void decode_argb(AVCodecContext *avctx, AVFrame *p, GetBitContext *gb)
1585 if (get_bits1(gb)) {
1587 dst[x * 4 + 0] = get_bits(gb, 8);
1588 dst[x * 4 + 1] = get_bits(gb, 8);
1589 dst[x * 4 + 2] = get_bits(gb, 8);
1590 dst[x * 4 + 3] = get_bits(gb, 8);
1598 a = get_vlc2(gb, s->vlc[1].table, SHEER_VLC_BITS, 2);
1599 r = get_vlc2(gb, s->vlc[0].table, SHEER_VLC_BITS, 2);
1600 g = get_vlc2(gb, s->vlc[1].table, SHEER_VLC_BITS, 2);
1601 b = get_vlc2(gb, s->vlc[1].table, SHEER_VLC_BITS, 2);
1612 if (get_bits1(gb)) {
1614 dst[x * 4 + 0] = get_bits(gb, 8);
1615 dst[x * 4 + 1] = get_bits(gb, 8);
1616 dst[x * 4 + 2] = get_bits(gb, 8);
1617 dst[x * 4 + 3] = get_bits(gb, 8);
1634 a = get_vlc2(gb, s->vlc[1].table, SHEER_VLC_BITS, 2);
1635 r = get_vlc2(gb, s->vlc[0].table, SHEER_VLC_BITS, 2);
1636 g = get_vlc2(gb, s->vlc[1].table, SHEER_VLC_BITS, 2);
1637 b = get_vlc2(gb, s->vlc[1].table, SHEER_VLC_BITS, 2);
1654 static void decode_rgbi(AVCodecContext *avctx, AVFrame *p, GetBitContext *gb)
1661 if (get_bits1(gb)) {
1663 dst[x * 4 + 0] = get_bits(gb, 8);
1664 dst[x * 4 + 1] = get_bits(gb, 8);
1665 dst[x * 4 + 2] = get_bits(gb, 8);
1673 r = get_vlc2(gb, s->vlc[0].table, SHEER_VLC_BITS, 2);
1674 g = get_vlc2(gb, s->vlc[1].table, SHEER_VLC_BITS, 2);
1675 b = get_vlc2(gb, s->vlc[1].table, SHEER_VLC_BITS, 2);
1685 if (get_bits1(gb)) {
1687 dst[x * 4 + 0] = get_bits(gb, 8);
1688 dst[x * 4 + 1] = get_bits(gb, 8);
1689 dst[x * 4 + 2] = get_bits(gb, 8);
1700 r = get_vlc2(gb, s->vlc[0].table, SHEER_VLC_BITS, 2);
1701 g = get_vlc2(gb, s->vlc[1].table, SHEER_VLC_BITS, 2);
1702 b = get_vlc2(gb, s->vlc[1].table, SHEER_VLC_BITS, 2);
1713 static void decode_rgb(AVCodecContext *avctx, AVFrame *p, GetBitContext *gb)
1720 if (get_bits1(gb)) {
1722 dst[x * 4 + 0] = get_bits(gb, 8);
1723 dst[x * 4 + 1] = get_bits(gb, 8);
1724 dst[x * 4 + 2] = get_bits(gb, 8);
1732 r = get_vlc2(gb, s->vlc[0].table, SHEER_VLC_BITS, 2);
1733 g = get_vlc2(gb, s->vlc[1].table, SHEER_VLC_BITS, 2);
1734 b = get_vlc2(gb, s->vlc[1].table, SHEER_VLC_BITS, 2);
1744 if (get_bits1(gb)) {
1746 dst[x * 4 + 0] = get_bits(gb, 8);
1747 dst[x * 4 + 1] = get_bits(gb, 8);
1748 dst[x * 4 + 2] = get_bits(gb, 8);
1763 r = get_vlc2(gb, s->vlc[0].table, SHEER_VLC_BITS, 2);
1764 g = get_vlc2(gb, s->vlc[1].table, SHEER_VLC_BITS, 2);
1765 b = get_vlc2(gb, s->vlc[1].table, SHEER_VLC_BITS, 2);
1809 GetBitContext gb;
1981 if ((ret = init_get_bits8(&gb, avpkt->data + 20, avpkt->size - 20)) < 0)
1984 s->decode_frame(avctx, p, &gb);