/* if we're enabling the interface, check if the audio mixdown controls need to be enabled or not */
/* these will have been enabled by the mass control enablement above anyway, so we're sense-checking it here */
[self setEnabledStateOfAudioMixdownControls: NULL];
+ /* we also call calculatePictureSizing here to sense check if we already have vfr selected */
+ [self calculatePictureSizing: NULL];
} else {
{
[self selectDefaultPreset: NULL];
/* if Deinterlace upon launch is specified in the prefs, then set to 1 for "Fast",
- if not, then set to 0 for none */
+ if not, then set to 0 for none */
if ([[NSUserDefaults standardUserDefaults] boolForKey:@"DefaultDeinterlaceOn"] > 0)
+ {
[fPictureController setDeinterlace:1];
+ }
else
+ {
[fPictureController setDeinterlace:0];
+ }
+ /* lets set Denoise to index 0 or "None" since this is the first scan */
+ [fPictureController setDenoise:0];
+
+ [fPictureController setInitialPictureFilters];
}
}
hb_job_t * job = title->job;
fTitle = title;
/* Turn Deinterlace on/off depending on the preference */
+ /*
if ([[NSUserDefaults standardUserDefaults] boolForKey:@"DefaultDeinterlaceOn"] > 0)
{
[fPictureController setDeinterlace:1];
{
[fPictureController setDeinterlace:0];
}
-
+ */
/* Pixel Ratio Setting */
if ([[NSUserDefaults standardUserDefaults] boolForKey:@"PixelRatio"])
{
[fCropBottomStepper setMaxValue: title->height/2-2];
[fCropLeftStepper setMaxValue: title->width/2-2];
[fCropRightStepper setMaxValue: title->width/2-2];
-
-
- /* we use a popup to show the deinterlace settings */
- [fDeinterlacePopUp removeAllItems];
- [fDeinterlacePopUp addItemWithTitle: @"None"];
- [fDeinterlacePopUp addItemWithTitle: @"Fast"];
- [fDeinterlacePopUp addItemWithTitle: @"Slow"];
- [fDeinterlacePopUp addItemWithTitle: @"Slower"];
- [fDeinterlacePopUp addItemWithTitle: @"Slowest"];
-
- /* Set deinterlaces level according to the integer in the main window */
- [fDeinterlacePopUp selectItemAtIndex: fPictureFilterSettings.deinterlace];
[fPARCheck setState:(job->pixel_ratio ? NSOnState : NSOffState)];
/* We initially set the previous state of keep ar to on */
[fCropMatrix selectCellAtRow: 0 column:0];
}
-
-
+ MaxOutputWidth = job->width;
+ MaxOutputHeight = job->height;
+ fPicture = 0;
+
+ [self SettingsChanged: nil];
+}
+
+/* we use this to setup the initial picture filters upon first launch, after that their states
+are maintained across different sources */
+- (void) setInitialPictureFilters
+{
+ /* we use a popup to show the deinterlace settings */
+ [fDeinterlacePopUp removeAllItems];
+ [fDeinterlacePopUp addItemWithTitle: @"None"];
+ [fDeinterlacePopUp addItemWithTitle: @"Fast"];
+ [fDeinterlacePopUp addItemWithTitle: @"Slow"];
+ [fDeinterlacePopUp addItemWithTitle: @"Slower"];
+ [fDeinterlacePopUp addItemWithTitle: @"Slowest"];
+
+ /* Set deinterlaces level according to the integer in the main window */
+ [fDeinterlacePopUp selectItemAtIndex: fPictureFilterSettings.deinterlace];
+
/* we use a popup to show the denoise settings */
[fDenoisePopUp removeAllItems];
[fDenoisePopUp addItemWithTitle: @"None"];
[fDenoisePopUp addItemWithTitle: @"Strong"];
/* Set denoises level according to the integer in the main window */
[fDenoisePopUp selectItemAtIndex: fPictureFilterSettings.denoise];
-
- MaxOutputWidth = job->width;
- MaxOutputHeight = job->height;
- fPicture = 0;
- [self SettingsChanged: nil];
}
-
- (void) Display: (int) anim
{
hb_get_preview( fHandle, fTitle, fPicture, fBuffer );