p/videojoiner/VideoJoiner.cpp
///************************Funcion para crear un rectangulo de los puntos dados
Funcion para crear un rectangulo de los puntos dados
Funcion para crear un rectangulo de los puntos dados
void CreateRectFromPoints(void)
{
	int left_boundary, right_boundary, top_boundary, bottom_boundary;
	left_boundary = PMIN(yp.joiner_parms["video_top_left_x"],yp.joiner_parms["video_bottom_left_x"]);
	right_boundary = PMAX(yp.joiner_parms["video_top_right_x"],yp.joiner_parms["video_bottom_right_x"]);
	top_boundary = PMIN(yp.joiner_parms["video_top_left_y"],yp.joiner_parms["video_top_right_y"]);
	bottom_boundary = PMAX(yp.joiner_parms["video_bottom_left_y"],yp.joiner_parms["video_bottom_right_y"]);			
	yp.joiner_parms["video_top_left_x"]=left_boundary;
	yp.joiner_parms["video_bottom_left_x"]=left_boundary;	
	yp.joiner_parms["video_top_left_y"]=top_boundary;		
	yp.joiner_parms["video_top_right_x"]=right_boundary;
	yp.joiner_parms["video_top_right_y"]=top_boundary;
	yp.joiner_parms["video_bottom_left_y"]=bottom_boundary;
	yp.joiner_parms["video_bottom_right_x"]=right_boundary;
	yp.joiner_parms["video_bottom_right_y"]=bottom_boundary;
}
void CreateRectFromPoints ( void ) { int left_boundary , right_boundary , top_boundary , bottom_boundary ; left_boundary = PMIN ( yp . joiner_parms [ " " ] , yp . joiner_parms [ " " ] ) ; right_boundary = PMAX ( yp . joiner_parms [ " " ] , yp . joiner_parms [ " " ] ) ; top_boundary = PMIN ( yp . joiner_parms [ " " ] , yp . joiner_parms [ " " ] ) ; bottom_boundary = PMAX ( yp . joiner_parms [ " " ] , yp . joiner_parms [ " " ] ) ; yp . joiner_parms [ " " ] = left_boundary ; yp . joiner_parms [ " " ] = left_boundary ; yp . joiner_parms [ " " ] = top_boundary ; yp . joiner_parms [ " " ] = right_boundary ; yp . joiner_parms [ " " ] = top_boundary ; yp . joiner_parms [ " " ] = bottom_boundary ; yp . joiner_parms [ " " ] = right_boundary ; yp . joiner_parms [ " " ] = bottom_boundary ; }
Funcion para crear un rectangulo de los puntos dados
Funcion para crear un rectangulo de los puntos dados
///Crear un rectangulo con las coordenadas mas externas