diff --git a/platforms/android/arm64-v8a/external.sh b/platforms/android/arm64-v8a/external.sh index 82802bf..ff90dd3 100755 --- a/platforms/android/arm64-v8a/external.sh +++ b/platforms/android/arm64-v8a/external.sh @@ -2,7 +2,7 @@ set -e -LIBZEDMD_SHA=f7cab7910a347d744584274117f541182cd216d8 +LIBZEDMD_SHA=7d2b0fc39475940b61b0126f3ff308dd193fe2a8 LIBSERUM_SHA=b69d2b436bc93570a2e7e78d0946cd3c43f7aed5 if [[ $(uname) == "Linux" ]]; then diff --git a/platforms/ios/arm64/external.sh b/platforms/ios/arm64/external.sh index 7a81786..9f913ac 100755 --- a/platforms/ios/arm64/external.sh +++ b/platforms/ios/arm64/external.sh @@ -2,7 +2,7 @@ set -e -LIBZEDMD_SHA=f7cab7910a347d744584274117f541182cd216d8 +LIBZEDMD_SHA=7d2b0fc39475940b61b0126f3ff308dd193fe2a8 LIBSERUM_SHA=b69d2b436bc93570a2e7e78d0946cd3c43f7aed5 NUM_PROCS=$(sysctl -n hw.ncpu) diff --git a/platforms/linux/aarch64/external.sh b/platforms/linux/aarch64/external.sh index 0963b0a..4248a39 100755 --- a/platforms/linux/aarch64/external.sh +++ b/platforms/linux/aarch64/external.sh @@ -2,7 +2,7 @@ set -e -LIBZEDMD_SHA=f7cab7910a347d744584274117f541182cd216d8 +LIBZEDMD_SHA=7d2b0fc39475940b61b0126f3ff308dd193fe2a8 LIBSERUM_SHA=b69d2b436bc93570a2e7e78d0946cd3c43f7aed5 NUM_PROCS=$(nproc) diff --git a/platforms/linux/x64/external.sh b/platforms/linux/x64/external.sh index 6fc42aa..54ec8d1 100755 --- a/platforms/linux/x64/external.sh +++ b/platforms/linux/x64/external.sh @@ -2,7 +2,7 @@ set -e -LIBZEDMD_SHA=f7cab7910a347d744584274117f541182cd216d8 +LIBZEDMD_SHA=7d2b0fc39475940b61b0126f3ff308dd193fe2a8 LIBSERUM_SHA=b69d2b436bc93570a2e7e78d0946cd3c43f7aed5 NUM_PROCS=$(nproc) diff --git a/platforms/macos/arm64/external.sh b/platforms/macos/arm64/external.sh index 5d4c86d..31090d0 100755 --- a/platforms/macos/arm64/external.sh +++ b/platforms/macos/arm64/external.sh @@ -2,7 +2,7 @@ set -e -LIBZEDMD_SHA=f7cab7910a347d744584274117f541182cd216d8 +LIBZEDMD_SHA=7d2b0fc39475940b61b0126f3ff308dd193fe2a8 LIBSERUM_SHA=b69d2b436bc93570a2e7e78d0946cd3c43f7aed5 NUM_PROCS=$(sysctl -n hw.ncpu) diff --git a/platforms/macos/x64/external.sh b/platforms/macos/x64/external.sh index 725524b..b2d9c81 100755 --- a/platforms/macos/x64/external.sh +++ b/platforms/macos/x64/external.sh @@ -2,7 +2,7 @@ set -e -LIBZEDMD_SHA=f7cab7910a347d744584274117f541182cd216d8 +LIBZEDMD_SHA=7d2b0fc39475940b61b0126f3ff308dd193fe2a8 LIBSERUM_SHA=b69d2b436bc93570a2e7e78d0946cd3c43f7aed5 NUM_PROCS=$(sysctl -n hw.ncpu) diff --git a/platforms/tvos/arm64/external.sh b/platforms/tvos/arm64/external.sh index 03d3bf8..7044c80 100755 --- a/platforms/tvos/arm64/external.sh +++ b/platforms/tvos/arm64/external.sh @@ -2,7 +2,7 @@ set -e -LIBZEDMD_SHA=f7cab7910a347d744584274117f541182cd216d8 +LIBZEDMD_SHA=7d2b0fc39475940b61b0126f3ff308dd193fe2a8 LIBSERUM_SHA=b69d2b436bc93570a2e7e78d0946cd3c43f7aed5 NUM_PROCS=$(sysctl -n hw.ncpu) diff --git a/platforms/win/x64/external.sh b/platforms/win/x64/external.sh index 14a56fa..43fc219 100755 --- a/platforms/win/x64/external.sh +++ b/platforms/win/x64/external.sh @@ -2,7 +2,7 @@ set -e -LIBZEDMD_SHA=f7cab7910a347d744584274117f541182cd216d8 +LIBZEDMD_SHA=7d2b0fc39475940b61b0126f3ff308dd193fe2a8 LIBSERUM_SHA=b69d2b436bc93570a2e7e78d0946cd3c43f7aed5 echo "Building libraries..." diff --git a/platforms/win/x86/external.sh b/platforms/win/x86/external.sh index bb08cc2..6143d91 100755 --- a/platforms/win/x86/external.sh +++ b/platforms/win/x86/external.sh @@ -2,7 +2,7 @@ set -e -LIBZEDMD_SHA=f7cab7910a347d744584274117f541182cd216d8 +LIBZEDMD_SHA=7d2b0fc39475940b61b0126f3ff308dd193fe2a8 LIBSERUM_SHA=b69d2b436bc93570a2e7e78d0946cd3c43f7aed5 echo "Building libraries..." diff --git a/src/test.cpp b/src/test.cpp index 092554f..2b8c914 100644 --- a/src/test.cpp +++ b/src/test.cpp @@ -4,6 +4,7 @@ #include "DMDUtil/DMDUtil.h" #include "DMDUtil/LevelDMD.h" #include "DMDUtil/RGB24DMD.h" +#include void DMDUTILCALLBACK LogCallback(const char* format, va_list args) { @@ -156,9 +157,31 @@ int main(int argc, const char* argv[]) pDmd->UpdateRGB16Data(image16, 128, 32); std::this_thread::sleep_for(std::chrono::milliseconds(ms)); - ms -= 50; + ms -= 60; } + FILE* fileptr; + uint16_t size = width * height * 2; + uint8_t* buffer = (uint8_t*)malloc(size * sizeof(uint8_t)); + uint16_t* rgb565 = (uint16_t*)malloc(size / 2 * sizeof(uint16_t)); + char filename[128]; + + for (int i = 1; i <= 100; i++) + { + snprintf(filename, 87, "external/libzedmd-7d2b0fc39475940b61b0126f3ff308dd193fe2a8/test/rgb565_%dx%d/%04d.raw", width, height, i); + printf("Render raw: %s\n", filename); + fileptr = fopen(filename, "rb"); + fread(buffer, size, 1, fileptr); + fclose(fileptr); + + memcpy(rgb565, buffer, size); + pDmd->UpdateRGB16Data(rgb565, 128, 32); + std::this_thread::sleep_for(std::chrono::milliseconds(80)); + } + + free(buffer); + free(rgb565); + printf("Finished rendering\n"); free(pImage2);