save code

This commit is contained in:
xsl
2025-12-12 10:27:49 +08:00
parent 2130cf0e6b
commit 4cf1990b16
12 changed files with 65 additions and 30 deletions

Before

Width:  |  Height:  |  Size: 14 KiB

After

Width:  |  Height:  |  Size: 14 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 14 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 14 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 14 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 14 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 14 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 14 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 14 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 14 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 14 KiB

+60 -25
View File
@@ -1,30 +1,65 @@
{ {
"4": [ "4": [
"000000.png", "001.png",
"000001.png", "002.png",
"000002.png", "003.png",
"000003.png", "004.png",
"000004.png", "005.png",
"000005.png", "006.png",
"000006.png", "007.png",
"000007.png", "008.png",
"000008.png", "009.png",
"000009.png", "010.png",
"000010.png", "011.png",
"000011.png", "012.png",
"000012.png", "013.png",
"000013.png", "014.png",
"000014.png", "015.png",
"000015.png", "016.png",
"000016.png", "017.png",
"000017.png", "018.png",
"000018.png", "019.png",
"000019.png", "020.png",
"000020.png", "021.png",
"000021.png", "022.png",
"000022.png", "023.png",
"000023.png", "024.png",
"000024.png" "025.png",
"026.png",
"027.png",
"028.png",
"029.png",
"030.png",
"031.png",
"032.png",
"033.png",
"034.png",
"035.png",
"036.png",
"037.png",
"038.png",
"039.png",
"040.png",
"041.png",
"042.png",
"043.png",
"044.png",
"045.png",
"046.png",
"047.png",
"048.png",
"049.png",
"050.png",
"051.png",
"052.png",
"053.png",
"054.png",
"055.png",
"056.png",
"057.png",
"058.png",
"059.png",
"060.png"
], ],
"5": [ "5": [
"5.png" "5.png"
+5 -5
View File
@@ -56,16 +56,16 @@ int main() {
InitArg init_arg; InitArg init_arg;
Motion motion; Motion motion;
motion.type = "4"; motion.type = "4";
motion.png_names.push_back("4.png"); //motion.png_names.push_back("4.png");
for (int i = 0; i < 25; ++i) for (int i = 1; i < 61; ++i)
{ {
if (i < 10) if (i < 10)
{ {
motion.png_names.push_back("00000" + std::to_string(i) + ".png"); motion.png_names.push_back("00" + std::to_string(i) + ".png");
} }
else else
{ {
motion.png_names.push_back("0000" + std::to_string(i) + ".png"); motion.png_names.push_back("0" + std::to_string(i) + ".png");
} }
@@ -76,7 +76,7 @@ int main() {
//init_arg.motion = motion; //init_arg.motion = motion;
init_arg.action_fps = 10; init_arg.action_fps = 20;
init_arg.zoom = 1.5f; init_arg.zoom = 1.5f;
string json_str = json(init_arg).dump(); string json_str = json(init_arg).dump();