Files
armorpaint/base/sources/iron_image.h
T
2026-04-21 10:52:19 +02:00

14 lines
501 B
C

#pragma once
#include "iron_array.h"
#include "iron_global.h"
void iron_write_jpg(char *path, buffer_t *bytes, i32 w, i32 h, i32 format, i32 quality);
void iron_write_png(char *path, buffer_t *bytes, i32 w, i32 h, i32 format);
buffer_t *iron_encode_jpg(buffer_t *bytes, i32 w, i32 h, i32 format, i32 quality);
buffer_t *iron_encode_png(buffer_t *bytes, i32 w, i32 h, i32 format);
void iron_mp4_begin(char *path, i32 w, i32 h);
void iron_mp4_end();
void iron_mp4_encode(buffer_t *pixels);