.. index:: pair: class; P1::CameraSdk::LiveViewImpl .. _doxid-class_p1_1_1_camera_sdk_1_1_live_view_impl: class P1::CameraSdk::LiveViewImpl ================================= .. toctree:: :hidden: Overview ~~~~~~~~ .. ref-code-block:: cpp :class: doxyrest-overview-code-block #include class LiveViewImpl: public :ref:`P1::CameraSdk::ILiveView` { public: // typedefs typedef P1::IQP::LiveView::LiveViewImage const :target:`PrivStructType`; // construction :target:`LiveViewImpl`(:ref:`PrivStructType`*const dataStruct); // methods virtual std::shared_ptr :ref:`Data`() const; virtual size_t :ref:`DataSizeBytes`() const; virtual :ref:`ImageFormat` :ref:`Format`() const; virtual :ref:`Type` :ref:`BufferType`() const; virtual char const* :ref:`BufferTypeStr`() const; virtual char const* :ref:`FormatStr`() const; virtual uint32_t :ref:`DestinationWidth`() const; virtual uint32_t :ref:`DestinationHeight`() const; virtual uint32_t :ref:`CompressionQuality`() const; virtual bool :ref:`IsCompressed`() const; virtual :ref:`ValueRect` :ref:`SourceCrop`() const; virtual :ref:`ValueRect` :ref:`RequestedCrop`() const; virtual :ref:`ValueArea` :ref:`SourceFullImageSize`() const; }; Inherited Members ----------------- .. ref-code-block:: cpp :class: doxyrest-overview-inherited-code-block public: // enums enum :ref:`Type`; // methods virtual std::shared_ptr :ref:`Data`() const = 0; virtual size_t :ref:`DataSizeBytes`() const = 0; virtual :ref:`ImageFormat` :ref:`Format`() const = 0; virtual :ref:`Type` :ref:`BufferType`() const = 0; virtual char const* :ref:`BufferTypeStr`() const = 0; virtual char const* :ref:`FormatStr`() const = 0; virtual uint32_t :ref:`DestinationWidth`() const = 0; virtual uint32_t :ref:`DestinationHeight`() const = 0; virtual uint32_t :ref:`CompressionQuality`() const = 0; virtual bool :ref:`IsCompressed`() const = 0; virtual :ref:`ValueRect` :ref:`SourceCrop`() const = 0; virtual :ref:`ValueRect` :ref:`RequestedCrop`() const = 0; virtual :ref:`ValueArea` :ref:`SourceFullImageSize`() const = 0; .. _details-class_p1_1_1_camera_sdk_1_1_live_view_impl: Detailed Documentation ~~~~~~~~~~~~~~~~~~~~~~ Methods ------- .. index:: pair: function; Data .. _doxid-class_p1_1_1_camera_sdk_1_1_live_view_impl_1a75e026dd6c105ae7dc8254774fda0517: .. ref-code-block:: cpp :class: doxyrest-title-code-block virtual std::shared_ptr Data() const Returns a pointer to the pixel buffer data. .. index:: pair: function; DataSizeBytes .. _doxid-class_p1_1_1_camera_sdk_1_1_live_view_impl_1ae4479326b37dd13dd8ba9f7117a4fc67: .. ref-code-block:: cpp :class: doxyrest-title-code-block virtual size_t DataSizeBytes() const Returns the size of the pixel buffer in bytes. .. index:: pair: function; Format .. _doxid-class_p1_1_1_camera_sdk_1_1_live_view_impl_1ae5fa014f0b7b98ecfb4d57621faf2b11: .. ref-code-block:: cpp :class: doxyrest-title-code-block virtual :ref:`ImageFormat` Format() const Returns the image encoding type of this buffer (bitmap, jpeg) .. index:: pair: function; BufferType .. _doxid-class_p1_1_1_camera_sdk_1_1_live_view_impl_1a2d397105d25c4581eab2dc2e339fed07: .. ref-code-block:: cpp :class: doxyrest-title-code-block virtual :ref:`Type` BufferType() const Returns the type of this buffer. .. index:: pair: function; BufferTypeStr .. _doxid-class_p1_1_1_camera_sdk_1_1_live_view_impl_1a63b091c1395d7288381ba3ad6c8aa595: .. ref-code-block:: cpp :class: doxyrest-title-code-block virtual char const* BufferTypeStr() const Returns a string of the type this buffer. .. index:: pair: function; FormatStr .. _doxid-class_p1_1_1_camera_sdk_1_1_live_view_impl_1a19e097852bfcd9e5b5bb641775f4fea9: .. ref-code-block:: cpp :class: doxyrest-title-code-block virtual char const* FormatStr() const Returns a string of the type kind of this buffer, (RGB, JPEG, etc.) .. index:: pair: function; DestinationWidth .. _doxid-class_p1_1_1_camera_sdk_1_1_live_view_impl_1ac481792d22056e47ba571573f1612c67: .. ref-code-block:: cpp :class: doxyrest-title-code-block virtual uint32_t DestinationWidth() const Return the buffers width in pixels. .. index:: pair: function; DestinationHeight .. _doxid-class_p1_1_1_camera_sdk_1_1_live_view_impl_1a62ded8e592afc748b2b7f1e259a1bafe: .. ref-code-block:: cpp :class: doxyrest-title-code-block virtual uint32_t DestinationHeight() const Returns the buffers height in pixels. .. index:: pair: function; CompressionQuality .. _doxid-class_p1_1_1_camera_sdk_1_1_live_view_impl_1a0cf785b623d359b923ebd7cb80ecbe11: .. ref-code-block:: cpp :class: doxyrest-title-code-block virtual uint32_t CompressionQuality() const The compression quality as a percentage. .. index:: pair: function; IsCompressed .. _doxid-class_p1_1_1_camera_sdk_1_1_live_view_impl_1a0d65fa13a2ebf99fecc39e355e7ce90b: .. ref-code-block:: cpp :class: doxyrest-title-code-block virtual bool IsCompressed() const Returns whether the image has been compressed (e.g., by JPEG). .. index:: pair: function; SourceCrop .. _doxid-class_p1_1_1_camera_sdk_1_1_live_view_impl_1ad64e736a9edaf88beae26d8c5c4c332b: .. ref-code-block:: cpp :class: doxyrest-title-code-block virtual :ref:`ValueRect` SourceCrop() const The actual crop that was cropped in the sensor. .. index:: pair: function; RequestedCrop .. _doxid-class_p1_1_1_camera_sdk_1_1_live_view_impl_1af0c68e22dd6938cfbd083327d8b49faa: .. ref-code-block:: cpp :class: doxyrest-title-code-block virtual :ref:`ValueRect` RequestedCrop() const The user requested crop. .. index:: pair: function; SourceFullImageSize .. _doxid-class_p1_1_1_camera_sdk_1_1_live_view_impl_1a821e9370138b4e429f2601f07585b6b3: .. ref-code-block:: cpp :class: doxyrest-title-code-block virtual :ref:`ValueArea` SourceFullImageSize() const The full source (sensor) size.