diff options
author | jstebbins <[email protected]> | 2014-12-16 16:50:50 +0000 |
---|---|---|
committer | jstebbins <[email protected]> | 2014-12-16 16:50:50 +0000 |
commit | f56efd7b52c89da8cac55b4d4a187f2c87fdfee6 (patch) | |
tree | 24eacb856704fa8e4b8b8f0edc76568916f70255 /macosx/HBPreviewController.m | |
parent | d0a975e42dcab93e1d2eead350fb1ba3951d977c (diff) |
json: add json APIs
There are several changes to job and title structs that break
current windows interop code. The interop code should be changed
such that it only uses json APIs. So if there is any missing
features (or bugs) in these APIs, please let me know.
git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@6602 b64f7644-9d1e-0410-96f1-a4d463321fa5
Diffstat (limited to 'macosx/HBPreviewController.m')
-rw-r--r-- | macosx/HBPreviewController.m | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/macosx/HBPreviewController.m b/macosx/HBPreviewController.m index 43128ac20..2d4174ef7 100644 --- a/macosx/HBPreviewController.m +++ b/macosx/HBPreviewController.m @@ -671,35 +671,35 @@ typedef enum ViewMode : NSUInteger { NSSize imageScaledSize = [fPreviewImage size]; [self.pictureLayer setContents:fPreviewImage]; - NSSize displaySize = NSMakeSize( ( CGFloat )title->width, ( CGFloat )title->height ); + NSSize displaySize = NSMakeSize( ( CGFloat )title->geometry.width, ( CGFloat )title->geometry.height ); NSString *sizeInfoString; /* Set the picture size display fields below the Preview Picture*/ int display_width; - display_width = title->job->width * title->job->anamorphic.par_width / title->job->anamorphic.par_height; + display_width = title->job->width * title->job->par.num / title->job->par.den; if (title->job->anamorphic.mode == HB_ANAMORPHIC_STRICT) // Original PAR Implementation { sizeInfoString = [NSString stringWithFormat: @"Source: %dx%d, Output: %dx%d, Anamorphic: %dx%d Strict", - title->width, title->height, title->job->width, title->job->height, display_width, title->job->height]; + title->geometry.width, title->geometry.height, title->job->width, title->job->height, display_width, title->job->height]; } else if (title->job->anamorphic.mode == HB_ANAMORPHIC_LOOSE) // Loose Anamorphic { sizeInfoString = [NSString stringWithFormat: @"Source: %dx%d, Output: %dx%d, Anamorphic: %dx%d Loose", - title->width, title->height, title->job->width, title->job->height, display_width, title->job->height]; + title->geometry.width, title->geometry.height, title->job->width, title->job->height, display_width, title->job->height]; } else if (title->job->anamorphic.mode == HB_ANAMORPHIC_CUSTOM) // Custom Anamorphic { sizeInfoString = [NSString stringWithFormat: @"Source: %dx%d, Output: %dx%d, Anamorphic: %dx%d Custom", - title->width, title->height, title->job->width, title->job->height, display_width, title->job->height]; + title->geometry.width, title->geometry.height, title->job->width, title->job->height, display_width, title->job->height]; } else // No Anamorphic { sizeInfoString = [NSString stringWithFormat: @"Source: %dx%d, Output: %dx%d", - title->width, title->height, title->job->width, title->job->height]; + title->geometry.width, title->geometry.height, title->job->width, title->job->height]; } displaySize.width = display_width; displaySize.height = title->job->height; |