- BORLAND/: Borland C++ 4.52 (chosen over 4.5 by byte-match: CODE/RP/CW32.LIB
is identical to 4.52's install lib). BCC32/TLINK32/TLIB/MAKE run natively on
Win11; CODE/BT/OPT.MAK is the shipped BTL4OPT.EXE's exact flag recipe
(extender = Borland PowerPack DPMI32, not Phar Lap TNT).
- restoration/source410/: the literal 1995-form reconstruction of the missing
BT game source (never mixed into CODE/). Round 1-3 state:
* 6 of 10 surviving original TUs COMPILE CLEAN under the period toolchain
(BTMSSN, BTCNSL, BTSCNRL, BTTEAM, BTL4MODE, BTL4ARND) - first builds
since 1996.
* BT_L4/BTL4APP.CPP pilot reconstruction: 12/12 functions, Fail() lands on
its binary-recorded line 400 exactly.
* BT/BTCNSL.HPP: console wire IDs recovered from the binary's ctors
(Killed=9, Damaged=10, ScoreUpdate=13, DeathWithoutHonor=15 [T1];
TeamScore=12 flagged [T4]).
* MUNGA/: 8 engine-header backfills back-dated from the BT412 WinTesla tree
(VDATA numbering decomp-verified; AUDREND's OpenAL-era virtual removed -
the period compiler is the drift detector).
* Tooling: backdate.py (WinTesla->1995 header transform), compile410.sh
(per-TU verification sweep under authentic OPT.MAK flags).
* README: corrected roadmap - MECH.HPP is the capstone grown with the mech
TU reconstructions; BTREG.CPP green = the header-family milestone.
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
122 lines
4.7 KiB
C++
122 lines
4.7 KiB
C++
/****************************************************************************/
|
|
/* */
|
|
/* MSVIDDRV.H - Include file for messages to video drivers */
|
|
/* */
|
|
/* Note: You must include WINDOWS.H before including this file. */
|
|
/* */
|
|
/****************************************************************************/
|
|
|
|
/*
|
|
* C/C++ Run Time Library - Version 6.5
|
|
*
|
|
* Copyright (c) 1994 by Borland International
|
|
* All Rights Reserved.
|
|
*
|
|
*/
|
|
|
|
#ifndef _INC_MSVIDDRV
|
|
#define _INC_MSVIDDRV 50 /* version number */
|
|
#define __MSVIDDRV_H
|
|
|
|
#ifdef __cplusplus
|
|
extern "C" { /* Assume C declarations for C++ */
|
|
#endif /* __cplusplus */
|
|
|
|
/****************************************************************************
|
|
|
|
Digital Video Messages (DVM_)
|
|
|
|
****************************************************************************/
|
|
|
|
// General messages
|
|
#define DVM_START DRV_USER
|
|
#define DVM_GETERRORTEXT (DVM_START + 0)
|
|
#define DVM_GETVIDEOAPIVER (DVM_START + 1)
|
|
|
|
// This value increments each time the API changes
|
|
// It is passed to the driver in the DRV_OPEN message.
|
|
#define VIDEOAPIVERSION 3
|
|
|
|
// General messages applicable to all channel types
|
|
#define DVM_DIALOG (DVM_START + 100)
|
|
#define DVM_CONFIGURESTORAGE (DVM_START + 101)
|
|
#define DVM_GET_CHANNEL_CAPS (DVM_START + 102)
|
|
#define DVM_UPDATE (DVM_START + 103)
|
|
|
|
// Single frame msg
|
|
#define DVM_FRAME (DVM_START + 200)
|
|
|
|
// stream messages
|
|
#define DVM_STREAM_MSG_START (DVM_START + 300)
|
|
#define DVM_STREAM_MSG_END (DVM_START + 399)
|
|
|
|
#define DVM_STREAM_ADDBUFFER (DVM_START + 300)
|
|
#define DVM_STREAM_FINI (DVM_START + 301)
|
|
#define DVM_STREAM_GETERROR (DVM_START + 302)
|
|
#define DVM_STREAM_GETPOSITION (DVM_START + 303)
|
|
#define DVM_STREAM_INIT (DVM_START + 304)
|
|
#define DVM_STREAM_PREPAREHEADER (DVM_START + 305)
|
|
#define DVM_STREAM_RESET (DVM_START + 306)
|
|
#define DVM_STREAM_START (DVM_START + 307)
|
|
#define DVM_STREAM_STOP (DVM_START + 308)
|
|
#define DVM_STREAM_UNPREPAREHEADER (DVM_START + 309)
|
|
|
|
// Following added post VFW1.1a
|
|
#define DVM_STREAM_ALLOCHDRANDBUFFER (DVM_START + 310)
|
|
#define DVM_STREAM_FREEHDRANDBUFFER (DVM_START + 311)
|
|
|
|
// NOTE that DVM_CONFIGURE numbers will start at 0x1000 (for configure API)
|
|
|
|
|
|
/****************************************************************************
|
|
|
|
Open Definitions
|
|
|
|
****************************************************************************/
|
|
#define OPEN_TYPE_VCAP mmioFOURCC('v', 'c', 'a', 'p')
|
|
|
|
// The following structure is the same as IC_OPEN
|
|
// to allow compressors and capture devices to share
|
|
// the same DriverProc.
|
|
|
|
typedef struct tag_video_open_parms {
|
|
DWORD dwSize; // sizeof(VIDEO_OPEN_PARMS)
|
|
FOURCC fccType; // 'vcap'
|
|
FOURCC fccComp; // unused
|
|
DWORD dwVersion; // version of msvideo opening you
|
|
DWORD dwFlags; // channel type
|
|
DWORD dwError; // if open fails, this is why
|
|
} VIDEO_OPEN_PARMS, FAR * LPVIDEO_OPEN_PARMS;
|
|
|
|
typedef struct tag_video_geterrortext_parms {
|
|
DWORD dwError; // The error number to identify
|
|
#ifdef WIN32
|
|
LPWSTR lpText; // Text buffer to fill
|
|
#else
|
|
LPSTR lpText; // Text buffer to fill
|
|
#endif
|
|
DWORD dwLength; // Size of text buffer in characters
|
|
} VIDEO_GETERRORTEXT_PARMS, FAR * LPVIDEO_GETERRORTEXT_PARMS;
|
|
|
|
typedef struct tag_video_stream_init_parms {
|
|
DWORD dwMicroSecPerFrame;
|
|
DWORD dwCallback;
|
|
DWORD dwCallbackInst;
|
|
DWORD dwFlags;
|
|
DWORD hVideo;
|
|
} VIDEO_STREAM_INIT_PARMS, FAR * LPVIDEO_STREAM_INIT_PARMS;
|
|
|
|
typedef struct tag_video_configure_parms {
|
|
LPDWORD lpdwReturn; // Return parameter from configure MSG.
|
|
LPVOID lpData1; // Pointer to data 1.
|
|
DWORD dwSize1; // size of data buffer 1.
|
|
LPVOID lpData2; // Pointer to data 2.
|
|
DWORD dwSize2; // size of data buffer 2.
|
|
} VIDEOCONFIGPARMS, FAR * LPVIDEOCONFIGPARMS;
|
|
|
|
#ifdef __cplusplus
|
|
} /* End of extern "C" { */
|
|
#endif /* __cplusplus */
|
|
|
|
#endif /* _INC_MSVIDDRV */
|