VR-Forces Developer's Guide
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
DtSharedMemoryTaskElement.h
Go to the documentation of this file.
1 /******************************************************************************
2 ** Copyright (c) 2012 VT-MAK Technologies, Inc.
3 ** All rights reserved.
4 ******************************************************************************/
5 
9 
10 #pragma once
11 
14 
15 #include <vlutil/vlShmPool.h>
16 
17 #include <string>
18 
19 namespace makVrv
20 {
21  class DtVideoFrameBuffer;
22 
28  {
29  public:
32  {
34  bool readingFrame[3];
35  int frameSize[3];
37  int width;
38  int height;
39  int format;
40  int bpp;
41  int packing;
42  };
43 
44  public:
48 
50  virtual ~DtSharedMemoryTaskElement();
51 
53  virtual DtUnicode sharedMemoryName() const;
54 
56  virtual void setSharedMemoryName( const DtUnicode& name );
57 
59  virtual int bufferSize() const;
60 
62  virtual void setBufferSize( int bufferSize );
63 
65  virtual void setFromRecord( const makArchives::DtImageTaskRecord& config );
66 
69  virtual bool configure();
70 
71  protected:
74 
76  void handleProcessFrame(DtVideoFrameBuffer* frame);
77 
78  private:
81 
84 
87 
88  protected:
91 
92  DtSharedMemoryPoolManager* mySharedMemoryPool;
94  char* myOffsets[3];
95  };
96 
103  {
104  public:
106  friend class DtVideoStreamManager;
107 
110 
113 
114  protected:
116  virtual DtImageTaskElement* create( DtDe& de,
117  DtProcessImageTask* owningTask );
118  };
119 }
int format
Definition: DtSharedMemoryTaskElement.h:39
A unicode string. DtUnicode stores a UTF-16 encoded unicode string. Code Point, a Unicode character...
Definition: DtUnicode.h:33
A DtSharedMemoryTaskElementCreator instance is registered with the image task element factory to crea...
Definition: DtSharedMemoryTaskElement.h:101
int currentFrame
Definition: DtSharedMemoryTaskElement.h:33
Record for a sensor definition.
Definition: DtImageTaskRecord.h:20
#define DT_DLL_VRVVIDEOSTREAM
Definition: vrvVideoStream.h:20
Define the header used for the shared memory segment.
Definition: DtSharedMemoryTaskElement.h:31
DtSharedMemoryHeader * myHeader
Definition: DtSharedMemoryTaskElement.h:93
DtVideoStreamManager is a singleton class that manages DtVideoStreams in VR-Vantage.
Definition: DtVideoStreamManager.h:35
int bpp
Definition: DtSharedMemoryTaskElement.h:40
The DtImageTaskElement is an abstract base class for all image task elements. It defines the common i...
Definition: DtImageTaskElement.h:25
DtSharedMemoryPoolManager * mySharedMemoryPool
Definition: DtSharedMemoryTaskElement.h:92
int myBufferSize
Definition: DtSharedMemoryTaskElement.h:90
int height
Definition: DtSharedMemoryTaskElement.h:38
int packing
Definition: DtSharedMemoryTaskElement.h:41
int width
Definition: DtSharedMemoryTaskElement.h:37
DtImageTaskElementCreator is the common base class for all image task element creators.
Definition: DtImageTaskElement.h:95
DtProcessImageTask creates and manages all the process image pipeline elements.
Definition: DtProcessImageTask.h:35
DtUnicode mySharedMemoryName
Definition: DtSharedMemoryTaskElement.h:89
Contains declarations needed to initialize the freeImage library.
int bufferSize
Definition: DtSharedMemoryTaskElement.h:36
The DtDe is the core component of any VR-Vantage application. It owns a DtRenderer, DtDeCommunicator, as well as a DtDisplay and other things.
Definition: DtDe.h:72
Contains DLL export macros.
The image as initially captured from the camera is placed into a DtVideoFrameBuffer. Instances of DtVideoFrameBuffer are placed on a queue for further processing by the process image task elements.
Definition: DtVideoFrameBuffer.h:20
A DtSharedMemoryTaskElement instance will create a pipeline element that can output the image being s...
Definition: DtSharedMemoryTaskElement.h:27

Document ID: Generated on Tue Sep 24 19:28:17 EDT 2024 from SVN revision 269799
Copyright © 2005-2024 MAK Technologies. All Rights Reserved (www.mak.com)