Added support for Streamdeck Pedal and updated UI to better fit the Packed UI style

This commit is contained in:
2026-02-27 22:47:08 +01:00
committed by erik
parent 5a70f775f1
commit 93faae5cc8
1463 changed files with 306917 additions and 0 deletions

32
node_modules/@julusian/jpeg-turbo/src/buffersize.cc generated vendored Normal file
View File

@@ -0,0 +1,32 @@
#include "buffersize.h"
Napi::Value BufferSize(const Napi::CallbackInfo &info)
{
Napi::Env env = info.Env();
if (info.Length() < 1)
{
Napi::TypeError::New(env, "Not enough arguments")
.ThrowAsJavaScriptException();
return env.Null();
}
if (!info[0].IsObject())
{
Napi::TypeError::New(env, "Invalid options").ThrowAsJavaScriptException();
return env.Null();
}
Napi::Object options = info[0].As<Napi::Object>();
BufferSizeOptions parsedOptions = ParseBufferSizeOptions(env, options);
if (!parsedOptions.valid)
{
return env.Null();
}
// Finally, calculate the buffer size
uint32_t dstLength = tjBufSize(parsedOptions.width, parsedOptions.height, parsedOptions.subsampling);
Napi::Number result = Napi::Number::New(env, dstLength);
return result;
}