From 5ed0a13987eedf9de544b92efac68138fe6993ab Mon Sep 17 00:00:00 2001 From: jstebbins Date: Tue, 24 Jun 2014 22:06:06 +0000 Subject: LinGui: cleanup use hb_set_anamorphic_size2 instead of hb_set_anamorphic_size simplify preview generation code. git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@6220 b64f7644-9d1e-0410-96f1-a4d463321fa5 --- gtk/src/hb-backend.h | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'gtk/src/hb-backend.h') diff --git a/gtk/src/hb-backend.h b/gtk/src/hb-backend.h index 823edb5d8..4d946fc0d 100644 --- a/gtk/src/hb-backend.h +++ b/gtk/src/hb-backend.h @@ -57,6 +57,10 @@ typedef struct ghb_instance_status_t queue; } ghb_status_t; +#define MOD_ROUND(v,m) ((m==1)?v:(m * ((v + (m>>1)) / m))) +#define MOD_DOWN(v,m) (m * (v / m)) +#define MOD_UP(v,m) (m * ((v + m - 1) / m)) + #define GHB_PIC_KEEP_WIDTH 0x01 #define GHB_PIC_KEEP_HEIGHT 0x02 #define GHB_PIC_KEEP_DISPLAY_WIDTH 0x04 -- cgit v1.2.3