summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--test/mxc_jpeg_test/encoder_test.c2
-rw-r--r--test/mxc_jpeg_test/mxc_jpeg_test.h4
2 files changed, 3 insertions, 3 deletions
diff --git a/test/mxc_jpeg_test/encoder_test.c b/test/mxc_jpeg_test/encoder_test.c
index e0d3bea..9899df1 100644
--- a/test/mxc_jpeg_test/encoder_test.c
+++ b/test/mxc_jpeg_test/encoder_test.c
@@ -84,7 +84,7 @@ int main(int argc, char *argv[])
if (!is_mp) {
fread(bufferout_start[0], filesize, 1, testraw);
} else { /* multi-planar */
- if (ea.fourcc != V4L2_PIX_FMT_NV12) {
+ if (ea.fourcc != V4L2_PIX_FMT_NV12M) {
fread(bufferout_start[0], filesize, 1, testraw);
} else {
int expected_size = ea.width * ea.height * 3 / 2;
diff --git a/test/mxc_jpeg_test/mxc_jpeg_test.h b/test/mxc_jpeg_test/mxc_jpeg_test.h
index 8e61b53..431de36 100644
--- a/test/mxc_jpeg_test/mxc_jpeg_test.h
+++ b/test/mxc_jpeg_test/mxc_jpeg_test.h
@@ -35,7 +35,7 @@ static struct pix_fmt_data fmt_data[] = {
{
.name = "yuv420",
.descr = "2-planes, Y and UV-interleaved, same as NV12",
- .fourcc = V4L2_PIX_FMT_NV12
+ .fourcc = V4L2_PIX_FMT_NV12M
},
{
.name = "yuv422",
@@ -225,7 +225,7 @@ void v4l2_s_fmt_cap(int vdev_fd, bool is_mp, const struct encoder_args ea,
} else {
cap_fmt.type = V4L2_BUF_TYPE_VIDEO_CAPTURE_MPLANE;
cap_fmt.fmt.pix_mp.pixelformat = pixelformat;
- if (pixelformat == V4L2_PIX_FMT_NV12)
+ if (pixelformat == V4L2_PIX_FMT_NV12M)
cap_fmt.fmt.pix_mp.num_planes = 2;
else
cap_fmt.fmt.pix_mp.num_planes = 1;