Skip to content

Commit 20c3361

Browse files
committed
DumpAviHeaders project CMakeLists.txt
1 parent 3823bd2 commit 20c3361

File tree

5 files changed

+22
-79
lines changed

5 files changed

+22
-79
lines changed

CMakeLists.txt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,5 +6,7 @@ add_subdirectory(BMRawYuv422p10ToTiff)
66
add_subdirectory(DngRW)
77
add_subdirectory(ImageToDng)
88
add_subdirectory(DngHeaderDump)
9+
add_subdirectory(DumpAVIHeaders)
10+
911

1012

DumpAVIHeaders/CMakeLists.txt

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
cmake_minimum_required(VERSION 3.8)
2+
3+
project(DumpAVIHeaders LANGUAGES CSharp)
4+
5+
include(CSharpUtilities)
6+
7+
add_executable(DumpAVIHeaders
8+
Properties/AssemblyInfo.cs
9+
Program.cs)
10+
11+
csharp_set_designer_cs_properties(
12+
Properties/AssemblyInfo.cs)
13+
14+
set_property(TARGET DumpAVIHeaders PROPERTY VS_DOTNET_REFERENCES
15+
"Microsoft.CSharp"
16+
"System"
17+
"System.Core"
18+
"WindowsBase")

DumpAVIHeaders/DumpAVIHeaders.csproj

Lines changed: 0 additions & 53 deletions
This file was deleted.

DumpAVIHeaders/DumpAVIHeaders.sln

Lines changed: 0 additions & 25 deletions
This file was deleted.

DumpAVIHeaders/Program.cs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -300,7 +300,8 @@ static void ReadStreamData(string spc, uint cBytes, BinaryReader br) {
300300
Console.Write("{0} ", FourCCToString(fcc));
301301
++mVideoCount;
302302
} else if (((fcc>>16) & 0xffff) == CompressedVideo) {
303-
Console.WriteLine("{0:x12} CompressedVideo {1}bytes", br.BaseStream.Position, bBytes);
303+
Console.Write("{0} ", FourCCToString(fcc));
304+
++mVideoCount;
304305
} else if (((fcc>>16) & 0xffff) == PaletteChange) {
305306
Console.WriteLine("{0:x12} PaletteChange {1}bytes", br.BaseStream.Position, bBytes);
306307
} else if (((fcc>>16) & 0xffff) == AudioData) {

0 commit comments

Comments
 (0)