comparison command.c @ 32664:6d08af681d54

Factorize ROUND() redefinitions macro.
author cboesch
date Mon, 03 Jan 2011 19:39:31 +0000
parents 0c5bb45690ea
children abcf963fbd2c
comparison
equal deleted inserted replaced
32663:83c490a2e9f3 32664:6d08af681d54
67 67
68 #include "mp_core.h" 68 #include "mp_core.h"
69 #include "mp_fifo.h" 69 #include "mp_fifo.h"
70 #include "libavutil/avstring.h" 70 #include "libavutil/avstring.h"
71 #include "edl.h" 71 #include "edl.h"
72
73 #define ROUND(x) ((int)((x)<0 ? (x)-0.5 : (x)+0.5))
74 72
75 static void rescale_input_coordinates(int ix, int iy, double *dx, double *dy) 73 static void rescale_input_coordinates(int ix, int iy, double *dx, double *dy)
76 { 74 {
77 //remove the borders, if any, and rescale to the range [0,1],[0,1] 75 //remove the borders, if any, and rescale to the range [0,1],[0,1]
78 if (vo_fs) { //we are in full-screen mode 76 if (vo_fs) { //we are in full-screen mode