⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 dvdevcod.h

📁 Direct8.1SDK 游戏编程必备SDK 8.1版适用范围广些
💻 H
📖 第 1 页 / 共 3 页
字号:
// 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, DWORD) 
// lParam1 is an enum DVD_WARNING which notifies the app of some warning condition.
// lParam2 contains more specific information about the warning (warning dependent)
//
// Raised from following domains: all
//

#define EC_DVD_CHAPTER_AUTOSTOP                  (EC_DVDBASE + 0x0e)
// Parameters: (BOOL, void)
// lParam1 is a BOOL which indicates the reason for the cancellation of ChapterPlayAutoStop
// lParam1 == 0 indicates successful completion of ChapterPlayAutoStop
// lParam1 == 1 indicates that ChapterPlayAutoStop is being cancelled as a result of another
//            IDVDControl call or the end of content has been reached & no more chapters
//            can be played.
//  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.
//

#define EC_DVD_PLAYBACK_RATE_CHANGE              (EC_DVDBASE + 0x10)
//  Parameters : (LONG, void)
//  lParam1 is a LONG indicating the new playback rate.
//  lParam1 < 0 indicates reverse playback mode.
//  lParam1 > 0 indicates forward playback mode
//  Value of lParam1 is the actual playback rate multiplied by 10000.
//  i.e. lParam1 = rate * 10000
//
//  Raised from the following domains : TT_DOM
//
//  Indicates that a rate change in playback has been initiated and the parameter
//  lParam1 indicates the new playback rate that is being used.
//

#define EC_DVD_PARENTAL_LEVEL_CHANGE            (EC_DVDBASE + 0x11)
//  Parameters : (LONG, void)
//  lParam1 is a LONG indicating the new parental level.
//
//  Raised from the following domains : VMGM_DOM
//
//  Indicates that an authored Nav command has changed the parental level
//  setting in the player.
//

#define EC_DVD_PLAYBACK_STOPPED                 (EC_DVDBASE + 0x12)
//  Parameters : (DWORD, void)
//
//  Raised from the following domains : All Domains
//
// Indicates that playback has been stopped as the Navigator has completed
// playback of the pgc and did not find any other branching instruction for
// subsequent playback.
//
//  The DWORD returns the reason for the completion of the playback.  See
//  The DVD_PB_STOPPED enumeration for details.
//

#define EC_DVD_ANGLES_AVAILABLE                 (EC_DVDBASE + 0x13)
//  Parameters : (BOOL, void)
//  lParam1 == 0 indicates that playback is not in an angle block and angles are
//             not available
//  lParam1 == 1 indicates that an angle block is being played back and angle changes
//             can be performed.
//
//  Indicates whether an angle block is being played and if angle changes can be 
//  performed. However, angle changes are not restricted to angle blocks and the
//  manifestation of the angle change can be seen only in an angle block.

#define EC_DVD_PLAYPERIOD_AUTOSTOP              (EC_DVDBASE + 0x14)
// Parameters: (void, void)
// Sent when the PlayPeriodInTitle completes or is cancelled
//
// Raised from following domains : DVD_DOMAIN_TITLE
//

#define EC_DVD_BUTTON_AUTO_ACTIVATED                 (EC_DVDBASE + 0x15)
// Parameters: (DWORD button, void)
// Sent when a button is automatically activated
//
// Raised from following domains : DVD_DOMAIN_MENU
//

#define EC_DVD_CMD_START                 (EC_DVDBASE + 0x16)
// Parameters: (CmdID, HRESULT)
// Sent when a command begins
//

#define EC_DVD_CMD_END                 (EC_DVDBASE + 0x17)
// Parameters: (CmdID, HRESULT)
// Sent when a command completes
//

#define EC_DVD_DISC_EJECTED                (EC_DVDBASE + 0x18)
// Parameters: none
// Sent when the nav detects that a disc was ejected and stops the playback
// The app does not need to take any action to stop the playback.
//

#define EC_DVD_DISC_INSERTED                (EC_DVDBASE + 0x19)
// Parameters: none
// Sent when the nav detects that a disc was inserted and the nav begins playback
// The app does not need to take any action to start the playback.
//

#define EC_DVD_CURRENT_HMSF_TIME                     (EC_DVDBASE + 0x1a)
// Parameters: ( ULONG, ULONG ) 
// lParam2 contains a union of the DVD_TIMECODE_FLAGS
// lParam1 contains a DVD_HMSF_TIMECODE.  Assign lParam1 to a ULONG then cast the
// ULONG as a DVD_HMSF_TIMECODE to use its values.
//
// Raised from following domains: DVD_DOMAIN_Title
//
// Signaled at the beginning of every VOBU, which occurs every .4 to 1.0 sec.

#define EC_DVD_KARAOKE_MODE                     (EC_DVDBASE + 0x1b)
// Parameters: ( BOOL, reserved ) 
// lParam1 is either TRUE (a karaoke track is being played) or FALSE (no karaoke data is being played).
//




/////////////////////////////////////////////////////////////////////////////
//
//  Windows XP vs. DirectX 8.0 header merge
//
//  The following is the original contents of this header from
//  the DirectX 8.0 SDK.
//
/////////////////////////////////////////////////////////////////////////////

#else     // DirectX 8.0 content

    #define EC_DVDBASE                          0x0100

    #ifndef EXCLUDE_DVDEVCODE_ENUMS

    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 cannot be played because the disc is not
                                        // authored to play in system region.
                                        // The region mismatch may be fixable by 
                                        // changing the system region with dvdrgn.exe
        DVD_ERROR_LowParentalLevel=5,   // Player parental level is lower than the lowest parental
                                        //   level available in the DVD content. Playback is stopped.
        DVD_ERROR_MacrovisionFail=6,    // Macrovision Distribution Failed.
                                        // Playback is stopped.
        DVD_ERROR_IncompatibleSystemAndDecoderRegions=7,
                                        // No discs can be played because the system region
                                        // does not match the decoder region.
        DVD_ERROR_IncompatibleDiscAndDecoderRegions=8
                                        // The disc cannot be played because the disc is
                                        // not authored to be played in the decoder's region
    } 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_IllegalNavCommand=3,// The internal DVD navigation command processor attempted to 
                                        //   process an illegal command.
        DVD_WARNING_Open = 4,           // File Open Failed
        DVD_WARNING_Seek = 5,           // File Seek Failed
        DVD_WARNING_Read = 6            // File Read Failed
    } DVD_WARNING;

    #endif

    // 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

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -