From d60380e61ec922484e9c5614592884dbf351970d Mon Sep 17 00:00:00 2001 From: jbrjake Date: Tue, 13 May 2008 14:55:56 +0000 Subject: Allow the user to directly set a pixel aspect height and width, instead of using the autodetection in strict and loose anamorphic. This allows rescaling 1:1 PAR material to be anamorphic. To use in an interface, simply set job->pixel_ratio to 3, job->height and job->width to the desired output size, and job->pixel_aspect_height and job->pixel_aspect_width to the desired PAR. For now this is only for really advanced users who know what numbers they want for those values. Controlled through the CLI as optional arguments to -P. git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@1459 b64f7644-9d1e-0410-96f1-a4d463321fa5 --- libhb/scan.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'libhb') diff --git a/libhb/scan.c b/libhb/scan.c index b139e5e4c..1fe3353ed 100644 --- a/libhb/scan.c +++ b/libhb/scan.c @@ -176,12 +176,12 @@ static void ScanFunc( void * _data ) /* Autocrop by default. Gnark gnark */ memcpy( job->crop, title->crop, 4 * sizeof( int ) ); - if( title->aspect == 16 ) + if( title->aspect == 16 && !job->pixel_aspect_width && !job->pixel_aspect_height) { hb_reduce( &job->pixel_aspect_width, &job->pixel_aspect_height, 16 * title->height, 9 * title->width ); } - else + else if( !job->pixel_aspect_width && !job->pixel_aspect_height ) { hb_reduce( &job->pixel_aspect_width, &job->pixel_aspect_height, 4 * title->height, 3 * title->width ); -- cgit v1.2.3