/dports/multimedia/mpv/mpv-0.34.1/video/out/ |
H A D | aspect.c | 47 double f_w = fwidth / (double)MPMAX(fheight, 1); in aspect_calc_panscan() 52 f_h = fheight / (double)MPMAX(fwidth, 1); in aspect_calc_panscan() 70 *start = MPMAX(0, *start); in clamp_size() 124 out[1] = MPMAX(0, size - 1); in calc_margin() 144 window_w = MPMAX(1, window_w); in mp_get_src_dst_rects() 145 window_h = MPMAX(1, window_h); in mp_get_src_dst_rects()
|
H A D | bitmap_packer.c | 117 maxy = MPMAX(maxy, bottom); in pack_rectangles() 119 *used_width = MPMAX(*used_width, s.x); in pack_rectangles() 145 xmax = MPMAX(xmax, in[i].x); in packer_pack() 146 ymax = MPMAX(ymax, in[i].y); in packer_pack() 189 packer->asize = MPMAX(packer->asize * 2, size); in packer_set_size()
|
H A D | vo_wlshm.c | 241 src_rc.x0 = MP_ALIGN_DOWN(p->src.x0, MPMAX(src->fmt.align_x, 4)); in draw_image() 242 src_rc.y0 = MP_ALIGN_DOWN(p->src.y0, MPMAX(src->fmt.align_y, 4)); in draw_image() 245 dst_rc.x0 = MP_ALIGN_DOWN(p->dst.x0, MPMAX(dst.fmt.align_x, 4)); in draw_image() 246 dst_rc.y0 = MP_ALIGN_DOWN(p->dst.y0, MPMAX(dst.fmt.align_y, 4)); in draw_image()
|
H A D | vo_vdpau.c | 244 disp = MPMAX(1, disp); in s_size() 245 return MPMIN(max, MPMAX(s, disp)); in s_size() 772 vc->vsync_interval = MPMAX(vc->vsync_interval, 1); in flip_page() 820 if (now > PREV_VSYNC(MPMAX(pts, vc->last_queue_time + vc->vsync_interval))) in flip_page() 847 pts = MPMAX(pts, vc->last_queue_time + vc->vsync_interval); in flip_page() 848 pts = MPMAX(pts, now); in flip_page() 854 pts = MPMAX(pts, now); in flip_page() 855 pts = MPMAX(pts, vsync + (vc->vsync_interval >> 2)); in flip_page()
|
/dports/multimedia/mpv/mpv-0.34.1/common/ |
H A D | common.c | 101 rc->x1 = MPMAX(rc->x1, rc2->x1); in mp_rect_union() 102 rc->y1 = MPMAX(rc->y1, rc2->y1); in mp_rect_union() 115 rc->x0 = MPMAX(rc->x0, rc2->x0); in mp_rect_intersection() 116 rc->y0 = MPMAX(rc->y0, rc2->y0); in mp_rect_intersection()
|
H A D | common.h | 36 #define MPMAX(a, b) ((a) > (b) ? (a) : (b)) macro 53 #define MP_PTS_MAX(a, b) MPMAX(MP_PTS_OR_DEF(a, b), MP_PTS_OR_DEF(b, a))
|
H A D | msg.c | 141 log->level = MPMAX(log->level, buffer_level); in update_loglevel() 144 log->level = MPMAX(log->level, MSGL_DEBUG); in update_loglevel() 146 log->level = MPMAX(log->level, MSGL_STATS); in update_loglevel() 200 size_t clear_lines = MPMIN(MPMAX(new_lines, old_lines), root->blank_lines); in prepare_status_line() 212 root->blank_lines = MPMAX(root->blank_lines, new_lines); in prepare_status_line() 350 buffer_level = MPMAX(log->terminal_level, MSGL_DEBUG); in write_msg_to_buffers()
|
H A D | playlist.c | 56 start = MPMAX(start, 0); in playlist_update_indexes() 137 MPMAX(index + 1, old_index + 1)); in playlist_move()
|
/dports/multimedia/mpv/mpv-0.34.1/video/out/placebo/ |
H A D | ra_pl.c | 349 plsrc.x0 = MPMIN(MPMAX(src_rc->x0, 0), src->params.w); in blit_pl() 350 plsrc.y0 = MPMIN(MPMAX(src_rc->y0, 0), src->params.h); in blit_pl() 351 plsrc.x1 = MPMIN(MPMAX(src_rc->x1, 0), src->params.w); in blit_pl() 352 plsrc.y1 = MPMIN(MPMAX(src_rc->y1, 0), src->params.h); in blit_pl() 356 pldst.x0 = MPMIN(MPMAX(dst_rc->x0, 0), dst->params.w); in blit_pl() 357 pldst.y0 = MPMIN(MPMAX(dst_rc->y0, 0), dst->params.h); in blit_pl() 358 pldst.x1 = MPMIN(MPMAX(dst_rc->x1, 0), dst->params.w); in blit_pl() 359 pldst.y1 = MPMIN(MPMAX(dst_rc->y1, 0), dst->params.h); in blit_pl()
|
/dports/multimedia/mpv/mpv-0.34.1/sub/ |
H A D | img_convert.c | 55 bb.x1 = MPMAX(bb.x1, p->x + p->dw); in mp_sub_bitmaps_bb() 56 bb.y1 = MPMAX(bb.y1, p->y + p->dh); in mp_sub_bitmaps_bb()
|
H A D | sd_lavc.c | 255 sub->src_w = MPMAX(sub->src_w, b->x + b->w); in read_sub_bitmaps() 256 sub->src_h = MPMAX(sub->src_h, b->y + b->h); in read_sub_bitmaps() 458 w = MPMAX(priv->video_params.w, current->src_w); in get_bitmaps() 459 h = MPMAX(priv->video_params.h, current->src_h); in get_bitmaps() 474 sub->y = MPMAX(sub->y - offset, 0); in get_bitmaps()
|
H A D | ass_mp.c | 410 rc[2] = MPMAX(rc[2], img->dst_x + img->w); in mp_ass_get_bb() 411 rc[3] = MPMAX(rc[3], img->dst_y + img->h); in mp_ass_get_bb() 414 double scale = track->PlayResY / (double)MPMAX(res->h, 1); in mp_ass_get_bb()
|
/dports/multimedia/mpv/mpv-0.34.1/player/ |
H A D | playloop.c | 330 hr_seek_offset = MPMAX(hr_seek_offset, 0.5); // arbitrary in mp_seek() 335 hr_seek_offset = MPMAX(hr_seek_offset, -offset); in mp_seek() 443 seek->exact = MPMAX(seek->exact, exact); in queue_seek() 511 res += MPMAX(mpctx->demuxer->duration, 0); in get_start_time() 550 if (endpos > MPMAX(0, len)) in get_current_pos_ratio() 551 endpos = MPMAX(0, len); in get_current_pos_ratio() 567 ans = MPMAX(ans, 1.0 - in get_current_pos_ratio() 590 return MPMAX(mpctx->last_chapter_seek, i - 1); in get_current_chapter()
|
H A D | video.c | 824 double adjusted_duration = MPMAX(0, mpctx->past_frames[0].approx_duration); in handle_display_sync_frame() 843 int num_vsyncs = MPMAX(lrint(ratio), 0); in handle_display_sync_frame() 995 MP_STATS(mpctx, "value %f frame-duration", MPMAX(0, duration)); in calculate_frame_duration() 996 MP_STATS(mpctx, "value %f frame-duration-approx", MPMAX(0, approx_duration)); in calculate_frame_duration() 1149 double time_frame = MPMAX(mpctx->time_frame, -1); in write_video()
|
/dports/multimedia/mpv/mpv-0.34.1/video/ |
H A D | img_format.c | 235 desc->num_planes = MPMAX(desc->num_planes, d->plane + 1); in fill_pixdesc_layout() 266 int word = mp_round_next_power_of_2(MPMAX(d->depth + shift, 8)); in fill_pixdesc_layout() 536 desc->num_planes = MPMAX(desc->num_planes, cd->plane + 1); in get_native_desc() 538 MPMAX(desc->bpp[cd->plane], MP_ALIGN_UP(cd->offset + cd->size, 8)); in get_native_desc() 742 res.num_planes = MPMAX(res.num_planes, comp->plane + 1); in mp_get_regular_imgfmt()
|
/dports/multimedia/mpv/mpv-0.34.1/misc/ |
H A D | bstr.c | 159 start = MPMAX(start, 0); in bstr_splice() 160 end = MPMAX(end, start); in bstr_splice() 393 size = vsnprintf(dest, MPMAX(avail, 1), fmt, copy); in bstr_xappend_vasprintf()
|
/dports/lang/huc/huc-3.21/src/huc/ |
H A D | preproc.c | 408 if (mptr >= MPMAX) in cpp() 419 if (mptr < MPMAX) in keepch()
|
H A D | defs.h | 240 #define MPMAX LINEMAX macro
|
/dports/multimedia/mpv/mpv-0.34.1/audio/filter/ |
H A D | af_scaletempo2_internals.c | 398 int lim_low = MPMAX(0, optimal_index - search_decimation); in compute_optimal_index() 468 return MPMAX(0, MPMAX( in frames_needed() 792 resize_input_buffer(p, 4 * MPMAX(p->ola_window_size, p->search_block_size)); in mp_scaletempo2_init()
|
/dports/multimedia/mpv/mpv-0.34.1/video/out/opengl/ |
H A D | hwdec_rpi.c | 209 input->buffer_num = MPMAX(input->buffer_num_min, in enable_renderer() 211 input->buffer_size = MPMAX(input->buffer_size_min, in enable_renderer()
|
/dports/multimedia/mpv/mpv-0.34.1/audio/ |
H A D | aframe.c | 340 frame->av_frame->nb_samples = MPMAX(samples, 0); in mp_aframe_set_size() 584 int plane_size = MP_ALIGN_UP(sstride * MPMAX(samples, 1), 32); in mp_aframe_approx_byte_size() 613 int align_samples = MP_ALIGN_UP(MPMAX(samples, 1), 32); in mp_aframe_pool_allocate()
|
/dports/multimedia/mpv/mpv-0.34.1/audio/out/ |
H A D | buffer.c | 274 driver_delay = MPMAX(0, (end - now) / (1000.0 * 1000.0)); in ao_get_delay() 431 struct timespec ts = mp_rel_time_to_timespec(MPMAX(delay, 0) + 0.25); in ao_drain() 550 samples = MPMAX(1, samples); in realloc_buf()
|
/dports/multimedia/mpv/mpv-0.34.1/video/out/gpu/ |
H A D | error_diffusion.c | 41 ret = MPMAX(ret, shifted_x); in compute_rightmost_shifted_column()
|
H A D | osd.c | 141 osd->w = MPMAX(32, req_w); in upload_osd() 142 osd->h = MPMAX(32, req_h); in upload_osd()
|
/dports/multimedia/mpv/mpv-0.34.1/filters/ |
H A D | f_swresample.c | 196 cutoff = MPMAX(1.0 - 6.5 / (p->opts->filter_size + 8), 0.80); in configure_lavrr() 596 int mult = INT_MAX / 2 / MPMAX(MPMAX(abs(r.num), abs(r.den)), 1); in process()
|