Skip to content

Commit cc7ff7b

Browse files
committed
WIP AVIWriterImports
1 parent efd1f48 commit cc7ff7b

File tree

5 files changed

+131
-101
lines changed

5 files changed

+131
-101
lines changed

Common.props

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
<AnalysisModeReliability>Recommended</AnalysisModeReliability>
77
<AnalysisModePerformance>Recommended</AnalysisModePerformance>
88
<AnalysisModeUsage>Recommended</AnalysisModeUsage>
9-
<EmitCompilerGeneratedFiles>false</EmitCompilerGeneratedFiles> <!-- enable to copy Roslyn Source Generators' outputs to $(ProjectDir)/obj/.../generated -->
9+
<EmitCompilerGeneratedFiles>true</EmitCompilerGeneratedFiles> <!-- enable to copy Roslyn Source Generators' outputs to $(ProjectDir)/obj/.../generated -->
1010
<EnforceCodeStyleInBuild>true</EnforceCodeStyleInBuild>
1111
<CentralPackageTransitivePinningEnabled>true</CentralPackageTransitivePinningEnabled>
1212
<ContinuousIntegrationBuild Condition=" '$(GITLAB_CI)' != '' Or '$(APPVEYOR)' != '' ">true</ContinuousIntegrationBuild>
Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
using Windows.Win32.Foundation;
2+
using Windows.Win32.Media.Multimedia;
3+
4+
namespace Windows.Win32
5+
{
6+
public static partial class Win32Imports
7+
{
8+
/// <seealso cref="AVISaveOptions(HWND, uint, int, IAVIStream[], AVICOMPRESSOPTIONS**)"/>
9+
public static unsafe nint AVISaveOptions(IAVIStream[] ppavi, ref AVICOMPRESSOPTIONS opts, HWND owner)
10+
{
11+
fixed (AVICOMPRESSOPTIONS* popts = &opts)
12+
{
13+
return AVISaveOptions(owner, uiFlags: 0, nStreams: 1, ppavi, &popts);
14+
}
15+
}
16+
}
17+
}

src/BizHawk.Bizware.Externs/NativeMethods.txt

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,21 @@
1+
AVIFileCreateStreamW
2+
AVIFileInit
3+
AVIFileOpenW
4+
AVIFileRelease
5+
AVIIF_KEYFRAME
6+
AVIMakeCompressedStream
7+
AVISaveOptions
8+
AVIStreamRelease
9+
AVIStreamSetFormat
10+
AVIStreamSetFormat
11+
AVIStreamWrite
112
BFFM_INITIALIZED
213
BFFM_SETSELECTIONW
314
BIF_DONTGOBELOWDOMAIN
415
BIF_EDITBOX
516
BIF_NEWDIALOGSTYLE
617
BIF_RETURNONLYFSDIRS
18+
BITMAPINFOHEADER
719
BROWSEINFOW
820
ChangeWindowMessageFilter
921
CMF_EXPLORE
@@ -66,5 +78,6 @@ TranslateMessage
6678
VirtualAlloc
6779
VirtualFree
6880
VirtualProtect
81+
WAVEFORMATEX
6982
WINDOW_LONG_PTR_INDEX
7083
WM_SETREDRAW

0 commit comments

Comments
 (0)