Home
last modified time | relevance | path

Searched refs:sar (Results 1 - 25 of 123) sorted by relevance

12345

/third_party/ffmpeg/libavfilter/
H A Dvf_aspect.c45 "sar",
64 AVRational sar; member
73 frame->sample_aspect_ratio = s->sar; in filter_frame()
80 static inline void compute_dar(AVRational *dar, AVRational sar, int w, int h) in compute_dar() argument
82 if (sar.num && sar.den) { in compute_dar()
83 av_reduce(&dar->num, &dar->den, sar.num * (int64_t)w, sar.den * (int64_t)h, INT_MAX); in compute_dar()
144 av_reduce(&s->sar.num, &s->sar in setdar_config_props()
[all...]
H A Dvf_delogo.c100 int w, int h, AVRational sar, in apply_delogo()
152 weightl = (uint64_t) (logo_x2-x) * (y-logo_y1) * (logo_y2-y) * sar.den; in apply_delogo()
153 weightr = (uint64_t)(x-logo_x1) * (y-logo_y1) * (logo_y2-y) * sar.den; in apply_delogo()
154 weightt = (uint64_t)(x-logo_x1) * (logo_x2-x) * (logo_y2-y) * sar.num; in apply_delogo()
155 weightb = (uint64_t)(x-logo_x1) * (logo_x2-x) * (y-logo_y1) * sar.num; in apply_delogo()
298 AVRational sar; in filter_frame() local
347 sar = in->sample_aspect_ratio; in filter_frame()
349 if (!sar.num) in filter_frame()
350 sar.num = sar in filter_frame()
98 apply_delogo(uint8_t *dst, int dst_linesize, uint8_t *src, int src_linesize, int w, int h, AVRational sar, int logo_x, int logo_y, int logo_w, int logo_h, unsigned int band, int show, int direct) apply_delogo() argument
[all...]
H A Dvf_vignette.c286 AVRational sar = inlink->sample_aspect_ratio; in config_props() local
295 if (!sar.num || !sar.den) in config_props()
296 sar.num = sar.den = 1; in config_props()
297 if (sar.num > sar.den) { in config_props()
298 s->xscale = av_q2d(av_div_q(sar, s->aspect)); in config_props()
301 s->yscale = av_q2d(av_div_q(s->aspect, sar)); in config_props()
/third_party/ffmpeg/libavcodec/
H A Ddv_profile.c84 .sar = { { 8, 9 }, { 32, 27 } },
101 .sar = { { 16, 15 }, { 64, 45 } },
118 .sar = { { 16, 15 }, { 64, 45 } },
135 .sar = { { 8, 9 }, { 32, 27 } },
152 .sar = { { 16, 15 }, { 64, 45 } },
169 .sar = { { 1, 1 }, { 3, 2 } },
186 .sar = { { 1, 1 }, { 4, 3 } },
203 .sar = { { 1, 1 }, { 4, 3 } },
220 .sar = { { 1, 1 }, { 4, 3 } },
237 .sar
[all...]
H A Dmjpegenc_common.c173 AVRational sar = avctx->sample_aspect_ratio; in jpeg_put_comments() local
175 if (sar.num > 65535 || sar.den > 65535) { in jpeg_put_comments()
176 if (!av_reduce(&sar.num, &sar.den, avctx->sample_aspect_ratio.num, avctx->sample_aspect_ratio.den, 65535)) in jpeg_put_comments()
192 put_bits(p, 16, sar.num); in jpeg_put_comments()
193 put_bits(p, 16, sar.den); in jpeg_put_comments()
H A Dh264_ps.c143 sps->sar.num = get_bits(gb, 16); in decode_vui_parameters()
144 sps->sar.den = get_bits(gb, 16); in decode_vui_parameters()
146 sps->sar = ff_h264_pixel_aspect[aspect_ratio_idc]; in decode_vui_parameters()
152 sps->sar.num = in decode_vui_parameters()
153 sps->sar.den = 0; in decode_vui_parameters()
601 if (!sps->sar.den) in ff_h264_decode_seq_parameter_set()
602 sps->sar.den = 1; in ff_h264_decode_seq_parameter_set()
H A Dgif.c327 const AVRational sar = avctx->sample_aspect_ratio; in gif_image_write_image() local
330 if (sar.num > 0 && sar.den > 0) { in gif_image_write_image()
331 aspect = sar.num * 64LL / sar.den - 15; in gif_image_write_image()
H A Dv4l2_context.c68 struct AVRational sar = { 0, 1 }; in v4l2_get_sar() local
77 return sar; in v4l2_get_sar()
79 sar.num = cropcap.pixelaspect.numerator; in v4l2_get_sar()
80 sar.den = cropcap.pixelaspect.denominator; in v4l2_get_sar()
81 return sar; in v4l2_get_sar()
H A Ddv_profile.h48 AVRational sar[2]; /* sample aspect ratios for 4:3 and 16:9 */ member
H A Dutils.c105 int ff_set_sar(AVCodecContext *avctx, AVRational sar) in ff_set_sar() argument
107 int ret = av_image_check_sar(avctx->width, avctx->height, sar); in ff_set_sar()
111 sar.num, sar.den); in ff_set_sar()
115 avctx->sample_aspect_ratio = sar; in ff_set_sar()
H A Dvaapi_encode_mjpeg.c264 AVRational sar = pic->input_image->sample_aspect_ratio; in vaapi_encode_mjpeg_init_picture_params() local
275 av_reduce(&sar_w, &sar_h, sar.num, sar.den, 65535); in vaapi_encode_mjpeg_init_picture_params()
/third_party/ltp/testcases/kernel/hotplug/cpu_hotplug/functional/
H A Dcpuhotplug05.sh3 # Test Case 5 - sar
18 Desc: Does sar behave properly during CPU hotplug events?
64 tst_require_cmds sar
97 sar 1 0 >/dev/null 2>&1 &
99 # "sar 1 0" is supported before 'sysstat-8.1.4(include sar)',
100 # after that use "sar 1" instead of. Use 'ps -C sar' to check.
101 if ps -C sar >/dev/null 2>&1; then
102 pkill sar
[all...]
/third_party/ffmpeg/libavdevice/
H A Dxv.c138 AVRational sar = par->sample_aspect_ratio; in xv_write_header() local
141 if (sar.num) { in xv_write_header()
142 if (sar.num > sar.den) in xv_write_header()
143 xv->window_width = av_rescale(xv->window_width, sar.num, sar.den); in xv_write_header()
144 if (sar.num < sar.den) in xv_write_header()
145 xv->window_height = av_rescale(xv->window_height, sar.den, sar in xv_write_header()
229 AVRational sar, dar; /* sample and display aspect ratios */ compute_display_area() local
[all...]
H A Dsdl2.c99 AVRational sar, dar; /* sample and display aspect ratios */ in compute_texture_rect() local
106 sar = st->sample_aspect_ratio.num ? st->sample_aspect_ratio : (AVRational){ 1, 1 }; in compute_texture_rect()
107 dar = av_mul_q(sar, (AVRational){ codecpar->width, codecpar->height }); in compute_texture_rect()
122 if (sar.num > sar.den) { in compute_texture_rect()
/third_party/ffmpeg/libavutil/
H A Dimgutils.c323 int av_image_check_sar(unsigned int w, unsigned int h, AVRational sar) in av_image_check_sar() argument
327 if (sar.den <= 0 || sar.num < 0) in av_image_check_sar()
330 if (!sar.num || sar.num == sar.den) in av_image_check_sar()
333 if (sar.num < sar.den) in av_image_check_sar()
334 scaled_dim = av_rescale_rnd(w, sar.num, sar in av_image_check_sar()
[all...]
/third_party/ffmpeg/libavcodec/x86/
H A Dvc1dsp_mc.asm235 sar blockd, 3 ; >> 3
239 sar blockd, 7 ; >> 7
252 sar blockd, 3 ; >> 3
255 sar blockd, 7 ; >> 7
268 sar blockd, 1 ; >> 1
272 sar blockd, 7 ; >> 7
283 sar blockd, 1 ; >> 1
285 sar blockd, 5 ; >> 5
H A Dh264_weight.asm91 sar r2d, 1
128 sar r5d, 1
129 sar r6d, 1
130 sar off_regd, 1
209 sar r3, 1
267 sar r3, 1
H A Dcfhddsp.asm101 sar tempq, 3
105 sar tempq, 1
124 sar tempq, 3
128 sar tempq, 1
243 sar tempq, 3
247 sar tempq, 1
266 sar tempq, 3
270 sar tempq, 1
H A Dbswapdsp.asm36 sar r2d, 3
39 sar r2d, 1
/third_party/musl/src/thread/s390x/
H A D__set_thread_area.s6 sar %a1, %r2
8 sar %a0, %r2
/third_party/ffmpeg/libavformat/
H A Davc.c468 sps->sar.num = get_bits(&gb, 16); in ff_avc_decode_sps()
469 sps->sar.den = get_bits(&gb, 16); in ff_avc_decode_sps()
471 sps->sar = avc_sample_aspect_ratio[aspect_ratio_idc]; in ff_avc_decode_sps()
476 if (!sps->sar.den) { in ff_avc_decode_sps()
477 sps->sar.num = 1; in ff_avc_decode_sps()
478 sps->sar.den = 1; in ff_avc_decode_sps()
H A Davc.h78 AVRational sar; member
/third_party/ffmpeg/libavfilter/x86/
H A Dvf_eq.asm42 sar wd, 4
70 sar tmpd, 12
/third_party/musl/src/math/i386/
H A Dscalbn.s19 sar $31,%eax
H A Dscalbnf.s19 sar $31,%eax

Completed in 14 milliseconds

12345