ghb_dict_set_int(settings, "scale_width",
title->geometry.width - crop[2] - crop[3]);
- // If anamorphic or keep_aspect, the hight will
+ // If anamorphic or keep_aspect, the height will
// be automatically calculated
gboolean keep_aspect;
gint pic_par;
gtk_tree_path_next(treepath);
// When a cell has been edited, I want to advance to the
- // next cell and start editing it automaitcally.
+ // next cell and start editing it automatically.
// Unfortunately, we may not be in a state here where
// editing is allowed. This happens when the user selects
// a new cell with the mouse instead of just hitting enter.
if (type != 2) /* TAG_ID_AVDP */
goto found;
- /* get desriptor list address and block count */
+ /* get descriptor list address and block count */
count = le32_to_cpu(vd->type.anchor.length) / bs;
loc = le32_to_cpu(vd->type.anchor.location);
{
// I could go through the trouble to scan the connected drives and
// verify that this device is connected and is a DVD. But I don't
- // think its neccessary.
+ // think its necessary.
ud->current_dvd_device = resolved;
}
else
<property name="events">GDK_POINTER_MOTION_MASK | GDK_POINTER_MOTION_HINT_MASK | GDK_BUTTON_PRESS_MASK | GDK_BUTTON_RELEASE_MASK</property>
<property name="tooltip_text" translatable="yes">Tune settings to optimize for common scenarios.
-This can improve effeciency for particular source characteristics or set
+This can improve efficiency for particular source characteristics or set
characteristics of the output file. Changes will be applied after the
preset but before all other parameters.</property>
<signal name="changed" handler="video_setting_changed_cb" swapped="no"/>
}
else
{
- // Try to make anything thats unrecognized into a string
+ // Try to make anything that's unrecognized into a string
g_warning("Unhandled data type %d", gtype);
}
}
{
ghb_log("Failed to read backup presets, using defaults...");
hb_presets_builtin_update();
- // Don't store defaults unless the user explicitely saves
+ // Don't store defaults unless the user explicitly saves
// a new preset. This would overwrite the presets file
// that was generated by a newer version of HandBrake.
}
// Check if changing the destination file name resolves
// a file name conflict. Enable selection if so.
- // Disable selection if it creates a confict!!!
+ // Disable selection if it creates a conflict!!!
gboolean can_select;
can_select = title_multiple_can_select(ud->settings_array, index);
ghb_dict_set_bool(settings, "title_selected", can_select);
// Check if changing the destination file name resolves
// a file name conflict. Enable selection if so.
- // Disable selection if it creates a confict!!!
+ // Disable selection if it creates a conflict!!!
gboolean can_select;
can_select = title_multiple_can_select(ud->settings_array, index);
ghb_dict_set_bool(settings, "title_selected", can_select);
pos = GTK_TREE_VIEW_DROP_BEFORE;
if (pos == GTK_TREE_VIEW_DROP_INTO_OR_AFTER)
pos = GTK_TREE_VIEW_DROP_AFTER;
- // Don't allow droping int child items
+ // Don't allow dropping int child items
if (gtk_tree_path_get_depth(path) > 1)
{
gtk_tree_path_up(path);
custom_cell_renderer_button_finalize (GObject *object)
{
/*
- If you need to do anyting with the renderer button ...
+ If you need to do anything with the renderer button ...
CustomCellRendererProgress *cellrendererbutton = CUSTOM_CELL_RENDERER_BUTTON(object);
*/
ghb_array_append(subtitle_list, subsettings);
- // Check consistancy of exclusive flags
+ // Check consistency of exclusive flags
count = ghb_array_len(subtitle_list);
if (burn)
subtitle_exclusive_burn_settings(settings, count-1);
/*
* Remap audio between 2 different channel orders, using the settings specified
- * in the remap paremeter. Remapping is only done when necessary.
+ * in the remap parameter. Remapping is only done when necessary.
*
* The remap parameter can be NULL (no remapping).
*/
else if (spatial_metric == 1)
{
/* This, for comparison, is what IsCombed uses.
- It's better, but still noise senstive. */
+ It's better, but still noise sensitive. */
int combing = ( cur[up_1] - cur[0] ) *
( cur[down_1] - cur[0] );
decomb_prev_thread_args->segment_height[pp];
}
- // Make segment hight a multiple of block_height
+ // Make segment height a multiple of block_height
int h = hb_image_height(init->pix_fmt, init->geometry.height, pp) / pv->comb_check_nthreads;
h = h / pv->block_height * pv->block_height;
if (h == 0)
*********************************************************************/
void hb_audio_config_init(hb_audio_config_t * audiocfg)
{
- /* Set read-only paramaters to invalid values */
+ /* Set read-only parameters to invalid values */
audiocfg->in.codec = 0;
audiocfg->in.codec_param = 0;
audiocfg->in.reg_desc = 0;
audiocfg->lang.simple[0] = 0;
audiocfg->lang.iso639_2[0] = 0;
- /* Initalize some sensible defaults */
+ /* Initialize some sensible defaults */
audiocfg->in.track = audiocfg->out.track = 0;
audiocfg->out.codec = hb_audio_encoder_get_default(HB_MUX_MP4); // default container
audiocfg->out.samplerate = -1;
/*
* It seems WinXP doesn't align the stack of new threads to 16 bytes.
- * To prevent crashes in SSE functions, we need to force stack alignement
+ * To prevent crashes in SSE functions, we need to force stack alignment
* of new threads.
*/
#if defined( __GNUC__ ) && (defined( _WIN32 ) || defined( __MINGW32__ ))
aspect = (double)wb->width * wb->par.num /
(wb->height * wb->par.den);
- // CC grid is 16 rows by 32 colums (for 4:3 video)
+ // CC grid is 16 rows by 32 columns (for 4:3 video)
// Our SSA resolution is the title resolution
- // Tranlate CC grid to SSA coordinates
+ // Translate CC grid to SSA coordinates
// The numbers are tweaked to keep things off the very
// edges of the screen and in the "safe" zone
int screen_columns = 32;
}
else
{
- hb_error("Invalid value y %d heigh %d", y, height);
+ hb_error("Invalid value y %d height %d", y, height);
return;
}
// work around broken timestamps
if (pts < pv->last_pts)
{
- // XXX: this should only happen if the prevous pts
+ // XXX: this should only happen if the previous pts
// was unknown and our 3 second default duration
// overshot the next pgs pts.
//
int size, len;
// If the current line is empty, we assume this is the
- // seperation betwene two entries. In case we are wrong,
+ // separation between two entries. In case we are wrong,
// the mistake is corrected in the next state.
if (strcmp(line_buffer, "\n") == 0 || strcmp(line_buffer, "\r\n") == 0) {
pv->current_state = k_state_potential_new_entry;
pv->subtitle = w->subtitle;
/*
- * Figure out the start and stop times from teh chapters being
+ * Figure out the start and stop times from the chapters being
* encoded - drop subtitle not in this range.
*/
pv->start_time = 0;
{
uint32_t flags;
- uint32_t fg_rgb; // forground color
+ uint32_t fg_rgb; // foreground color
uint32_t alt_rgb; // secondary color
uint32_t ol_rgb; // outline color
uint32_t bg_rgb; // background color
- uint32_t fg_alpha; // forground alpha
+ uint32_t fg_alpha; // foreground alpha
uint32_t alt_alpha; // secondary alpha
uint32_t ol_alpha; // outline alpha
uint32_t bg_alpha; // background alpha
// we have a new pcr
discontinuity = check_mpeg_scr( state, buf->s.pcr, tolerance );
buf->s.pcr = AV_NOPTS_VALUE;
- // Some streams have consistantly bad PCRs or SCRs
+ // Some streams have consistently bad PCRs or SCRs
// So filter out the offset
if ( buf->s.start >= 0 )
state->scr_delta = buf->s.start - state->last_scr;
break;
}
}
- // Sometimes the menu is preceeded by a intro that just
+ // Sometimes the menu is preceded by a intro that just
// gets restarted when hitting the menu button. So
// try skipping with the skip forward button. Then
// try hitting the menu again.
}
/**
- * Finds places where verticaly adjacent pixels abruptly change in intensity, i.e., sharp edges.
+ * Finds places where vertically adjacent pixels abruptly change in intensity, i.e., sharp edges.
* @param dstp Pointer to the destination bitmap
* @param dst_pitch Stride of dstp
* @param srcp Pointer to the source bitmap
pv->param.videoParam->mfx.MaxKbps = pv->param.rc.vbv_max_bitrate;
}
- // set rate control paremeters
+ // set rate control parameters
if (job->vquality > HB_INVALID_VIDEO_QUALITY)
{
if (pv->param.rc.icq)
pv->input_samples = context->frame_size * context->channels;
pv->input_buf = malloc(pv->input_samples * sizeof(float));
// Some encoders in libav (e.g. fdk-aac) fail if the output buffer
- // size is not some minumum value. 8K seems to be enough :(
+ // size is not some minimum value. 8K seems to be enough :(
pv->max_output_bytes = MAX(AV_INPUT_BUFFER_MIN_SIZE,
(pv->input_samples *
av_get_bytes_per_sample(context->sample_fmt)));
* We make this call just to set the encoder into 2-pass mode, because
* by default enabling two-pass sets the buffer delay to the whole file
* (because there's no way to explicitly request that behavior).
- * If we waited until we were actually encoding, it would overwite our
+ * If we waited until we were actually encoding, it would overwrite our
* settings.*/
hb_log("enctheora: init 2nd pass");
if( th_encode_ctl( pv->ctx, TH_ENCCTL_2PASS_IN, NULL, 0) < 0)
hb_log( "encx264: min-keyint: %s, keyint: %s", min, max );
}
- /* Settings which can't be overriden in the encoder_options string
+ /* Settings which can't be overridden in the encoder_options string
* (muxer-specific settings, resolution, ratecontrol, etc.). */
/* Disable annexb. Inserts size into nal header instead of start code. */
if (api->param_default_preset(¶m, x264_preset, x264_tune) < 0)
{
/*
- * Note: GUIs should be able to always specifiy valid preset/tunes, so
+ * Note: GUIs should be able to always specify valid preset/tunes, so
* this code will hopefully never be reached
*/
return strdup("hb_x264_param_unparse: invalid x264 preset/tune");
}
else
{
- // pbratio requires bframes and is incomaptible with mbtree
+ // pbratio requires bframes and is incompatible with mbtree
hb_dict_remove(x264_opts, "pbratio");
}
if (param.rc.f_qcompress != defaults.rc.f_qcompress)
job->color_matrix = param->vui.matrixCoeffs;
/*
- * Settings which can't be overriden in the encodeer_options string
+ * Settings which can't be overridden in the encodeer_options string
* (muxer-specific settings, resolution, ratecontrol, etc.).
*/
param->bRepeatHeaders = job->inline_parameter_sets;
// compare results
/* The final cc score for a plane is the percentage of combed pixels it contains.
Because sensitivity goes down to hundreths of a percent, multiply by 1000
- so it will be easy to compare against the threhold value which is an integer. */
+ so it will be easy to compare against the threshold value which is an integer. */
cc[k] = (int)( ( cc_1 + cc_2 ) * 1000.0 / ( width * height ) );
}
if (desc != NULL && (plane == 1 || plane == 2))
{
- // The wacky arithmatic assures rounding up.
+ // The wacky arithmetic assures rounding up.
width = -((-width) >> desc->log2_chroma_w);
}
if (desc != NULL && (plane == 1 || plane == 2))
{
- // The wacky arithmatic assures rounding up.
+ // The wacky arithmetic assures rounding up.
height = -((-height) >> desc->log2_chroma_h);
}
* The provided NAL unit must start with the NAL unit header.
*
* Note: the buffer is assumed to be large enough to hold the NAL unit
- * as well as any additonal data the function may prepend/append to it.
+ * as well as any additional data the function may prepend/append to it.
*
* The caller may check the minimum required buffer size by passing a
- * NULL buffer to the fucntion and checking the returned size value.
+ * NULL buffer to the function and checking the returned size value.
*/
size_t hb_nal_unit_write_annexb(uint8_t *buf, const uint8_t *nal_unit, const size_t nal_unit_size);
size_t hb_nal_unit_write_isomp4(uint8_t *buf, const uint8_t *nal_unit, const size_t nal_unit_size);
}
else
{
- // Try to make anything thats unrecognized into a string
+ // Try to make anything that's unrecognized into a string
hb_error("Unhandled data type %d", gtype);
}
}
}
// Lookup a preset in the preset list. The "name" may contain '/'
-// separators to explicitely specify a preset within the preset lists
+// separators to explicitly specify a preset within the preset lists
// folder structure.
//
// If 'recurse' is specified, a recursive search for the first component
}
// Lookup a preset in the preset list. The "name" may contain '/'
-// separators to explicitely specify a preset within the preset lists
+// separators to explicitly specify a preset within the preset lists
// folder structure.
//
// If 'recurse' is specified, a recursive search for the first component
hb_value_t * audio_settings);
// Lookup a preset in the preset list. The "name" may contain '/'
-// separators to explicitely specify a preset within the preset lists
+// separators to explicitly specify a preset within the preset lists
// folder structure.
//
// If 'recurse' is specified, a recursive search for the first component
* - MFXVideoENCODE_Query should zero out all unsupported parameters
*
* Mode 2:
- * - the paramaters we want to query are set for in
+ * - the parameters we want to query are set for in
* - in ->mfx.CodecId field has to be set (mandatory)
* - out->mfx.CodecId field has to be set (mandatory)
* - MFXVideoENCODE_Query should sanitize all unsupported parameters
continue;
}
- // shouldnt be a case but drain
+ // shouldn't be a case but drain
if(stage){
hb_qsv_stage* new_stage = hb_qsv_stage_init();
* data/linesize should be used together with SYSTEM_MEMORY and tested
*
* Note: Compilation would require:
- * - Intel MediaSDK headers, Full SDK is avaialble from the original web site:
+ * - Intel MediaSDK headers, Full SDK is available from the original web site:
* http://software.intel.com/en-us/vcsource/tools/media-SDK
* Will be referenced as mfx*.h (mfxdefs.h, mfxstructures.h, ... )
* and
/**
* Set amount of additional surfaces might be needed
- * Format: ammount of additional buffers(surfaces+syncs)
+ * Format: amount of additional buffers(surfaces+syncs)
* to allocate in advance
*
* - encoding: Set by user.
buf = splice_discontinuity(r, buf);
if (fifos && buf != NULL)
{
- /* if there are mutiple output fifos, send a copy of the
+ /* if there are multiple output fifos, send a copy of the
* buffer down all but the first (we have to not ship the
* original buffer or we'll race with the thread that's
* consuming the buffer & inject garbage into the data stream). */
int height = job->title->geometry.height - job->crop[0] - job->crop[1];
int width = job->title->geometry.width - job->crop[2] - job->crop[3];
int safe_height = 0.8 * job->title->geometry.height;
- // Use fixed widht font for CC
+ // Use fixed width font for CC
hb_subtitle_add_ssa_header(filter->subtitle, HB_FONT_MONO,
.08 * safe_height, width, height);
return ssa_post_init(filter, job);
{
if ( stream->ts.list[idx].pes_list != -1 )
{
- // Retuns kind for the first pes substream in the pes list
+ // Returns kind for the first pes substream in the pes list
// All substreams in a TS stream are the same kind.
return stream->pes.list[stream->ts.list[idx].pes_list].stream_kind;
}
{
if ( stream->ts.list[idx].pes_list != -1 )
{
- // Retuns stream type for the first pes substream in the pes list
+ // Returns stream type for the first pes substream in the pes list
// All substreams in a TS stream are the same stream type.
return stream->pes.list[stream->ts.list[idx].pes_list].stream_type;
}
#define SYNC_MIN_AUDIO_QUEUE_LEN 30
// We do not place a limit on the number of subtitle frames
-// that are buffered (max_len == INT_MAX) becuase there are
+// that are buffered (max_len == INT_MAX) because there are
// cases where we will receive all the subtitles for a file
// all at once (SSA subs).
//
#define DUP_THRESH_SSE 5.0
-// Compute ths sum of squared errors for a 16x16 block
-// Gamma adjusts pixel values so that less visible diffreences
+// Compute the sum of squared errors for a 16x16 block
+// Gamma adjusts pixel values so that less visible differences
// count less.
static inline unsigned sse_block16( unsigned *gamma_lut, uint8_t *a, uint8_t *b, int stride )
{
subtitle = hb_list_item(job->list_subtitle, i);
/* Remove the scanned subtitle from the list if
* it would result in:
- * - an emty track (forced and no forced hits)
+ * - an empty track (forced and no forced hits)
* - an identical, duplicate subtitle track:
* -> both (or neither) are forced
* -> subtitle is not forced but all its hits are forced */
}
/**
- * Job initialization rountine.
+ * Job initialization routine.
*
* Initializes fifos.
* Creates work objects for synchronizer, video decoder, video renderer,
* @method openGrowlPreferences:
* @abstract Open Growl preferences, optionally to this app's settings, growl:// method
* @param showApp Whether to show the application's settings, otherwise just opens to the last position
- * @return Return's whether opening the URL was succesfull or not.
+ * @return Returns whether opening the URL was successful or not.
* @discussion Will launch if Growl is installed, but not running, and open the preferences window
* Uses growl:// URL scheme
* @since Growl.framework 1.4
if( [self X264AdvancedOptionsIsOpt: optNameToChange inString: currentOptString] )
{
- /* If the option is in the string wth a semicolon, or starts the string, it's time to edit.
+ /* If the option is in the string with a semicolon, or starts the string, it's time to edit.
This means parsing the whole string into an array of options and values. From there,
iterate through the options, and when you reach the one that's been changed, edit it. */
}
}
- /* Change the dislayed option string to reflect the new modified settings */
+ /* Change the displayed option string to reflect the new modified settings */
[fDisplayX264Options setStringValue:changedOptString];
}
else // if none exists, add it to the string
/**
* Observe the job settings changes.
- * This is used to update the file name and extention
+ * This is used to update the file name and extension
* and the custom preset string.
*/
- (void)addJobObservers
/**
* Updates two DockTextFields on the dockTile,
* one with total percentage, the other one with the ETA.
- * The ETA string is formated by the callers *
+ * The ETA string is formatted by the callers *
*/
- (void)updateDockIcon:(double)progress withETA:(NSString *)etaStr;
- (BOOL)canBeHidden;
// Responder chains is nice and good, but NSViewController
-// are not automatically insterted in the responder chain prior 10.10
+// are not automatically inserted in the responder chain prior 10.10
// and are removed when the view is hidden, so let's deliver the
// events manually.
* Private constructor which should not be called from outside. This is used to
* initialize the class at @c stdoutRedirect and @c stderrRedirect.
*
- * @param aStream Stream that wil be redirected (stdout or stderr).
+ * @param aStream Stream that will be redirected (stdout or stderr).
* @param aSelector Selector that will be called in listeners to redirect the stream.
*
* @return New HBOutputRedirect object.
@property (nonatomic, readwrite, strong) HBPreset *defaultPreset;
/**
- * Returs a HBPresetManager with the presets loaded at the passed URL.
+ * Returns a HBPresetManager with the presets loaded at the passed URL.
*
* @param url the URL of the presets file to load.
*
__block HBPreset *firstBuiltInPreset = nil;
__block BOOL defaultAlreadySetted = NO;
- // Search for a possibile new default preset
+ // Search for a possible new default preset
// Try to use "Normal" or the first user preset.
[self.root enumerateObjectsUsingBlock:^(id obj, NSIndexPath *idx, BOOL *stop) {
if ([obj isBuiltIn] && [obj isLeaf])
// Pasteboard type for or drag operations
#define DragDropSimplePboardType @"HBQueueCustomOutlineViewPboardType"
-// DockTile update freqency in total percent increment
+// DockTile update frequency in total percent increment
#define dockTileUpdateFrequency 0.1f
@interface HBQueueController () <NSOutlineViewDataSource, HBQueueOutlineViewDelegate>
// HBQueueOutlineView exists solely to get around a bug in variable row height outline
// views in which row heights get messed up during live resizes. See this discussion:
// http://lists.apple.com/archives/cocoa-dev/2005/Oct/msg00871.html
-// However, the recommeneded fix (override drawRect:) does not work. Instead, this
+// However, the recommended fix (override drawRect:) does not work. Instead, this
// subclass implements viewDidEndLiveResize in order to recalculate all row heights.
//
// (2) prevent expanding of items during drags
@property (nonatomic, readwrite, weak) HBJob *job;
@property (nonatomic, readwrite) int container;
-/// Used to aovid circular dependecy validation.
+/// Used to avoid circular dependency validation.
@property (nonatomic, readwrite) BOOL validating;
@end
}
/**
- * Retuns the tune string plus the fastdecode option (if enabled)
+ * Returns the tune string plus the fastdecode option (if enabled)
*/
- (NSString *)completeTune
{
@interface NSWindow (HBAdditions)
/**
- * Resizes the entire window to accomodate a view of a particular size.
+ * Resizes the entire window to accommodate a view of a particular size.
*/
- (void)HB_resizeToBestSizeForViewSize:(NSSize)viewSize center:(NSPoint)center animate:(BOOL)performAnimation;
// Set the new frame size
// Add the border to the new frame size so that the content region
- // of the frame is large enough to accomodate the preview image
+ // of the frame is large enough to accommodate the preview image
frame.size.width = viewSize.width + borderX;
frame.size.height = viewSize.height + borderY;
/*!
The main API in Sparkle for controlling the update mechanism.
- This class is used to configure the update paramters as well as manually
+ This class is used to configure the update parameters as well as manually
and automatically schedule and control checks for updates.
*/
SU_EXPORT @interface SUUpdater : NSObject
## extra CFLAGS: macro definitions
MACOSX.extra_cflags = OTHER_CFLAGS='$(MACOSX.GCC.D)'
-## launch a build thru xcode; which in turn will do a nested make against
+## launch a build through xcode; which in turn will do a nested make against
## this build system with normal build rules enabled.
##
## $(1) = list of targets
-## $(2) = list of goals to shunt thru xcodebuild->make
+## $(2) = list of goals to shunt through xcodebuild->make
##
MACOSX.XCODE = $(strip \
The GPL may be found in the file /usr/share/common-licenses/GPL.
-The upstream source has the follwing license declaration:
+The upstream source has the following license declaration:
---
This program is free software; you can redistribute it and/or modify it under
the terms of the GNU General Public License as published by the Free Software
|
| The GPL may be found in the file /usr/share/common-licenses/GPL.
|
- | The upstream source has the follwing license declaration:
+ | The upstream source has the following license declaration:
| ---
| This program is free software; you can redistribute it and/or modify it under
| the terms of the GNU General Public License as published by the Free Software
if [ "x${REF}" == "x" ]; then
echo "Creating release tag ${TAG} and branch ${BRANCH} from HEAD, proceed? (y/N)"
- # retrive full hash of HEAD
+ # retrieve full hash of HEAD
COMMIT=$(${GIT_EXE} rev-list HEAD --max-count=1)
else
echo "Creating release tag ${TAG} and branch ${BRANCH} from ${REF}, proceed? (y/N)"
}\r
\r
/// <summary>\r
- /// Reads in a list of objects given an interator and a conversion function.\r
+ /// Reads in a list of objects given an iterator and a conversion function.\r
/// </summary>\r
/// <typeparam name="T1">The type of the struct given by the iterator.</typeparam>\r
/// <typeparam name="T2">The object type to convert to.</typeparam>\r
}
catch (Exception exc)
{
- Debug.WriteLine(exc); // This exception doesn't warrent user interaction, but it should be logged
+ Debug.WriteLine(exc); // This exception doesn't warrant user interaction, but it should be logged
}
}
}
catch (Exception exc)
{
- Debug.WriteLine(exc); // This exception doesn't warrent user interaction, but it should be logged
+ Debug.WriteLine(exc); // This exception doesn't warrant user interaction, but it should be logged
}
}
{
if (args.Length == 0)
{
- Console.WriteLine("Invalid Comand. Either 'genkeys' or 'sign <filename>'");
+ Console.WriteLine("Invalid Command. Either 'genkeys' or 'sign <filename>'");
Console.Read();
return;
}
}\r
\r
/// <summary>\r
- /// Non-UI Thread expection handler.\r
+ /// Non-UI Thread exception handler.\r
/// </summary>\r
/// <param name="sender">\r
/// The sender.\r
}\r
catch (Exception)\r
{\r
- MessageBox.Show("An Unknown Error has occured. \n\n Exception:" + exception, "Unhandled Exception",\r
+ MessageBox.Show("An Unknown Error has occurred. \n\n Exception:" + exception, "Unhandled Exception",\r
MessageBoxButton.OK, MessageBoxImage.Error);\r
}\r
}\r
}\r
\r
/// <summary>\r
- /// Dependancy Property for the Message Property\r
+ /// Dependency Property for the Message Property\r
/// </summary>\r
public static readonly DependencyProperty MessageProperty =\r
DependencyProperty.Register("Message", typeof(string), typeof(AlertPanel), new UIPropertyMetadata("Loading..."));\r
\r
/// <summary>\r
- /// Dependancy Property for the submessage propery\r
+ /// Dependency Property for the submessage property\r
/// </summary>\r
public static readonly DependencyProperty SubMessageProperty =\r
DependencyProperty.Register("SubMessage", typeof(string), typeof(AlertPanel), new FrameworkPropertyMetadata("Please Wait", FrameworkPropertyMetadataOptions.AffectsRender));\r
\r
/// <summary>\r
- /// Dependancy Property for the submessage propery\r
+ /// Dependency Property for the submessage property\r
/// </summary>\r
public static readonly DependencyProperty DefaultActionProperty =\r
DependencyProperty.Register("DefaultAction", typeof(Action), typeof(AlertPanel), new FrameworkPropertyMetadata(null, FrameworkPropertyMetadataOptions.None, DefaultActionSet));\r
\r
/// <summary>\r
- /// Dependancy Property for the submessage propery\r
+ /// Dependency Property for the submessage property\r
/// </summary>\r
public static readonly DependencyProperty ActionTextProperty =\r
DependencyProperty.Register("ActionText", typeof(string), typeof(AlertPanel), new UIPropertyMetadata("Cancel"));\r
/// </returns>\r
public object Convert(object value, Type targetType, object parameter, CultureInfo culture)\r
{\r
- // Paramater is a boolean which inverts the output.\r
+ // Parameter is a boolean which inverts the output.\r
var param = System.Convert.ToBoolean(parameter, CultureInfo.InvariantCulture);\r
\r
if (value is bool)\r
/// </returns>\r
public object Convert(object value, Type targetType, object parameter, CultureInfo culture)\r
{\r
- // Paramater is a boolean which inverts the output.\r
+ // Parameter is a boolean which inverts the output.\r
var param = System.Convert.ToBoolean(parameter, CultureInfo.InvariantCulture);\r
\r
if (value == null)\r
/// </returns>\r
public object Convert(object value, Type targetType, object parameter, CultureInfo culture)\r
{\r
- // Paramater is a boolean which inverts the output.\r
+ // Parameter is a boolean which inverts the output.\r
var param = System.Convert.ToBoolean(parameter, CultureInfo.InvariantCulture);\r
\r
if (value == null)\r
}\r
\r
/// <summary>\r
- /// Gets or sets the selected langauges.\r
+ /// Gets or sets the selected languages.\r
/// </summary>\r
public BindingList<string> SelectedLangauges\r
{\r
public bool NewVersionAvailable { get; set; }\r
\r
/// <summary>\r
- /// Gets a value indicating whether an Error Occured.\r
+ /// Gets a value indicating whether an Error Occurred.\r
/// </summary>\r
public bool ErrorOccured\r
{\r
public string DownloadFile { get; set; }\r
\r
/// <summary>\r
- /// Gets or sets the error that occurred, if any. This will be null if no error occured.\r
+ /// Gets or sets the error that occurred, if any. This will be null if no error occurred.\r
/// </summary>\r
public Exception Error { get; set; }\r
\r
}\r
\r
/// <summary>\r
- /// Looks up a localized string similar to An Unknown Error has occured..\r
+ /// Looks up a localized string similar to An Unknown Error has occurred..\r
/// </summary>\r
public static string ErrorViewModel_UnknownError {\r
get {\r
}\r
\r
/// <summary>\r
- /// Looks up a localized string similar to An error occured when trying to stop the scan. Please restart HandBrake..\r
+ /// Looks up a localized string similar to An error occurred when trying to stop the scan. Please restart HandBrake..\r
/// </summary>\r
public static string ScanService_ScanStopFailed {\r
get {\r
}\r
\r
/// <summary>\r
- /// Looks up a localized string similar to A problem occured when trying to save your preferences..\r
+ /// Looks up a localized string similar to A problem occurred when trying to save your preferences..\r
/// </summary>\r
public static string UserSettings_AnErrorOccured {\r
get {\r
<value>There is no further information available about this error.</value>\r
</data>\r
<data name="ErrorViewModel_UnknownError" xml:space="preserve">\r
- <value>An Unknown Error has occured.</value>\r
+ <value>An Unknown Error has occurred.</value>\r
</data>\r
<data name="OptionsViewModel_NewUpdate" xml:space="preserve">\r
<value>A New Update is Available! Please check the website for release notes.</value>\r
<value>Chapter duration doesn't match between source and input file</value>\r
</data>\r
<data name="ScanService_ScanStopFailed" xml:space="preserve">\r
- <value>An error occured when trying to stop the scan. Please restart HandBrake.</value>\r
+ <value>An error occurred when trying to stop the scan. Please restart HandBrake.</value>\r
</data>\r
<data name="Presets_PresetForceReset" xml:space="preserve">\r
<value>HandBrake is unable to upgrade your presets file to a new version format.\r
<value>Any settings you changed may need to be reset the next time HandBrake launches.</value>\r
</data>\r
<data name="UserSettings_AnErrorOccured" xml:space="preserve">\r
- <value>A problem occured when trying to save your preferences.</value>\r
+ <value>A problem occurred when trying to save your preferences.</value>\r
</data>\r
<data name="UserSettings_YourSettingsHaveBeenReset" xml:space="preserve">\r
<value>Warning, your settings have been reset!</value>\r
/// <summary>\r
/// Looks up a localized string similar to Tune settings to optimize for common scenarios.\r
///\r
- ///This can improve effeciency for particular source characteristics or set\r
+ ///This can improve efficiency for particular source characteristics or set\r
///characteristics of the output file. Changes will be applied after the\r
///preset but before all other parameters..\r
/// </summary>\r
<data name="Video_EncoderTune" xml:space="preserve">\r
<value>Tune settings to optimize for common scenarios.\r
\r
-This can improve effeciency for particular source characteristics or set\r
+This can improve efficiency for particular source characteristics or set\r
characteristics of the output file. Changes will be applied after the\r
preset but before all other parameters.</value>\r
</data>\r
}
catch (Exception exc)
{
- Debug.WriteLine(exc); // This exception doesn't warrent user interaction, but it should be logged
+ Debug.WriteLine(exc); // This exception doesn't warrant user interaction, but it should be logged
}
return null;
// This file is part of the HandBrake source code - It may be used under the terms of the GNU General Public License.
// </copyright>
// <summary>
-// Encode Progess Status
+// Encode Progress Status
// </summary>
// --------------------------------------------------------------------------------------------------------------------
using EncodeTask = HandBrakeWPF.Services.Encode.Model.EncodeTask;
/// <summary>
- /// Encode Progess Status
+ /// Encode Progress Status
/// </summary>
/// <param name="sender">
/// The sender.
public delegate void EncodeProgessStatus(object sender, EncodeProgressEventArgs e);
/// <summary>
- /// Encode Progess Status
+ /// Encode Progress Status
/// </summary>
/// <param name="sender">
/// The sender.
// This file is part of the HandBrake source code - It may be used under the terms of the GNU General Public License.\r
// </copyright>\r
// <summary>\r
-// The User Setting Service Interace.\r
+// The User Setting Service Interface.\r
// </summary>\r
// --------------------------------------------------------------------------------------------------------------------\r
\r
public delegate void SettingEventHandler(object sender, SettingChangedEventArgs e);\r
\r
/// <summary>\r
- /// The User Setting Service Interace.\r
+ /// The User Setting Service Interface.\r
/// </summary>\r
public interface IUserSettingService\r
{\r
/// </param>\r
private void EncodeService_EncodeCompleted(object sender, EncodeCompletedEventArgs e)\r
{\r
- // Send the file to the users requested applicaiton\r
+ // Send the file to the users requested application\r
if (e.Successful)\r
{\r
this.SendToApplication(e.FileName);\r
Directory.CreateDirectory(directory);\r
}\r
\r
- // Orgamise the Presets list into Json Equivilent objects.\r
+ // Organise the Presets list into Json Equivalent objects.\r
Dictionary<string, PresetCategory> presetCategories = new Dictionary<string, PresetCategory>();\r
List<HBPreset> uncategorisedPresets = new List<HBPreset>();\r
\r
catch (Exception exc)\r
{\r
Debug.WriteLine(exc);\r
- throw new GeneralApplicationException("Unable to write to the presets file.", "The details section below may indicate why this error has occured.", exc);\r
+ throw new GeneralApplicationException("Unable to write to the presets file.", "The details section below may indicate why this error has occurred.", exc);\r
}\r
}\r
\r
#region Delegates\r
\r
/// <summary>\r
- /// Queue Progess Status\r
+ /// Queue Progress Status\r
/// </summary>\r
/// <param name="sender">\r
/// The sender.\r
// This file is part of the HandBrake source code - It may be used under the terms of the GNU General Public License.
// </copyright>
// <summary>
-// Encode Progess Status
+// Encode Progress Status
// </summary>
// --------------------------------------------------------------------------------------------------------------------
using HandBrakeWPF.Services.Scan.Model;
/// <summary>
- /// Encode Progess Status
+ /// Encode Progress Status
/// </summary>
/// <param name="sender">
/// The sender.
public delegate void ScanProgessStatus(object sender, ScanProgressEventArgs e);
/// <summary>
- /// Encode Progess Status
+ /// Encode Progress Status
/// </summary>
/// <param name="sender">
/// The sender.
public string Language { get; set; }
/// <summary>
- /// Gets or sets the Langauage Code
+ /// Gets or sets the Language Code
/// </summary>
public string LanguageCode { get; set; }
// This file is part of the HandBrake source code - It may be used under the terms of the GNU General Public License.\r
// </copyright>\r
// <summary>\r
-// The User Setting Serivce\r
+// The User Setting Service\r
// </summary>\r
// --------------------------------------------------------------------------------------------------------------------\r
\r
using SettingChangedEventArgs = HandBrakeWPF.EventArgs.SettingChangedEventArgs;\r
\r
/// <summary>\r
- /// The User Setting Serivce\r
+ /// The User Setting Service\r
/// </summary>\r
public class UserSettingService : IUserSettingService\r
{\r
public const string LastUpdateCheckDate = "lastUpdateCheckDate";\r
\r
/// <summary>\r
- /// Main Window Minimise\r
+ /// Main Window Minimize\r
/// </summary>\r
public const string MainWindowMinimize = "MainWindowMinimize";\r
\r
// This file is part of the HandBrake source code - It may be used under the terms of the GNU General Public License.
// </copyright>
// <summary>
-// A Set of Static Utilites
+// A Set of Static Utilities
// </summary>
// --------------------------------------------------------------------------------------------------------------------
using HandBrake.ApplicationServices.Utilities;
/// <summary>
- /// A Set of Static Utilites
+ /// A Set of Static Utilities
/// </summary>
public class GeneralUtilities
{
using (TextFieldParser csv = new TextFieldParser(filename)
{
CommentTokens = new[] { "#" }, // Comment lines
- Delimiters = new[] { ",", "\t", ";", ":" }, // Support all of these common delimeter types
+ Delimiters = new[] { ",", "\t", ";", ":" }, // Support all of these common delimiter types
HasFieldsEnclosedInQuotes = true, // Assume that our data will be properly escaped
TextFieldType = FieldType.Delimited,
TrimWhiteSpace = true // Remove excess whitespace from ends of imported values
Directory.CreateDirectory(GetStorageDirectory());
}
- // Setup enviroment variables for this instance.
+ // Setup environment variables for this instance.
Environment.SetEnvironmentVariable("TMP", GetTempDirectory());
}
private static Action<Action> executor = action => action();
/// <summary>
- /// Set the Forground Window
+ /// Set the Foreground Window
/// </summary>
/// <param name="hWnd">
/// The h wnd.
/// The dw process group id.
/// </param>
/// <returns>
- /// Bool true is sucess
+ /// Bool true is success
/// </returns>
[DllImport("kernel32.dll", SetLastError = true)]
public static extern bool GenerateConsoleCtrlEvent(ConsoleCtrlEvent sigevent, int dwProcessGroupId);
// This file is part of the HandBrake source code - It may be used under the terms of the GNU General Public License.\r
// </copyright>\r
// <summary>\r
-// A class implimenting Windows 7 Specific features\r
+// A class implementing Windows 7 Specific features\r
// </summary>\r
// --------------------------------------------------------------------------------------------------------------------\r
\r
if (importedChapters.TryGetValue(item.ChapterNumber, out chapterInfo))\r
chapterName = chapterInfo.Item1;\r
\r
- // Assign the chapter name unless the name is not set or only whitespace charaters\r
+ // Assign the chapter name unless the name is not set or only whitespace characters\r
item.ChapterName = !string.IsNullOrWhiteSpace(chapterName) ? chapterName : string.Empty;\r
}\r
}\r
public int TitleSpecificScan { get; set; }\r
\r
/// <summary>\r
- /// Gets or sets a value indicating whether the encode serivce supports pausing.\r
+ /// Gets or sets a value indicating whether the encode service supports pausing.\r
/// </summary>\r
public bool CanPause\r
{\r
return;\r
}\r
\r
- // Step 1, Update what controls are visibile.\r
+ // Step 1, Update what controls are visible.\r
this.UpdateVisibileControls();\r
\r
// Step 2, Set sensible defaults\r
}\r
\r
/// <summary>\r
- /// The update visibile controls.\r
+ /// The update visible controls.\r
/// </summary>\r
private void UpdateVisibileControls()\r
{\r
// Live Preview\r
this.userSettingService = userSettingService;\r
this.errorService = errorService;\r
- this.encodeService = new LibEncode(); // Preview needs a seperate instance rather than the shared singleton. This could maybe do with being refactored at some point\r
+ this.encodeService = new LibEncode(); // Preview needs a separate instance rather than the shared singleton. This could maybe do with being refactored at some point\r
\r
this.Title = "Preview";\r
this.Percentage = "0.00%";\r
/// </summary>\r
public virtual void OnLoad()\r
{\r
- // Impliment in the ViewModel to perform viewmodel specific code.\r
+ // Implement in the ViewModel to perform viewmodel specific code.\r
}\r
\r
#endregion\r