SatDump 2.0.0-alpha-76a915210
Loading...
Searching...
No Matches
image.h File Reference

Core Image class. More...

#include <cstddef>
#include <cstdint>
#include <vector>

Go to the source code of this file.

Classes

class  satdump::image::Image

Functions

void satdump::image::imemcpy (Image &img1, size_t pos1, Image &img2, size_t pos2, size_t px_size)
 Copy part of an image over. Safe way to do it with variable bit depths & channels.
void satdump::image::image_to_rgba (Image &img, uint32_t *output)
 Convert an image to a 8-bit RGBA buffer for OpenGL/etc textures.

Detailed Description

Core Image class.

Function Documentation

◆ image_to_rgba()

void satdump::image::image_to_rgba ( Image & img,
uint32_t * output )

Convert an image to a 8-bit RGBA buffer for OpenGL/etc textures.

Parameters
imgimage to convert
outputoutput buffer

◆ imemcpy()

void satdump::image::imemcpy ( Image & img1,
size_t pos1,
Image & img2,
size_t pos2,
size_t px_size )

Copy part of an image over. Safe way to do it with variable bit depths & channels.

Parameters
img1image to copy to
pos1position to copy to
img2image to copy from
pos2position to copy from
px_sizenumber of pixels to copy