home *** CD-ROM | disk | FTP | other *** search
- // A ".DF" file is a Definition file you can use with any media
- // Zoom Player tried to open (except play lists).
- //
- // It can be used to associate certain zoom player values to a
- // specific file as it loads. The file must have the exact same
- // name as the file it is associated to, but with the ".DF"
- // Extension.
- //
- //
- // The following functions can be used:
- //
- // RunProgram(CommandLine)
- // - You can use this function to run an external program.
- // The "CommandLine" contains the name of the executable and
- // the parameters that should be passed to it (see example below).
- // Note: It's best to use this function as the first in the file.
- //
- // Delay(Seconds)
- // - Pauses processing for a specified number of seconds. Can be
- // useful in combination with "RunProgram" if you want to give
- // the running program time to process something.
- //
- // BringToFront
- // - Brings the Zoom Player window to the front (in case some other
- // application executed using "RunProgram" stole focus.
- //
- // SetBlanking(Top,Bottom,Left,Right)
- // - This function sets the video-blanking positions.
- //
- // SetCustomAR(WidthRatio,HeightRatio)
- // - This function sets the Custom Aspect Ratio values, useful
- // when used in combination of "SetAspectRatio" and the Custom
- // Aspect Ratio mode.
- //
- // SetPlacement(XOffset,YOffset,Width,Height)
- // - This function sets the position of the video in zoomed mode.
- //
- // SetAspectRatio(ARMode)
- // - Set a specific aspect ratio mode. The ARMode value is a
- // number representing the Aspect Ratio mode. A value of
- // "0" means "Fit to Window" (the first listed aspect ratio)
- // The numbers go up for every mode.
- //
- // SetOverlayColorControls(Brightness,Contrast,Gamma,Hue,Saturation)
- // - Set the Overlay Color settings.
- //
- // SetRegistry(BaseKey,RegPath,KeyType,SubKey,Value)
- // - Set a registry value. Can be useful for setting certain
- // codec values (like say brightness for the DivX codec)
- // right before the video loads.
- //
- // "BaseKey" Can have 5 values:
- // R = HKEY_CLASSES_ROOT
- // U = HKEY_CURRENT_USER
- // M = HKEY_LOCAL_MACHINE
- // S = HKEY_USERS
- // C = HKEY_CURRENT_CONFIG
- //
- // "RegPath" is a path, such as "Software\VirtuaMedia\ZoomPlayer"
- //
- // "KeyType" is the type of key, values can be:
- // S = String
- // D = DWord
- //
- // "SubKey" is the name of a key within the path
- //
- // "Value" is the data inserted into the key, the data must match
- // the type specified in the "KeyType" value.
- //
- //
- //
- // For example...
- //
- // * Run some program with a 3 second delay.
- // RunProgram("C:\Program Files\My Program\Program.exe" -D -V -I)
- // Delay(3)
- //
- // * Blank 60 pixels off the top and bottom and 5 pixels off the left and right
- // sides of the video
- // SetBlanking(60,60,5,5)
- //
- // * Set CustomAR values to 1:2.35
- // SetCustomAR(2.35,1)
- //
- // * Position the video with a 5 pixel offset from all corners of a 640x480 mode
- // SetPlacement(5,5,640,470)
- //
- // * Set the Aspect ratio to "Source Aspect Ratio"
- // SetAspectRatio(1)
- //
- // * Set the DivX 3.11 brightness level to "62".
- // SetRegistry(U,Software\Microsoft\Scrunch\Video,D,Brightness,62)
-