VR-Forces 4.1 Class Documentation
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 <boost/interprocess/shared_memory_object.hpp>
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  boost::interprocess::shared_memory_object* mySharedMemoryObj;
93  boost::interprocess::mapped_region* myMappedRegion;
95  char* myOffsets[3];
96  };
97 
104  {
105  public:
107  friend class DtVideoStreamManager;
108 
111 
114 
115  protected:
117  virtual DtImageTaskElement* create( DtDe& de,
118  DtProcessImageTask* owningTask );
119  };
120 }

Document ID: Generated on Tue Jan 29 18:21:16 EST 2013 from SVN revision 123193
Copyright © 2005-2013 VT MÄK Inc. All Rights Reserved (www.mak.com)