/third_party/gstreamer/gstplugins_bad/ext/resindvd/ |
D | rsnparsetter.c | 207 gint par_n, par_d; in rsn_parsetter_check_caps() local 228 if (!gst_structure_get_fraction (s, "pixel-aspect-ratio", &par_n, &par_d)) in rsn_parsetter_check_caps() 229 par_n = par_d = 1; in rsn_parsetter_check_caps() 232 par_n, par_d, 1, 1)) in rsn_parsetter_check_caps() 237 width, height, par_n, par_d, dar_n, dar_d); in rsn_parsetter_check_caps() 263 gint par_n, par_d; in rsn_parsetter_convert_caps() local 293 par_d = dar_d * width; in rsn_parsetter_convert_caps() 296 gst_value_set_fraction (&par, par_n, par_d); in rsn_parsetter_convert_caps()
|
/third_party/gstreamer/gstplugins_good/ext/gdk_pixbuf/ |
D | gstgdkpixbufsink.c | 175 sink->par_d = 0; in gst_gdk_pixbuf_sink_init() 204 sink->par_d = 0; in gst_gdk_pixbuf_sink_stop() 223 gint w, h, par_n, par_d; in gst_gdk_pixbuf_sink_set_caps() local 236 par_d = GST_VIDEO_INFO_PAR_N (&info); in gst_gdk_pixbuf_sink_set_caps() 251 sink->par_d = par_d; in gst_gdk_pixbuf_sink_set_caps() 257 GST_INFO_OBJECT (sink, "pixel-aspect-ratio : %d/%d", par_n, par_d); in gst_gdk_pixbuf_sink_set_caps() 351 "pixel-aspect-ratio", GST_TYPE_FRACTION, sink->par_n, sink->par_d, in gst_gdk_pixbuf_sink_handle_buffer()
|
D | gstgdkpixbufsink.h | 49 gint par_d; member
|
/third_party/gstreamer/gstplugins_good/ext/gtk/ |
D | gtkgstbasewidget.c | 53 gint par_n, par_d; in _calculate_par() local 64 par_d = widget->video_par_d; in _calculate_par() 67 par_d = GST_VIDEO_INFO_PAR_D (info); in _calculate_par() 74 if (widget->par_n != 0 && widget->par_d != 0) { in _calculate_par() 76 display_par_d = widget->par_d; in _calculate_par() 84 &widget->display_ratio_den, width, height, par_n, par_d, display_par_n, in _calculate_par() 88 GST_LOG ("PAR: %u/%u DAR:%u/%u", par_n, par_d, display_par_n, in _calculate_par() 223 gtk_widget->par_d = gst_value_get_fraction_denominator (value); in gtk_gst_base_widget_set_property() 251 gst_value_set_fraction (value, gtk_widget->par_n, gtk_widget->par_d); in gtk_gst_base_widget_get_property() 513 widget->par_d = DEFAULT_DISPLAY_PAR_D; in gtk_gst_base_widget_init()
|
D | gstgtkbasesink.c | 161 gtk_sink->par_d = DEFAULT_DISPLAY_PAR_D; in gst_gtk_base_sink_init() 278 gst_value_set_fraction (value, gtk_sink->par_n, gtk_sink->par_d); in gst_gtk_base_sink_get_property() 305 gtk_sink->par_d = gst_value_get_fraction_denominator (value); in gst_gtk_base_sink_set_property()
|
D | gstgtkbasesink.h | 65 gint par_d; member
|
/third_party/gstreamer/gstplugins_bad/ext/vulkan/ |
D | vksink.c | 174 vk_sink->par_d = DEFAULT_PIXEL_ASPECT_RATIO_D; in gst_vulkan_sink_init() 204 vk_sink->par_d = gst_value_get_fraction_denominator (value); in gst_vulkan_sink_set_property() 226 gst_value_set_fraction (value, vk_sink->par_n, vk_sink->par_d); in gst_vulkan_sink_get_property() 339 vk_sink->par_d, NULL); in gst_vulkan_sink_change_state() 473 gint par_n, par_d; in _configure_display_from_info() local 481 par_d = GST_VIDEO_INFO_PAR_D (vinfo); in _configure_display_from_info() 487 if (vk_sink->par_n != 0 && vk_sink->par_d != 0) { in _configure_display_from_info() 489 display_par_d = vk_sink->par_d; in _configure_display_from_info() 496 &display_ratio_den, width, height, par_n, par_d, display_par_n, in _configure_display_from_info() 502 GST_TRACE ("PAR: %u/%u DAR:%u/%u", par_n, par_d, display_par_n, in _configure_display_from_info()
|
D | vksink.h | 55 gint par_d; member
|
/third_party/gstreamer/gstplugins_good/ext/qt/ |
D | qtitem.cc | 65 gint par_n, par_d; member 108 this->priv->par_d = DEFAULT_PAR_D; in QtGLVideoItem() 174 this->priv->par_d = den; in setDAR() 183 *den = this->priv->par_d; in getDAR() 211 gint par_n, par_d; in _calculate_par() local 219 par_d = GST_VIDEO_INFO_PAR_D (info); in _calculate_par() 225 if (widget->priv->par_n != 0 && widget->priv->par_d != 0) { in _calculate_par() 227 display_par_d = widget->priv->par_d; in _calculate_par() 234 &display_ratio_den, width, height, par_n, par_d, display_par_n, in _calculate_par() 243 GST_LOG ("%p PAR: %u/%u DAR:%u/%u", widget, par_n, par_d, display_par_n, in _calculate_par()
|
/third_party/gstreamer/gstplugins_good/gst/videocrop/ |
D | gstaspectratiocrop.c | 286 gint par_d, par_n; in gst_aspect_ratio_transform_structure() local 300 &par_n, &par_d)) { in gst_aspect_ratio_transform_structure() 301 par_d = par_n = 1; in gst_aspect_ratio_transform_structure() 304 incoming_ar = ((gdouble) (width * par_n)) / (height * par_d); in gst_aspect_ratio_transform_structure() 307 height, par_n, par_d, incoming_ar); in gst_aspect_ratio_transform_structure() 323 (double) par_d) * width) - height) / 2; in gst_aspect_ratio_transform_structure() 342 (double) (aspect_ratio_crop->ar_denom)) * ((double) par_d / in gst_aspect_ratio_transform_structure()
|
/third_party/gstreamer/gstplugins_base/gst-libs/gst/video/ |
D | video-multiview.c | 299 info->par_d *= 2; in gst_video_multiview_separated_video_info_from_packed() 326 info->par_d *= 2; in gst_video_multiview_separated_video_info_to_packed() 382 guint width, guint height, guint par_n, guint par_d) in gst_video_multiview_guess_half_aspect() argument 388 if (height * par_d <= width * par_n) in gst_video_multiview_guess_half_aspect() 395 if (width * par_n < 2.39 * height * par_d) in gst_video_multiview_guess_half_aspect()
|
D | video-info.c | 138 info->par_d = 1; in gst_video_info_init() 398 gint par_n, par_d; in gst_video_info_from_caps() local 454 &par_n, &par_d)) { in gst_video_info_from_caps() 456 info->par_d = par_d; in gst_video_info_from_caps() 459 info->par_d = 1; in gst_video_info_from_caps() 666 gint par_n, par_d; in gst_video_info_to_caps() local 682 par_d = info->par_d; in gst_video_info_to_caps() 723 par_d *= 2; /* half the width / double the height */ in gst_video_info_to_caps() 741 GST_TYPE_FRACTION, par_n, par_d, NULL); in gst_video_info_to_caps()
|
D | video-info.h | 327 gint par_d; member 377 #define GST_VIDEO_INFO_PAR_D(i) ((i)->par_d)
|
D | video-multiview.h | 64 guint width, guint height, guint par_n, guint par_d);
|
/third_party/gstreamer/gstplugins_base/ext/ogg/ |
D | gstoggstream.c | 415 guint w, h, par_d, par_n; in setup_theora_mapper() local 436 par_d = GST_READ_UINT24_BE (data + 33); in setup_theora_mapper() 439 pad->granulerate_n, pad->granulerate_d, par_n, par_d, w, h); in setup_theora_mapper() 475 if (par_n == 0 || par_d == 0) in setup_theora_mapper() 476 par_n = par_d = 1; in setup_theora_mapper() 481 GST_TYPE_FRACTION, par_n, par_d, NULL); in setup_theora_mapper() 666 gint width, height, par_n, par_d, fps_n, fps_d; in setup_vp8_mapper() local 676 par_d = GST_READ_UINT24_BE (packet->packet + 15); in setup_vp8_mapper() 694 if (par_n == 0 || par_d == 0) in setup_vp8_mapper() 695 par_n = par_d = 1; in setup_vp8_mapper() [all …]
|
/third_party/gstreamer/gstplugins_good/tests/check/elements/ |
D | vp9enc.c | 27 gint par_n, gint par_d) in gst_caps_new_i420_full() argument 35 GST_VIDEO_INFO_PAR_D (&info) = par_d; in gst_caps_new_i420_full()
|
/third_party/gstreamer/gstplugins_bad/gst/videoparsers/ |
D | gstvc1parse.c | 282 vc1parse->par_n = vc1parse->par_d = 0; in gst_vc1_parse_reset() 906 if (vc1parse->par_n != 0 && vc1parse->par_d != 0) in gst_vc1_parse_update_caps() 908 vc1parse->par_n, vc1parse->par_d, NULL); in gst_vc1_parse_update_caps() 2032 gint par_n, par_d; member 2146 gint par_n, par_d; in gst_vc1_parse_handle_seq_hdr() local 2149 par_d = vc1parse->seq_hdr.advanced.aspect_vert_size; in gst_vc1_parse_handle_seq_hdr() 2152 par_d = aspect_ratios[vc1parse->seq_hdr.advanced.aspect_ratio].par_d; in gst_vc1_parse_handle_seq_hdr() 2155 if (par_n != 0 && par_d != 0 && in gst_vc1_parse_handle_seq_hdr() 2156 (vc1parse->par_d == 0 in gst_vc1_parse_handle_seq_hdr() 2157 || gst_util_fraction_compare (par_n, par_d, in gst_vc1_parse_handle_seq_hdr() [all …]
|
D | gstvp9parse.c | 531 gint par_n = 0, par_d = 0; in gst_vp9_parse_update_src_caps() local 570 if (s && gst_structure_get_fraction (s, "pixel-aspect-ratio", &par_n, &par_d)) { in gst_vp9_parse_update_src_caps() 571 if (par_n != 0 && par_d != 0) { in gst_vp9_parse_update_src_caps() 573 GST_TYPE_FRACTION, par_n, par_d, NULL); in gst_vp9_parse_update_src_caps()
|
D | gstvc1parse.h | 83 gint par_n, par_d; member
|
/third_party/gstreamer/gstplugins_base/ext/gl/ |
D | gstglimagesink.c | 813 glimage_sink->par_d = 1; in gst_glimage_sink_init() 852 glimage_sink->par_d = gst_value_get_fraction_denominator (value); in gst_glimage_sink_set_property() 919 gst_value_set_fraction (value, glimage_sink->par_n, glimage_sink->par_d); in gst_glimage_sink_get_property() 1415 gint par_n, par_d; in configure_display_from_info() local 1423 par_d = GST_VIDEO_INFO_PAR_D (vinfo); in configure_display_from_info() 1429 if (glimage_sink->par_n != 0 && glimage_sink->par_d != 0) { in configure_display_from_info() 1431 display_par_d = glimage_sink->par_d; in configure_display_from_info() 1438 &display_ratio_den, width, height, par_n, par_d, display_par_n, in configure_display_from_info() 1444 GST_TRACE ("PAR: %u/%u DAR:%u/%u", par_n, par_d, display_par_n, in configure_display_from_info() 1525 gint par_n, par_d; in update_output_format() local [all …]
|
D | gstglvideoflip.c | 252 gint par_n, par_d; in _transform_caps() local 265 &par_n, &par_d)) { in _transform_caps() 266 if (par_n != 1 || par_d != 1) { in _transform_caps() 270 gst_value_set_fraction (&val, par_d, par_n); in _transform_caps()
|
/third_party/gstreamer/gstplugins_bad/gst-libs/gst/vulkan/ |
D | gstvkswapper.c | 86 gint par_d; member 502 priv->par_d = gst_value_get_fraction_denominator (value); in gst_vulkan_swapper_set_property() 522 gst_value_set_fraction (value, priv->par_n, priv->par_d); in gst_vulkan_swapper_get_property() 613 priv->par_d = DEFAULT_PIXEL_ASPECT_RATIO_D; in gst_vulkan_swapper_init() 958 gint par_n, par_d; in configure_display_from_info() local 966 par_d = GST_VIDEO_INFO_PAR_D (vinfo); in configure_display_from_info() 972 if (priv->par_n != 0 && priv->par_d != 0) { in configure_display_from_info() 974 display_par_d = priv->par_d; in configure_display_from_info() 981 &display_ratio_den, width, height, par_n, par_d, display_par_n, in configure_display_from_info() 987 GST_TRACE_OBJECT (swapper, "PAR: %u/%u DAR:%u/%u", par_n, par_d, in configure_display_from_info()
|
/third_party/gstreamer/gstplugins_bad/gst/rawparse/ |
D | gstvideoparse.c | 300 gint par_n, par_d; in gst_video_parse_get_property() local 302 &par_d, NULL); in gst_video_parse_get_property() 303 gst_value_set_fraction (value, par_n, par_d); in gst_video_parse_get_property()
|
/third_party/gstreamer/gstplugins_bad/gst/y4m/ |
D | gsty4mdec.c | 298 gint par_n = 0, par_d = 0; in gst_y4m_dec_parse_header() local 370 par_d = strtoul (header, &end, 10); in gst_y4m_dec_parse_header() 472 if (par_d == 0) in gst_y4m_dec_parse_header() 473 par_d = 1; in gst_y4m_dec_parse_header() 478 y4mdec->info.par_d = par_d; in gst_y4m_dec_parse_header()
|
/third_party/gstreamer/gstplugins_bad/sys/nvcodec/ |
D | gstcudaconvert.c | 401 if (in_info->par_n != out_info->par_n || in_info->par_d != out_info->par_d) in gst_cuda_convert_set_info()
|