From ebc210e387575aaba04df321998d5372360ba9f1 Mon Sep 17 00:00:00 2001 From: Zacck Date: Tue, 5 Aug 2025 06:07:53 +0200 Subject: [PATCH] Add app details to README - Add details about what the application does to the read me - Print the image from a different buffer just to show it's different --- README.md | 12 ++++++++++++ main.c | 1 + 2 files changed, 13 insertions(+) diff --git a/README.md b/README.md index d3f1412..bd30a10 100644 --- a/README.md +++ b/README.md @@ -4,6 +4,18 @@ POSIX libmpix example An example application that runs on any reasonably POSIX system, such as Linux, BSD, Mac OS, as well as some RTOS. +The application does the following +- Initializes a buffer with some pixel data and uses that buffer to build an image +- Prints this image out to console +- It then applies a number of format conversions to the image +- Fills an output buffer with the the converted image + + +Note: +On some systems you may run into a missing python issues, usually one needs to install python or symlink +a specific version of python such as `python3` to python. + + ```sh export LIBMPIX="$PWD/libmpix" diff --git a/main.c b/main.c index 388aa9e..dd372f1 100644 --- a/main.c +++ b/main.c @@ -39,6 +39,7 @@ int main(void) return img.err; } + mpix_image_from_buf(&img, buf_out, sizeof(buf_out), APP_WIDTH, APP_HEIGHT, APP_FOURCC); mpix_image_print_truecolor(&img); return 0;