添加部分日志

This commit is contained in:
13038267101 2023-03-31 14:11:48 +08:00
parent 556d58e56d
commit ddb7aafffc
1 changed files with 15 additions and 1 deletions

View File

@ -1282,7 +1282,21 @@ Result huagao_ds::imageInfoGet(const Identity&, ImageInfo& data)
data.setYResolution((float)res); data.setYResolution((float)res);
data.compression(m_compression); data.compression(m_compression);
} }
else
{
load_sane_util::log_info(L" imageInfoGet is false\r\n", 0);
}
wchar_t buf[128];
std::wstring f(L"imageInfoGet:");
int h = data.height();
int w = data.width();
int bitsPerPixel = data.bitsPerPixel();
Compression compression = data.compression();
PixelType pixelType = data.pixelType();
bool planar = data.planar();
Fix32 xr = data.xResolution();
swprintf_s(buf, _countof(buf) - 1,L"imageInfoGet: h-->%d w-->%d bitsPerPixel-->%d compression-->%d pixelType-->%d planar-->%d\r\n", h, w, bitsPerPixel, compression, pixelType, planar);
load_sane_util::log_info(buf, 0);
return success(); return success();
} }
Result huagao_ds::imageLayoutGet(const Identity&, ImageLayout& data) Result huagao_ds::imageLayoutGet(const Identity&, ImageLayout& data)