mirror of
https://github.com/jomjol/AI-on-the-edge-device.git
synced 2025-12-07 03:56:57 +03:00
* centralize PSRAM usage (application code only) * update logging * update logging * fix use after free * initialize buffer * free rgb_image before ussing it for new allocation * use wrapper function * switch log level to debug * . * undo adding free() calls * . * add names to all CImage instances * . * . * . * revert changes of stbi_image_free() with free_psram_heap() on the places where is is not in PSRAM * . * typos * typo * Added MQTT Outbox explanation/warning * added CONFIG_SPIRAM_USE_MEMMAP explanation --------- Co-authored-by: CaCO3 <caco@ruinelli.ch>
29 lines
1.0 KiB
C++
29 lines
1.0 KiB
C++
#pragma once
|
|
|
|
#ifndef CROTATEIMAGE_H
|
|
#define CROTATEIMAGE_H
|
|
|
|
#include "CImageBasis.h"
|
|
|
|
|
|
class CRotateImage: public CImageBasis
|
|
{
|
|
|
|
public:
|
|
CImageBasis *ImageTMP, *ImageOrg;
|
|
bool doflip;
|
|
CRotateImage(std::string name, std::string _image, bool _flip = false) : CImageBasis(name, _image) {ImageTMP = NULL; ImageOrg = NULL; doflip = _flip;};
|
|
CRotateImage(std::string name, uint8_t* _rgb_image, int _channels, int _width, int _height, int _bpp, bool _flip = false) : CImageBasis(name, _rgb_image, _channels, _width, _height, _bpp) {ImageTMP = NULL; ImageOrg = NULL; doflip = _flip;};
|
|
CRotateImage(std::string name, CImageBasis *_org, CImageBasis *_temp, bool _flip = false);
|
|
|
|
void Rotate(float _angle);
|
|
void RotateAntiAliasing(float _angle);
|
|
|
|
void Rotate(float _angle, int _centerx, int _centery);
|
|
void RotateAntiAliasing(float _angle, int _centerx, int _centery);
|
|
|
|
void Translate(int _dx, int _dy);
|
|
void Mirror();
|
|
};
|
|
|
|
#endif //CROTATEIMAGE_H
|