merge conflicts

This commit is contained in:
CaCO3
2023-04-23 16:45:20 +02:00
parent e40ceb54ce
commit 929796c87f
7 changed files with 0 additions and 79 deletions

View File

@@ -477,7 +477,6 @@ CImageBasis::CImageBasis(string _name, CImageBasis *_copyfrom)
memsize = width * height * channels;
<<<<<<< HEAD
if (name == "tmpImage") {
rgb_image = (unsigned char*)psram_reserve_shared_tmp_image_memory();
@@ -485,9 +484,6 @@ CImageBasis::CImageBasis(string _name, CImageBasis *_copyfrom)
else {
rgb_image = (unsigned char*)malloc_psram_heap(std::string(TAG) + "->CImageBasis (" + name + ")", memsize, MALLOC_CAP_SPIRAM);
}
=======
rgb_image = (unsigned char*)malloc_psram_heap(std::string(TAG) + "->CImageBasis (" + name + ")", memsize, MALLOC_CAP_SPIRAM);
>>>>>>> master
if (rgb_image == NULL)
{
@@ -628,7 +624,6 @@ CImageBasis::~CImageBasis()
{
RGBImageLock();
<<<<<<< HEAD
if (!externalImage) {
if (name == "tmpImage") { // This image should be placed in the shared part of PSRAM
@@ -643,11 +638,6 @@ CImageBasis::~CImageBasis()
free_psram_heap(std::string(TAG) + "->CImageBasis (" + name + ", " + to_string(memsize) + ")", rgb_image);
}
}
=======
if (!externalImage) {
//stbi_image_free(rgb_image);
free_psram_heap(std::string(TAG) + "->CImageBasis (" + name + ", " + to_string(memsize) + ")", rgb_image);
>>>>>>> master
}
RGBImageRelease();