PanelColorizerBridge.h
iosApp/PanelColorizerBridge.h
1#import <Foundation/Foundation.h>2#include <stdint.h>34NS_ASSUME_NONNULL_BEGIN5// Packed RGBA pixels, limited to maxSide before rasterization. Width/height are out parameters.6FOUNDATION_EXPORT NSData * _Nullable YokanDecodePanel(NSData *data, int maxSide, int *width, int *height);7// Reads and bounds the source dimensions (including orientation) before full-resolution decode.8// failureCode: 1 for corrupt/unsupported input, 2 for page bounds exceeded.9FOUNDATION_EXPORT NSData * _Nullable YokanDecodePanelFullPage(NSData *data, int *width, int *height, int *failureCode);10FOUNDATION_EXPORT NSData * _Nullable YokanEncodePanel(const uint32_t *argb, int width, int height);11FOUNDATION_EXPORT BOOL YokanInferPanel(NSString *modelPath, const float *input, float *output, int width, int height);12NS_ASSUME_NONNULL_END13