Lines Matching defs:plane

59     unsigned  bpp;          ///< bits per plane to decode (differs from bits_per_coded_sample if HAM)
72 #define LUT8_PART(plane, v) \
73 AV_LE2NE64C(UINT64_C(0x0000000)<<32 | v) << plane, \
74 AV_LE2NE64C(UINT64_C(0x1000000)<<32 | v) << plane, \
75 AV_LE2NE64C(UINT64_C(0x0010000)<<32 | v) << plane, \
76 AV_LE2NE64C(UINT64_C(0x1010000)<<32 | v) << plane, \
77 AV_LE2NE64C(UINT64_C(0x0000100)<<32 | v) << plane, \
78 AV_LE2NE64C(UINT64_C(0x1000100)<<32 | v) << plane, \
79 AV_LE2NE64C(UINT64_C(0x0010100)<<32 | v) << plane, \
80 AV_LE2NE64C(UINT64_C(0x1010100)<<32 | v) << plane, \
81 AV_LE2NE64C(UINT64_C(0x0000001)<<32 | v) << plane, \
82 AV_LE2NE64C(UINT64_C(0x1000001)<<32 | v) << plane, \
83 AV_LE2NE64C(UINT64_C(0x0010001)<<32 | v) << plane, \
84 AV_LE2NE64C(UINT64_C(0x1010001)<<32 | v) << plane, \
85 AV_LE2NE64C(UINT64_C(0x0000101)<<32 | v) << plane, \
86 AV_LE2NE64C(UINT64_C(0x1000101)<<32 | v) << plane, \
87 AV_LE2NE64C(UINT64_C(0x0010101)<<32 | v) << plane, \
88 AV_LE2NE64C(UINT64_C(0x1010101)<<32 | v) << plane
90 #define LUT8(plane) { \
91 LUT8_PART(plane, 0x0000000), \
92 LUT8_PART(plane, 0x1000000), \
93 LUT8_PART(plane, 0x0010000), \
94 LUT8_PART(plane, 0x1010000), \
95 LUT8_PART(plane, 0x0000100), \
96 LUT8_PART(plane, 0x1000100), \
97 LUT8_PART(plane, 0x0010100), \
98 LUT8_PART(plane, 0x1010100), \
99 LUT8_PART(plane, 0x0000001), \
100 LUT8_PART(plane, 0x1000001), \
101 LUT8_PART(plane, 0x0010001), \
102 LUT8_PART(plane, 0x1010001), \
103 LUT8_PART(plane, 0x0000101), \
104 LUT8_PART(plane, 0x1000101), \
105 LUT8_PART(plane, 0x0010101), \
106 LUT8_PART(plane, 0x1010101), \
115 #define LUT32(plane) { \
117 0, 0, 0, 1U << plane, \
118 0, 0, 1U << plane, 0, \
119 0, 0, 1U << plane, 1U << plane, \
120 0, 1U << plane, 0, 0, \
121 0, 1U << plane, 0, 1U << plane, \
122 0, 1U << plane, 1U << plane, 0, \
123 0, 1U << plane, 1U << plane, 1U << plane, \
124 1U << plane, 0, 0, 0, \
125 1U << plane, 0, 0, 1U << plane, \
126 1U << plane, 0, 1U << plane, 0, \
127 1U << plane, 0, 1U << plane, 1U << plane, \
128 1U << plane, 1U << plane, 0, 0, \
129 1U << plane, 1U << plane, 0, 1U << plane, \
130 1U << plane, 1U << plane, 1U << plane, 0, \
131 1U << plane, 1U << plane, 1U << plane, 1U << plane, \
434 s->planesize = FFALIGN(avctx->width, 16) >> 3; // Align plane size in bits to word-boundary
459 * Decode interleaved plane buffer up to 8bpp
463 * @param plane plane number to decode as
465 static void decodeplane8(uint8_t *dst, const uint8_t *buf, int buf_size, int plane)
468 if (plane >= 8) {
472 lut = plane8_lut[plane];
481 * Decode interleaved plane buffer up to 24bpp
485 * @param plane plane number to decode as
487 static void decodeplane32(uint32_t *dst, const uint8_t *buf, int buf_size, int plane)
489 const uint32_t *lut = plane32_lut[plane];
521 * @param buf_size the plane size in bytes
550 * @param dst_size the destination plane size in bytes
576 av_log(NULL, AV_LOG_WARNING, "decode_byterun ended before plane size\n");
770 int x = 0, y = 0, plane = 0;
780 dst[y * linesize + x*4 + plane] = pixel;
789 dst[y * linesize + x*4 + plane] = pixel;
794 plane++;
795 if (plane >= 4) {
799 plane = 0;
1535 int y, plane, res;
1573 for (plane = 0; plane < s->bpp; plane++) {
1576 decodeplane8(row, buf, FFMIN(s->planesize, buf_end - buf), plane);
1585 for (plane = 0; plane < s->bpp; plane++) {
1586 const uint8_t * start = buf + (plane * avctx->height + y) * s->planesize;
1589 decodeplane8(s->ham_buf, start, FFMIN(s->planesize, buf_end - start), plane);
1615 for (plane = 0; plane < s->bpp && buf < buf_end; plane++) {
1616 decodeplane8(row, buf, FFMIN(s->planesize, buf_end - buf), plane);
1624 for (plane = 0; plane < s->bpp && buf < buf_end; plane++) {
1625 decodeplane8(s->ham_buf, buf, FFMIN(s->planesize, buf_end - buf), plane);
1634 for (plane = 0; plane < s->bpp && buf < buf_end; plane++) {
1636 FFMIN(s->planesize, buf_end - buf), plane);
1670 for (plane = 0; plane < s->bpp; plane++) {
1676 decodeplane8(row, s->planebuf, s->planesize, plane);
1683 for (plane = 0; plane < s->bpp; plane++) {
1685 decodeplane32(s->mask_buf, s->planebuf, s->planesize, plane);
1694 for (plane = 0; plane < s->bpp; plane++) {
1700 decodeplane8(s->ham_buf, s->planebuf, s->planesize, plane);
1708 for (plane = 0; plane < s->bpp; plane++) {
1710 decodeplane32((uint32_t *)row, s->planebuf, s->planesize, plane);
1736 for (plane = 0; plane < s->bpp; plane++) {
1739 decodeplane8(row, buf, FFMIN(s->planesize, buf_end - buf), plane);
1748 for (plane = 0; plane < s->bpp; plane++) {
1749 const uint8_t * start = buf + (plane * avctx->height + y) * s->planesize;
1752 decodeplane8(s->ham_buf, start, FFMIN(s->planesize, buf_end - start), plane);
1765 for (plane = 0; plane < s->bpp; plane++) {
1769 decodeplane8(row, s->planebuf + s->planesize * y, s->planesize, plane);
1849 for (plane = 0; plane < s->bpp; plane++) {
1850 decodeplane8(row, buf, s->planesize, plane);
1881 for (plane = 0; plane < s->bpp; plane++) {
1882 decodeplane8(s->ham_buf, buf, s->planesize, plane);