Lines Matching refs:plane
152 buf.plane[i].len = (pixfmt->bit_pp[i] * width * height) / 8; in SetFormat()
158 buf.plane[0].len = y_size + (c_span * height / 2) * 2; in SetFormat()
163 buf.plane[i].len += (i == 0) ? SCALER_EXT_SIZE : SCALER_EXT_SIZE / 2; in SetFormat()
203 buf.plane[i].fd = static_cast<__s32>(reinterpret_cast<long>(addr[i])); in SetAddr()
207 buf.plane[i].userptr = reinterpret_cast<unsigned long>(addr[i]); in SetAddr()
240 addr[i] = reinterpret_cast<char *>(mmap(NULL, buf.plane[i].len, in GetBuffer()
242 buf.plane[i].fd, 0)); in GetBuffer()
244 SC_LOGE("Failed to map FD %d", buf.plane[i].fd); in GetBuffer()
246 munmap(addr[i], buf.plane[i].len); in GetBuffer()
250 addr[i] = reinterpret_cast<char *>(buf.plane[i].userptr); in GetBuffer()
261 munmap(addr[i], buf.plane[i].len); in PutBuffer()