First steps to extend dynamic profiles for Pixel Shift and HDR images

This commit is contained in:
heckflosse
2018-04-05 14:41:02 +02:00
parent 69d362e3ba
commit 15794cc1ba
9 changed files with 31 additions and 1 deletions

View File

@@ -692,6 +692,10 @@ bool FrameData::getHDR () const
{
return isHDR;
}
std::string FrameData::getRawType () const
{
return isPixelShift ? "PS" : isHDR ? "HDR" : "STD";
}
IIOSampleFormat FrameData::getSampleFormat () const
{
return sampleFormat;
@@ -808,6 +812,11 @@ bool FramesData::getHDR (unsigned int frame) const
return frames.empty() || frame >= frames.size() ? false : frames.at(0)->getHDR ();
}
std::string FramesData::getRawType (unsigned int frame) const
{
return frames.empty() || frame >= frames.size() ? "STD" : frames.at(0)->getRawType();
}
IIOSampleFormat FramesData::getSampleFormat (unsigned int frame) const
{
return frames.empty() || frame >= frames.size() ? IIOSF_UNKNOWN : frames.at(frame)->getSampleFormat ();