Home
last modified time | relevance | path

Searched refs:aspect_ratio (Results 1 – 25 of 27) sorted by relevance

12

/third_party/ffmpeg/libavfilter/
Dvf_aspect.c87 static int get_aspect_ratio(AVFilterLink *inlink, AVRational *aspect_ratio) in get_aspect_ratio() argument
109 ret = av_parse_ratio(aspect_ratio, s->ratio_expr, s->max, 0, ctx); in get_aspect_ratio()
111 *aspect_ratio = av_d2q(res, s->max); in get_aspect_ratio()
118 if (aspect_ratio->num < 0 || aspect_ratio->den <= 0) { in get_aspect_ratio()
/third_party/flutter/skia/third_party/externals/sdl/src/video/x11/
Dedid-parse.c182 info->aspect_ratio = -1.0; in decode_display_parameters()
188 info->aspect_ratio = 100.0 / (edid[0x15] + 99); in decode_display_parameters()
194 info->aspect_ratio = 100.0 / (edid[0x16] + 99); in decode_display_parameters()
195 info->aspect_ratio = 1/info->aspect_ratio; /* portrait */ in decode_display_parameters()
641 if (info->aspect_ratio > 0) in dump_monitor_info()
642 printf ("Aspect Ratio: %f\n", info->aspect_ratio); in dump_monitor_info()
Dedid.h125 double aspect_ratio; /* -1.0 if not specififed */ member
/third_party/flutter/engine/flutter/lib/ui/painting/
Dimage_decoder.cc43 const auto aspect_ratio = in GetResizedDimensions() local
48 target_width.value() / aspect_ratio); in GetResizedDimensions()
52 return SkISize::Make(target_height.value() * aspect_ratio, in GetResizedDimensions()
/third_party/ffmpeg/libavformat/
Dmxfenc.c92 AVRational aspect_ratio; ///< display aspect ratio member
1267 avio_wb32(pb, sc->aspect_ratio.num); in mxf_write_cdci_common()
1268 avio_wb32(pb, sc->aspect_ratio.den); in mxf_write_cdci_common()
2105 av_reduce(&sc->aspect_ratio.num, &sc->aspect_ratio.den, in mxf_parse_dnxhd_frame()
2109 sc->aspect_ratio = (AVRational){ 16, 9 }; in mxf_parse_dnxhd_frame()
2164 sc->aspect_ratio = (AVRational){ 16, 9 }; in mxf_parse_dv_frame()
2166 sc->aspect_ratio = (AVRational){ 4, 3 }; in mxf_parse_dv_frame()
2271 sc->aspect_ratio.num = st->codecpar->width * sps->sar.num; in mxf_parse_h264_frame()
2272 sc->aspect_ratio.den = st->codecpar->height * sps->sar.den; in mxf_parse_h264_frame()
2273 av_reduce(&sc->aspect_ratio.num, &sc->aspect_ratio.den, in mxf_parse_h264_frame()
[all …]
Dasfdec_o.c91 AVRational aspect_ratio; member
561 asf->asf_sd[st_num].aspect_ratio.num = value; in asf_store_aspect_ratio()
563 asf->asf_sd[st_num].aspect_ratio.den = value; in asf_store_aspect_ratio()
1763 if (asf->asf_sd[i].aspect_ratio.num > 0 && asf->asf_sd[i].aspect_ratio.den > 0) { in asf_read_header()
1764 st->sample_aspect_ratio.num = asf->asf_sd[i].aspect_ratio.num; in asf_read_header()
1765 st->sample_aspect_ratio.den = asf->asf_sd[i].aspect_ratio.den; in asf_read_header()
Dmxfdec.c191 AVRational aspect_ratio; member
1227 descriptor->aspect_ratio.num = avio_rb32(pb); in mxf_read_generic_descriptor()
1228 descriptor->aspect_ratio.den = avio_rb32(pb); in mxf_read_generic_descriptor()
2607 if (descriptor->aspect_ratio.num && descriptor->aspect_ratio.den) in mxf_parse_structural_metadata()
2608 st->internal->display_aspect_ratio = descriptor->aspect_ratio; in mxf_parse_structural_metadata()
/third_party/gstreamer/gstplugins_bad/gst/videoparsers/
Dgstvideoparseutils.c276 afd.aspect_ratio = GST_VIDEO_AFD_ASPECT_RATIO_UNDEFINED; in gst_video_push_user_data()
420 afd->aspect_ratio = (GstVideoAFDAspectRatio) (((data >> 2) & 1) + 1); in gst_video_parse_utils_parse_afd()
Dgstvideoparseutils.h108 GstVideoAFDAspectRatio aspect_ratio; member
Dgstvc1parse.c2147 if (vc1parse->seq_hdr.advanced.aspect_ratio == 15) { 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()
2152 par_d = aspect_ratios[vc1parse->seq_hdr.advanced.aspect_ratio].par_d; in gst_vc1_parse_handle_seq_hdr()
/third_party/ffmpeg/libavcodec/
Dmpeg12enc.c250 AVRational aspect_ratio = s->avctx->sample_aspect_ratio; in mpeg1_encode_sequence_header() local
252 if (aspect_ratio.num == 0 || aspect_ratio.den == 0) in mpeg1_encode_sequence_header()
253 aspect_ratio = (AVRational){1,1}; // pixel aspect 1.1 (VGA) in mpeg1_encode_sequence_header()
265 int64_t error = aspect_ratio.num * (1LL<<32) / aspect_ratio.den; in mpeg1_encode_sequence_header()
Dav1dec.c601 AVRational aspect_ratio; in update_context_with_frame_header() local
614 av_reduce(&aspect_ratio.num, &aspect_ratio.den, in update_context_with_frame_header()
619 if (av_cmp_q(avctx->sample_aspect_ratio, aspect_ratio)) { in update_context_with_frame_header()
620 ret = ff_set_sar(avctx, aspect_ratio); in update_context_with_frame_header()
Dcavs.h178 int aspect_ratio; member
Dcrystalhd.c164 output->PicInfo.aspect_ratio); in print_frame_info()
579 switch ( output.PicInfo.aspect_ratio ) { in receive_frame()
Dcavsdec.c1193 h->aspect_ratio = get_bits(&h->gb, 4); in decode_seq_header()
/third_party/flutter/glfw/examples/
Dheightmap.c81 static GLfloat aspect_ratio = 4.0f/3.0f; variable
452 projection_matrix[0] = f / aspect_ratio; in main()
Dparticles.c82 float aspect_ratio; variable
797 aspect_ratio, in draw_scene()
864 aspect_ratio = height ? width / (float) height : 1.f; in resize_callback()
/third_party/gstreamer/gstplugins_bad/ext/mpeg2enc/
Dgstmpeg2encoptions.cc549 g_value_set_enum (value, aspect_ratio); in getProperty()
676 aspect_ratio = g_value_get_enum (value); in setProperty()
/third_party/gstreamer/gstplugins_bad/gst/mxf/
Dmxfmetadata.c4440 if (!mxf_fraction_parse (&self->aspect_ratio, tag_data, tag_size)) in mxf_metadata_generic_picture_essence_descriptor_handle_tag()
4442 GST_DEBUG (" aspect ratio = %d/%d", self->aspect_ratio.n, in mxf_metadata_generic_picture_essence_descriptor_handle_tag()
4443 self->aspect_ratio.d); in mxf_metadata_generic_picture_essence_descriptor_handle_tag()
4600 if (self->aspect_ratio.n != 0 && self->aspect_ratio.d != 0) in mxf_metadata_generic_picture_essence_descriptor_to_structure()
4602 self->aspect_ratio.n, self->aspect_ratio.d, NULL); in mxf_metadata_generic_picture_essence_descriptor_to_structure()
4812 GST_WRITE_UINT32_BE (t->data, self->aspect_ratio.n); in mxf_metadata_generic_picture_essence_descriptor_write_tags()
4813 GST_WRITE_UINT32_BE (t->data + 4, self->aspect_ratio.d); in mxf_metadata_generic_picture_essence_descriptor_write_tags()
5002 if (self->aspect_ratio.n == 0 && self->aspect_ratio.d == 0) { in mxf_metadata_generic_picture_essence_descriptor_set_caps()
5005 } else if (self->aspect_ratio.n == 0 || self->aspect_ratio.d == 0) { in mxf_metadata_generic_picture_essence_descriptor_set_caps()
5008 par_n = height * self->aspect_ratio.n; in mxf_metadata_generic_picture_essence_descriptor_set_caps()
[all …]
Dmxfmetadata.h660 MXFFraction aspect_ratio; member
/third_party/ffmpeg/fftools/
Dffplay.c867 AVRational aspect_ratio = pic_sar; in calculate_display_rect() local
870 if (av_cmp_q(aspect_ratio, av_make_q(0, 1)) <= 0) in calculate_display_rect()
871 aspect_ratio = av_make_q(1, 1); in calculate_display_rect()
873 aspect_ratio = av_mul_q(aspect_ratio, av_make_q(pic_width, pic_height)); in calculate_display_rect()
877 width = av_rescale(height, aspect_ratio.num, aspect_ratio.den) & ~1; in calculate_display_rect()
880 height = av_rescale(width, aspect_ratio.den, aspect_ratio.num) & ~1; in calculate_display_rect()
/third_party/gstreamer/gstplugins_bad/gst-libs/gst/codecparsers/
Dgstvc1parser.c844 READ_UINT8 (br, advanced->aspect_ratio, 4); in parse_sequence_header_advanced()
846 if (advanced->aspect_ratio == 15) { in parse_sequence_header_advanced()
855 advanced->par_n = aspect_ratios[advanced->aspect_ratio].par_n; in parse_sequence_header_advanced()
856 advanced->par_d = aspect_ratios[advanced->aspect_ratio].par_d; in parse_sequence_header_advanced()
Dgstvc1parser.h229 guint8 aspect_ratio; member
/third_party/flutter/flutter/packages/flutter/lib/src/material/
Dicons.dart272 /// <i class="material-icons md-36">aspect_ratio</i> &#x2014; material icon named "aspect ratio".
273 static const IconData aspect_ratio = IconData(0xe85b, fontFamily: 'MaterialIcons');
/third_party/skia/third_party/externals/libpng/
Dlibpng-manual.txt1639 aspect_ratio = png_get_pixel_aspect_ratio(png_ptr,

12