Lines Matching refs:framesize
49 struct v4l2_frmsizeenum framesize;
57 memset(&framesize, 0xff, sizeof(framesize));
58 framesize.index = i;
59 framesize.pixel_format = fmt;
61 ioctl(get_video_fd(), VIDIOC_ENUM_FRAMESIZES, &framesize);
75 CU_ASSERT_EQUAL(framesize.index, i);
76 CU_ASSERT_EQUAL(framesize.pixel_format, fmt);
77 CU_ASSERT(valid_framesize_type(framesize.type));
80 first_type = framesize.type;
82 CU_ASSERT_EQUAL(framesize.type, first_type);
85 switch (framesize.type) {
87 CU_ASSERT(0 < framesize.discrete.width);
88 CU_ASSERT(0 < framesize.discrete.height);
92 CU_ASSERT(0 < framesize.stepwise.min_width);
93 CU_ASSERT(0 < framesize.stepwise.max_width);
94 CU_ASSERT_EQUAL(framesize.stepwise.step_width,
97 CU_ASSERT(framesize.stepwise.min_width <
98 framesize.stepwise.max_width);
100 CU_ASSERT(0 < framesize.stepwise.min_height);
101 CU_ASSERT(0 < framesize.stepwise.max_height);
102 CU_ASSERT_EQUAL(framesize.stepwise.step_height,
105 CU_ASSERT(framesize.stepwise.min_height <
106 framesize.stepwise.max_height);
110 CU_ASSERT(0 < framesize.stepwise.min_width);
111 CU_ASSERT(0 < framesize.stepwise.max_width);
112 CU_ASSERT(0 < framesize.stepwise.step_width);
114 CU_ASSERT(framesize.stepwise.min_width <
115 framesize.stepwise.max_width);
118 if (framesize.stepwise.step_width != 0) {
119 CU_ASSERT_EQUAL((framesize.stepwise.
121 framesize.stepwise.
123 framesize.stepwise.
127 CU_ASSERT(0 < framesize.stepwise.min_height);
128 CU_ASSERT(0 < framesize.stepwise.max_height);
129 CU_ASSERT(0 < framesize.stepwise.step_height);
131 CU_ASSERT(framesize.stepwise.min_height <
132 framesize.stepwise.max_height);
135 if (framesize.stepwise.step_height != 0) {
136 CU_ASSERT_EQUAL((framesize.stepwise.
138 framesize.stepwise.
140 framesize.stepwise.
147 CU_ASSERT_EQUAL(framesize.reserved[0], 0);
148 CU_ASSERT_EQUAL(framesize.reserved[1], 0);
150 show_v4l2_frmsizeenum(&framesize);
200 struct v4l2_frmsizeenum framesize;
207 memset(&framesize, 0xff, sizeof(framesize));
208 framesize.index = i;
209 framesize.pixel_format = fmt;
211 ioctl(get_video_fd(), VIDIOC_ENUM_FRAMESIZES, &framesize);
224 memset(&framesize, 0xff, sizeof(framesize));
225 framesize.index = i;
226 framesize.pixel_format = fmt;
227 ret_frame = ioctl(get_video_fd(), VIDIOC_ENUM_FRAMESIZES, &framesize);
239 memset(&framesize, 0xff, sizeof(framesize));
240 framesize.index = i;
241 framesize.pixel_format = fmt;
243 ioctl(get_video_fd(), VIDIOC_ENUM_FRAMESIZES, &framesize);
256 memset(&framesize, 0xff, sizeof(framesize));
257 framesize.index = i;
258 framesize.pixel_format = fmt;
260 ioctl(get_video_fd(), VIDIOC_ENUM_FRAMESIZES, &framesize);
273 memset(&framesize, 0xff, sizeof(framesize));
274 framesize.index = i;
275 framesize.pixel_format = fmt;
277 ioctl(get_video_fd(), VIDIOC_ENUM_FRAMESIZES, &framesize);
392 struct v4l2_frmsizeenum framesize;
398 memset(&framesize, 0xff, sizeof(framesize));
399 framesize.index = i;
400 framesize.pixel_format = fmt;
402 ioctl(get_video_fd(), VIDIOC_ENUM_FRAMESIZES, &framesize);
576 struct v4l2_frmsizeenum framesize;
648 memset(&framesize, 0xff, sizeof(framesize));
649 framesize.index = 0;
650 framesize.pixel_format = fmt;
651 ret_size = ioctl(get_video_fd(), VIDIOC_ENUM_FRAMESIZES, &framesize);
656 framesize.index, framesize.pixel_format, ret_size, errno_size);