Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 12 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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"

Expand Down
1 change: 1 addition & 0 deletions main.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down