Naveen Neel / shedskin
Embed: (wiki syntax)

« Back to documentation index

Show/hide line numbers tvout.h Source File

tvout.h

00001 /*
00002  * tvout.h
00003  *
00004  * Definitions for TV-out support
00005  *
00006  * This file is part of the w32api package.
00007  *
00008  * Contributors:
00009  *   Created by Casper S. Hornstrup <chorns@users.sourceforge.net>
00010  *
00011  * THIS SOFTWARE IS NOT COPYRIGHTED
00012  *
00013  * This source code is offered for use in the public domain. You may
00014  * use, modify or distribute it freely.
00015  *
00016  * This code is distributed in the hope that it will be useful but
00017  * WITHOUT ANY WARRANTY. ALL WARRANTIES, EXPRESS OR IMPLIED ARE HEREBY
00018  * DISCLAIMED. This includes but is not limited to warranties of
00019  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
00020  *
00021  */
00022 
00023 #ifndef __TVOUT_H
00024 #define __TVOUT_H
00025 
00026 #if __GNUC__ >=3
00027 #pragma GCC system_header
00028 #endif
00029 
00030 #ifdef __cplusplus
00031 extern "C" {
00032 #endif
00033 
00034 #include "ntddk.h"
00035 
00036 /* VIDEOPARAMETERS.dwCommand constants */
00037 #define VP_COMMAND_GET                    0x00000001
00038 #define VP_COMMAND_SET                    0x00000002
00039 
00040 /* VIDEOPARAMETERS.dwFlags constants */
00041 #define VP_FLAGS_TV_MODE                  0x00000001
00042 #define VP_FLAGS_TV_STANDARD              0x00000002
00043 #define VP_FLAGS_FLICKER                  0x00000004
00044 #define VP_FLAGS_OVERSCAN                 0x00000008
00045 #define VP_FLAGS_MAX_UNSCALED             0x00000010
00046 #define VP_FLAGS_POSITION                 0x00000020
00047 #define VP_FLAGS_BRIGHTNESS               0x00000040
00048 #define VP_FLAGS_CONTRAST                 0x00000080
00049 #define VP_FLAGS_COPYPROTECT              0x00000100
00050 
00051 /* VIDEOPARAMETERS.dwMode constants */
00052 #define VP_MODE_WIN_GRAPHICS              0x00000001
00053 #define VP_MODE_TV_PLAYBACK               0x00000002
00054 
00055 /* VIDEOPARAMETERS.dwTVStandard/dwAvailableTVStandard constants */
00056 #define VP_TV_STANDARD_NTSC_M             0x00000001
00057 #define VP_TV_STANDARD_NTSC_M_J           0x00000002
00058 #define VP_TV_STANDARD_PAL_B              0x00000004
00059 #define VP_TV_STANDARD_PAL_D              0x00000008
00060 #define VP_TV_STANDARD_PAL_H              0x00000010
00061 #define VP_TV_STANDARD_PAL_I              0x00000020
00062 #define VP_TV_STANDARD_PAL_M              0x00000040
00063 #define VP_TV_STANDARD_PAL_N              0x00000080
00064 #define VP_TV_STANDARD_SECAM_B            0x00000100
00065 #define VP_TV_STANDARD_SECAM_D            0x00000200
00066 #define VP_TV_STANDARD_SECAM_G            0x00000400
00067 #define VP_TV_STANDARD_SECAM_H            0x00000800
00068 #define VP_TV_STANDARD_SECAM_K            0x00001000
00069 #define VP_TV_STANDARD_SECAM_K1           0x00002000
00070 #define VP_TV_STANDARD_SECAM_L            0x00004000
00071 #define VP_TV_STANDARD_WIN_VGA            0x00008000
00072 #define VP_TV_STANDARD_NTSC_433           0x00010000
00073 #define VP_TV_STANDARD_PAL_G              0x00020000
00074 #define VP_TV_STANDARD_PAL_60             0x00040000
00075 #define VP_TV_STANDARD_SECAM_L1           0x00080000
00076 
00077 /* VIDEOPARAMETERS.dwMode constants */
00078 #define VP_CP_TYPE_APS_TRIGGER            0x00000001
00079 #define VP_CP_TYPE_MACROVISION            0x00000002
00080 
00081 /* VIDEOPARAMETERS.dwCPCommand constants */
00082 #define VP_CP_CMD_ACTIVATE                0x00000001
00083 #define VP_CP_CMD_DEACTIVATE              0x00000002
00084 #define VP_CP_CMD_CHANGE                  0x00000004
00085 
00086 typedef struct _VIDEOPARAMETERS {
00087   GUID  Guid;
00088   DWORD  dwOffset;
00089   DWORD  dwCommand;
00090   DWORD  dwFlags;
00091   DWORD  dwMode;
00092   DWORD  dwTVStandard;
00093   DWORD  dwAvailableModes;
00094   DWORD  dwAvailableTVStandard;
00095   DWORD  dwFlickerFilter;
00096   DWORD  dwOverScanX;
00097   DWORD  dwOverScanY;
00098   DWORD  dwMaxUnscaledX;
00099   DWORD  dwMaxUnscaledY;
00100   DWORD  dwPositionX;
00101   DWORD  dwPositionY;
00102   DWORD  dwBrightness;
00103   DWORD  dwContrast;
00104   DWORD  dwCPType;
00105   DWORD  dwCPCommand;
00106   DWORD  dwCPStandard;
00107   DWORD  dwCPKey;
00108   BYTE  bCP_APSTriggerBits;
00109   BYTE  bOEMCopyProtection[256];
00110 } VIDEOPARAMETERS, *PVIDEOPARAMETERS, FAR *LPVIDEOPARAMETERS;
00111 
00112 #ifdef __cplusplus
00113 }
00114 #endif
00115 
00116 #endif /* __TVOUT_H */