Lines Matching refs:dst
60 int (*tex_funct)(uint8_t *dst, ptrdiff_t stride, const uint8_t *block);
66 static void decompress_indices(uint8_t *dst, const uint8_t *src)
75 dst[i] = (tmp >> (i * 3)) & 0x7;
78 dst += 8;
141 static void yao_subblock(uint8_t *dst, uint8_t *yo_indices,
154 dst[x] = extract_component(yo0, yo1, yo_code);
156 dst += stride;
160 static int yo_block(uint8_t *dst, ptrdiff_t stride,
166 yao_subblock(dst, yo_indices, stride, block);
167 yao_subblock(dst + 4, yo_indices, stride, block + 8);
168 yao_subblock(dst + 8, yo_indices, stride, block + 16);
169 yao_subblock(dst + 12, yo_indices, stride, block + 24);
428 static int get_opcodes(GetByteContext *gb, uint32_t *table, uint8_t *dst, int op_size, int nb_elements)
452 dst[i] = optable[idx].val1;
503 uint8_t *dst = *dstp;
523 AV_WL32(dst, AV_RL32(dst - (8 + offset)));
524 AV_WL32(dst + 4, AV_RL32(dst - (4 + offset)));
531 AV_WL32(dst, AV_RL32(dst - (8 + offset)));
532 AV_WL32(dst + 4, AV_RL32(dst - (4 + offset)));
536 if (vv < 0 || vv > dst - tex_data)
538 tptr0 = dst - vv;
540 AV_WL32(dst, AV_RL32(tptr0));
541 AV_WL32(dst + 4, AV_RL32(tptr0 + 4));
542 tab0[0x9E3779B1 * (uint16_t)v >> 24] = dst;
543 tab1[0x9E3779B1 * (AV_RL32(dst + 2) & 0xFFFFFFu) >> 24] = dst + 2;
546 AV_WL32(dst, bytestream2_get_le32(gb));
547 AV_WL32(dst + 4, bytestream2_get_le32(gb));
548 tab0[0x9E3779B1 * AV_RL16(dst) >> 24] = dst;
549 tab1[0x9E3779B1 * (AV_RL32(dst + 2) & 0xFFFFFFu) >> 24] = dst + 2;
555 AV_WL16(dst, bytestream2_get_le16(gb));
556 AV_WL16(dst + 2, AV_RL16(tptr3));
557 dst[4] = tptr3[2];
558 AV_WL16(dst + 5, bytestream2_get_le16(gb));
559 dst[7] = bytestream2_get_byte(gb);
560 tab0[0x9E3779B1 * AV_RL16(dst) >> 24] = dst;
566 AV_WL16(dst, bytestream2_get_le16(gb));
567 AV_WL16(dst + 2, bytestream2_get_le16(gb));
568 dst[4] = bytestream2_get_byte(gb);
569 AV_WL16(dst + 5, AV_RL16(tptr3));
570 dst[7] = tptr3[2];
571 tab0[0x9E3779B1 * AV_RL16(dst) >> 24] = dst;
572 tab1[0x9E3779B1 * (AV_RL32(dst + 2) & 0xFFFFFFu) >> 24] = dst + 2;
581 AV_WL16(dst, bytestream2_get_le16(gb));
582 AV_WL16(dst + 2, AV_RL16(tptr0));
583 dst[4] = tptr0[2];
584 AV_WL16(dst + 5, AV_RL16(tptr1));
585 dst[7] = tptr1[2];
586 tab0[0x9E3779B1 * AV_RL16(dst) >> 24] = dst;
590 if (v < 0 || v > dst - tex_data)
592 tptr0 = dst - v;
593 AV_WL16(dst, bytestream2_get_le16(gb));
594 AV_WL16(dst + 2, AV_RL16(tptr0 + 2));
595 AV_WL32(dst + 4, AV_RL32(tptr0 + 4));
596 tab0[0x9E3779B1 * AV_RL16(dst) >> 24] = dst;
597 tab1[0x9E3779B1 * (AV_RL32(dst + 2) & 0xFFFFFFu) >> 24] = dst + 2;
603 AV_WL16(dst, AV_RL16(tptr1));
604 AV_WL16(dst + 2, bytestream2_get_le16(gb));
605 AV_WL32(dst + 4, bytestream2_get_le32(gb));
606 tab1[0x9E3779B1 * (AV_RL32(dst + 2) & 0xFFFFFFu) >> 24] = dst + 2;
615 AV_WL16(dst, AV_RL16(tptr1));
616 AV_WL16(dst + 2, AV_RL16(tptr3));
617 dst[4] = tptr3[2];
618 AV_WL16(dst + 5, bytestream2_get_le16(gb));
619 dst[7] = bytestream2_get_byte(gb);
620 tab1[0x9E3779B1 * (AV_RL32(dst + 2) & 0xFFFFFFu) >> 24] = dst + 2;
629 AV_WL16(dst, AV_RL16(tptr1));
630 AV_WL16(dst + 2, bytestream2_get_le16(gb));
631 dst[4] = bytestream2_get_byte(gb);
632 AV_WL16(dst + 5, AV_RL16(tptr3));
633 dst[7] = tptr3[2];
634 tab1[0x9E3779B1 * (AV_RL32(dst + 2) & 0xFFFFFFu) >> 24] = dst + 2;
646 AV_WL16(dst, AV_RL16(tptr0));
647 AV_WL16(dst + 2, AV_RL16(tptr3));
648 dst[4] = tptr3[2];
649 AV_WL16(dst + 5, AV_RL16(tptr1));
650 dst[7] = tptr1[2];
657 if (v < 0 || v > dst - tex_data)
659 tptr0 = dst - v;
660 AV_WL16(dst, AV_RL16(tptr1));
661 AV_WL16(dst + 2, AV_RL16(tptr0 + 2));
662 AV_WL32(dst + 4, AV_RL32(tptr0 + 4));
663 tab1[0x9E3779B1 * (AV_RL32(dst + 2) & 0xFFFFFFu) >> 24] = dst + 2;
666 AV_WL16(dst, AV_RL16(dst - (8 + offset)));
667 AV_WL16(dst + 2, bytestream2_get_le16(gb));
668 AV_WL32(dst + 4, bytestream2_get_le32(gb));
669 tab1[0x9E3779B1 * (AV_RL32(dst + 2) & 0xFFFFFFu) >> 24] = dst + 2;
675 AV_WL16(dst, AV_RL16(dst - (8 + offset)));
676 AV_WL16(dst + 2, AV_RL16(tptr3));
677 dst[4] = tptr3[2];
678 AV_WL16(dst + 5, bytestream2_get_le16(gb));
679 dst[7] = bytestream2_get_byte(gb);
680 tab1[0x9E3779B1 * (AV_RL32(dst + 2) & 0xFFFFFFu) >> 24] = dst + 2;
686 AV_WL16(dst, AV_RL16(dst - (8 + offset)));
687 AV_WL16(dst + 2, bytestream2_get_le16(gb));
688 dst[4] = bytestream2_get_byte(gb);
689 AV_WL16(dst + 5, AV_RL16(tptr3));
690 dst[7] = tptr3[2];
691 tab1[0x9E3779B1 * (AV_RL32(dst + 2) & 0xFFFFFFu) >> 24] = dst + 2;
700 AV_WL16(dst, AV_RL16(dst - (8 + offset)));
701 AV_WL16(dst + 2, AV_RL16(tptr3));
702 dst[4] = tptr3[2];
703 AV_WL16(dst + 5, AV_RL16(tptr1));
704 dst[7] = tptr1[2];
708 if (v < 0 || v > dst - tex_data)
710 AV_WL16(dst, AV_RL16(dst - (8 + offset)));
711 AV_WL16(dst + 2, AV_RL16(&dst[-v + 2]));
712 AV_WL32(dst + 4, AV_RL32(&dst[-v + 4]));
713 tab1[0x9E3779B1 * (AV_RL32(dst + 2) & 0xFFFFFFu) >> 24] = dst + 2;
720 AV_WL32(dst, AV_RL32(dst - (8 + offset)));
721 AV_WL32(dst + 4, AV_RL32(dst - (4 + offset)));
724 if (dst - tex_data + 8 > tex_size)
726 dst += 8;
729 *dstp = dst;
740 uint8_t *dst, *tab2[256] = { 0 }, *tab0[256] = { 0 }, *tab3[256] = { 0 }, *tab1[256] = { 0 };
751 dst = tex_data;
765 AV_WL32(dst, bytestream2_get_le32(gb));
766 AV_WL32(dst + 4, bytestream2_get_le32(gb));
767 AV_WL32(dst + 8, bytestream2_get_le32(gb));
768 AV_WL32(dst + 12, bytestream2_get_le32(gb));
770 tab0[0x9E3779B1 * AV_RL16(dst) >> 24] = dst;
771 tab1[0x9E3779B1 * (AV_RL32(dst + 2) & 0xFFFFFF) >> 24] = dst + 2;
772 tab2[0x9E3779B1 * AV_RL16(dst + 8) >> 24] = dst + 8;
773 tab3[0x9E3779B1 * (AV_RL32(dst + 10) & 0xFFFFFF) >> 24] = dst + 10;
774 dst += 16;
775 while (dst + 10 < tex_data + tex_size) {
777 &dst, &state0, tab0, tab1, 8);
781 &dst, &state1, tab2, tab3, 8);
798 uint8_t *dst, *table0[256] = { 0 }, *table1[256] = { 0 };
804 dst = tex_data;
814 AV_WL32(dst, v);
816 table0[0x9E3779B1 * (uint16_t)v >> 24] = dst;
817 AV_WL32(dst + 4, vv);
818 table1[0x9E3779B1 * (AV_RL32(dst + 2) & 0xFFFFFF) >> 24] = dst + 2;
819 dst += 8;
821 while (dst < tex_data + tex_size) {
823 &dst, &state, table0, table1, 0);