/Zephyr-latest/tests/drivers/video/api/src/ |
D | video_emul.c | 79 struct video_frmival_enum fie = {.format = &fmt}; in ZTEST() local 85 zexpect_ok(video_enum_frmival(imager_dev, VIDEO_EP_OUT, &fie)); in ZTEST() 86 zexpect_equal(fie.index, 1, "fie's index should increment by one at every iteration"); in ZTEST() 93 zexpect_equal_ptr(fie.format, &fmt, "the format should not be changed"); in ZTEST() 94 zexpect_true(fie.type == VIDEO_FRMIVAL_TYPE_STEPWISE || in ZTEST() 95 fie.type == VIDEO_FRMIVAL_TYPE_DISCRETE); in ZTEST() 97 switch (fie.type) { in ZTEST() 100 q.denominator = fie.stepwise.min.denominator * in ZTEST() 101 fie.stepwise.max.denominator * in ZTEST() 102 fie.stepwise.step.denominator; in ZTEST() [all …]
|
/Zephyr-latest/samples/drivers/video/capture/src/ |
D | main.c | 89 struct video_frmival_enum fie; in main() local 167 memset(&fie, 0, sizeof(fie)); in main() 168 fie.format = &fmt; in main() 169 while (video_enum_frmival(video_dev, VIDEO_EP_OUT, &fie) == 0) { in main() 170 if (fie.type == VIDEO_FRMIVAL_TYPE_DISCRETE) { in main() 171 LOG_INF(" %u/%u ", fie.discrete.numerator, fie.discrete.denominator); in main() 174 fie.stepwise.min.numerator, fie.stepwise.min.denominator, in main() 175 fie.stepwise.max.numerator, fie.stepwise.max.denominator, in main() 176 fie.stepwise.step.numerator, fie.stepwise.step.denominator); in main() 178 fie.index++; in main()
|
/Zephyr-latest/drivers/video/ |
D | video_sw_generator.c | 309 struct video_frmival_enum *fie) in video_sw_generator_enum_frmival() argument 313 if (ep != VIDEO_EP_OUT || fie->index) { in video_sw_generator_enum_frmival() 317 while (fmts[i].pixelformat && (fmts[i].pixelformat != fie->format->pixelformat)) { in video_sw_generator_enum_frmival() 321 if ((i == ARRAY_SIZE(fmts)) || (fie->format->width > fmts[i].width_max) || in video_sw_generator_enum_frmival() 322 (fie->format->width < fmts[i].width_min) || in video_sw_generator_enum_frmival() 323 (fie->format->height > fmts[i].height_max) || in video_sw_generator_enum_frmival() 324 (fie->format->height < fmts[i].height_min)) { in video_sw_generator_enum_frmival() 328 fie->type = VIDEO_FRMIVAL_TYPE_STEPWISE; in video_sw_generator_enum_frmival() 329 fie->stepwise.min.numerator = 1; in video_sw_generator_enum_frmival() 330 fie->stepwise.min.denominator = MAX_FRAME_RATE; in video_sw_generator_enum_frmival() [all …]
|
D | video_mcux_mipi_csi2rx.c | 243 struct video_frmival_enum *fie) in mipi_csi2rx_enum_frmival() argument 252 ret = video_enum_frmival(config->sensor_dev, ep, fie); in mipi_csi2rx_enum_frmival() 275 if (fie->type == VIDEO_FRMIVAL_TYPE_DISCRETE) { in mipi_csi2rx_enum_frmival() 277 &cur_frmival, &fie->discrete, &cur_fmt, fie->format, cur_pixel_rate, in mipi_csi2rx_enum_frmival() 286 &cur_frmival, &fie->stepwise.min, &cur_fmt, fie->format, cur_pixel_rate, in mipi_csi2rx_enum_frmival() 294 &cur_frmival, &fie->stepwise.max, &cur_fmt, fie->format, cur_pixel_rate, in mipi_csi2rx_enum_frmival() 297 fie->stepwise.max.denominator = in mipi_csi2rx_enum_frmival() 300 (mipi_csi2rx_cal_frame_size(fie->format) * cur_pixel_rate * in mipi_csi2rx_enum_frmival() 302 fie->stepwise.max.numerator = 1; in mipi_csi2rx_enum_frmival()
|
D | video_common.c | 133 struct video_frmival_enum fie = {.format = match->format}; in video_closest_frmival() local 138 while (video_enum_frmival(dev, ep, &fie) == 0) { in video_closest_frmival() 142 switch (fie.type) { in video_closest_frmival() 144 tmp = fie.discrete; in video_closest_frmival() 147 video_closest_frmival_stepwise(&fie.stepwise, &desired, &tmp); in video_closest_frmival() 163 match->index = fie.index - 1; in video_closest_frmival()
|
D | video_emul_imager.c | 267 struct video_frmival_enum fie = {.format = &data->fmt, .discrete = *frmival}; in emul_imager_set_frmival() local 273 video_closest_frmival(dev, ep, &fie); in emul_imager_set_frmival() 274 LOG_DBG("Applying frame interval number %u", fie.index); in emul_imager_set_frmival() 275 return emul_imager_set_mode(dev, &emul_imager_modes[data->fmt_id][fie.index]); in emul_imager_set_frmival() 293 struct video_frmival_enum *fie) in emul_imager_enum_frmival() argument 303 ret = video_format_caps_index(fmts, fie->format, &fmt_id); in emul_imager_enum_frmival() 308 mode = &emul_imager_modes[fmt_id][fie->index]; in emul_imager_enum_frmival() 310 fie->type = VIDEO_FRMIVAL_TYPE_DISCRETE; in emul_imager_enum_frmival() 311 fie->discrete.numerator = 1; in emul_imager_enum_frmival() 312 fie->discrete.denominator = mode->fps; in emul_imager_enum_frmival() [all …]
|
D | video_mcux_csi.c | 452 struct video_frmival_enum *fie) in video_mcux_csi_enum_frmival() argument 455 const struct video_format *fie_fmt = fie->format; in video_mcux_csi_enum_frmival() 459 struct video_format converted_fmt = *fie->format; in video_mcux_csi_enum_frmival() 462 fie->format = &converted_fmt; in video_mcux_csi_enum_frmival() 465 ret = video_enum_frmival(config->source_dev, ep, fie); in video_mcux_csi_enum_frmival() 466 fie->format = fie_fmt; in video_mcux_csi_enum_frmival()
|
D | ov5640.c | 896 struct video_frmival_enum *fie) in ov5640_enum_frmival() argument 901 if (fie->format->width == modes[i].width && in ov5640_enum_frmival() 902 fie->format->height == modes[i].height) { in ov5640_enum_frmival() 906 if (i == ARRAY_SIZE(modes) || fie->index >= ARRAY_SIZE(ov5640_frame_rates) || in ov5640_enum_frmival() 907 ov5640_frame_rates[fie->index] > modes[i].max_frmrate) { in ov5640_enum_frmival() 911 fie->type = VIDEO_FRMIVAL_TYPE_DISCRETE; in ov5640_enum_frmival() 912 fie->discrete.numerator = 1; in ov5640_enum_frmival() 913 fie->discrete.denominator = ov5640_frame_rates[fie->index]; in ov5640_enum_frmival()
|
D | video_emul_rx.c | 73 struct video_frmival_enum *fie) in emul_rx_enum_frmival() argument 81 return video_enum_frmival(cfg->source_dev, VIDEO_EP_OUT, fie); in emul_rx_enum_frmival()
|
/Zephyr-latest/include/zephyr/drivers/ |
D | video.h | 275 struct video_frmival_enum *fie); 496 struct video_frmival_enum *fie) in video_enum_frmival() argument 504 return api->enum_frmival(dev, ep, fie); in video_enum_frmival()
|