Home
last modified time | relevance | path

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

/third_party/ffmpeg/libavfilter/
Dvf_aspect.c89 static int get_aspect_ratio(AVFilterLink *inlink, AVRational *aspect_ratio) in get_aspect_ratio() argument
111 ret = av_parse_ratio(aspect_ratio, s->ratio_expr, s->max, 0, ctx); in get_aspect_ratio()
113 *aspect_ratio = av_d2q(res, s->max); in get_aspect_ratio()
120 if (aspect_ratio->num < 0 || aspect_ratio->den <= 0) { in get_aspect_ratio()
/third_party/ffmpeg/libavcodec/
Davs2_parser.c72 unsigned aspect_ratio; in parse_avs2_seq_header() local
101 aspect_ratio = get_bits(&gb, 4); in parse_avs2_seq_header()
129 aspect_ratio, avctx->framerate.num, avctx->framerate.den, low_delay); in parse_avs2_seq_header()
Dmpeg12enc.c276 AVRational aspect_ratio = s->avctx->sample_aspect_ratio; in mpeg1_encode_sequence_header() local
282 if (aspect_ratio.num == 0 || aspect_ratio.den == 0) in mpeg1_encode_sequence_header()
283 aspect_ratio = (AVRational){1,1}; // pixel aspect 1.1 (VGA) in mpeg1_encode_sequence_header()
292 int64_t error = aspect_ratio.num * (1LL<<32) / aspect_ratio.den; in mpeg1_encode_sequence_header()
Dav1dec.c718 AVRational aspect_ratio; in update_context_with_frame_header() local
731 av_reduce(&aspect_ratio.num, &aspect_ratio.den, in update_context_with_frame_header()
736 if (av_cmp_q(avctx->sample_aspect_ratio, aspect_ratio)) { in update_context_with_frame_header()
737 ret = ff_set_sar(avctx, aspect_ratio); in update_context_with_frame_header()
Dcavs.h178 int aspect_ratio; member
Dcrystalhd.c170 output->PicInfo.aspect_ratio); in print_frame_info()
581 switch ( output.PicInfo.aspect_ratio ) { in receive_frame()
Dcavsdec.c1201 h->aspect_ratio = get_bits(&h->gb, 4); in decode_seq_header()
/third_party/ffmpeg/libavformat/
Dmxfenc.c91 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()
2100 av_reduce(&sc->aspect_ratio.num, &sc->aspect_ratio.den, in mxf_parse_dnxhd_frame()
2104 sc->aspect_ratio = (AVRational){ 16, 9 }; in mxf_parse_dnxhd_frame()
2159 sc->aspect_ratio = (AVRational){ 16, 9 }; in mxf_parse_dv_frame()
2161 sc->aspect_ratio = (AVRational){ 4, 3 }; in mxf_parse_dv_frame()
2266 sc->aspect_ratio.num = st->codecpar->width * sps->sar.num; in mxf_parse_h264_frame()
2267 sc->aspect_ratio.den = st->codecpar->height * sps->sar.den; in mxf_parse_h264_frame()
2268 av_reduce(&sc->aspect_ratio.num, &sc->aspect_ratio.den, in mxf_parse_h264_frame()
[all …]
Dasfdec_o.c87 AVRational aspect_ratio; member
453 asf->asf_sd[st_num].aspect_ratio.num = value; in asf_store_aspect_ratio()
455 asf->asf_sd[st_num].aspect_ratio.den = value; in asf_store_aspect_ratio()
1659 if (asf->asf_sd[i].aspect_ratio.num > 0 && asf->asf_sd[i].aspect_ratio.den > 0) { in asf_read_header()
1660 st->sample_aspect_ratio.num = asf->asf_sd[i].aspect_ratio.num; in asf_read_header()
1661 st->sample_aspect_ratio.den = asf->asf_sd[i].aspect_ratio.den; in asf_read_header()
Dmxfdec.c194 AVRational aspect_ratio; member
1337 descriptor->aspect_ratio.num = avio_rb32(pb); in mxf_read_generic_descriptor()
1338 descriptor->aspect_ratio.den = avio_rb32(pb); in mxf_read_generic_descriptor()
2901 if (descriptor->aspect_ratio.num && descriptor->aspect_ratio.den) in mxf_parse_structural_metadata()
2902 sti->display_aspect_ratio = descriptor->aspect_ratio; in mxf_parse_structural_metadata()
/third_party/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/ffmpeg/fftools/
Dffplay.c853 AVRational aspect_ratio = pic_sar; in calculate_display_rect() local
856 if (av_cmp_q(aspect_ratio, av_make_q(0, 1)) <= 0) in calculate_display_rect()
857 aspect_ratio = av_make_q(1, 1); in calculate_display_rect()
859 aspect_ratio = av_mul_q(aspect_ratio, av_make_q(pic_width, pic_height)); in calculate_display_rect()
863 width = av_rescale(height, aspect_ratio.num, aspect_ratio.den) & ~1; in calculate_display_rect()
866 height = av_rescale(width, aspect_ratio.den, aspect_ratio.num) & ~1; in calculate_display_rect()
/third_party/skia/third_party/externals/libpng/
Dlibpng-manual.txt1639 aspect_ratio = png_get_pixel_aspect_ratio(png_ptr,
/third_party/libbpf/.github/actions/build-selftests/
Dvmlinux.h61368 u32 aspect_ratio; member