Home
last modified time | relevance | path

Searched refs:timeperframe (Results 1 – 25 of 57) sorted by relevance

123

/linux-6.12.1/drivers/media/i2c/et8ek8/
Det8ek8_mode.c48 .timeperframe = {
149 .timeperframe = {
205 .timeperframe = {
261 .timeperframe = {
317 .timeperframe = {
373 .timeperframe = {
428 .timeperframe = {
484 .timeperframe = {
540 .timeperframe = {
Det8ek8_reg.h41 struct v4l2_fract timeperframe; member
Det8ek8_driver.c459 struct v4l2_fract *timeperframe) in et8ek8_reglist_find_mode_ival() argument
461 int fps = TIMEPERFRAME_AVG_FPS(*timeperframe); in et8ek8_reglist_find_mode_ival()
475 if (TIMEPERFRAME_AVG_FPS(mode->timeperframe) == fps) in et8ek8_reglist_find_mode_ival()
539 list->mode.timeperframe.numerator, in et8ek8_reglist_import()
540 list->mode.timeperframe.denominator, in et8ek8_reglist_import()
983 fie->interval = mode->timeperframe; in et8ek8_enum_frame_ival()
1062 fi->interval = sensor->current_reglist->mode.timeperframe; in et8ek8_get_frame_interval()
/linux-6.12.1/drivers/media/usb/uvc/
Duvc_v4l2.c450 parm->parm.capture.timeperframe.numerator = numerator; in uvc_v4l2_get_streamparm()
451 parm->parm.capture.timeperframe.denominator = denominator; in uvc_v4l2_get_streamparm()
457 parm->parm.output.timeperframe.numerator = numerator; in uvc_v4l2_get_streamparm()
458 parm->parm.output.timeperframe.denominator = denominator; in uvc_v4l2_get_streamparm()
468 struct v4l2_fract timeperframe; in uvc_v4l2_set_streamparm() local
479 timeperframe = parm->parm.capture.timeperframe; in uvc_v4l2_set_streamparm()
481 timeperframe = parm->parm.output.timeperframe; in uvc_v4l2_set_streamparm()
483 interval = v4l2_fraction_to_interval(timeperframe.numerator, in uvc_v4l2_set_streamparm()
484 timeperframe.denominator); in uvc_v4l2_set_streamparm()
486 timeperframe.numerator, timeperframe.denominator, interval); in uvc_v4l2_set_streamparm()
[all …]
/linux-6.12.1/drivers/media/platform/amphion/
Dvenc.c271 struct v4l2_fract *timeperframe; in venc_g_parm() local
282 timeperframe = &parm->parm.capture.timeperframe; in venc_g_parm()
285 timeperframe->numerator = venc->params.frame_rate.numerator; in venc_g_parm()
286 timeperframe->denominator = venc->params.frame_rate.denominator; in venc_g_parm()
295 struct v4l2_fract *timeperframe; in venc_s_parm() local
307 timeperframe = &parm->parm.capture.timeperframe; in venc_s_parm()
308 if (!timeperframe->numerator) in venc_s_parm()
309 timeperframe->numerator = venc->params.frame_rate.numerator; in venc_s_parm()
310 if (!timeperframe->denominator) in venc_s_parm()
311 timeperframe->denominator = venc->params.frame_rate.denominator; in venc_s_parm()
[all …]
/linux-6.12.1/drivers/media/platform/qcom/venus/
Dvenc.c395 struct v4l2_fract *timeperframe = &out->timeperframe; in venc_s_parm() local
404 if (!timeperframe->denominator) in venc_s_parm()
405 timeperframe->denominator = inst->timeperframe.denominator; in venc_s_parm()
406 if (!timeperframe->numerator) in venc_s_parm()
407 timeperframe->numerator = inst->timeperframe.numerator; in venc_s_parm()
411 us_per_frame = timeperframe->numerator * (u64)USEC_PER_SEC; in venc_s_parm()
412 do_div(us_per_frame, timeperframe->denominator); in venc_s_parm()
420 inst->timeperframe = *timeperframe; in venc_s_parm()
435 a->parm.output.timeperframe = inst->timeperframe; in venc_g_parm()
1433 inst->timeperframe.numerator = 1; in venc_inst_init()
[all …]
Dvdec.c466 struct v4l2_fract *timeperframe = &cap->timeperframe; in vdec_s_parm() local
474 if (!timeperframe->denominator) in vdec_s_parm()
475 timeperframe->denominator = inst->timeperframe.denominator; in vdec_s_parm()
476 if (!timeperframe->numerator) in vdec_s_parm()
477 timeperframe->numerator = inst->timeperframe.numerator; in vdec_s_parm()
481 us_per_frame = timeperframe->numerator * (u64)USEC_PER_SEC; in vdec_s_parm()
482 do_div(us_per_frame, timeperframe->denominator); in vdec_s_parm()
491 inst->timeperframe = *timeperframe; in vdec_s_parm()
1616 inst->timeperframe.numerator = 1; in vdec_inst_init()
1617 inst->timeperframe.denominator = 30; in vdec_inst_init()
/linux-6.12.1/drivers/media/usb/s2255/
Ds2255drv.c1271 sp->parm.capture.timeperframe.denominator = def_dem; in vidioc_g_parm()
1275 sp->parm.capture.timeperframe.numerator = def_num; in vidioc_g_parm()
1278 sp->parm.capture.timeperframe.numerator = def_num * 2; in vidioc_g_parm()
1281 sp->parm.capture.timeperframe.numerator = def_num * 3; in vidioc_g_parm()
1284 sp->parm.capture.timeperframe.numerator = def_num * 5; in vidioc_g_parm()
1290 sp->parm.capture.timeperframe.numerator, in vidioc_g_parm()
1291 sp->parm.capture.timeperframe.denominator); in vidioc_g_parm()
1311 if (def_dem != sp->parm.capture.timeperframe.denominator) in vidioc_s_parm()
1312 sp->parm.capture.timeperframe.numerator = def_num; in vidioc_s_parm()
1313 else if (sp->parm.capture.timeperframe.numerator <= def_num) in vidioc_s_parm()
[all …]
/linux-6.12.1/drivers/media/i2c/
Dov7251.c85 struct v4l2_fract timeperframe; member
651 .timeperframe = {
664 .timeperframe = {
677 .timeperframe = {
1126 fie->interval = ov7251_mode_info_data[i].timeperframe; in ov7251_enum_frame_ival()
1186 ov7251_find_mode_by_ival(struct ov7251 *ov7251, struct v4l2_fract *timeperframe) in ov7251_find_mode_by_ival() argument
1189 unsigned int fps_req = avg_fps(timeperframe); in ov7251_find_mode_by_ival()
1201 fps_tmp = avg_fps(&ov7251_mode_info_data[i].timeperframe); in ov7251_find_mode_by_ival()
1402 fi->interval = ov7251->current_mode->timeperframe; in ov7251_get_frame_interval()
1445 fi->interval = ov7251->current_mode->timeperframe; in ov7251_set_frame_interval()
/linux-6.12.1/drivers/staging/media/omap4iss/
Diss_video.c750 a->parm.output.timeperframe = vfh->timeperframe; in iss_video_get_param()
765 if (a->parm.output.timeperframe.denominator == 0) in iss_video_set_param()
766 a->parm.output.timeperframe.denominator = 1; in iss_video_set_param()
768 vfh->timeperframe = a->parm.output.timeperframe; in iss_video_set_param()
934 pipe->max_timeperframe = vfh->timeperframe; in iss_video_streamon()
1129 handle->timeperframe.denominator = 1; in iss_video_open()
Diss_video.h184 struct v4l2_fract timeperframe; member
/linux-6.12.1/drivers/media/platform/mediatek/vcodec/encoder/
Dmtk_vcodec_enc.c238 struct v4l2_fract *timeperframe = &a->parm.output.timeperframe; in vidioc_venc_s_parm() local
243 if (timeperframe->numerator == 0 || timeperframe->denominator == 0) { in vidioc_venc_s_parm()
244 timeperframe->numerator = MTK_DEFAULT_FRAMERATE_NUM; in vidioc_venc_s_parm()
245 timeperframe->denominator = MTK_DEFAULT_FRAMERATE_DENOM; in vidioc_venc_s_parm()
248 ctx->enc_params.framerate_num = timeperframe->denominator; in vidioc_venc_s_parm()
249 ctx->enc_params.framerate_denom = timeperframe->numerator; in vidioc_venc_s_parm()
266 a->parm.output.timeperframe.denominator = in vidioc_venc_g_parm()
268 a->parm.output.timeperframe.numerator = in vidioc_venc_g_parm()
/linux-6.12.1/drivers/media/platform/chips-media/wave5/
Dwave5-vpu-enc.c663 a->parm.output.timeperframe.numerator = 1; in wave5_vpu_enc_g_parm()
664 a->parm.output.timeperframe.denominator = inst->frame_rate; in wave5_vpu_enc_g_parm()
667 __func__, a->parm.output.timeperframe.numerator, in wave5_vpu_enc_g_parm()
668 a->parm.output.timeperframe.denominator); in wave5_vpu_enc_g_parm()
683 if (a->parm.output.timeperframe.denominator && a->parm.output.timeperframe.numerator) { in wave5_vpu_enc_s_parm()
684 inst->frame_rate = a->parm.output.timeperframe.denominator / in wave5_vpu_enc_s_parm()
685 a->parm.output.timeperframe.numerator; in wave5_vpu_enc_s_parm()
687 a->parm.output.timeperframe.numerator = 1; in wave5_vpu_enc_s_parm()
688 a->parm.output.timeperframe.denominator = inst->frame_rate; in wave5_vpu_enc_s_parm()
692 __func__, a->parm.output.timeperframe.numerator, in wave5_vpu_enc_s_parm()
[all …]
/linux-6.12.1/drivers/media/platform/ti/omap3isp/
Dispvideo.c871 a->parm.output.timeperframe = vfh->timeperframe; in isp_video_get_param()
886 if (a->parm.output.timeperframe.denominator == 0) in isp_video_set_param()
887 a->parm.output.timeperframe.denominator = 1; in isp_video_set_param()
889 vfh->timeperframe = a->parm.output.timeperframe; in isp_video_set_param()
1141 pipe->max_timeperframe = vfh->timeperframe; in isp_video_streamon()
1332 handle->timeperframe.denominator = 1; in isp_video_open()
Dispccp2.c392 struct v4l2_fract *timeperframe; in ccp2_adjust_bandwidth() local
409 timeperframe = &pipe->max_timeperframe; in ccp2_adjust_bandwidth()
411 if (timeperframe->numerator) { in ccp2_adjust_bandwidth()
413 bound = div_u64(area * timeperframe->denominator, in ccp2_adjust_bandwidth()
414 timeperframe->numerator); in ccp2_adjust_bandwidth()
Dispvideo.h194 struct v4l2_fract timeperframe; member
/linux-6.12.1/drivers/media/usb/pwc/
Dpwc-v4l.c974 parm->parm.capture.timeperframe.denominator = pdev->vframes; in pwc_g_parm()
975 parm->parm.capture.timeperframe.numerator = 1; in pwc_g_parm()
993 if (parm->parm.capture.timeperframe.numerator == 0 || in pwc_s_parm()
994 parm->parm.capture.timeperframe.denominator == 0) in pwc_s_parm()
997 fps = parm->parm.capture.timeperframe.denominator / in pwc_s_parm()
998 parm->parm.capture.timeperframe.numerator; in pwc_s_parm()
/linux-6.12.1/drivers/staging/vc04_services/bcm2835-camera/
Dbcm2835-camera.c1033 dev->capture.timeperframe.denominator; in mmal_setup_video_component()
1035 dev->capture.timeperframe.numerator; in mmal_setup_video_component()
1084 dev->capture.timeperframe.denominator; in mmal_setup_encode_component()
1086 dev->capture.timeperframe.numerator; in mmal_setup_encode_component()
1389 parm->parm.capture.timeperframe = dev->capture.timeperframe; in vidioc_g_parm()
1403 tpf = parm->parm.capture.timeperframe; in vidioc_s_parm()
1410 dev->capture.timeperframe = tpf; in vidioc_s_parm()
1411 parm->parm.capture.timeperframe = tpf; in vidioc_s_parm()
1662 dev->capture.timeperframe = tpf_default; in mmal_init()
Dbcm2835-camera.h73 struct v4l2_fract timeperframe; member
/linux-6.12.1/Documentation/userspace-api/media/v4l/
Dvidioc-g-parm.rst106 - ``timeperframe``
165 - ``timeperframe``
220 - The frame period can be modified by setting the ``timeperframe``
/linux-6.12.1/drivers/media/usb/go7007/
Dgo7007-v4l2.c463 struct v4l2_fract timeperframe = { in vidioc_g_parm() local
473 parm->parm.capture.timeperframe = timeperframe; in vidioc_g_parm()
488 parm->parm.capture.timeperframe.numerator; in vidioc_s_parm()
489 d = 1001 * parm->parm.capture.timeperframe.denominator; in vidioc_s_parm()
/linux-6.12.1/drivers/media/platform/aspeed/
Daspeed-video.c1437 a->parm.capture.timeperframe.numerator = 1; in aspeed_video_get_parm()
1439 a->parm.capture.timeperframe.denominator = MAX_FRAME_RATE; in aspeed_video_get_parm()
1441 a->parm.capture.timeperframe.denominator = video->frame_rate; in aspeed_video_get_parm()
1455 if (a->parm.capture.timeperframe.numerator) in aspeed_video_set_parm()
1456 frame_rate = a->parm.capture.timeperframe.denominator / in aspeed_video_set_parm()
1457 a->parm.capture.timeperframe.numerator; in aspeed_video_set_parm()
1461 a->parm.capture.timeperframe.denominator = MAX_FRAME_RATE; in aspeed_video_set_parm()
1462 a->parm.capture.timeperframe.numerator = 1; in aspeed_video_set_parm()
/linux-6.12.1/drivers/media/platform/chips-media/coda/
Dcoda-common.c1363 tpf = &a->parm.output.timeperframe; in coda_g_parm()
1375 static void coda_approximate_timeperframe(struct v4l2_fract *timeperframe) in coda_approximate_timeperframe() argument
1377 struct v4l2_fract s = *timeperframe; in coda_approximate_timeperframe()
1385 timeperframe->numerator = 1; in coda_approximate_timeperframe()
1386 timeperframe->denominator = 65535; in coda_approximate_timeperframe()
1392 timeperframe->numerator = 65536; in coda_approximate_timeperframe()
1393 timeperframe->denominator = 1; in coda_approximate_timeperframe()
1405 *timeperframe = s; in coda_approximate_timeperframe()
1428 *timeperframe = f1; in coda_approximate_timeperframe()
1431 static uint32_t coda_timeperframe_to_frate(struct v4l2_fract *timeperframe) in coda_timeperframe_to_frate() argument
[all …]
/linux-6.12.1/drivers/media/platform/st/sti/hva/
Dhva-v4l2.c527 sp->parm.output.timeperframe.numerator = time_per_frame->numerator; in hva_g_parm()
528 sp->parm.output.timeperframe.denominator = in hva_g_parm()
542 if (!sp->parm.output.timeperframe.numerator || in hva_s_parm()
543 !sp->parm.output.timeperframe.denominator) in hva_s_parm()
547 time_per_frame->numerator = sp->parm.output.timeperframe.numerator; in hva_s_parm()
549 sp->parm.output.timeperframe.denominator; in hva_s_parm()
/linux-6.12.1/drivers/media/platform/allegro-dvt/
Dallegro-core.c3503 struct v4l2_fract *timeperframe; in allegro_g_parm() local
3509 timeperframe = &a->parm.output.timeperframe; in allegro_g_parm()
3510 timeperframe->numerator = channel->framerate.denominator; in allegro_g_parm()
3511 timeperframe->denominator = channel->framerate.numerator; in allegro_g_parm()
3520 struct v4l2_fract *timeperframe; in allegro_s_parm() local
3527 timeperframe = &a->parm.output.timeperframe; in allegro_s_parm()
3529 if (timeperframe->numerator == 0 || timeperframe->denominator == 0) in allegro_s_parm()
3532 div = gcd(timeperframe->denominator, timeperframe->numerator); in allegro_s_parm()
3533 channel->framerate.numerator = timeperframe->denominator / div; in allegro_s_parm()
3534 channel->framerate.denominator = timeperframe->numerator / div; in allegro_s_parm()

123