rlco 683 drivers/media/platform/vicodec/codec-fwht.c static u32 encode_plane(u8 *input, u8 *refp, __be16 **rlco, __be16 *rlco_max, rlco 689 drivers/media/platform/vicodec/codec-fwht.c __be16 *rlco_start = *rlco; rlco 731 drivers/media/platform/vicodec/codec-fwht.c size = rlc(cf->coeffs, *rlco, blocktype); rlco 733 drivers/media/platform/vicodec/codec-fwht.c !memcmp(*rlco + 1, *rlco - size + 1, 2 * size - 2)) { rlco 734 drivers/media/platform/vicodec/codec-fwht.c __be16 *last_rlco = *rlco - size; rlco 737 drivers/media/platform/vicodec/codec-fwht.c if (!((*last_rlco ^ **rlco) & pframe_bit) && rlco 741 drivers/media/platform/vicodec/codec-fwht.c *rlco += size; rlco 743 drivers/media/platform/vicodec/codec-fwht.c *rlco += size; rlco 745 drivers/media/platform/vicodec/codec-fwht.c if (*rlco >= rlco_max) { rlco 770 drivers/media/platform/vicodec/codec-fwht.c *rlco = (__be16 *)out; rlco 784 drivers/media/platform/vicodec/codec-fwht.c __be16 *rlco = cf->rlc_data; rlco 788 drivers/media/platform/vicodec/codec-fwht.c rlco_max = rlco + size / 2 - 256; rlco 789 drivers/media/platform/vicodec/codec-fwht.c encoding = encode_plane(frm->luma, ref_frm->luma, &rlco, rlco_max, cf, rlco 801 drivers/media/platform/vicodec/codec-fwht.c rlco_max = rlco + chroma_size / 2 - 256; rlco 802 drivers/media/platform/vicodec/codec-fwht.c encoding |= encode_plane(frm->cb, ref_frm->cb, &rlco, rlco_max, rlco 809 drivers/media/platform/vicodec/codec-fwht.c rlco_max = rlco + chroma_size / 2 - 256; rlco 810 drivers/media/platform/vicodec/codec-fwht.c encoding |= encode_plane(frm->cr, ref_frm->cr, &rlco, rlco_max, rlco 820 drivers/media/platform/vicodec/codec-fwht.c rlco_max = rlco + size / 2 - 256; rlco 821 drivers/media/platform/vicodec/codec-fwht.c encoding |= encode_plane(frm->alpha, ref_frm->alpha, &rlco, rlco 830 drivers/media/platform/vicodec/codec-fwht.c cf->size = (rlco - cf->rlc_data) * sizeof(*rlco); rlco 834 drivers/media/platform/vicodec/codec-fwht.c static bool decode_plane(struct fwht_cframe *cf, const __be16 **rlco, rlco 852 drivers/media/platform/vicodec/codec-fwht.c if (end_of_rlco_buf + 1 < *rlco + width * height / 2) rlco 855 drivers/media/platform/vicodec/codec-fwht.c memcpy(dst, *rlco, width); rlco 857 drivers/media/platform/vicodec/codec-fwht.c *rlco += width / 2; rlco 885 drivers/media/platform/vicodec/codec-fwht.c stat = derlc(rlco, cf->coeffs, end_of_rlco_buf); rlco 916 drivers/media/platform/vicodec/codec-fwht.c const __be16 *rlco = cf->rlc_data; rlco 918 drivers/media/platform/vicodec/codec-fwht.c (cf->size / sizeof(*rlco)) - 1; rlco 920 drivers/media/platform/vicodec/codec-fwht.c if (!decode_plane(cf, &rlco, height, width, ref->luma, ref_stride, rlco 936 drivers/media/platform/vicodec/codec-fwht.c if (!decode_plane(cf, &rlco, h, w, ref->cb, ref_chroma_stride, rlco 942 drivers/media/platform/vicodec/codec-fwht.c if (!decode_plane(cf, &rlco, h, w, ref->cr, ref_chroma_stride, rlco 951 drivers/media/platform/vicodec/codec-fwht.c if (!decode_plane(cf, &rlco, height, width, ref->alpha, ref_stride,