Lines Matching refs:fmt

29 	struct video_format fmt = {0};  in ZTEST()  local
35 fmt.pixelformat = caps.format_caps[i].pixelformat; in ZTEST()
37 fmt.height = caps.format_caps[i].height_min; in ZTEST()
38 fmt.width = caps.format_caps[i].width_min; in ZTEST()
39 zexpect_ok(video_set_format(imager_dev, VIDEO_EP_OUT, &fmt)); in ZTEST()
40 zexpect_ok(video_get_format(imager_dev, VIDEO_EP_OUT, &fmt)); in ZTEST()
41 zexpect_equal(fmt.pixelformat, caps.format_caps[i].pixelformat); in ZTEST()
42 zexpect_equal(fmt.width, caps.format_caps[i].width_min); in ZTEST()
43 zexpect_equal(fmt.height, caps.format_caps[i].height_min); in ZTEST()
45 fmt.height = caps.format_caps[i].height_max; in ZTEST()
46 fmt.width = caps.format_caps[i].width_min; in ZTEST()
47 zexpect_ok(video_set_format(imager_dev, VIDEO_EP_OUT, &fmt)); in ZTEST()
48 zexpect_ok(video_get_format(imager_dev, VIDEO_EP_OUT, &fmt)); in ZTEST()
49 zexpect_equal(fmt.pixelformat, caps.format_caps[i].pixelformat); in ZTEST()
50 zexpect_equal(fmt.width, caps.format_caps[i].width_max); in ZTEST()
51 zexpect_equal(fmt.height, caps.format_caps[i].height_min); in ZTEST()
53 fmt.height = caps.format_caps[i].height_min; in ZTEST()
54 fmt.width = caps.format_caps[i].width_max; in ZTEST()
55 zexpect_ok(video_set_format(imager_dev, VIDEO_EP_OUT, &fmt)); in ZTEST()
56 zexpect_ok(video_get_format(imager_dev, VIDEO_EP_OUT, &fmt)); in ZTEST()
57 zexpect_equal(fmt.pixelformat, caps.format_caps[i].pixelformat); in ZTEST()
58 zexpect_equal(fmt.width, caps.format_caps[i].width_min); in ZTEST()
59 zexpect_equal(fmt.height, caps.format_caps[i].height_max); in ZTEST()
61 fmt.height = caps.format_caps[i].height_max; in ZTEST()
62 fmt.width = caps.format_caps[i].width_max; in ZTEST()
63 zexpect_ok(video_set_format(imager_dev, VIDEO_EP_OUT, &fmt)); in ZTEST()
64 zexpect_ok(video_get_format(imager_dev, VIDEO_EP_OUT, &fmt)); in ZTEST()
65 zexpect_equal(fmt.pixelformat, caps.format_caps[i].pixelformat); in ZTEST()
66 zexpect_equal(fmt.width, caps.format_caps[i].width_max); in ZTEST()
67 zexpect_equal(fmt.height, caps.format_caps[i].height_max); in ZTEST()
70 fmt.pixelformat = 0x00000000; in ZTEST()
71 zexpect_not_ok(video_set_format(imager_dev, VIDEO_EP_OUT, &fmt)); in ZTEST()
72 zexpect_ok(video_get_format(imager_dev, VIDEO_EP_OUT, &fmt)); in ZTEST()
73 zexpect_not_equal(fmt.pixelformat, 0x00000000, "should not store wrong formats"); in ZTEST()
78 struct video_format fmt; in ZTEST() local
79 struct video_frmival_enum fie = {.format = &fmt}; in ZTEST()
82 zexpect_ok(video_get_format(imager_dev, VIDEO_EP_OUT, &fmt)); in ZTEST()
93 zexpect_equal_ptr(fie.format, &fmt, "the format should not be changed"); in ZTEST()
146 struct video_format fmt; in ZTEST() local
153 fmt.pixelformat = caps.format_caps[0].pixelformat; in ZTEST()
154 fmt.width = caps.format_caps[0].width_max; in ZTEST()
155 fmt.height = caps.format_caps[0].height_max; in ZTEST()
156 fmt.pitch = fmt.width * 2; in ZTEST()
157 zexpect_ok(video_set_format(rx_dev, VIDEO_EP_OUT, &fmt)); in ZTEST()
160 vbuf = video_buffer_alloc(fmt.pitch * fmt.height, K_FOREVER); in ZTEST()