Lines Matching +full:2 +full:d

24      *    - permutated planar data (2 planes per 32-bit word) on output
27 static void c2p_16x8(u32 d[4]) in c2p_16x8()
29 transp4(d, 8, 2); in c2p_16x8()
30 transp4(d, 1, 2); in c2p_16x8()
31 transp4x(d, 16, 2); in c2p_16x8()
32 transp4x(d, 2, 2); in c2p_16x8()
33 transp4(d, 4, 1); in c2p_16x8()
41 static const int perm_c2p_16x8[4] = { 1, 3, 0, 2 };
48 static inline void store_iplan2(void *dst, u32 bpp, u32 d[4]) in store_iplan2()
52 for (i = 0; i < bpp/2; i++, dst += 4) in store_iplan2()
53 put_unaligned_be32(d[perm_c2p_16x8[i]], dst); in store_iplan2()
61 static inline void store_iplan2_masked(void *dst, u32 bpp, u32 d[4], u32 mask) in store_iplan2_masked()
65 for (i = 0; i < bpp/2; i++, dst += 4) in store_iplan2_masked()
66 put_unaligned_be32(comp(d[perm_c2p_16x8[i]], in store_iplan2_masked()
74 * frame buffer with 2 bytes of interleave
82 * @bpp: Bits per pixel of the planar frame buffer (2, 4, or 8)
91 } d; in c2p_iplan2() local
109 memset(d.pixels, 0, sizeof(d)); in c2p_iplan2()
110 memcpy(d.pixels+dst_idx, c, width); in c2p_iplan2()
112 c2p_16x8(d.words); in c2p_iplan2()
113 store_iplan2_masked(p, bpp, d.words, first); in c2p_iplan2()
114 p += bpp*2; in c2p_iplan2()
121 memset(d.pixels, 0, dst_idx); in c2p_iplan2()
122 memcpy(d.pixels+dst_idx, c, w); in c2p_iplan2()
124 c2p_16x8(d.words); in c2p_iplan2()
125 store_iplan2_masked(p, bpp, d.words, first); in c2p_iplan2()
126 p += bpp*2; in c2p_iplan2()
131 memcpy(d.pixels, c, 16); in c2p_iplan2()
133 c2p_16x8(d.words); in c2p_iplan2()
134 store_iplan2(p, bpp, d.words); in c2p_iplan2()
135 p += bpp*2; in c2p_iplan2()
141 memcpy(d.pixels, c, w); in c2p_iplan2()
142 memset(d.pixels+w, 0, 16-w); in c2p_iplan2()
143 c2p_16x8(d.words); in c2p_iplan2()
144 store_iplan2_masked(p, bpp, d.words, last); in c2p_iplan2()