/third_party/gstreamer/gstplugins_bad/sys/msdk/ |
D | gstmsdkvpputil.c | 72 gint from_w, from_h, from_par_n, from_par_d, to_par_n, to_par_d; in fixate_output_frame_size() local 80 from_h = GST_VIDEO_INFO_HEIGHT (vinfo); in fixate_output_frame_size() 84 || (thiz->crop_top + thiz->crop_bottom >= from_h - 1)) { in fixate_output_frame_size() 88 from_h -= thiz->crop_top + thiz->crop_bottom; in fixate_output_frame_size() 93 SWAP_GINT (from_w, from_h); in fixate_output_frame_size() 109 if (gst_video_calculate_display_ratio (&n, &d, from_w, from_h, in fixate_output_frame_size() 125 if (!gst_util_fraction_multiply (from_w, from_h, from_par_n, from_par_d, in fixate_output_frame_size() 239 gst_structure_fixate_field_nearest_int (tmp, "height", from_h); in fixate_output_frame_size() 297 gst_structure_fixate_field_nearest_int (tmp, "height", from_h); in fixate_output_frame_size() 352 gst_structure_fixate_field_nearest_int (tmp, "height", from_h); in fixate_output_frame_size()
|
/third_party/gstreamer/gstplugins_bad/sys/nvcodec/ |
D | gstcudascale.c | 207 gint from_w, from_h, from_par_n, from_par_d, to_par_n, to_par_d; in gst_cuda_scale_fixate_caps() local 219 gst_structure_get_int (ins, "height", &from_h); in gst_cuda_scale_fixate_caps() 232 if (gst_video_calculate_display_ratio (&n, &d, from_w, from_h, in gst_cuda_scale_fixate_caps() 247 if (!gst_util_fraction_multiply (from_w, from_h, from_par_n, from_par_d, in gst_cuda_scale_fixate_caps() 375 gst_structure_fixate_field_nearest_int (tmp, "height", from_h); in gst_cuda_scale_fixate_caps() 440 gst_structure_fixate_field_nearest_int (tmp, "height", from_h); in gst_cuda_scale_fixate_caps() 499 gst_structure_fixate_field_nearest_int (tmp, "height", from_h); in gst_cuda_scale_fixate_caps()
|
/third_party/gstreamer/gstplugins_base/gst/videoscale/ |
D | gstvideoscale.c | 782 gint from_w, from_h, from_par_n, from_par_d, to_par_n, to_par_d; in gst_video_scale_fixate_caps() local 794 gst_structure_get_int (ins, "height", &from_h); in gst_video_scale_fixate_caps() 807 if (gst_video_calculate_display_ratio (&n, &d, from_w, from_h, in gst_video_scale_fixate_caps() 822 if (!gst_util_fraction_multiply (from_w, from_h, from_par_n, from_par_d, in gst_video_scale_fixate_caps() 950 gst_structure_fixate_field_nearest_int (tmp, "height", from_h); in gst_video_scale_fixate_caps() 1015 gst_structure_fixate_field_nearest_int (tmp, "height", from_h); in gst_video_scale_fixate_caps() 1074 gst_structure_fixate_field_nearest_int (tmp, "height", from_h); in gst_video_scale_fixate_caps()
|
/third_party/gstreamer/gstplugins_good/sys/v4l2/ |
D | gstv4l2transform.c | 486 gint from_w, from_h, from_par_n, from_par_d, to_par_n, to_par_d; in gst_v4l2_transform_fixate_caps() local 498 gst_structure_get_int (ins, "height", &from_h); in gst_v4l2_transform_fixate_caps() 511 if (gst_video_calculate_display_ratio (&n, &d, from_w, from_h, in gst_v4l2_transform_fixate_caps() 526 if (!gst_util_fraction_multiply (from_w, from_h, from_par_n, from_par_d, in gst_v4l2_transform_fixate_caps() 654 gst_structure_fixate_field_nearest_int (tmp, "height", from_h); in gst_v4l2_transform_fixate_caps() 721 gst_structure_fixate_field_nearest_int (tmp, "height", from_h); in gst_v4l2_transform_fixate_caps() 776 gst_structure_fixate_field_nearest_int (tmp, "height", from_h); in gst_v4l2_transform_fixate_caps()
|
/third_party/gstreamer/gstplugins_base/gst-libs/gst/gl/ |
D | gstglfilter.c | 294 gint from_w, from_h, from_par_n, from_par_d, to_par_n, to_par_d; in gst_gl_filter_fixate_caps() local 306 gst_structure_get_int (ins, "height", &from_h); in gst_gl_filter_fixate_caps() 326 if (!gst_util_fraction_multiply (from_w, from_h, from_par_n, from_par_d, in gst_gl_filter_fixate_caps() 422 gst_structure_fixate_field_nearest_int (tmp, "height", from_h); in gst_gl_filter_fixate_caps() 477 gst_structure_fixate_field_nearest_int (tmp, "height", from_h); in gst_gl_filter_fixate_caps()
|
/third_party/gstreamer/gstplugins_bad/sys/va/ |
D | gstvavpp.c | 1200 gint from_w, from_h, from_par_n, from_par_d, to_par_n, to_par_d; in gst_va_vpp_fixate_size() local 1212 gst_structure_get_int (ins, "height", &from_h); in gst_va_vpp_fixate_size() 1223 SWAP (from_w, from_h); in gst_va_vpp_fixate_size() 1238 if (gst_video_calculate_display_ratio (&n, &d, from_w, from_h, in gst_va_vpp_fixate_size() 1253 if (!gst_util_fraction_multiply (from_w, from_h, from_par_n, from_par_d, in gst_va_vpp_fixate_size() 1381 gst_structure_fixate_field_nearest_int (tmp, "height", from_h); in gst_va_vpp_fixate_size() 1446 gst_structure_fixate_field_nearest_int (tmp, "height", from_h); in gst_va_vpp_fixate_size() 1505 gst_structure_fixate_field_nearest_int (tmp, "height", from_h); in gst_va_vpp_fixate_size()
|
/third_party/gstreamer/gstplugins_bad/sys/d3d11/ |
D | gstd3d11convert.cpp | 712 gint from_w, from_h, from_par_n, from_par_d, to_par_n, to_par_d; in gst_d3d11_base_convert_fixate_size() local 724 gst_structure_get_int (ins, "height", &from_h); in gst_d3d11_base_convert_fixate_size() 737 if (gst_video_calculate_display_ratio (&n, &d, from_w, from_h, in gst_d3d11_base_convert_fixate_size() 752 if (!gst_util_fraction_multiply (from_w, from_h, from_par_n, from_par_d, in gst_d3d11_base_convert_fixate_size() 880 gst_structure_fixate_field_nearest_int (tmp, "height", from_h); in gst_d3d11_base_convert_fixate_size() 945 gst_structure_fixate_field_nearest_int (tmp, "height", from_h); in gst_d3d11_base_convert_fixate_size() 1004 gst_structure_fixate_field_nearest_int (tmp, "height", from_h); in gst_d3d11_base_convert_fixate_size()
|
/third_party/gstreamer/gstplugins_bad/ext/vulkan/ |
D | vkviewconvert.c | 1409 gint from_w, from_h, from_par_n, from_par_d, to_par_n, to_par_d; in fixate_size() local 1421 gst_structure_get_int (ins, "height", &from_h); in fixate_size() 1441 if (!gst_util_fraction_multiply (from_w, from_h, from_par_n, from_par_d, in fixate_size() 1538 gst_structure_fixate_field_nearest_int (tmp, "height", from_h); in fixate_size() 1593 gst_structure_fixate_field_nearest_int (tmp, "height", from_h); in fixate_size()
|