add plugin camera desktop

This commit is contained in:
kyo
2026-06-22 09:39:31 +07:00
parent 92daeef0c5
commit 5407afbd6e
144 changed files with 15900 additions and 1 deletions

View File

@@ -0,0 +1,15 @@
#pragma once
#include <cstdint>
#include <string>
class PhotoHandler {
public:
// Writes |bgra| pixels (already flipped by the caller) as a JPEG to |path|.
// Returns true on success; sets |error| on failure.
static bool Write(const uint8_t* bgra, int width, int height,
const std::wstring& path, std::string* error);
// Generates a unique temp-file path for a photo from |camera_id|.
static std::wstring GeneratePath(int camera_id);
};