Lines Matching refs:pixfmt
50 unsigned int pixfmt; member
129 const PixFormat *pixfmt = NULL; in SetFormat() local
136 if (g_pixfmt_table[i].pixfmt == v4l2_fmt) { in SetFormat()
137 pixfmt = &g_pixfmt_table[i]; in SetFormat()
142 if (!pixfmt) { in SetFormat()
147 for (int i = 0; i < pixfmt->planes; i++) { in SetFormat()
148 if (((pixfmt->bit_pp[i] * width) % 8) != 0) { in SetFormat()
152 buf.plane[i].len = (pixfmt->bit_pp[i] * width * height) / 8; in SetFormat()
155 if (pixfmt->pixfmt == V4L2_PIX_FMT_YVU420) { in SetFormat()
162 for (int i = 0; i < pixfmt->planes; i++) in SetFormat()
166 buf.num_planes = pixfmt->planes; in SetFormat()