Expose image format to the analyzer
Change-Id: I39c014ec58c08e29f60c8e4ea186fc57ac15c56b
diff --git a/examples/inspect.c b/examples/inspect.c
index 294e478..90c2c29 100644
--- a/examples/inspect.c
+++ b/examples/inspect.c
@@ -603,6 +603,12 @@
int get_bit_depth() { return img->bit_depth; }
EMSCRIPTEN_KEEPALIVE
+int get_bits_per_sample() { return img->bps; }
+
+EMSCRIPTEN_KEEPALIVE
+int get_image_format() { return img->fmt; }
+
+EMSCRIPTEN_KEEPALIVE
unsigned char *get_plane(int plane) { return img->planes[plane]; }
EMSCRIPTEN_KEEPALIVE