summaryrefslogtreecommitdiffstats
path: root/libhb/encx264.c
diff options
context:
space:
mode:
authorjbrjake <[email protected]>2009-08-01 14:09:02 +0000
committerjbrjake <[email protected]>2009-08-01 14:09:02 +0000
commitd55b8f438a3607993492e718a6cf2e7f255bb453 (patch)
treeffe3ef26a1a2fbe6610d3a85f17c1edb774d530b /libhb/encx264.c
parentc0642a767ce8fab4e4f4aaba19d72eee2220daf5 (diff)
- Bumps x264 to r1195-5d75a9b. x264 has new default settings: subme 6->7, bframes 0->3, 8x8dct 0->1, psnr 1->0, ssim 1->0, ref 1->3, mixed-refs 0->1, trellis 0->1, weightb 0->1
- Explicitly enables SSIM and PSNR metrics for all x264 encodes - MacGui: Updates Advanced tab for new x264 defaults - MacGui and CLI: Updates built-in presets to produce the same output given the new default x264 settings git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@2742 b64f7644-9d1e-0410-96f1-a4d463321fa5
Diffstat (limited to 'libhb/encx264.c')
-rw-r--r--libhb/encx264.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/libhb/encx264.c b/libhb/encx264.c
index 94523d353..5e3fbc03c 100644
--- a/libhb/encx264.c
+++ b/libhb/encx264.c
@@ -86,7 +86,11 @@ int encx264Init( hb_work_object_t * w, hb_job_t * job )
hb_get_tempory_filename( job->h, pv->filename, "x264.log" );
x264_param_default( &param );
-
+
+ /* Enable metrics */
+ param.analyse.b_psnr = 1;
+ param.analyse.b_ssim = 1;
+
param.i_threads = ( hb_get_cpu_count() * 3 / 2 );
param.i_width = job->width;
param.i_height = job->height;