Complete disaster-recovery snapshot: engine/game source, game data assets, VC6 toolchain + DX SDKs, build outputs, deployed game, and _UNUSED archive. Large binaries in Git LFS; text preserved byte-for-byte (core.autocrlf=false, no eol attributes). See RECOVERY.md for the one-clone rebuild procedure.
222 lines
8.9 KiB
C++
222 lines
8.9 KiB
C++
//==========================================================================;
|
|
//
|
|
// THIS CODE AND INFORMATION IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY
|
|
// KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE
|
|
// IMPLIED WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A PARTICULAR
|
|
// PURPOSE.
|
|
//
|
|
// Copyright (c) 1992 - 1997 Microsoft Corporation. All Rights Reserved.
|
|
//
|
|
//--------------------------------------------------------------------------;
|
|
|
|
//
|
|
// list of standard DVD-Video event codes and the expected params
|
|
//
|
|
|
|
|
|
#define EC_DVDBASE 0x0100
|
|
|
|
|
|
typedef enum _tagDVD_ERROR {
|
|
DVD_ERROR_Unexpected=1, // Something unexpected happened, perhaps content
|
|
// is incorrectly authored. Playback is stopped.
|
|
DVD_ERROR_CopyProtectFail=2, // Key exchange for DVD copy protection failed.
|
|
// Playback is stopped.
|
|
DVD_ERROR_InvalidDVD1_0Disc=3, // DVD-Video disc is incorrectly authored for v1.0
|
|
// of spec. Playback is stopped.
|
|
DVD_ERROR_InvalidDiscRegion=4, // The Disc is not approved for playback by decoders
|
|
// from this DVD region.
|
|
DVD_ERROR_LowParentalLevel=5 // Player parental level is lower than the lowest parental
|
|
// level available in the DVD content. Playback is stopped.
|
|
} DVD_ERROR;
|
|
|
|
typedef enum _tagDVD_WARNING {
|
|
DVD_WARNING_InvalidDVD1_0Disc=1, // DVD-Video disc is incorrectly authored. Playback
|
|
// can continue, but unexpected behavior may occur.
|
|
DVD_WARNING_FormatNotSupported=2// A decoder would not support the current format. Playback
|
|
// of a stream (audio, video of SP) may not function.
|
|
} DVD_WARNING;
|
|
|
|
// DVD-Video event codes
|
|
// ======================
|
|
//
|
|
// All DVD-Video event are always passed on to the application, and are
|
|
// never processed by the filter graph
|
|
|
|
|
|
#define EC_DVD_DOMAIN_CHANGE (EC_DVDBASE + 0x01)
|
|
// Parameters: ( DWORD, void )
|
|
// lParam1 is enum DVD_DOMAIN, and indicates the player's new domain
|
|
//
|
|
// Raised from following domains: all
|
|
//
|
|
// Signaled when ever the DVD player changes domains.
|
|
|
|
|
|
#define EC_DVD_TITLE_CHANGE (EC_DVDBASE + 0x02)
|
|
// Parameters: ( DWORD, void )
|
|
// lParam1 is the new title number.
|
|
//
|
|
// Raised from following domains: DVD_DOMAIN_Title
|
|
//
|
|
// Indicates when the current title number changes. Title numbers
|
|
// range 1 to 99. This indicates the TTN, which is the title number
|
|
// with respect to the whole disc, not the VTS_TTN which is the title
|
|
// number with respect to just a current VTS.
|
|
|
|
|
|
#define EC_DVD_CHAPTER_START (EC_DVDBASE + 0x03)
|
|
// Parameters: ( DWORD, void )
|
|
// lParam1 is the new chapter number (which is the program number for
|
|
// One_Sequential_PGC_Titles).
|
|
//
|
|
// Raised from following domains: DVD_DOMAIN_Title
|
|
//
|
|
// Signales that DVD player started playback of a new program in the Title
|
|
// domain. This is only signaled for One_Sequential_PGC_Titles.
|
|
|
|
|
|
#define EC_DVD_AUDIO_STREAM_CHANGE (EC_DVDBASE + 0x04)
|
|
// Parameters: ( DWORD, void )
|
|
// lParam1 is the new user audio stream number.
|
|
//
|
|
// Raised from following domains: all
|
|
//
|
|
// Signaled when ever the current user audio stream number changes for the main
|
|
// title. This can be changed automatically with a navigation command on disc
|
|
// as well as through IDVDAnnexJ.
|
|
// Audio stream numbers range from 0 to 7. Stream 0xffffffff
|
|
// indicates that no stream is selected.
|
|
|
|
#define EC_DVD_SUBPICTURE_STREAM_CHANGE (EC_DVDBASE + 0x05)
|
|
// Parameters: ( DWORD, void )
|
|
// lParam1 is the new user subpicture stream number.
|
|
//
|
|
// Raised from following domains: all
|
|
//
|
|
// Signaled when ever the current user subpicture stream number changes for the main
|
|
// title. This can be changed automatically with a navigation command on disc
|
|
// as well as through IDVDAnnexJ.
|
|
// Subpicture stream numbers range from 0 to 31. Stream 0xffffffff
|
|
// indicates that no stream is selected.
|
|
|
|
#define EC_DVD_ANGLE_CHANGE (EC_DVDBASE + 0x06)
|
|
// Parameters: ( DWORD, DWORD )
|
|
// lParam1 is the number of available angles.
|
|
// lParam2 is the current user angle number.
|
|
//
|
|
// Raised from following domains: all
|
|
//
|
|
// Signaled when ever either
|
|
// a) the number of available angles changes, or
|
|
// b) the current user angle number changes.
|
|
// Current angle number can be changed automatically with navigation command
|
|
// on disc as well as through IDVDAnnexJ.
|
|
// When the number of available angles is 1, the current video is not multiangle.
|
|
// Angle numbers range from 1 to 9.
|
|
|
|
|
|
#define EC_DVD_BUTTON_CHANGE (EC_DVDBASE + 0x07)
|
|
// Parameters: ( DWORD, DWORD )
|
|
// lParam1 is the number of available buttons.
|
|
// lParam2 is the current selected button number.
|
|
//
|
|
// Raised from following domains: all
|
|
//
|
|
// Signaled when ever either
|
|
// a) the number of available buttons changes, or
|
|
// b) the current selected button number changes.
|
|
// The current selected button can be changed automatically with navigation
|
|
// commands on disc as well as through IDVDAnnexJ.
|
|
// Button numbers range from 1 to 36. Selected button number 0 implies that
|
|
// no button is selected. Note that these button numbers enumerate all
|
|
// available button numbers, and do not always correspond to button numbers
|
|
// used for IDVDAnnexJ::ButtonSelectAndActivate since only a subset of buttons
|
|
// may be activated with ButtonSelectAndActivate.
|
|
|
|
|
|
#define EC_DVD_VALID_UOPS_CHANGE (EC_DVDBASE + 0x08)
|
|
// Parameters: ( DWORD, void )
|
|
// lParam1 is a VALID_UOP_SOMTHING_OR_OTHER bit-field stuct which indicates
|
|
// which IDVDAnnexJ commands are explicitly disable by the DVD disc.
|
|
//
|
|
// Raised from following domains: all
|
|
//
|
|
// Signaled when ever the available set of IDVDAnnexJ methods changes. This
|
|
// only indicates which operations are explicited disabled by the content on
|
|
// the DVD disc, and does not guarentee that it is valid to call methods
|
|
// which are not disabled. For example, if no buttons are currently present,
|
|
// IDVDAnnexJ::ButtonActivate() won't work, even though the buttons are not
|
|
// explicitly disabled.
|
|
|
|
|
|
#define EC_DVD_STILL_ON (EC_DVDBASE + 0x09)
|
|
// Parameters: ( BOOL, DWORD )
|
|
// lParam1 == 0 --> buttons are available, so StillOff won't work
|
|
// lParam1 == 1 --> no buttons available, so StillOff will work
|
|
// lParam2 indicates the number of seconds the still will last, with 0xffffffff
|
|
// indicating an infinite still (wait till button or StillOff selected).
|
|
//
|
|
// Raised from following domains: all
|
|
//
|
|
// Signaled at the beginning of any still: PGC still, Cell Still, or VOBU Still.
|
|
// Note that all combinations of buttons and still are possible (buttons on with
|
|
// still on, buttons on with still off, button off with still on, button off
|
|
// with still off).
|
|
|
|
#define EC_DVD_STILL_OFF (EC_DVDBASE + 0x0a)
|
|
// Parameters: ( void, void )
|
|
//
|
|
// Indicating that any still that is currently active
|
|
// has been released.
|
|
//
|
|
// Raised from following domains: all
|
|
//
|
|
// Signaled at the end of any still: PGC still, Cell Still, or VOBU Still.
|
|
//
|
|
|
|
#define EC_DVD_CURRENT_TIME (EC_DVDBASE + 0x0b)
|
|
// Parameters: ( DWORD, BOOL )
|
|
// lParam1 is a DVD_TIMECODE which indicates the current
|
|
// playback time code in a BCD HH:MM:SS:FF format.
|
|
// lParam2 == 0 --> time code is 25 frames/sec
|
|
// lParam2 == 1 --> time code is 30 frames/sec (non-drop).
|
|
//
|
|
// Raised from following domains: DVD_DOMAIN_Title
|
|
//
|
|
// Signaled at the beginning of every VOBU, which occurs every .4 to 1.0 sec.
|
|
// This is only signaled for One_Sequential_PGC_Titles.
|
|
|
|
|
|
#define EC_DVD_ERROR (EC_DVDBASE + 0x0c)
|
|
// Parameters: ( DWORD, void)
|
|
// lParam1 is an enum DVD_ERROR which notifies the app of some error condition.
|
|
//
|
|
// Raised from following domains: all
|
|
//
|
|
|
|
#define EC_DVD_WARNING (EC_DVDBASE + 0x0d)
|
|
// Parameters: ( DWORD, void)
|
|
// lParam1 is an enum DVD_WARNING which notifies the app of some warning condition.
|
|
//
|
|
// Raised from following domains: all
|
|
//
|
|
|
|
#define EC_DVD_CHAPTER_AUTOSTOP (EC_DVDBASE + 0x0e)
|
|
// Parameters: (void, void)
|
|
//
|
|
// Indicating that playback is stopped as a result of a call
|
|
// to IDVDControl::ChapterPlayAutoStop()
|
|
//
|
|
// Raised from following domains : DVD_DOMAIN_TITLE
|
|
//
|
|
|
|
#define EC_DVD_NO_FP_PGC (EC_DVDBASE + 0x0f)
|
|
// Parameters : (void, void)
|
|
//
|
|
// Raised from the following domains : FP_DOM
|
|
//
|
|
// Indicates that the DVD disc does not have a FP_PGC (First Play Program Chain)
|
|
// and the DVD Navigator will not automatically load any PGC and start playback.
|
|
//
|