| /** |
| * This file has no copyright assigned and is placed in the Public Domain. |
| * This file is part of the mingw-w64 runtime package. |
| * No warranty is given; refer to the file DISCLAIMER.PD within this package. |
| */ |
| #ifndef __VCR_H__ |
| #define __VCR_H__ |
| |
| #define MCI_VCR_OFFSET 1280 |
| |
| #define MCI_LIST 0x0878 |
| #define MCI_SETAUDIO 0x0873 |
| #define MCI_SETVIDEO 0x0876 |
| #define MCI_SIGNAL 0x0875 |
| |
| #define MCI_MARK (MCI_USER_MESSAGES + 0) |
| #define MCI_INDEX (MCI_USER_MESSAGES + 1) |
| #define MCI_SETTUNER (MCI_USER_MESSAGES + 2) |
| #define MCI_SETVCR (MCI_USER_MESSAGES + 3) |
| #define MCI_SETTIMECODE (MCI_USER_MESSAGES + 4) |
| |
| #define MCI_TEST __MSABI_LONG(0x00000020) |
| |
| #define MCI_VCR_GETDEVCAPS_CAN_DETECT_LENGTH __MSABI_LONG(0x00004001) |
| #define MCI_VCR_GETDEVCAPS_SEEK_ACCURACY __MSABI_LONG(0x00004002) |
| #define MCI_VCR_GETDEVCAPS_HAS_CLOCK __MSABI_LONG(0x00004003) |
| #define MCI_VCR_GETDEVCAPS_CAN_REVERSE __MSABI_LONG(0x00004004) |
| #define MCI_VCR_GETDEVCAPS_NUMBER_OF_MARKS __MSABI_LONG(0x00004005) |
| #define MCI_VCR_GETDEVCAPS_CAN_TEST __MSABI_LONG(0x00004006) |
| #define MCI_VCR_GETDEVCAPS_CAN_PREROLL __MSABI_LONG(0x00004007) |
| #define MCI_VCR_GETDEVCAPS_CAN_PREVIEW __MSABI_LONG(0x00004008) |
| #define MCI_VCR_GETDEVCAPS_CAN_MONITOR_SOURCES __MSABI_LONG(0x00004009) |
| #define MCI_VCR_GETDEVCAPS_HAS_TIMECODE __MSABI_LONG(0x0000400A) |
| #define MCI_VCR_GETDEVCAPS_CAN_FREEZE __MSABI_LONG(0x0000401B) |
| #define MCI_VCR_GETDEVCAPS_CLOCK_INCREMENT_RATE __MSABI_LONG(0x0000401C) |
| |
| #define MCI_VCR_INFO_VERSION __MSABI_LONG(0x00010000) |
| |
| #define MCI_VCR_PLAY_REVERSE __MSABI_LONG(0x00010000) |
| #define MCI_VCR_PLAY_AT __MSABI_LONG(0x00020000) |
| #define MCI_VCR_PLAY_SCAN __MSABI_LONG(0x00040000) |
| |
| #define MCI_VCR_RECORD_INITIALIZE __MSABI_LONG(0x00010000) |
| #define MCI_VCR_RECORD_AT __MSABI_LONG(0x00020000) |
| #define MCI_VCR_RECORD_PREVIEW __MSABI_LONG(0x00040000) |
| |
| #define MCI_VCR_CUE_INPUT __MSABI_LONG(0x00010000) |
| #define MCI_VCR_CUE_OUTPUT __MSABI_LONG(0x00020000) |
| #define MCI_VCR_CUE_PREROLL __MSABI_LONG(0x00040000) |
| #define MCI_VCR_CUE_REVERSE __MSABI_LONG(0x00080000) |
| |
| #define MCI_VCR_SEEK_REVERSE __MSABI_LONG(0x00010000) |
| #define MCI_VCR_SEEK_MARK __MSABI_LONG(0x00020000) |
| #define MCI_VCR_SEEK_AT __MSABI_LONG(0x00040000) |
| |
| #define MCI_VCR_SETTUNER_CHANNEL __MSABI_LONG(0x00010000) |
| #define MCI_VCR_SETTUNER_CHANNEL_UP __MSABI_LONG(0x00020000) |
| #define MCI_VCR_SETTUNER_CHANNEL_DOWN __MSABI_LONG(0x00040000) |
| #define MCI_VCR_SETTUNER_CHANNEL_SEEK_UP __MSABI_LONG(0x00080000) |
| #define MCI_VCR_SETTUNER_CHANNEL_SEEK_DOWN __MSABI_LONG(0x00100000) |
| #define MCI_VCR_SETTUNER_NUMBER __MSABI_LONG(0x00200000) |
| |
| #define MCI_VCR_SET_TIME_MODE __MSABI_LONG(0x00010000) |
| #define MCI_VCR_SET_POWER __MSABI_LONG(0x00020000) |
| #define MCI_VCR_SET_RECORD_FORMAT __MSABI_LONG(0x00040000) |
| #define MCI_VCR_SET_COUNTER_FORMAT __MSABI_LONG(0x00080000) |
| #define MCI_VCR_SET_INDEX __MSABI_LONG(0x00100000) |
| #define MCI_VCR_SET_ASSEMBLE_RECORD __MSABI_LONG(0x00200000) |
| #define MCI_VCR_SET_TRACKING __MSABI_LONG(0x00400000) |
| #define MCI_VCR_SET_SPEED __MSABI_LONG(0x00800000) |
| #define MCI_VCR_SET_TAPE_LENGTH __MSABI_LONG(0x01000000) |
| #define MCI_VCR_SET_COUNTER_VALUE __MSABI_LONG(0x02000000) |
| #define MCI_VCR_SET_CLOCK __MSABI_LONG(0x04000000) |
| #define MCI_VCR_SET_PAUSE_TIMEOUT __MSABI_LONG(0x08000000) |
| #define MCI_VCR_SET_PREROLL_DURATION __MSABI_LONG(0x10000000) |
| #define MCI_VCR_SET_POSTROLL_DURATION __MSABI_LONG(0x20000000) |
| |
| #define MCI_VCR_SETTIMECODE_RECORD __MSABI_LONG(0x00010000) |
| |
| #define MCI_VCR_STATUS_FRAME_RATE __MSABI_LONG(0x00004001) |
| #define MCI_VCR_STATUS_SPEED __MSABI_LONG(0x00004002) |
| #define MCI_VCR_STATUS_MEDIA_TYPE __MSABI_LONG(0x00004003) |
| #define MCI_VCR_STATUS_RECORD_FORMAT __MSABI_LONG(0x00004004) |
| #define MCI_VCR_STATUS_PLAY_FORMAT __MSABI_LONG(0x00004005) |
| #define MCI_VCR_STATUS_AUDIO_SOURCE __MSABI_LONG(0x00004006) |
| #define MCI_VCR_STATUS_AUDIO_SOURCE_NUMBER __MSABI_LONG(0x00004007) |
| #define MCI_VCR_STATUS_VIDEO_SOURCE __MSABI_LONG(0x00004008) |
| #define MCI_VCR_STATUS_VIDEO_SOURCE_NUMBER __MSABI_LONG(0x00004009) |
| #define MCI_VCR_STATUS_AUDIO_MONITOR __MSABI_LONG(0x0000400A) |
| #define MCI_VCR_STATUS_AUDIO_MONITOR_NUMBER __MSABI_LONG(0x0000400B) |
| #define MCI_VCR_STATUS_VIDEO_MONITOR __MSABI_LONG(0x0000400C) |
| #define MCI_VCR_STATUS_VIDEO_MONITOR_NUMBER __MSABI_LONG(0x0000400D) |
| #define MCI_VCR_STATUS_INDEX_ON __MSABI_LONG(0x0000400E) |
| #define MCI_VCR_STATUS_INDEX __MSABI_LONG(0x0000400F) |
| #define MCI_VCR_STATUS_COUNTER_FORMAT __MSABI_LONG(0x00004010) |
| #define MCI_VCR_STATUS_COUNTER_RESOLUTION __MSABI_LONG(0x00004011) |
| #define MCI_VCR_STATUS_TIMECODE_TYPE __MSABI_LONG(0x00004012) |
| #define MCI_VCR_STATUS_COUNTER_VALUE __MSABI_LONG(0x00004013) |
| #define MCI_VCR_STATUS_TUNER_CHANNEL __MSABI_LONG(0x00004014) |
| #define MCI_VCR_STATUS_WRITE_PROTECTED __MSABI_LONG(0x00004015) |
| #define MCI_VCR_STATUS_TIMECODE_RECORD __MSABI_LONG(0x00004016) |
| #define MCI_VCR_STATUS_VIDEO_RECORD __MSABI_LONG(0x00004017) |
| #define MCI_VCR_STATUS_AUDIO_RECORD __MSABI_LONG(0x00004018) |
| #define MCI_VCR_STATUS_TIME_TYPE __MSABI_LONG(0x00004019) |
| #define MCI_VCR_STATUS_TIME_MODE __MSABI_LONG(0x0000401A) |
| #define MCI_VCR_STATUS_POWER_ON __MSABI_LONG(0x0000401B) |
| #define MCI_VCR_STATUS_CLOCK __MSABI_LONG(0x0000401C) |
| #define MCI_VCR_STATUS_ASSEMBLE_RECORD __MSABI_LONG(0x0000401D) |
| #define MCI_VCR_STATUS_TIMECODE_PRESENT __MSABI_LONG(0x0000401E) |
| #define MCI_VCR_STATUS_NUMBER_OF_VIDEO_TRACKS __MSABI_LONG(0x0000401F) |
| #define MCI_VCR_STATUS_NUMBER_OF_AUDIO_TRACKS __MSABI_LONG(0x00004020) |
| #define MCI_VCR_STATUS_CLOCK_ID __MSABI_LONG(0x00004021) |
| #define MCI_VCR_STATUS_PAUSE_TIMEOUT __MSABI_LONG(0x00004022) |
| #define MCI_VCR_STATUS_PREROLL_DURATION __MSABI_LONG(0x00004023) |
| #define MCI_VCR_STATUS_POSTROLL_DURATION __MSABI_LONG(0x00004024) |
| #define MCI_VCR_STATUS_VIDEO __MSABI_LONG(0x00004025) |
| #define MCI_VCR_STATUS_AUDIO __MSABI_LONG(0x00004026) |
| |
| #define MCI_VCR_STATUS_NUMBER __MSABI_LONG(0x00080000) |
| |
| #define MCI_VCR_ESCAPE_STRING __MSABI_LONG(0x00000100) |
| |
| #define MCI_VCR_LIST_VIDEO_SOURCE __MSABI_LONG(0x00010000) |
| #define MCI_VCR_LIST_AUDIO_SOURCE __MSABI_LONG(0x00020000) |
| #define MCI_VCR_LIST_COUNT __MSABI_LONG(0x00040000) |
| #define MCI_VCR_LIST_NUMBER __MSABI_LONG(0x00080000) |
| |
| #define MCI_VCR_MARK_WRITE __MSABI_LONG(0x00010000) |
| #define MCI_VCR_MARK_ERASE __MSABI_LONG(0x00020000) |
| |
| #define MCI_VCR_SETAUDIO_RECORD __MSABI_LONG(0x00010000) |
| #define MCI_VCR_SETAUDIO_SOURCE __MSABI_LONG(0x00020000) |
| #define MCI_VCR_SETAUDIO_MONITOR __MSABI_LONG(0x00040000) |
| #define MCI_VCR_SETAUDIO_TO __MSABI_LONG(0x00200000) |
| #define MCI_VCR_SETAUDIO_NUMBER __MSABI_LONG(0x00400000) |
| |
| #define MCI_VCR_SETVIDEO_RECORD __MSABI_LONG(0x00010000) |
| #define MCI_VCR_SETVIDEO_SOURCE __MSABI_LONG(0x00020000) |
| #define MCI_VCR_SETVIDEO_MONITOR __MSABI_LONG(0x00040000) |
| #define MCI_VCR_SETVIDEO_TO __MSABI_LONG(0x00100000) |
| #define MCI_VCR_SETVIDEO_NUMBER __MSABI_LONG(0x00200000) |
| |
| #define SEND_VCRSIGNAL(dwFlags,dwCallback,hDriver,wDeviceID,dwUser,dwPos) DriverCallback((dwCallback),DCB_WINDOW,(HANDLE)(wDeviceID),MM_MCISIGNAL,hDriver,((dwFlags) & MCI_VCR_SIGNAL_POSITION) ? (dwPos):(dwUser),((dwFlags) & MCI_VCR_SIGNAL_POSITION) ? (dwUser):(dwPos)) |
| |
| #define MM_MCISIGNAL 0x3CB |
| |
| #define MCI_VCR_SIGNAL_AT __MSABI_LONG(0x00010000) |
| #define MCI_VCR_SIGNAL_EVERY __MSABI_LONG(0x00020000) |
| #define MCI_VCR_SIGNAL_USERVAL __MSABI_LONG(0x00040000) |
| #define MCI_VCR_SIGNAL_CANCEL __MSABI_LONG(0x00080000) |
| #define MCI_VCR_SIGNAL_POSITION __MSABI_LONG(0x00100000) |
| |
| #define MCI_VCR_STEP_FRAMES __MSABI_LONG(0x00010000) |
| #define MCI_VCR_STEP_REVERSE __MSABI_LONG(0x00020000) |
| |
| #define MCI_VCR_FREEZE_INPUT __MSABI_LONG(0x00010000) |
| #define MCI_VCR_FREEZE_OUTPUT __MSABI_LONG(0x00020000) |
| #define MCI_VCR_FREEZE_FIELD __MSABI_LONG(0x00040000) |
| #define MCI_VCR_FREEZE_FRAME __MSABI_LONG(0x00080000) |
| |
| #define MCI_VCR_UNFREEZE_INPUT __MSABI_LONG(0x00010000) |
| #define MCI_VCR_UNFREEZE_OUTPUT __MSABI_LONG(0x00020000) |
| |
| #define MCI_VCR_MEDIA_8MM (MCI_VCR_OFFSET + 1) |
| #define MCI_VCR_MEDIA_HI8 (MCI_VCR_OFFSET + 2) |
| #define MCI_VCR_MEDIA_VHS (MCI_VCR_OFFSET + 3) |
| #define MCI_VCR_MEDIA_SVHS (MCI_VCR_OFFSET + 4) |
| #define MCI_VCR_MEDIA_BETA (MCI_VCR_OFFSET + 5) |
| #define MCI_VCR_MEDIA_EDBETA (MCI_VCR_OFFSET + 6) |
| #define MCI_VCR_MEDIA_OTHER (MCI_VCR_OFFSET + 7) |
| |
| #define MCI_VCR_FORMAT_SP (MCI_VCR_OFFSET + 8) |
| #define MCI_VCR_FORMAT_LP (MCI_VCR_OFFSET + 9) |
| #define MCI_VCR_FORMAT_EP (MCI_VCR_OFFSET + 10) |
| #define MCI_VCR_FORMAT_OTHER (MCI_VCR_OFFSET + 11) |
| |
| #define MCI_VCR_TIME_TIMECODE (MCI_VCR_OFFSET + 12) |
| #define MCI_VCR_TIME_COUNTER (MCI_VCR_OFFSET + 13) |
| #define MCI_VCR_TIME_DETECT (MCI_VCR_OFFSET + 14) |
| |
| #define MCI_VCR_SRC_TYPE_TUNER (MCI_VCR_OFFSET + 15) |
| #define MCI_VCR_SRC_TYPE_LINE (MCI_VCR_OFFSET + 16) |
| #define MCI_VCR_SRC_TYPE_SVIDEO (MCI_VCR_OFFSET + 17) |
| #define MCI_VCR_SRC_TYPE_RGB (MCI_VCR_OFFSET + 18) |
| #define MCI_VCR_SRC_TYPE_AUX (MCI_VCR_OFFSET + 19) |
| #define MCI_VCR_SRC_TYPE_GENERIC (MCI_VCR_OFFSET + 20) |
| #define MCI_VCR_SRC_TYPE_MUTE (MCI_VCR_OFFSET + 21) |
| #define MCI_VCR_SRC_TYPE_OUTPUT (MCI_VCR_OFFSET + 22) |
| |
| #define MCI_VCR_INDEX_TIMECODE (MCI_VCR_OFFSET + 23) |
| #define MCI_VCR_INDEX_COUNTER (MCI_VCR_OFFSET + 24) |
| #define MCI_VCR_INDEX_DATE (MCI_VCR_OFFSET + 25) |
| #define MCI_VCR_INDEX_TIME (MCI_VCR_OFFSET + 26) |
| |
| #define MCI_VCR_COUNTER_RES_SECONDS (MCI_VCR_OFFSET + 27) |
| #define MCI_VCR_COUNTER_RES_FRAMES (MCI_VCR_OFFSET + 28) |
| |
| #define MCI_VCR_TIMECODE_TYPE_SMPTE (MCI_VCR_OFFSET + 29) |
| #define MCI_VCR_TIMECODE_TYPE_SMPTE_DROP (MCI_VCR_OFFSET + 30) |
| #define MCI_VCR_TIMECODE_TYPE_OTHER (MCI_VCR_OFFSET + 31) |
| #define MCI_VCR_TIMECODE_TYPE_NONE (MCI_VCR_OFFSET + 32) |
| |
| #define MCI_VCR_PLUS (MCI_VCR_OFFSET + 33) |
| #define MCI_VCR_MINUS (MCI_VCR_OFFSET + 34) |
| #define MCI_VCR_RESET (MCI_VCR_OFFSET + 35) |
| |
| #ifndef RC_INVOKED |
| |
| typedef struct tagMCI_VCR_SEEK_PARMS { |
| DWORD dwCallback; |
| DWORD dwTo; |
| DWORD dwMark; |
| DWORD dwAt; |
| } MCI_VCR_SEEK_PARMS; |
| typedef MCI_VCR_SEEK_PARMS *LPMCI_VCR_SEEK_PARMS; |
| |
| typedef struct tagMCI_VCR_SET_PARMS { |
| DWORD dwCallback; |
| DWORD dwTimeFormat; |
| DWORD dwAudio; |
| DWORD dwTimeMode; |
| DWORD dwRecordFormat; |
| DWORD dwCounterFormat; |
| DWORD dwIndex; |
| DWORD dwTracking; |
| DWORD dwSpeed; |
| DWORD dwLength; |
| DWORD dwCounter; |
| DWORD dwClock; |
| DWORD dwPauseTimeout; |
| DWORD dwPrerollDuration; |
| DWORD dwPostrollDuration; |
| } MCI_VCR_SET_PARMS; |
| typedef MCI_VCR_SET_PARMS *LPMCI_VCR_SET_PARMS; |
| |
| typedef struct tagMCI_VCR_SETTUNER_PARMS { |
| DWORD dwCallback; |
| DWORD dwChannel; |
| DWORD dwNumber; |
| } MCI_VCR_SETTUNER_PARMS; |
| typedef MCI_VCR_SETTUNER_PARMS *LPMCI_VCR_SETTUNER_PARMS; |
| |
| typedef struct tagMCI_VCR_ESCAPE_PARMS { |
| DWORD dwCallback; |
| LPCSTR lpstrCommand; |
| } MCI_VCR_ESCAPE_PARMS; |
| typedef MCI_VCR_ESCAPE_PARMS *LPMCI_VCR_ESCAPE_PARMS; |
| |
| typedef struct tagMCI_VCR_LIST_PARMS { |
| DWORD dwCallback; |
| DWORD dwReturn; |
| DWORD dwNumber; |
| } MCI_VCR_LIST_PARMS; |
| typedef MCI_VCR_LIST_PARMS *LPMCI_VCR_LIST_PARMS; |
| |
| typedef struct tagMCI_VCR_RECORD_PARMS { |
| DWORD dwCallback; |
| DWORD dwFrom; |
| DWORD dwTo; |
| DWORD dwAt; |
| } MCI_VCR_RECORD_PARMS; |
| typedef MCI_VCR_RECORD_PARMS *LPMCI_VCR_RECORD_PARMS; |
| |
| typedef struct tagMCI_VCR_PLAY_PARMS { |
| DWORD dwCallback; |
| DWORD dwFrom; |
| DWORD dwTo; |
| DWORD dwAt; |
| } MCI_VCR_PLAY_PARMS; |
| typedef MCI_VCR_PLAY_PARMS *LPMCI_VCR_PLAY_PARMS; |
| |
| typedef struct tagMCI_VCR_SETAUDIO_PARMS { |
| DWORD dwCallback; |
| DWORD dwTrack; |
| DWORD dwTo; |
| DWORD dwNumber; |
| } MCI_VCR_SETAUDIO_PARMS; |
| typedef MCI_VCR_SETAUDIO_PARMS *LPMCI_VCR_SETAUDIO_PARMS; |
| |
| typedef struct tagMCI_VCR_SIGNAL_PARMS { |
| DWORD dwCallback; |
| DWORD dwPosition; |
| DWORD dwPeriod; |
| DWORD dwUserParm; |
| } MCI_VCR_SIGNAL_PARMS; |
| typedef MCI_VCR_SIGNAL_PARMS *LPMCI_VCR_SIGNAL_PARMS; |
| |
| typedef struct tagMCI_VCR_STATUS_PARMS { |
| DWORD dwCallback; |
| DWORD dwReturn; |
| DWORD dwItem; |
| DWORD dwTrack; |
| DWORD dwNumber; |
| } MCI_VCR_STATUS_PARMS; |
| typedef MCI_VCR_STATUS_PARMS *LPMCI_VCR_STATUS_PARMS; |
| |
| typedef struct tagMCI_VCR_SETVIDEO_PARMS { |
| DWORD dwCallback; |
| DWORD dwTrack; |
| DWORD dwTo; |
| DWORD dwNumber; |
| } MCI_VCR_SETVIDEO_PARMS; |
| typedef MCI_VCR_SETVIDEO_PARMS *LPMCI_VCR_SETVIDEO_PARMS; |
| |
| typedef struct tagMCI_VCR_STEP_PARMS { |
| DWORD dwCallback; |
| DWORD dwFrames; |
| } MCI_VCR_STEP_PARMS; |
| typedef MCI_VCR_STEP_PARMS *LPMCI_VCR_STEP_PARMS; |
| |
| typedef struct tagMCI_VCR_CUE_PARMS { |
| DWORD dwCallback; |
| DWORD dwFrom; |
| DWORD dwTo; |
| } MCI_VCR_CUE_PARMS; |
| typedef MCI_VCR_CUE_PARMS *LPMCI_VCR_CUE_PARMS; |
| #endif |
| |
| #define MCIERR_VCR_CANNOT_OPEN_COMM (MCIERR_CUSTOM_DRIVER_BASE + 1) |
| #define MCIERR_VCR_CANNOT_WRITE_COMM (MCIERR_CUSTOM_DRIVER_BASE + 2) |
| #define MCIERR_VCR_READ_TIMEOUT (MCIERR_CUSTOM_DRIVER_BASE + 3) |
| #define MCIERR_VCR_COMMAND_BUFFER_FULL (MCIERR_CUSTOM_DRIVER_BASE + 4) |
| #define MCIERR_VCR_COMMAND_CANCELLED (MCIERR_CUSTOM_DRIVER_BASE + 5) |
| #define MCIERR_VCR_POWER_OFF (MCIERR_CUSTOM_DRIVER_BASE + 6) |
| #define MCIERR_VCR_COMMAND_FAILED (MCIERR_CUSTOM_DRIVER_BASE + 7) |
| #define MCIERR_VCR_SEARCH (MCIERR_CUSTOM_DRIVER_BASE + 8) |
| #define MCIERR_VCR_CONDITION (MCIERR_CUSTOM_DRIVER_BASE + 9) |
| #define MCIERR_VCR_CAMERA_MODE (MCIERR_CUSTOM_DRIVER_BASE + 10) |
| #define MCIERR_VCR_VCR_MODE (MCIERR_CUSTOM_DRIVER_BASE + 11) |
| #define MCIERR_VCR_COUNTER_TYPE (MCIERR_CUSTOM_DRIVER_BASE + 12) |
| #define MCIERR_VCR_TUNER (MCIERR_CUSTOM_DRIVER_BASE + 13) |
| #define MCIERR_VCR_EMERGENCY_STOP (MCIERR_CUSTOM_DRIVER_BASE + 14) |
| #define MCIERR_VCR_MEDIA_UNMOUNTED (MCIERR_CUSTOM_DRIVER_BASE + 15) |
| #define MCIERR_VCR_REGISTER (MCIERR_CUSTOM_DRIVER_BASE + 16) |
| #define MCIERR_VCR_TRACK_FAILURE (MCIERR_CUSTOM_DRIVER_BASE + 17) |
| #define MCIERR_VCR_CUE_FAILED_FLAGS (MCIERR_CUSTOM_DRIVER_BASE + 18) |
| #define MCIERR_VCR_ISWRITEPROTECTED (MCIERR_CUSTOM_DRIVER_BASE + 19) |
| #endif |