comparison fuhtark_test/include/winapi/avifmt.h @ 1500:91c8c3b7cbf0

add: futhark tests for generating vulkan api
author sam <sam@basx.dev>
date Wed, 26 Nov 2025 21:36:48 +0700
parents
children
comparison
equal deleted inserted replaced
1499:1f58458b7ef7 1500:91c8c3b7cbf0
1 /**
2 * This file has no copyright assigned and is placed in the Public Domain.
3 * This file is part of the w64 mingw-runtime package.
4 * No warranty is given; refer to the file DISCLAIMER within this package.
5 */
6 #ifndef _INC_AVIFMT
7 #define _INC_AVIFMT 100
8
9 #ifdef __cplusplus
10 extern "C" {
11 #endif
12
13 #ifndef mmioFOURCC
14 #define mmioFOURCC(ch0,ch1,ch2,ch3) ((DWORD)(BYTE)(ch0) | ((DWORD)(BYTE)(ch1) << 8) | ((DWORD)(BYTE)(ch2) << 16) | ((DWORD)(BYTE)(ch3) << 24))
15 #endif
16
17 #ifndef aviTWOCC
18 #define aviTWOCC(ch0,ch1) ((WORD)(BYTE)(ch0) | ((WORD)(BYTE)(ch1) << 8))
19 #endif
20
21 typedef WORD TWOCC;
22
23 #define formtypeAVI mmioFOURCC('A','V','I',' ')
24 #define listtypeAVIHEADER mmioFOURCC('h','d','r','l')
25 #define ckidAVIMAINHDR mmioFOURCC('a','v','i','h')
26 #define listtypeSTREAMHEADER mmioFOURCC('s','t','r','l')
27 #define ckidSTREAMHEADER mmioFOURCC('s','t','r','h')
28 #define ckidSTREAMFORMAT mmioFOURCC('s','t','r','f')
29 #define ckidSTREAMHANDLERDATA mmioFOURCC('s','t','r','d')
30 #define ckidSTREAMNAME mmioFOURCC('s','t','r','n')
31
32 #define listtypeAVIMOVIE mmioFOURCC('m','o','v','i')
33 #define listtypeAVIRECORD mmioFOURCC('r','e','c',' ')
34
35 #define ckidAVINEWINDEX mmioFOURCC('i','d','x','1')
36
37 #define streamtypeVIDEO mmioFOURCC('v','i','d','s')
38 #define streamtypeAUDIO mmioFOURCC('a','u','d','s')
39 #define streamtypeMIDI mmioFOURCC('m','i','d','s')
40 #define streamtypeTEXT mmioFOURCC('t','x','t','s')
41
42 #define cktypeDIBbits aviTWOCC('d','b')
43 #define cktypeDIBcompressed aviTWOCC('d','c')
44 #define cktypePALchange aviTWOCC('p','c')
45 #define cktypeWAVEbytes aviTWOCC('w','b')
46
47 #define ckidAVIPADDING mmioFOURCC('J','U','N','K')
48
49 #define FromHex(n) (((n) >= 'A') ? ((n) + 10 - 'A') : ((n) - '0'))
50 #define StreamFromFOURCC(fcc) ((WORD) ((FromHex(LOBYTE(LOWORD(fcc))) << 4) + (FromHex(HIBYTE(LOWORD(fcc))))))
51
52 #define TWOCCFromFOURCC(fcc) HIWORD(fcc)
53
54 #define ToHex(n) ((BYTE) (((n) > 9) ? ((n) - 10 + 'A') : ((n) + '0')))
55 #define MAKEAVICKID(tcc,stream) MAKELONG((ToHex((stream) & 0x0f) << 8) | (ToHex(((stream) & 0xf0) >> 4)),tcc)
56
57 #define AVIF_HASINDEX 0x00000010
58 #define AVIF_MUSTUSEINDEX 0x00000020
59 #define AVIF_ISINTERLEAVED 0x00000100
60 #define AVIF_TRUSTCKTYPE 0x00000800
61 #define AVIF_WASCAPTUREFILE 0x00010000
62 #define AVIF_COPYRIGHTED 0x00020000
63
64 #define AVI_HEADERSIZE 2048
65
66 typedef struct {
67 DWORD dwMicroSecPerFrame;
68 DWORD dwMaxBytesPerSec;
69 DWORD dwPaddingGranularity;
70
71 DWORD dwFlags;
72 DWORD dwTotalFrames;
73 DWORD dwInitialFrames;
74 DWORD dwStreams;
75 DWORD dwSuggestedBufferSize;
76 DWORD dwWidth;
77 DWORD dwHeight;
78 DWORD dwReserved[4];
79 } MainAVIHeader;
80
81 #define AVISF_DISABLED 0x00000001
82
83 #define AVISF_VIDEO_PALCHANGES 0x00010000
84
85 typedef struct {
86 FOURCC fccType;
87 FOURCC fccHandler;
88 DWORD dwFlags;
89 WORD wPriority;
90 WORD wLanguage;
91 DWORD dwInitialFrames;
92 DWORD dwScale;
93 DWORD dwRate;
94 DWORD dwStart;
95 DWORD dwLength;
96 DWORD dwSuggestedBufferSize;
97 DWORD dwQuality;
98 DWORD dwSampleSize;
99 RECT rcFrame;
100 } AVIStreamHeader;
101
102 #define AVIIF_LIST 0x00000001L
103 #define AVIIF_KEYFRAME 0x00000010L
104
105 #define AVIIF_NOTIME 0x00000100L
106 #define AVIIF_COMPUSE 0x0FFF0000L
107
108 typedef struct {
109 DWORD ckid;
110 DWORD dwFlags;
111 DWORD dwChunkOffset;
112 DWORD dwChunkLength;
113 } AVIINDEXENTRY;
114
115 typedef struct {
116 BYTE bFirstEntry;
117 BYTE bNumEntries;
118 WORD wFlags;
119 PALETTEENTRY peNew[];
120 } AVIPALCHANGE;
121
122 #ifdef __cplusplus
123 }
124 #endif
125 #endif