summaryrefslogtreecommitdiffstats
path: root/libhb/common.h
diff options
context:
space:
mode:
authorjbrjake <[email protected]>2007-10-16 19:00:41 +0000
committerjbrjake <[email protected]>2007-10-16 19:00:41 +0000
commitc832b1edbbff5692fdc6b55ec245e013d1b1dce9 (patch)
tree25ab3d8313fad66b1fb3284eebbfca0ab7649740 /libhb/common.h
parent3a86ddf273f92ad057e40f4b6f08545d3cef86a4 (diff)
"Loose" anamorphic:
- Scales the storage frame size to arbitrary widths, like 640 for the iPod. - Uses dimensions that divide cleanly by an arbitrary number (default: 16) and adjusts the SAR to match - Uses ITU PAR values when the video is meant to be overscanned ( 7+ pixels cropped on left+right) git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@1029 b64f7644-9d1e-0410-96f1-a4d463321fa5
Diffstat (limited to 'libhb/common.h')
-rw-r--r--libhb/common.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/libhb/common.h b/libhb/common.h
index e71959142..1cf6cdb59 100644
--- a/libhb/common.h
+++ b/libhb/common.h
@@ -27,6 +27,7 @@
#define EVEN( a ) ( (a) + ( (a) & 1 ) )
#define MULTIPLE_16( a ) ( 16 * ( ( (a) + 8 ) / 16 ) )
+#define MULTIPLE_MOD( a, b ) ( b * ( ( (a) + (b / 2) ) / b ) )
#define HB_DVD_READ_BUFFER_SIZE 2048
@@ -139,6 +140,7 @@ struct hb_job_s
int pixel_ratio;
int pixel_aspect_width;
int pixel_aspect_height;
+ int modulus;
int maxWidth;
int maxHeight;