/third_party/ffmpeg/libavfilter/ |
D | vf_aspect.c | 73 frame->sample_aspect_ratio = s->sar; in filter_frame() 100 var_values[VAR_SAR] = inlink->sample_aspect_ratio.num ? in get_aspect_ratio() 101 (double) inlink->sample_aspect_ratio.num / inlink->sample_aspect_ratio.den : 1; in get_aspect_ratio() 137 AVRational old_sar = inlink->sample_aspect_ratio; in setdar_config_props() 147 outlink->sample_aspect_ratio = s->sar; in setdar_config_props() 150 outlink->sample_aspect_ratio = (AVRational){ 1, 1 }; in setdar_config_props() 157 dar.num, dar.den, outlink->sample_aspect_ratio.num, outlink->sample_aspect_ratio.den); in setdar_config_props() 207 AVRational old_sar = inlink->sample_aspect_ratio; in setsar_config_props() 214 outlink->sample_aspect_ratio = s->sar; in setsar_config_props() 220 outlink->sample_aspect_ratio.num, outlink->sample_aspect_ratio.den, dar.num, dar.den); in setsar_config_props()
|
D | vf_scale.c | 429 scale->var_values[VAR_SAR] = inlink->sample_aspect_ratio.num ? in scale_eval_dimensions() 430 (double) inlink->sample_aspect_ratio.num / inlink->sample_aspect_ratio.den : 1; in scale_eval_dimensions() 441 scale->var_values[VAR_S2R_MAIN_SAR] = main_link->sample_aspect_ratio.num ? in scale_eval_dimensions() 442 (double) main_link->sample_aspect_ratio.num / main_link->sample_aspect_ratio.den : 1; in scale_eval_dimensions() 587 if (inlink0->sample_aspect_ratio.num){ in config_props() 588 …outlink->sample_aspect_ratio = av_mul_q((AVRational){outlink->h * inlink0->w, outlink->w * inlink0… in config_props() 590 outlink->sample_aspect_ratio = inlink0->sample_aspect_ratio; in config_props() 594 inlink->sample_aspect_ratio.num, inlink->sample_aspect_ratio.den, in config_props() 596 outlink->sample_aspect_ratio.num, outlink->sample_aspect_ratio.den, in config_props() 610 outlink->sample_aspect_ratio = inlink->sample_aspect_ratio; in config_props_ref() [all …]
|
D | vf_transpose_opencl.c | 110 if (inlink->sample_aspect_ratio.num) in transpose_opencl_config_output() 111 outlink->sample_aspect_ratio = av_div_q((AVRational) { 1, 1 }, in transpose_opencl_config_output() 112 inlink->sample_aspect_ratio); in transpose_opencl_config_output() 114 outlink->sample_aspect_ratio = inlink->sample_aspect_ratio; in transpose_opencl_config_output() 164 if (input->sample_aspect_ratio.num == 0) { in transpose_opencl_filter_frame() 165 output->sample_aspect_ratio = input->sample_aspect_ratio; in transpose_opencl_filter_frame() 167 output->sample_aspect_ratio.num = input->sample_aspect_ratio.den; in transpose_opencl_filter_frame() 168 output->sample_aspect_ratio.den = input->sample_aspect_ratio.num; in transpose_opencl_filter_frame()
|
D | vf_scale_npp.c | 373 scale->var_values[VAR_SAR] = inlink->sample_aspect_ratio.num ? in nppscale_eval_dimensions() 374 (double)inlink->sample_aspect_ratio.num / inlink->sample_aspect_ratio.den : 1; in nppscale_eval_dimensions() 383 scale->var_values[VAR_S2R_MAIN_SAR] = main_link->sample_aspect_ratio.num ? in nppscale_eval_dimensions() 384 (double)main_link->sample_aspect_ratio.num / main_link->sample_aspect_ratio.den : 1; in nppscale_eval_dimensions() 657 if (inlink->sample_aspect_ratio.num) in config_props() 658 outlink->sample_aspect_ratio = av_mul_q((AVRational){outlink->h*inlink->w, in config_props() 660 inlink->sample_aspect_ratio); in config_props() 662 outlink->sample_aspect_ratio = inlink->sample_aspect_ratio; in config_props() 677 outlink->sample_aspect_ratio = inlink->sample_aspect_ratio; in config_props_ref() 783 in->sample_aspect_ratio.den != link->sample_aspect_ratio.den || in nppscale_scale() [all …]
|
D | f_interleave.c | 195 outlink->sample_aspect_ratio = inlink0->sample_aspect_ratio; in config_output() 203 outlink->sample_aspect_ratio.num != inlink->sample_aspect_ratio.num || in config_output() 204 outlink->sample_aspect_ratio.den != inlink->sample_aspect_ratio.den) { in config_output() 209 inlink->sample_aspect_ratio.num, in config_output() 210 inlink->sample_aspect_ratio.den, in config_output() 212 outlink->sample_aspect_ratio.num, in config_output() 213 outlink->sample_aspect_ratio.den); in config_output()
|
D | vf_transpose_vulkan.c | 242 if (in->sample_aspect_ratio.num) 243 out->sample_aspect_ratio = in->sample_aspect_ratio; 245 out->sample_aspect_ratio.num = in->sample_aspect_ratio.den; 246 out->sample_aspect_ratio.den = in->sample_aspect_ratio.num; 288 if (inlink->sample_aspect_ratio.num) 289 outlink->sample_aspect_ratio = av_div_q((AVRational) { 1, 1 }, 290 inlink->sample_aspect_ratio); 292 outlink->sample_aspect_ratio = inlink->sample_aspect_ratio;
|
D | avf_concat.c | 131 outlink->sample_aspect_ratio = inlink->sample_aspect_ratio; in config_output() 148 if (!outlink->sample_aspect_ratio.num) in config_output() 149 outlink->sample_aspect_ratio = inlink->sample_aspect_ratio; in config_output() 153 outlink->sample_aspect_ratio.num != inlink->sample_aspect_ratio.num && in config_output() 154 inlink->sample_aspect_ratio.num || in config_output() 155 outlink->sample_aspect_ratio.den != inlink->sample_aspect_ratio.den) { in config_output() 160 inlink->sample_aspect_ratio.num, in config_output() 161 inlink->sample_aspect_ratio.den, in config_output() 163 outlink->sample_aspect_ratio.num, in config_output() 164 outlink->sample_aspect_ratio.den); in config_output()
|
D | vf_transpose.c | 214 if (inlink->sample_aspect_ratio.num) in config_props_output() 215 outlink->sample_aspect_ratio = av_div_q((AVRational) { 1, 1 }, in config_props_output() 216 inlink->sample_aspect_ratio); in config_props_output() 218 outlink->sample_aspect_ratio = inlink->sample_aspect_ratio; in config_props_output() 351 if (in->sample_aspect_ratio.num == 0) { in filter_frame() 352 out->sample_aspect_ratio = in->sample_aspect_ratio; in filter_frame() 354 out->sample_aspect_ratio.num = in->sample_aspect_ratio.den; in filter_frame() 355 out->sample_aspect_ratio.den = in->sample_aspect_ratio.num; in filter_frame()
|
D | vf_mergeplanes.c | 199 outlink->sample_aspect_ratio = ctx->inputs[0]->sample_aspect_ratio; in config_output() 216 if (outlink->sample_aspect_ratio.num != inlink->sample_aspect_ratio.num || in config_output() 217 outlink->sample_aspect_ratio.den != inlink->sample_aspect_ratio.den) { in config_output() 221 inlink->sample_aspect_ratio.num, in config_output() 222 inlink->sample_aspect_ratio.den, in config_output() 224 outlink->sample_aspect_ratio.num, in config_output() 225 outlink->sample_aspect_ratio.den); in config_output()
|
D | vf_pad.c | 122 var_values[VAR_SAR] = inlink->sample_aspect_ratio.num ? in config_input() 123 (double) inlink->sample_aspect_ratio.num / inlink->sample_aspect_ratio.den : 1; in config_input() 151 adjusted_aspect = av_div_q(adjusted_aspect, inlink->sample_aspect_ratio); in config_input() 333 …|| in->sample_aspect_ratio.den != outlink->sample_aspect_ratio.den || in->sample_aspect_ratio.num … in filter_frame() 340 inlink->dst->inputs[0]->sample_aspect_ratio.den = in->sample_aspect_ratio.den; in filter_frame() 341 inlink->dst->inputs[0]->sample_aspect_ratio.num = in->sample_aspect_ratio.num; in filter_frame()
|
D | vf_scale_qsv.c | 474 var_values[VAR_SAR] = inlink->sample_aspect_ratio.num ? in qsvscale_config_props() 475 (double) inlink->sample_aspect_ratio.num / inlink->sample_aspect_ratio.den : 1; in qsvscale_config_props() 530 if (inlink->sample_aspect_ratio.num) in qsvscale_config_props() 531 outlink->sample_aspect_ratio = av_mul_q((AVRational){outlink->h*inlink->w, in qsvscale_config_props() 533 inlink->sample_aspect_ratio); in qsvscale_config_props() 535 outlink->sample_aspect_ratio = inlink->sample_aspect_ratio; in qsvscale_config_props() 598 av_reduce(&out->sample_aspect_ratio.num, &out->sample_aspect_ratio.den, in qsvscale_filter_frame() 599 (int64_t)in->sample_aspect_ratio.num * outlink->h * link->w, in qsvscale_filter_frame() 600 (int64_t)in->sample_aspect_ratio.den * outlink->w * link->h, in qsvscale_filter_frame()
|
D | vf_sharpen_npp.c | 141 if (inlink->sample_aspect_ratio.num) in nppsharpen_config_props() 142 outlink->sample_aspect_ratio = av_mul_q( in nppsharpen_config_props() 144 inlink->sample_aspect_ratio); in nppsharpen_config_props() 146 outlink->sample_aspect_ratio = inlink->sample_aspect_ratio; in nppsharpen_config_props()
|
D | vf_scale_vaapi.c | 92 if (inlink->sample_aspect_ratio.num) in scale_vaapi_config_output() 93 …outlink->sample_aspect_ratio = av_mul_q((AVRational){outlink->h * inlink->w, outlink->w * inlink->… in scale_vaapi_config_output() 95 outlink->sample_aspect_ratio = inlink->sample_aspect_ratio; in scale_vaapi_config_output()
|
D | vf_scale_cuda.c | 381 if (inlink->sample_aspect_ratio.num) { in cudascale_config_props() 382 outlink->sample_aspect_ratio = av_mul_q((AVRational){outlink->h*inlink->w, in cudascale_config_props() 384 inlink->sample_aspect_ratio); in cudascale_config_props() 386 outlink->sample_aspect_ratio = inlink->sample_aspect_ratio; in cudascale_config_props() 562 av_reduce(&out->sample_aspect_ratio.num, &out->sample_aspect_ratio.den, in cudascale_filter_frame() 563 (int64_t)in->sample_aspect_ratio.num * outlink->h * link->w, in cudascale_filter_frame() 564 (int64_t)in->sample_aspect_ratio.den * outlink->w * link->h, in cudascale_filter_frame()
|
/third_party/ffmpeg/tests/ref/fate/ |
D | mov-zombie | 3 …7|pkt_pos=11309|pkt_size=4133|width=160|height=240|pix_fmt=yuv420p|sample_aspect_ratio=2:1|pict_ty… 6 …67|pkt_pos=16519|pkt_size=355|width=160|height=240|pix_fmt=yuv420p|sample_aspect_ratio=2:1|pict_ty… 9 …7|pkt_pos=15442|pkt_size=1077|width=160|height=240|pix_fmt=yuv420p|sample_aspect_ratio=2:1|pict_ty… 12 …67|pkt_pos=17984|pkt_size=430|width=160|height=240|pix_fmt=yuv420p|sample_aspect_ratio=2:1|pict_ty… 15 …7|pkt_pos=16874|pkt_size=1110|width=160|height=240|pix_fmt=yuv420p|sample_aspect_ratio=2:1|pict_ty… 18 …7|pkt_pos=19899|pkt_size=1005|width=160|height=240|pix_fmt=yuv420p|sample_aspect_ratio=2:1|pict_ty… 21 …7|pkt_pos=18414|pkt_size=1485|width=160|height=240|pix_fmt=yuv420p|sample_aspect_ratio=2:1|pict_ty… 24 …67|pkt_pos=22880|pkt_size=904|width=160|height=240|pix_fmt=yuv420p|sample_aspect_ratio=2:1|pict_ty… 27 …7|pkt_pos=20904|pkt_size=1976|width=160|height=240|pix_fmt=yuv420p|sample_aspect_ratio=2:1|pict_ty… 30 …67|pkt_pos=25038|pkt_size=700|width=160|height=240|pix_fmt=yuv420p|sample_aspect_ratio=2:1|pict_ty… [all …]
|
D | h264-dts_5frames | 18 sample_aspect_ratio=1:1 48 sample_aspect_ratio=1:1 78 sample_aspect_ratio=1:1 108 sample_aspect_ratio=1:1 138 sample_aspect_ratio=1:1
|
D | ffprobe_json | 68 "sample_aspect_ratio": "1:1", 108 "sample_aspect_ratio": "1:1", 181 "sample_aspect_ratio": "1:1", 221 "sample_aspect_ratio": "1:1", 327 "sample_aspect_ratio": "1:1", 367 "sample_aspect_ratio": "1:1", 473 "sample_aspect_ratio": "1:1", 513 "sample_aspect_ratio": "1:1", 578 "sample_aspect_ratio": "1:1", 628 "sample_aspect_ratio": "1:1",
|
D | ffprobe_compact | 4 …00|pkt_pos=2744|pkt_size=230400|width=320|height=240|pix_fmt=rgb24|sample_aspect_ratio=1:1|pict_ty… 6 …0|pkt_pos=233165|pkt_size=30000|width=100|height=100|pix_fmt=rgb24|sample_aspect_ratio=1:1|pict_ty… 10 …|pkt_pos=265248|pkt_size=230400|width=320|height=240|pix_fmt=rgb24|sample_aspect_ratio=1:1|pict_ty… 12 …0|pkt_pos=495672|pkt_size=30000|width=100|height=100|pix_fmt=rgb24|sample_aspect_ratio=1:1|pict_ty… 18 …|pkt_pos=529826|pkt_size=230400|width=320|height=240|pix_fmt=rgb24|sample_aspect_ratio=1:1|pict_ty… 20 …0|pkt_pos=760250|pkt_size=30000|width=100|height=100|pix_fmt=rgb24|sample_aspect_ratio=1:1|pict_ty… 26 …|pkt_pos=793142|pkt_size=230400|width=320|height=240|pix_fmt=rgb24|sample_aspect_ratio=1:1|pict_ty… 28 …|pkt_pos=1023566|pkt_size=30000|width=100|height=100|pix_fmt=rgb24|sample_aspect_ratio=1:1|pict_ty… 30 …320|coded_height=240|closed_captions=0|film_grain=0|has_b_frames=0|sample_aspect_ratio=1:1|display… 31 …100|coded_height=100|closed_captions=0|film_grain=0|has_b_frames=0|sample_aspect_ratio=1:1|display…
|
D | ffprobe_ini | 65 sample_aspect_ratio=1\:1 108 sample_aspect_ratio=1\:1 183 sample_aspect_ratio=1\:1 226 sample_aspect_ratio=1\:1 333 sample_aspect_ratio=1\:1 376 sample_aspect_ratio=1\:1 483 sample_aspect_ratio=1\:1 526 sample_aspect_ratio=1\:1 603 sample_aspect_ratio=1\:1 667 sample_aspect_ratio=1\:1
|
D | ffprobe_default | 63 sample_aspect_ratio=1:1 106 sample_aspect_ratio=1:1 181 sample_aspect_ratio=1:1 224 sample_aspect_ratio=1:1 331 sample_aspect_ratio=1:1 374 sample_aspect_ratio=1:1 481 sample_aspect_ratio=1:1 524 sample_aspect_ratio=1:1 597 sample_aspect_ratio=1:1 657 sample_aspect_ratio=1:1
|
/third_party/ffmpeg/libavcodec/ |
D | crystalhd.c | 583 avctx->sample_aspect_ratio = (AVRational) { 1, 1}; in receive_frame() 586 avctx->sample_aspect_ratio = (AVRational) { 12, 11}; in receive_frame() 589 avctx->sample_aspect_ratio = (AVRational) { 10, 11}; in receive_frame() 592 avctx->sample_aspect_ratio = (AVRational) { 16, 11}; in receive_frame() 595 avctx->sample_aspect_ratio = (AVRational) { 40, 33}; in receive_frame() 598 avctx->sample_aspect_ratio = (AVRational) { 24, 11}; in receive_frame() 601 avctx->sample_aspect_ratio = (AVRational) { 20, 11}; in receive_frame() 604 avctx->sample_aspect_ratio = (AVRational) { 32, 11}; in receive_frame() 607 avctx->sample_aspect_ratio = (AVRational) { 80, 33}; in receive_frame() 610 avctx->sample_aspect_ratio = (AVRational) { 18, 11}; in receive_frame() [all …]
|
D | intelh263dec.c | 77 s->avctx->sample_aspect_ratio.num = 12; in ff_intel_h263_decode_picture_header() 78 s->avctx->sample_aspect_ratio.den = 11; in ff_intel_h263_decode_picture_header() 103 s->avctx->sample_aspect_ratio.num = get_bits(&s->gb, 8); // aspect ratio - width in ff_intel_h263_decode_picture_header() 104 s->avctx->sample_aspect_ratio.den = get_bits(&s->gb, 8); // aspect ratio - height in ff_intel_h263_decode_picture_header() 106 s->avctx->sample_aspect_ratio = ff_h263_pixel_aspect[ar]; in ff_intel_h263_decode_picture_header() 108 if (s->avctx->sample_aspect_ratio.num == 0) in ff_intel_h263_decode_picture_header()
|
D | libxvid.c | 778 if (avctx->sample_aspect_ratio.num < 0 || avctx->sample_aspect_ratio.num > 255 || in xvid_encode_frame() 779 avctx->sample_aspect_ratio.den < 0 || avctx->sample_aspect_ratio.den > 255) { in xvid_encode_frame() 782 avctx->sample_aspect_ratio.num, avctx->sample_aspect_ratio.den); in xvid_encode_frame() 783 av_reduce(&avctx->sample_aspect_ratio.num, &avctx->sample_aspect_ratio.den, in xvid_encode_frame() 784 avctx->sample_aspect_ratio.num, avctx->sample_aspect_ratio.den, 255); in xvid_encode_frame() 787 xvid_enc_frame.par_width = avctx->sample_aspect_ratio.num; in xvid_encode_frame() 788 xvid_enc_frame.par_height = avctx->sample_aspect_ratio.den; in xvid_encode_frame()
|
D | dpx.c | 247 avctx->sample_aspect_ratio.num = read32(&buf, endian); in decode_frame() 248 avctx->sample_aspect_ratio.den = read32(&buf, endian); in decode_frame() 249 if (avctx->sample_aspect_ratio.num > 0 && avctx->sample_aspect_ratio.den > 0) in decode_frame() 250 av_reduce(&avctx->sample_aspect_ratio.num, &avctx->sample_aspect_ratio.den, in decode_frame() 251 avctx->sample_aspect_ratio.num, avctx->sample_aspect_ratio.den, in decode_frame() 254 avctx->sample_aspect_ratio = (AVRational){ 0, 1 }; in decode_frame() 608 ff_set_sar(avctx, avctx->sample_aspect_ratio); in decode_frame()
|
D | mjpegenc_common.c | 172 if (avctx->sample_aspect_ratio.num > 0 && avctx->sample_aspect_ratio.den > 0) { in jpeg_put_comments() 173 AVRational sar = avctx->sample_aspect_ratio; in jpeg_put_comments() 176 …if (!av_reduce(&sar.num, &sar.den, avctx->sample_aspect_ratio.num, avctx->sample_aspect_ratio.den,… in jpeg_put_comments() 179 avctx->sample_aspect_ratio.num, in jpeg_put_comments() 180 avctx->sample_aspect_ratio.den); in jpeg_put_comments()
|