diff options
author | jstebbins <[email protected]> | 2014-06-24 22:06:06 +0000 |
---|---|---|
committer | jstebbins <[email protected]> | 2014-06-24 22:06:06 +0000 |
commit | 5ed0a13987eedf9de544b92efac68138fe6993ab (patch) | |
tree | c50c4a4bf76c03b67ee44957a204019fe8f9470c /gtk/src/hb-backend.h | |
parent | 4d3c5fb78b5af7ec54149cf82a2d1e9980e85179 (diff) |
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
Diffstat (limited to 'gtk/src/hb-backend.h')
-rw-r--r-- | gtk/src/hb-backend.h | 4 |
1 files changed, 4 insertions, 0 deletions
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 |