171 return static_cast<int>(
_values.size());
Contains defines controlling the Windows DLL export and import of symbols.
#define OTC_SDK_API
Only needed when working with Windows DLLs.
Definition Api.h:65
Contains the exceptions raised by the SDK.
std::vector< unsigned short > _values
Frame data.
Definition Frame.h:147
OTC_SDK_API const unsigned short * getData() const noexcept
Returns a pointer to the first element of the internal value array.
Definition Frame.h:179
OTC_SDK_API unsigned short getValue(int index) const noexcept(false)
Returns the frame data value at the given index.
OTC_SDK_API void setData(const unsigned short *source)
Sets the frame data values.
OTC_SDK_API void resize(int width, int height)
Resizes the frame.
OTC_SDK_API bool isEmpty() const noexcept
Returns whether the frame is empty.
Definition Frame.h:174
OTC_SDK_API void copyDataTo(unsigned short *destination, int size) const noexcept
Copies the internal data to a one-dimensional array or vector.
OTC_SDK_API int getSize() const noexcept
Returns the overall size in pixels of the frame (width * height).
Definition Frame.h:169
OTC_SDK_API void clear()
Clears the frame data.
OTC_SDK_API int getWidth() const noexcept
Returns the width in pixels of the frame.
Definition Frame.h:159
OTC_SDK_API void setFromRawData(const void *source)
Sets the frame data values from raw data.
OTC_SDK_API Frame() noexcept
Constructor.
OTC_SDK_API int getHeight() const noexcept
Returns the height in pixel of the frame.
Definition Frame.h:164
Main SDK namespace.
Definition AlarmChannel.h:21