You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
RedstoneShell edited this page Oct 10, 2026
·
1 revision
DBMP_H
Linking by #include <dbmp.h>, compiling by adding dbmp.o in linker.
dbmp_info
Structure that describe BMP.
typedefstructdbmp_info {
u64width; // BMP image widthu64height; // BMP image heightu64bpp; // Bits Per Pixelu64pixel_offset; // Offset from start of file to first pixelinttop_down; // Line direction flag: 1 - top_down, 0 - down_topu64row_stride; // Real size of one line + padconstu8*pixels; // Pointer to buffer of pixels in Virtual Memory
} dbmp_info_t
dbmp_check(const buf: void*, size: u64): int
Check if BMP is valid. buf is buffer at loaded in memory BMP, size is sizeof(buf) of buffer.
Return 0 if invalid, 1 if valid.
dbmp_parse(const buf: void*, size: u64, out: dbmp_info_t*): int
Parse BMP into structure, buf is buffer at loaded in memory BMP, size is sizeof(buf) of buffer, out is output paramater where structure out filled.