nx_server_plugin_sdk 1.0 Server Plugin SDK

Public Member Functions | List of all members
nxcip::Picture Class Referenceabstract

Picture. More...

`#include <camera_plugin.h>`

Inheritance diagram for nxcip::Picture:

## Public Member Functions
virtual PixelFormat | pixelFormat () const =0
| Returns pixel format.
virtual int | planeCount () const =0
| Returns number of planes in picture (this depends on format)
virtual int | width () const =0
| Width (pixels)
virtual int | height () const =0
| Height (pixels)
virtual int | xStride (int planeNumber) const =0
| Length of horizontal line (in bytes) of plane planeNumber.
virtual const void * | scanLine (int planeNumber, int lineNumber) const =0
| Returns pointer to horizontal line lineNumber (starting with 0) of plane planeNumber.
virtual void * | scanLine (int planeNumber, int lineNumber)=0
| Returns pointer to horizontal line lineNumber (starting with 0) of plane planeNumber.
virtual void * | data ()=0
virtual const void * | data () const =0
Public Member Functions inherited from nxpl::PluginInterface
virtual void * | queryInterface (const nxpl::NX_GUID &interfaceID)=0
| Cast to type, specified by interfaceID. More...
virtual int | addRef () const =0
| Increment reference counter. More...
virtual int | releaseRef () const =0
| Decrement reference counter. More...

## Detailed Description

Picture.

## Member Function Documentation

## ◆ data()

virtual void* nxcip::Picture::data | ( |  | ) |
| pure virtual

Returns
  Picture data. Returned buffer MUST be aligned on MEDIA_DATA_BUFFER_ALIGNMENT - byte boundary (this restriction helps for some optimization). nx::kit::utils::mallocAligned and nx::kit::utils::freeAligned routines can be used for that purpose

Implemented in MotionDataPicture.

The documentation for this class was generated from the following file:

- src/camera/camera_plugin.h