Openholo
v4.2
Open Source Digital Holographic Library
|
#include <ImgControl.h>
Public Member Functions | |
bool | GetSize (const char *path, uint32_t *size) |
Get file size. More... | |
bool | Resize (const uint8_t *src, uint8_t *dst, const uint32_t w, const uint32_t h, const uint32_t neww, const uint32_t newh, const uint8_t ch) |
Resize the bitmap. More... | |
bool | Rotate (const double rotate, const uint8_t *src, uint8_t *dst, const uint32_t w, const uint32_t h, const uint32_t neww, const uint32_t newh, const uint8_t ch) |
Rotate the bitmap. More... | |
bool | Flip (FLIP mode, const uint8_t *src, uint8_t *dst, const uint32_t w, const uint32_t h, const uint8_t ch) |
Flip the bitmap. More... | |
bool | Crop (const uint8_t *src, uint8_t *dst, const uint32_t w, const uint32_t h, const uint8_t ch, const uint32_t start_x, const uint32_t start_y, const uint32_t end_x, const uint32_t end_y) |
Crop the bitmap. More... | |
bool | GetSize (const char *path, uint32_t *size) |
bool | Resize (const uint8_t *src, uint8_t *dst, const uint32_t w, const uint32_t h, const uint32_t neww, const uint32_t newh, const uint8_t ch) |
bool | Rotate (const double rotate, const uint8_t *src, uint8_t *dst, const uint32_t w, const uint32_t h, const uint32_t neww, const uint32_t newh, const uint8_t ch) |
bool | Flip (FLIP mode, const uint8_t *src, uint8_t *dst, const uint32_t w, const uint32_t h, const uint8_t ch) |
bool | Crop (const uint8_t *src, uint8_t *dst, const uint32_t w, const uint32_t h, const uint8_t ch, const uint32_t start_x, const uint32_t start_y, const uint32_t end_x, const uint32_t end_y) |
bool | GetSize (const char *path, uint32_t *size) |
bool | Resize (const uint8_t *src, uint8_t *dst, const uint32_t w, const uint32_t h, const uint32_t neww, const uint32_t newh, const uint8_t ch) |
bool | Rotate (const double rotate, const uint8_t *src, uint8_t *dst, const uint32_t w, const uint32_t h, const uint32_t neww, const uint32_t newh, const uint8_t ch) |
bool | Flip (FLIP mode, const uint8_t *src, uint8_t *dst, const uint32_t w, const uint32_t h, const uint8_t ch) |
bool | Crop (const uint8_t *src, uint8_t *dst, const uint32_t w, const uint32_t h, const uint8_t ch, const uint32_t start_x, const uint32_t start_y, const uint32_t end_x, const uint32_t end_y) |
bool | GetSize (const char *path, uint32_t *size) |
bool | Resize (const uint8_t *src, uint8_t *dst, const uint32_t w, const uint32_t h, const uint32_t neww, const uint32_t newh, const uint8_t ch) |
bool | Rotate (const double rotate, const uint8_t *src, uint8_t *dst, const uint32_t w, const uint32_t h, const uint32_t neww, const uint32_t newh, const uint8_t ch) |
bool | Flip (FLIP mode, const uint8_t *src, uint8_t *dst, const uint32_t w, const uint32_t h, const uint8_t ch) |
bool | Crop (const uint8_t *src, uint8_t *dst, const uint32_t w, const uint32_t h, const uint8_t ch, const uint32_t start_x, const uint32_t start_y, const uint32_t end_x, const uint32_t end_y) |
Static Public Member Functions | |
static ImgControl * | getInstance () |
static ImgControl * | getInstance () |
static ImgControl * | getInstance () |
static ImgControl * | getInstance () |
Definition at line 40 of file ImgControl.h.
bool ImgControl::Crop | ( | const uint8_t * | src, |
uint8_t * | dst, | ||
const uint32_t | w, | ||
const uint32_t | h, | ||
const uint8_t | ch, | ||
const uint32_t | start_x, | ||
const uint32_t | start_y, | ||
const uint32_t | end_x, | ||
const uint32_t | end_y | ||
) |
Crop the bitmap.
src | : [in] source pixel buffer |
dst | : [out] destination pixel buffer |
w | : [in] source bitmap width |
h | : [in] source bitmap height |
ch | : [in] bitmap channel |
start_x | : [in] crop start offset x |
start_y | : [in] crop start offset y |
end_x | : [in] crop end offset x |
end_y | : [in] crop end offset y |
Definition at line 265 of file ImgControl.cpp.
bool oph::ImgControl::Crop | ( | const uint8_t * | src, |
uint8_t * | dst, | ||
const uint32_t | w, | ||
const uint32_t | h, | ||
const uint8_t | ch, | ||
const uint32_t | start_x, | ||
const uint32_t | start_y, | ||
const uint32_t | end_x, | ||
const uint32_t | end_y | ||
) |
bool oph::ImgControl::Crop | ( | const uint8_t * | src, |
uint8_t * | dst, | ||
const uint32_t | w, | ||
const uint32_t | h, | ||
const uint8_t | ch, | ||
const uint32_t | start_x, | ||
const uint32_t | start_y, | ||
const uint32_t | end_x, | ||
const uint32_t | end_y | ||
) |
bool oph::ImgControl::Crop | ( | const uint8_t * | src, |
uint8_t * | dst, | ||
const uint32_t | w, | ||
const uint32_t | h, | ||
const uint8_t | ch, | ||
const uint32_t | start_x, | ||
const uint32_t | start_y, | ||
const uint32_t | end_x, | ||
const uint32_t | end_y | ||
) |
bool oph::ImgControl::Flip | ( | FLIP | mode, |
const uint8_t * | src, | ||
uint8_t * | dst, | ||
const uint32_t | w, | ||
const uint32_t | h, | ||
const uint8_t | ch | ||
) |
bool oph::ImgControl::Flip | ( | FLIP | mode, |
const uint8_t * | src, | ||
uint8_t * | dst, | ||
const uint32_t | w, | ||
const uint32_t | h, | ||
const uint8_t | ch | ||
) |
bool oph::ImgControl::Flip | ( | FLIP | mode, |
const uint8_t * | src, | ||
uint8_t * | dst, | ||
const uint32_t | w, | ||
const uint32_t | h, | ||
const uint8_t | ch | ||
) |
bool ImgControl::Flip | ( | FLIP | mode, |
const uint8_t * | src, | ||
uint8_t * | dst, | ||
const uint32_t | w, | ||
const uint32_t | h, | ||
const uint8_t | ch | ||
) |
Flip the bitmap.
rotate | : [in] flip mode. |
src | : [in] source pixel buffer |
dst | : [out] destination pixel buffer |
w | : [in] source bitmap width |
h | : [in] source bitmap height |
ch | : [in] bitmap channel |
Definition at line 203 of file ImgControl.cpp.
|
inlinestatic |
Definition at line 50 of file ImgControl.h.
|
inlinestatic |
Definition at line 50 of file ImgControl.h.
|
inlinestatic |
Definition at line 50 of file ImgControl.h.
|
inlinestatic |
Definition at line 50 of file ImgControl.h.
bool oph::ImgControl::GetSize | ( | const char * | path, |
uint32_t * | size | ||
) |
bool oph::ImgControl::GetSize | ( | const char * | path, |
uint32_t * | size | ||
) |
bool ImgControl::GetSize | ( | const char * | path, |
uint32_t * | size | ||
) |
Get file size.
path | : [in] file path |
size | : [out] file size |
Definition at line 300 of file ImgControl.cpp.
bool oph::ImgControl::GetSize | ( | const char * | path, |
uint32_t * | size | ||
) |
bool oph::ImgControl::Resize | ( | const uint8_t * | src, |
uint8_t * | dst, | ||
const uint32_t | w, | ||
const uint32_t | h, | ||
const uint32_t | neww, | ||
const uint32_t | newh, | ||
const uint8_t | ch | ||
) |
bool oph::ImgControl::Resize | ( | const uint8_t * | src, |
uint8_t * | dst, | ||
const uint32_t | w, | ||
const uint32_t | h, | ||
const uint32_t | neww, | ||
const uint32_t | newh, | ||
const uint8_t | ch | ||
) |
bool ImgControl::Resize | ( | const uint8_t * | src, |
uint8_t * | dst, | ||
const uint32_t | w, | ||
const uint32_t | h, | ||
const uint32_t | neww, | ||
const uint32_t | newh, | ||
const uint8_t | ch | ||
) |
Resize the bitmap.
src | : [in] source pixel buffer |
dst | : [out] destination pixel buffer |
w | : [in] source bitmap width |
h | : [in] source bitmap height |
neww | : [in] destination bitmap width |
newh | : [in] destination bitmap height |
ch | : [in] bitmap channel |
Definition at line 40 of file ImgControl.cpp.
bool oph::ImgControl::Resize | ( | const uint8_t * | src, |
uint8_t * | dst, | ||
const uint32_t | w, | ||
const uint32_t | h, | ||
const uint32_t | neww, | ||
const uint32_t | newh, | ||
const uint8_t | ch | ||
) |
bool oph::ImgControl::Rotate | ( | const double | rotate, |
const uint8_t * | src, | ||
uint8_t * | dst, | ||
const uint32_t | w, | ||
const uint32_t | h, | ||
const uint32_t | neww, | ||
const uint32_t | newh, | ||
const uint8_t | ch | ||
) |
bool oph::ImgControl::Rotate | ( | const double | rotate, |
const uint8_t * | src, | ||
uint8_t * | dst, | ||
const uint32_t | w, | ||
const uint32_t | h, | ||
const uint32_t | neww, | ||
const uint32_t | newh, | ||
const uint8_t | ch | ||
) |
bool ImgControl::Rotate | ( | const double | rotate, |
const uint8_t * | src, | ||
uint8_t * | dst, | ||
const uint32_t | w, | ||
const uint32_t | h, | ||
const uint32_t | neww, | ||
const uint32_t | newh, | ||
const uint8_t | ch | ||
) |
Rotate the bitmap.
rotate | : [in] rotate angle. |
src | : [in] source pixel buffer |
dst | : [out] destination pixel buffer |
w | : [in] source bitmap width |
h | : [in] source bitmap height |
neww | : [in] destination bitmap width |
newh | : [in] destination bitmap height |
ch | : [in] bitmap channel |
Definition at line 136 of file ImgControl.cpp.
bool oph::ImgControl::Rotate | ( | const double | rotate, |
const uint8_t * | src, | ||
uint8_t * | dst, | ||
const uint32_t | w, | ||
const uint32_t | h, | ||
const uint32_t | neww, | ||
const uint32_t | newh, | ||
const uint8_t | ch | ||
) |