Searched refs:frmival (Results 1 – 8 of 8) sorted by relevance
/Zephyr-latest/drivers/video/ |
D | video_sw_generator.c | 280 struct video_frmival *frmival) in video_sw_generator_set_frmival() argument 284 if (frmival->denominator && frmival->numerator) { in video_sw_generator_set_frmival() 285 data->frame_rate = MIN(DIV_ROUND_CLOSEST(frmival->denominator, frmival->numerator), in video_sw_generator_set_frmival() 291 frmival->numerator = 1; in video_sw_generator_set_frmival() 292 frmival->denominator = data->frame_rate; in video_sw_generator_set_frmival() 298 struct video_frmival *frmival) in video_sw_generator_get_frmival() argument 302 frmival->numerator = 1; in video_sw_generator_get_frmival() 303 frmival->denominator = data->frame_rate; in video_sw_generator_get_frmival()
|
D | video_emul_rx.c | 49 struct video_frmival *frmival) in emul_rx_set_frmival() argument 57 return video_set_frmival(cfg->source_dev, VIDEO_EP_OUT, frmival); in emul_rx_set_frmival() 61 struct video_frmival *frmival) in emul_rx_get_frmival() argument 69 return video_get_frmival(cfg->source_dev, VIDEO_EP_OUT, frmival); in emul_rx_get_frmival()
|
D | video_emul_imager.c | 264 struct video_frmival *frmival) in emul_imager_set_frmival() argument 267 struct video_frmival_enum fie = {.format = &data->fmt, .discrete = *frmival}; in emul_imager_set_frmival() 279 struct video_frmival *frmival) in emul_imager_get_frmival() argument 287 frmival->numerator = 1; in emul_imager_get_frmival() 288 frmival->denominator = data->mode->fps; in emul_imager_get_frmival()
|
D | video_mcux_mipi_csi2rx.c | 201 struct video_frmival *frmival) in mipi_csi2rx_set_frmival() argument 206 ret = video_set_frmival(config->sensor_dev, ep, frmival); in mipi_csi2rx_set_frmival() 218 struct video_frmival *frmival) in mipi_csi2rx_get_frmival() argument 222 return video_get_frmival(config->sensor_dev, ep, frmival); in mipi_csi2rx_get_frmival()
|
D | ov5640.c | 504 struct video_frmival *frmival) in ov5640_set_frmival() argument 512 desired_frmrate = DIV_ROUND_CLOSEST(frmival->denominator, frmival->numerator); in ov5640_set_frmival() 546 frmival->numerator = 1; in ov5640_set_frmival() 547 frmival->denominator = best_match; in ov5640_set_frmival() 885 struct video_frmival *frmival) in ov5640_get_frmival() argument 889 frmival->numerator = 1; in ov5640_get_frmival() 890 frmival->denominator = drv_data->cur_frmrate; in ov5640_get_frmival()
|
D | video_mcux_csi.c | 436 struct video_frmival *frmival) in video_mcux_csi_set_frmival() argument 440 return video_set_frmival(config->source_dev, ep, frmival); in video_mcux_csi_set_frmival() 444 struct video_frmival *frmival) in video_mcux_csi_get_frmival() argument 448 return video_get_frmival(config->source_dev, ep, frmival); in video_mcux_csi_get_frmival()
|
/Zephyr-latest/include/zephyr/drivers/ |
D | video.h | 257 struct video_frmival *frmival); 266 struct video_frmival *frmival); 440 struct video_frmival *frmival) in video_set_frmival() argument 448 return api->set_frmival(dev, ep, frmival); in video_set_frmival() 466 struct video_frmival *frmival) in video_get_frmival() argument 474 return api->get_frmival(dev, ep, frmival); in video_get_frmival() 778 static inline uint64_t video_frmival_nsec(const struct video_frmival *frmival) in video_frmival_nsec() argument 780 return (uint64_t)NSEC_PER_SEC * frmival->numerator / frmival->denominator; in video_frmival_nsec()
|
/Zephyr-latest/samples/drivers/video/capture/src/ |
D | main.c | 88 struct video_frmival frmival; in main() local 161 if (!video_get_frmival(video_dev, VIDEO_EP_OUT, &frmival)) { in main() 163 1.0 * frmival.denominator / frmival.numerator); in main()
|