blob: ca4c8816eb52316613a041cff20af2624f42f476 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
|
#pragma once
#include <cstdint>
int64_t bmp_encoded_size(int width, int height);
// src should be 3*w*h bytes
// dst should be bmp_rgb_encoded_size(w,h) bytes
void bmp_rgb_encode_memory(uint8_t *dst, const uint8_t *src, int width, int height);
uint8_t* bmp_rgb_encode_memory_alloc(const uint8_t *src, int width, int height);
void bmp_rgb_encode_file(const char *fname, const uint8_t *src, int width, int height);
|