Skip to content

Commit 9444651

Browse files
authored
Improve txt dumper (#70)
1 parent f5a52c5 commit 9444651

File tree

14 files changed

+104
-20
lines changed

14 files changed

+104
-20
lines changed

include/DMDUtil/Config.h

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,13 @@ class DMDUTILAPI Config
5151
void SetMaximumUnknownFramesToSkip(int framesToSkip) { m_framesToSkip = framesToSkip; }
5252
int GetIgnoreUnknownFramesTimeout() { return m_framesTimeout; }
5353
int GetMaximumUnknownFramesToSkip() { return m_framesToSkip; }
54+
bool IsDumpNotColorizedFrames() const { return m_dumpNotColorizedFrames; }
55+
void SetDumpNotColorizedFrames(bool dumpNotColorizedFrames) { m_dumpNotColorizedFrames = dumpNotColorizedFrames; }
56+
bool IsFilterTransitionalFrames() const { return m_filterTransitionalFrames; }
57+
void SetFilterTransitionalFrames(bool filterTransitionalFrames)
58+
{
59+
m_filterTransitionalFrames = filterTransitionalFrames;
60+
}
5461
bool IsZeDMD() const { return m_zedmd; }
5562
void SetZeDMD(bool zedmd) { m_zedmd = zedmd; }
5663
const char* GetZeDMDDevice() const { return m_zedmdDevice.c_str(); }
@@ -96,6 +103,8 @@ class DMDUTILAPI Config
96103
bool m_pupExactColorMatch;
97104
int m_framesTimeout;
98105
int m_framesToSkip;
106+
bool m_dumpNotColorizedFrames;
107+
bool m_filterTransitionalFrames;
99108
bool m_zedmd;
100109
std::string m_zedmdDevice;
101110
bool m_zedmdDebug;

include/DMDUtil/DMD.h

Lines changed: 11 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -79,16 +79,17 @@ class DMDUTILAPI DMD
7979

8080
enum class Mode
8181
{
82-
Unknown, // int 0
83-
Data, // int 1
84-
RGB24, // int 2, RGB888
85-
RGB16, // int 3, RGB565
86-
AlphaNumeric, // int 4
87-
SerumV1, // int 5
88-
SerumV2_32, // int 6
89-
SerumV2_32_64, // int 7
90-
SerumV2_64, // int 8
91-
SerumV2_64_32, // int 9
82+
Unknown = 0,
83+
Data = 1,
84+
RGB24 = 2, // RGB888
85+
RGB16 = 3, // RGB565
86+
AlphaNumeric = 4,
87+
SerumV1 = 5,
88+
SerumV2_32 = 6,
89+
SerumV2_32_64 = 7,
90+
SerumV2_64 = 8,
91+
SerumV2_64_32 = 9,
92+
NotColorized = 10,
9293
};
9394

9495
bool IsSerumMode(Mode mode)

platforms/android/arm64-v8a/external.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,7 @@ cmake \
4040
-B build
4141
cmake --build build -- -j${NUM_PROCS}
4242
cp src/ZeDMD.h ../../third-party/include/
43+
cp -r third-party/include/komihash ../../third-party/include/
4344
cp -r third-party/include/sockpp ../../third-party/include/
4445
cp third-party/include/FrameUtil.h ../../third-party/include/
4546
cp third-party/runtime-libs/android/arm64-v8a/libsockpp.so ../../third-party/runtime-libs/android/arm64-v8a/

platforms/ios-simulator/arm64/external.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,7 @@ cmake \
3434
-B build
3535
cmake --build build -- -j${NUM_PROCS}
3636
cp src/ZeDMD.h ../../third-party/include/
37+
cp -r third-party/include/komihash ../../third-party/include/
3738
cp -r third-party/include/sockpp ../../third-party/include/
3839
cp third-party/include/FrameUtil.h ../../third-party/include/
3940
cp -a third-party/build-libs/ios-simulator/arm64/libsockpp.a ../../third-party/build-libs/ios-simulator/arm64/

platforms/ios/arm64/external.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,7 @@ cmake \
3434
-B build
3535
cmake --build build -- -j${NUM_PROCS}
3636
cp src/ZeDMD.h ../../third-party/include/
37+
cp -r third-party/include/komihash ../../third-party/include/
3738
cp -r third-party/include/sockpp ../../third-party/include/
3839
cp third-party/include/FrameUtil.h ../../third-party/include/
3940
cp -a third-party/build-libs/ios/arm64/libsockpp.a ../../third-party/build-libs/ios/arm64/

platforms/linux/aarch64/external.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,7 @@ cmake --build build -- -j${NUM_PROCS}
3636
cp src/ZeDMD.h ../../third-party/include/
3737
cp third-party/include/libserialport.h ../../third-party/include/
3838
cp third-party/include/cargs.h ../../third-party/include/
39+
cp -r third-party/include/komihash ../../third-party/include/
3940
cp -r third-party/include/sockpp ../../third-party/include/
4041
cp third-party/include/FrameUtil.h ../../third-party/include/
4142
cp third-party/runtime-libs/linux/aarch64/libcargs.so ../../third-party/runtime-libs/linux/aarch64/

platforms/linux/x64/external.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,7 @@ cmake --build build -- -j${NUM_PROCS}
3636
cp src/ZeDMD.h ../../third-party/include/
3737
cp third-party/include/libserialport.h ../../third-party/include/
3838
cp third-party/include/cargs.h ../../third-party/include/
39+
cp -r third-party/include/komihash ../../third-party/include/
3940
cp -r third-party/include/sockpp ../../third-party/include/
4041
cp third-party/include/FrameUtil.h ../../third-party/include/
4142
cp third-party/runtime-libs/linux/x64/libcargs.so ../../third-party/runtime-libs/linux/x64/

platforms/macos/arm64/external.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,7 @@ cmake --build build -- -j${NUM_PROCS}
3636
cp src/ZeDMD.h ../../third-party/include/
3737
cp third-party/include/libserialport.h ../../third-party/include/
3838
cp third-party/include/cargs.h ../../third-party/include/
39+
cp -r third-party/include/komihash ../../third-party/include/
3940
cp -r third-party/include/sockpp ../../third-party/include/
4041
cp third-party/include/FrameUtil.h ../../third-party/include/
4142
cp third-party/runtime-libs/macos/arm64/libcargs.dylib ../../third-party/runtime-libs/macos/arm64/

platforms/macos/x64/external.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,7 @@ cmake --build build -- -j${NUM_PROCS}
3636
cp src/ZeDMD.h ../../third-party/include/
3737
cp third-party/include/libserialport.h ../../third-party/include/
3838
cp third-party/include/cargs.h ../../third-party/include/
39+
cp -r third-party/include/komihash ../../third-party/include/
3940
cp -r third-party/include/sockpp ../../third-party/include/
4041
cp third-party/include/FrameUtil.h ../../third-party/include/
4142
cp third-party/runtime-libs/macos/x64/libcargs.dylib ../../third-party/runtime-libs/macos/x64/

platforms/tvos/arm64/external.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,7 @@ cmake \
3434
-B build
3535
cmake --build build -- -j${NUM_PROCS}
3636
cp src/ZeDMD.h ../../third-party/include/
37+
cp -r third-party/include/komihash ../../third-party/include/
3738
cp -r third-party/include/sockpp ../../third-party/include/
3839
cp third-party/include/FrameUtil.h ../../third-party/include/
3940
cp -a third-party/build-libs/tvos/arm64/libsockpp.a ../../third-party/build-libs/tvos/arm64/

0 commit comments

Comments
 (0)