/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 292 par_n = dar_n * height; 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/gtk/ |
D | gtkgstbasewidget.c | 53 gint par_n, par_d; in _calculate_par() local 63 par_n = widget->video_par_n; in _calculate_par() 66 par_n = GST_VIDEO_INFO_PAR_N (info); in _calculate_par() 70 if (!par_n) in _calculate_par() 71 par_n = 1; in _calculate_par() 74 if (widget->par_n != 0 && widget->par_d != 0) { in _calculate_par() 75 display_par_n = widget->par_n; 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() 222 gtk_widget->par_n = gst_value_get_fraction_numerator (value); in gtk_gst_base_widget_set_property() [all …]
|
D | gstgtkbasesink.h | 64 gint par_n; member
|
D | gstgtkbasesink.c | 160 gtk_sink->par_n = DEFAULT_DISPLAY_PAR_N; 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() 304 gtk_sink->par_n = gst_value_get_fraction_numerator (value); in gst_gtk_base_sink_set_property()
|
D | gtkgstbasewidget.h | 49 gint par_n, par_d; member
|
/third_party/gstreamer/gstplugins_good/ext/gdk_pixbuf/ |
D | gstgdkpixbufsink.c | 174 sink->par_n = 0; in gst_gdk_pixbuf_sink_init() 203 sink->par_n = 0; in gst_gdk_pixbuf_sink_stop() 223 gint w, h, par_n, par_d; in gst_gdk_pixbuf_sink_set_caps() local 235 par_n = GST_VIDEO_INFO_PAR_N (&info); in gst_gdk_pixbuf_sink_set_caps() 250 sink->par_n = par_n; 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 | 48 gint par_n; member
|
/third_party/gstreamer/gstplugins_bad/ext/vulkan/ |
D | vksink.c | 173 vk_sink->par_n = DEFAULT_PIXEL_ASPECT_RATIO_N; in gst_vulkan_sink_init() 203 vk_sink->par_n = gst_value_get_fraction_numerator (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() 338 vk_sink->force_aspect_ratio, "pixel-aspect-ratio", vk_sink->par_n, in gst_vulkan_sink_change_state() 473 gint par_n, par_d; in _configure_display_from_info() local 480 par_n = GST_VIDEO_INFO_PAR_N (vinfo); in _configure_display_from_info() 483 if (!par_n) in _configure_display_from_info() 484 par_n = 1; in _configure_display_from_info() 487 if (vk_sink->par_n != 0 && vk_sink->par_d != 0) { in _configure_display_from_info() 488 display_par_n = vk_sink->par_n; in _configure_display_from_info() [all …]
|
D | vksink.h | 54 gint par_n; member
|
/third_party/gstreamer/gstplugins_good/ext/qt/ |
D | qtitem.cc | 65 gint par_n, par_d; member 107 this->priv->par_n = DEFAULT_PAR_N; in QtGLVideoItem() 173 this->priv->par_n = num; in setDAR() 181 *num = this->priv->par_n; in getDAR() 211 gint par_n, par_d; in _calculate_par() local 218 par_n = GST_VIDEO_INFO_PAR_N (info); in _calculate_par() 221 if (!par_n) in _calculate_par() 222 par_n = 1; in _calculate_par() 225 if (widget->priv->par_n != 0 && widget->priv->par_d != 0) { in _calculate_par() 226 display_par_n = widget->priv->par_n; in _calculate_par() [all …]
|
/third_party/gstreamer/gstplugins_base/gst-libs/gst/video/ |
D | video-multiview.c | 290 info->par_n *= 2; in gst_video_multiview_separated_video_info_from_packed() 333 info->par_n *= 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 | 137 info->par_n = 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() 455 info->par_n = par_n; in gst_video_info_from_caps() 458 info->par_n = 1; in gst_video_info_from_caps() 666 gint par_n, par_d; in gst_video_info_to_caps() local 681 par_n = info->par_n; in gst_video_info_to_caps() 719 par_n *= 2; /* double the width / half 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-multiview.h | 64 guint width, guint height, guint par_n, guint par_d);
|
D | video-info.h | 326 gint par_n; member 376 #define GST_VIDEO_INFO_PAR_N(i) ((i)->par_n)
|
/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() 322 (double) (aspect_ratio_crop->ar_num)) * ((double) par_n / in gst_aspect_ratio_transform_structure() 343 (double) par_n) * height) - width) / 2; in gst_aspect_ratio_transform_structure()
|
/third_party/gstreamer/gstplugins_base/ext/ogg/ |
D | gstoggstream.c | 415 guint w, h, par_d, par_n; in setup_theora_mapper() local 435 par_n = GST_READ_UINT24_BE (data + 30); 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 675 par_n = GST_READ_UINT24_BE (packet->packet + 12); 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 34 GST_VIDEO_INFO_PAR_N (&info) = par_n; in gst_caps_new_i420_full()
|
/third_party/gstreamer/gstplugins_bad/gst-libs/gst/vulkan/ |
D | gstvkswapper.c | 85 gint par_n; member 501 priv->par_n = gst_value_get_fraction_numerator (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() 612 priv->par_n = DEFAULT_PIXEL_ASPECT_RATIO_N; in gst_vulkan_swapper_init() 958 gint par_n, par_d; in configure_display_from_info() local 965 par_n = GST_VIDEO_INFO_PAR_N (vinfo); in configure_display_from_info() 968 if (!par_n) in configure_display_from_info() 969 par_n = 1; in configure_display_from_info() 972 if (priv->par_n != 0 && priv->par_d != 0) { in configure_display_from_info() 973 display_par_n = priv->par_n; in configure_display_from_info() [all …]
|
/third_party/gstreamer/gstplugins_base/ext/gl/ |
D | gstglimagesink.c | 812 glimage_sink->par_n = 0; in gst_glimage_sink_init() 851 glimage_sink->par_n = gst_value_get_fraction_numerator (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 1422 par_n = GST_VIDEO_INFO_PAR_N (vinfo); in configure_display_from_info() 1425 if (!par_n) in configure_display_from_info() 1426 par_n = 1; in configure_display_from_info() 1429 if (glimage_sink->par_n != 0 && glimage_sink->par_d != 0) { in configure_display_from_info() 1430 display_par_n = glimage_sink->par_n; in configure_display_from_info() 1438 &display_ratio_den, width, height, par_n, par_d, display_par_n, in configure_display_from_info() [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/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 2148 par_n = vc1parse->seq_hdr.advanced.aspect_horiz_size; in gst_vc1_parse_handle_seq_hdr() 2151 par_n = aspect_ratios[vc1parse->seq_hdr.advanced.aspect_ratio].par_n; in gst_vc1_parse_handle_seq_hdr() 2155 if (par_n != 0 && 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() 2158 vc1parse->par_n, vc1parse->par_d) != 0)) { in gst_vc1_parse_handle_seq_hdr() [all …]
|
D | gstvc1parse.h | 83 gint par_n, par_d; member
|
/third_party/gstreamer/gstplugins_bad/gst/rawparse/ |
D | gstvideoparse.c | 300 gint par_n, par_d; in gst_video_parse_get_property() local 301 g_object_get (G_OBJECT (vp->rawvideoparse), "pixel-aspect-ratio", &par_n, 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 361 par_n = strtoul (header, &end, 10); in gst_y4m_dec_parse_header() 470 if (par_n == 0) in gst_y4m_dec_parse_header() 471 par_n = 1; in gst_y4m_dec_parse_header() 477 y4mdec->info.par_n = par_n; in gst_y4m_dec_parse_header()
|
/third_party/gstreamer/gstplugins_good/sys/ximage/ |
D | ximageutil.h | 99 guint par_n; /* calculated pixel aspect ratio numerator */ member
|