Basic working GUI
This commit is contained in:
+16
@@ -76,6 +76,12 @@ bool SERFileReader::open(const QString &path)
|
||||
return true;
|
||||
}
|
||||
|
||||
void SERFileReader::close()
|
||||
{
|
||||
_fr.close();
|
||||
std::memset(&_header, 0, sizeof(SERHeader));
|
||||
}
|
||||
|
||||
uint32_t SERFileReader::width() const
|
||||
{
|
||||
return _header.imagewidth;
|
||||
@@ -96,6 +102,16 @@ uint64_t SERFileReader::frameSize() const
|
||||
return static_cast<uint64_t>(_header.imagewidth) * _header.imageheight * _header.pixeldepth / 8;
|
||||
}
|
||||
|
||||
uint32_t SERFileReader::pixelDepth() const
|
||||
{
|
||||
return _header.pixeldepth;
|
||||
}
|
||||
|
||||
SERPixelFormat SERFileReader::pixelFormat() const
|
||||
{
|
||||
return _header.colorid;
|
||||
}
|
||||
|
||||
void SERFileReader::getFrame(int32_t index, std::vector<uint8_t> &data)
|
||||
{
|
||||
if(index >= static_cast<int32_t>(_header.framecount))return;
|
||||
|
||||
Reference in New Issue
Block a user