• Home
  • Raw
  • Download

Lines Matching refs:bt

208 				struct v4l2_bt_timings *bt)  in get_cvt_gtf_timings()  argument
251 interlaced, reduced_fps, bt); in get_cvt_gtf_timings()
254 interlaced, bt); in get_cvt_gtf_timings()
265 struct v4l2_bt_timings *bt = &dv_timings->bt; in parse_dv_bt_timings() local
283 bt->width = opt_val; in parse_dv_bt_timings()
286 bt->height = opt_val; in parse_dv_bt_timings()
289 bt->interlaced = opt_val; in parse_dv_bt_timings()
292 bt->polarities = opt_val; in parse_dv_bt_timings()
295 bt->pixelclock = opt_val; in parse_dv_bt_timings()
298 bt->hfrontporch = opt_val; in parse_dv_bt_timings()
301 bt->hsync = opt_val; in parse_dv_bt_timings()
304 bt->hbackporch = opt_val; in parse_dv_bt_timings()
307 bt->vfrontporch = opt_val; in parse_dv_bt_timings()
310 bt->vsync = opt_val; in parse_dv_bt_timings()
313 bt->vbackporch = opt_val; in parse_dv_bt_timings()
316 bt->il_vfrontporch = opt_val; in parse_dv_bt_timings()
319 bt->il_vsync = opt_val; in parse_dv_bt_timings()
322 bt->il_vbackporch = opt_val; in parse_dv_bt_timings()
330 get_cvt_gtf_timings(subs, V4L2_DV_BT_STD_CVT, bt); in parse_dv_bt_timings()
335 get_cvt_gtf_timings(subs, V4L2_DV_BT_STD_GTF, bt); in parse_dv_bt_timings()
338 bt->flags |= opt_val ? V4L2_DV_FL_REDUCED_FPS : 0; in parse_dv_bt_timings()
353 const struct v4l2_bt_timings *bt; in print_dv_timings() local
358 bt = &t->bt; in print_dv_timings()
360 tot_height = bt->height + in print_dv_timings()
361 bt->vfrontporch + bt->vsync + bt->vbackporch + in print_dv_timings()
362 bt->il_vfrontporch + bt->il_vsync + bt->il_vbackporch; in print_dv_timings()
363 tot_width = bt->width + in print_dv_timings()
364 bt->hfrontporch + bt->hsync + bt->hbackporch; in print_dv_timings()
366 printf("\t%dx%d%c%.2f %s\n", bt->width, bt->height, in print_dv_timings()
367 bt->interlaced ? 'i' : 'p', in print_dv_timings()
368 static_cast<double>(bt->pixelclock) / in print_dv_timings()
369 (tot_width * (tot_height / (bt->interlaced ? 2 : 1))), in print_dv_timings()
370 dvflags2s(bt->vsync, bt->flags).c_str()); in print_dv_timings()
373 printf("\tActive width: %d\n", bt->width); in print_dv_timings()
374 printf("\tActive height: %d\n", bt->height); in print_dv_timings()
375 printf("\tTotal width: %d\n",bt->width + in print_dv_timings()
376 bt->hfrontporch + bt->hsync + bt->hbackporch); in print_dv_timings()
377 printf("\tTotal height: %d\n", bt->height + in print_dv_timings()
378 bt->vfrontporch + bt->vsync + bt->vbackporch + in print_dv_timings()
379 bt->il_vfrontporch + bt->il_vsync + bt->il_vbackporch); in print_dv_timings()
381 printf("\tFrame format: %s\n", bt->interlaced ? "interlaced" : "progressive"); in print_dv_timings()
383 (bt->polarities & V4L2_DV_VSYNC_POS_POL) ? '+' : '-', in print_dv_timings()
384 (bt->polarities & V4L2_DV_HSYNC_POS_POL) ? '+' : '-'); in print_dv_timings()
385 printf("\tPixelclock: %lld Hz", bt->pixelclock); in print_dv_timings()
386 if (bt->width && bt->height) { in print_dv_timings()
387 if (bt->interlaced) in print_dv_timings()
388 printf(" (%.2f fields per second)", static_cast<double>(bt->pixelclock) / in print_dv_timings()
391 printf(" (%.2f frames per second)", static_cast<double>(bt->pixelclock) / in print_dv_timings()
395 printf("\tHorizontal frontporch: %d\n", bt->hfrontporch); in print_dv_timings()
396 printf("\tHorizontal sync: %d\n", bt->hsync); in print_dv_timings()
397 printf("\tHorizontal backporch: %d\n", bt->hbackporch); in print_dv_timings()
398 if (bt->interlaced) in print_dv_timings()
400 printf("\tVertical frontporch: %d\n", bt->vfrontporch); in print_dv_timings()
401 printf("\tVertical sync: %d\n", bt->vsync); in print_dv_timings()
402 printf("\tVertical backporch: %d\n", bt->vbackporch); in print_dv_timings()
403 if (bt->interlaced) { in print_dv_timings()
405 printf("\tVertical frontporch: %d\n", bt->il_vfrontporch); in print_dv_timings()
406 printf("\tVertical sync: %d\n", bt->il_vsync); in print_dv_timings()
407 printf("\tVertical backporch: %d\n", bt->il_vbackporch); in print_dv_timings()
409 printf("\tStandards: %s\n", dv_standards2s(bt->standards).c_str()); in print_dv_timings()
410 if (bt->flags & V4L2_DV_FL_HAS_PICTURE_ASPECT) in print_dv_timings()
412 bt->picture_aspect.numerator, in print_dv_timings()
413 bt->picture_aspect.denominator); in print_dv_timings()
414 if (bt->flags & V4L2_DV_FL_HAS_CEA861_VIC) in print_dv_timings()
415 printf("\tCTA-861 VIC: %u\n", bt->cea861_vic); in print_dv_timings()
416 if (bt->flags & V4L2_DV_FL_HAS_HDMI_VIC) in print_dv_timings()
417 printf("\tHDMI VIC: %u\n", bt->hdmi_vic); in print_dv_timings()
418 printf("\tFlags: %s\n", dvflags2s(bt->vsync, bt->flags).c_str()); in print_dv_timings()
494 __u32 reduced_fps = dv_timings.bt.flags & V4L2_DV_FL_REDUCED_FPS; in stds_set()
498 et.timings.bt.flags |= reduced_fps; in stds_set()
503 struct v4l2_bt_timings *bt = &new_dv_timings.bt; in stds_set() local
504 struct v4l2_bt_timings *update_bt = &dv_timings.bt; in stds_set()
512 bt->width = update_bt->width; in stds_set()
515 bt->height = update_bt->height; in stds_set()
518 bt->interlaced = update_bt->interlaced; in stds_set()
521 bt->polarities = update_bt->polarities; in stds_set()
524 bt->pixelclock = update_bt->pixelclock; in stds_set()
527 bt->hfrontporch = update_bt->hfrontporch; in stds_set()
530 bt->hsync = update_bt->hsync; in stds_set()
533 bt->hbackporch = update_bt->hbackporch; in stds_set()
536 bt->vfrontporch = update_bt->vfrontporch; in stds_set()
539 bt->vsync = update_bt->vsync; in stds_set()
542 bt->vbackporch = update_bt->vbackporch; in stds_set()
545 bt->il_vfrontporch = update_bt->il_vfrontporch; in stds_set()
548 bt->il_vsync = update_bt->il_vsync; in stds_set()
551 bt->il_vbackporch = update_bt->il_vbackporch; in stds_set()
554 bt->flags &= ~V4L2_DV_FL_REDUCED_FPS; in stds_set()
555 bt->flags |= update_bt->flags & V4L2_DV_FL_REDUCED_FPS; in stds_set()
591 struct v4l2_bt_timings_cap *bt = &dv_timings_cap.bt; in stds_get() local
597 printf("\tMinimum Width: %u\n", bt->min_width); in stds_get()
598 printf("\tMaximum Width: %u\n", bt->max_width); in stds_get()
599 printf("\tMinimum Height: %u\n", bt->min_height); in stds_get()
600 printf("\tMaximum Height: %u\n", bt->max_height); in stds_get()
601 printf("\tMinimum PClock: %llu\n", bt->min_pixelclock); in stds_get()
602 printf("\tMaximum PClock: %llu\n", bt->max_pixelclock); in stds_get()
604 dv_standards2s(bt->standards).c_str()); in stds_get()
606 dv_caps2s(bt->capabilities).c_str()); in stds_get()