Home
last modified time | relevance | path

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

123

/kernel/linux/linux-5.10/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()
1052 fi->interval = sensor->current_reglist->mode.timeperframe; in et8ek8_get_frame_interval()
/kernel/linux/linux-5.10/drivers/media/usb/uvc/
Duvc_v4l2.c384 parm->parm.capture.timeperframe.numerator = numerator; in uvc_v4l2_get_streamparm()
385 parm->parm.capture.timeperframe.denominator = denominator; in uvc_v4l2_get_streamparm()
391 parm->parm.output.timeperframe.numerator = numerator; in uvc_v4l2_get_streamparm()
392 parm->parm.output.timeperframe.denominator = denominator; in uvc_v4l2_get_streamparm()
402 struct v4l2_fract timeperframe; in uvc_v4l2_set_streamparm() local
413 timeperframe = parm->parm.capture.timeperframe; in uvc_v4l2_set_streamparm()
415 timeperframe = parm->parm.output.timeperframe; in uvc_v4l2_set_streamparm()
417 interval = uvc_fraction_to_interval(timeperframe.numerator, in uvc_v4l2_set_streamparm()
418 timeperframe.denominator); in uvc_v4l2_set_streamparm()
420 timeperframe.numerator, timeperframe.denominator, interval); in uvc_v4l2_set_streamparm()
[all …]
/kernel/linux/linux-5.10/drivers/media/platform/qcom/venus/
Dvenc.c383 struct v4l2_fract *timeperframe = &out->timeperframe; in venc_s_parm() local
392 if (!timeperframe->denominator) in venc_s_parm()
393 timeperframe->denominator = inst->timeperframe.denominator; in venc_s_parm()
394 if (!timeperframe->numerator) in venc_s_parm()
395 timeperframe->numerator = inst->timeperframe.numerator; in venc_s_parm()
399 us_per_frame = timeperframe->numerator * (u64)USEC_PER_SEC; in venc_s_parm()
400 do_div(us_per_frame, timeperframe->denominator); in venc_s_parm()
408 inst->timeperframe = *timeperframe; in venc_s_parm()
423 a->parm.output.timeperframe = inst->timeperframe; in venc_g_parm()
1040 inst->timeperframe.numerator = 1; in venc_inst_init()
[all …]
Dvdec.c412 struct v4l2_fract *timeperframe = &cap->timeperframe; in vdec_s_parm() local
420 if (!timeperframe->denominator) in vdec_s_parm()
421 timeperframe->denominator = inst->timeperframe.denominator; in vdec_s_parm()
422 if (!timeperframe->numerator) in vdec_s_parm()
423 timeperframe->numerator = inst->timeperframe.numerator; in vdec_s_parm()
427 us_per_frame = timeperframe->numerator * (u64)USEC_PER_SEC; in vdec_s_parm()
428 do_div(us_per_frame, timeperframe->denominator); in vdec_s_parm()
437 inst->timeperframe = *timeperframe; in vdec_s_parm()
1420 inst->timeperframe.numerator = 1; in vdec_inst_init()
1421 inst->timeperframe.denominator = 30; in vdec_inst_init()
/kernel/linux/linux-5.10/drivers/media/i2c/
Dov7251.c59 struct v4l2_fract timeperframe; member
535 .timeperframe = {
549 .timeperframe = {
563 .timeperframe = {
943 fie->interval = ov7251_mode_info_data[i].timeperframe; in ov7251_enum_frame_ival()
1001 ov7251_find_mode_by_ival(struct ov7251 *ov7251, struct v4l2_fract *timeperframe) in ov7251_find_mode_by_ival() argument
1004 unsigned int fps_req = avg_fps(timeperframe); in ov7251_find_mode_by_ival()
1016 fps_tmp = avg_fps(&ov7251_mode_info_data[i].timeperframe); in ov7251_find_mode_by_ival()
1175 fi->interval = ov7251->current_mode->timeperframe; in ov7251_get_frame_interval()
1220 fi->interval = ov7251->current_mode->timeperframe; in ov7251_set_frame_interval()
/kernel/linux/linux-5.10/drivers/media/usb/s2255/
Ds2255drv.c1273 sp->parm.capture.timeperframe.denominator = def_dem; in vidioc_g_parm()
1277 sp->parm.capture.timeperframe.numerator = def_num; in vidioc_g_parm()
1280 sp->parm.capture.timeperframe.numerator = def_num * 2; in vidioc_g_parm()
1283 sp->parm.capture.timeperframe.numerator = def_num * 3; in vidioc_g_parm()
1286 sp->parm.capture.timeperframe.numerator = def_num * 5; in vidioc_g_parm()
1292 sp->parm.capture.timeperframe.numerator, in vidioc_g_parm()
1293 sp->parm.capture.timeperframe.denominator); in vidioc_g_parm()
1313 if (def_dem != sp->parm.capture.timeperframe.denominator) in vidioc_s_parm()
1314 sp->parm.capture.timeperframe.numerator = def_num; in vidioc_s_parm()
1315 else if (sp->parm.capture.timeperframe.numerator <= def_num) in vidioc_s_parm()
[all …]
/kernel/linux/linux-5.10/drivers/media/platform/mtk-vcodec/
Dmtk_vcodec_enc.c203 struct v4l2_fract *timeperframe = &a->parm.output.timeperframe; in vidioc_venc_s_parm() local
208 if (timeperframe->numerator == 0 || timeperframe->denominator == 0) { in vidioc_venc_s_parm()
209 timeperframe->numerator = MTK_DEFAULT_FRAMERATE_NUM; in vidioc_venc_s_parm()
210 timeperframe->denominator = MTK_DEFAULT_FRAMERATE_DENOM; in vidioc_venc_s_parm()
213 ctx->enc_params.framerate_num = timeperframe->denominator; in vidioc_venc_s_parm()
214 ctx->enc_params.framerate_denom = timeperframe->numerator; in vidioc_venc_s_parm()
231 a->parm.output.timeperframe.denominator = in vidioc_venc_g_parm()
233 a->parm.output.timeperframe.numerator = in vidioc_venc_g_parm()
/kernel/linux/linux-5.10/drivers/staging/media/omap4iss/
Diss_video.c755 a->parm.output.timeperframe = vfh->timeperframe; in iss_video_get_param()
770 if (a->parm.output.timeperframe.denominator == 0) in iss_video_set_param()
771 a->parm.output.timeperframe.denominator = 1; in iss_video_set_param()
773 vfh->timeperframe = a->parm.output.timeperframe; in iss_video_set_param()
940 pipe->max_timeperframe = vfh->timeperframe; in iss_video_streamon()
1139 handle->timeperframe.denominator = 1; in iss_video_open()
Diss_video.h178 struct v4l2_fract timeperframe; member
/kernel/linux/linux-5.10/drivers/media/platform/omap3isp/
Dispvideo.c876 a->parm.output.timeperframe = vfh->timeperframe; in isp_video_get_param()
891 if (a->parm.output.timeperframe.denominator == 0) in isp_video_set_param()
892 a->parm.output.timeperframe.denominator = 1; in isp_video_set_param()
894 vfh->timeperframe = a->parm.output.timeperframe; in isp_video_set_param()
1146 pipe->max_timeperframe = vfh->timeperframe; in isp_video_streamon()
1337 handle->timeperframe.denominator = 1; in isp_video_open()
Dispccp2.c390 struct v4l2_fract *timeperframe; in ccp2_adjust_bandwidth() local
407 timeperframe = &pipe->max_timeperframe; in ccp2_adjust_bandwidth()
409 if (timeperframe->numerator) { in ccp2_adjust_bandwidth()
411 bound = div_u64(area * timeperframe->denominator, in ccp2_adjust_bandwidth()
412 timeperframe->numerator); in ccp2_adjust_bandwidth()
Dispvideo.h187 struct v4l2_fract timeperframe; member
/kernel/linux/linux-5.10/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()
/kernel/linux/linux-5.10/drivers/media/platform/
Daspeed-video.c1080 a->parm.capture.timeperframe.numerator = 1; in aspeed_video_get_parm()
1082 a->parm.capture.timeperframe.denominator = MAX_FRAME_RATE; in aspeed_video_get_parm()
1084 a->parm.capture.timeperframe.denominator = video->frame_rate; in aspeed_video_get_parm()
1098 if (a->parm.capture.timeperframe.numerator) in aspeed_video_set_parm()
1099 frame_rate = a->parm.capture.timeperframe.denominator / in aspeed_video_set_parm()
1100 a->parm.capture.timeperframe.numerator; in aspeed_video_set_parm()
1104 a->parm.capture.timeperframe.denominator = MAX_FRAME_RATE; in aspeed_video_set_parm()
1105 a->parm.capture.timeperframe.numerator = 1; in aspeed_video_set_parm()
/kernel/linux/linux-5.10/drivers/staging/vc04_services/bcm2835-camera/
Dbcm2835-camera.h73 struct v4l2_fract timeperframe; member
Dbcm2835-camera.c1041 dev->capture.timeperframe.denominator; in mmal_setup_video_component()
1043 dev->capture.timeperframe.numerator; in mmal_setup_video_component()
1092 dev->capture.timeperframe.denominator; in mmal_setup_encode_component()
1094 dev->capture.timeperframe.numerator; in mmal_setup_encode_component()
1397 parm->parm.capture.timeperframe = dev->capture.timeperframe; in vidioc_g_parm()
1411 tpf = parm->parm.capture.timeperframe; in vidioc_s_parm()
1418 dev->capture.timeperframe = tpf; in vidioc_s_parm()
1419 parm->parm.capture.timeperframe = tpf; in vidioc_s_parm()
1670 dev->capture.timeperframe = tpf_default; in mmal_init()
/kernel/linux/linux-5.10/drivers/staging/media/allegro-dvt/
Dallegro-core.c2811 struct v4l2_fract *timeperframe; in allegro_g_parm() local
2817 timeperframe = &a->parm.output.timeperframe; in allegro_g_parm()
2818 timeperframe->numerator = channel->framerate.denominator; in allegro_g_parm()
2819 timeperframe->denominator = channel->framerate.numerator; in allegro_g_parm()
2828 struct v4l2_fract *timeperframe; in allegro_s_parm() local
2835 timeperframe = &a->parm.output.timeperframe; in allegro_s_parm()
2837 if (timeperframe->numerator == 0 || timeperframe->denominator == 0) in allegro_s_parm()
2840 div = gcd(timeperframe->denominator, timeperframe->numerator); in allegro_s_parm()
2841 channel->framerate.numerator = timeperframe->denominator / div; in allegro_s_parm()
2842 channel->framerate.denominator = timeperframe->numerator / div; in allegro_s_parm()
/kernel/linux/linux-5.10/Documentation/userspace-api/media/v4l/
Dvidioc-g-parm.rst107 - ``timeperframe``
166 - ``timeperframe``
221 - The frame period can be modified by setting the ``timeperframe``
Ddev-encoder.rst242 set all fields except ``parm.output.timeperframe`` to 0.
244 ``parm.output.timeperframe``
250 ``parm.output.timeperframe``
270 ``timeperframe`` deals with *frames*, not fields. So for interlaced
293 set all fields except ``parm.capture.timeperframe`` to 0.
295 ``parm.capture.timeperframe``
301 ``parm.capture.timeperframe``
313 ``timeperframe`` deals with *frames*, not fields. So for interlaced
/kernel/linux/linux-5.10/drivers/media/usb/go7007/
Dgo7007-v4l2.c467 struct v4l2_fract timeperframe = { in vidioc_g_parm() local
477 parm->parm.capture.timeperframe = timeperframe; in vidioc_g_parm()
492 parm->parm.capture.timeperframe.numerator; in vidioc_s_parm()
493 d = 1001 * parm->parm.capture.timeperframe.denominator; in vidioc_s_parm()
/kernel/linux/linux-5.10/drivers/media/platform/coda/
Dcoda-common.c1366 tpf = &a->parm.output.timeperframe; in coda_g_parm()
1378 static void coda_approximate_timeperframe(struct v4l2_fract *timeperframe) in coda_approximate_timeperframe() argument
1380 struct v4l2_fract s = *timeperframe; in coda_approximate_timeperframe()
1388 timeperframe->numerator = 1; in coda_approximate_timeperframe()
1389 timeperframe->denominator = 65535; in coda_approximate_timeperframe()
1395 timeperframe->numerator = 65536; in coda_approximate_timeperframe()
1396 timeperframe->denominator = 1; in coda_approximate_timeperframe()
1408 *timeperframe = s; in coda_approximate_timeperframe()
1431 *timeperframe = f1; in coda_approximate_timeperframe()
1434 static uint32_t coda_timeperframe_to_frate(struct v4l2_fract *timeperframe) in coda_timeperframe_to_frate() argument
[all …]
/kernel/linux/linux-5.10/drivers/media/v4l2-core/
Dv4l2-common.c202 a->parm.capture.timeperframe = ival.interval; in v4l2_g_parm_cap()
211 .interval = a->parm.capture.timeperframe in v4l2_s_parm_cap()
229 a->parm.capture.timeperframe = ival.interval; in v4l2_s_parm_cap()
/kernel/linux/linux-5.10/drivers/media/platform/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()

123