picture/raw should update the size if the raw image
with size values are entered.
if (loader) loader->close();
loader = LoaderMgr::loader(data, w, h, copy);
if (!loader) return Result::NonSupport;
+ this->w = loader->w;
+ this->h = loader->h;
return Result::Success;
}
{
if (!data || w == 0 || h == 0) return false;
- vw = w;
- vh = h;
-
+ this->w = vw = w;
+ this->h = vh = h;
this->copy = copy;
+
if (copy) {
content = (uint32_t*)malloc(sizeof(uint32_t) * vw * vh);
if (!content) return false;
REQUIRE(h == Approx(1000).epsilon(0.0000001));
}
-TEST_CASE("Load Raw Data", "[tvgPicture]")
+TEST_CASE("Load RAW Data", "[tvgPicture]")
{
auto picture = Picture::gen();
REQUIRE(picture);