VR-Forces 4.6 Class Documentation
Home
Modules
Namespaces
Classes
Files
Examples
Behavior Models
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Properties
Friends
Macros
Groups
Pages
include
vrvVideoStream
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
12
#include <
vrvVideoStream/vrvVideoStream.h
>
13
#include <
vrvVideoStream/DtImageTaskElement.h
>
14
15
#include <vlutil/vlShmPool.h>
16
17
#include <string>
18
19
namespace
makVrv
20
{
21
class
DtVideoFrameBuffer;
22
27
class
DT_DLL_VRVVIDEOSTREAM
DtSharedMemoryTaskElement
:
public
DtImageTaskElement
28
{
29
public
:
31
struct
DtSharedMemoryHeader
32
{
33
int
currentFrame
;
34
bool
readingFrame[3];
35
int
frameSize[3];
36
int
bufferSize
;
37
int
width
;
38
int
height
;
39
int
format
;
40
int
bpp
;
41
int
packing
;
42
};
43
44
public
:
47
friend
class
DtSharedMemoryTaskElementCreator
;
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
:
73
DtSharedMemoryTaskElement
(
DtDe
& de,
DtProcessImageTask
* owningTask );
74
76
void
handleProcessFrame(
DtVideoFrameBuffer
* frame);
77
78
private
:
80
DtSharedMemoryTaskElement
();
81
83
DtSharedMemoryTaskElement
(
const
DtSharedMemoryTaskElement
& orig );
84
86
DtSharedMemoryTaskElement
& operator=(
const
DtSharedMemoryTaskElement
& rhs );
87
88
protected
:
89
DtUnicode
mySharedMemoryName
;
90
int
myBufferSize
;
91
92
DtSharedMemoryPoolManager*
mySharedMemoryPool
;
93
DtSharedMemoryHeader
*
myHeader
;
94
char
* myOffsets[3];
95
};
96
101
class
DT_DLL_VRVVIDEOSTREAM
DtSharedMemoryTaskElementCreator
102
:
public
DtImageTaskElementCreator
103
{
104
public
:
106
friend
class
DtVideoStreamManager
;
107
109
DtSharedMemoryTaskElementCreator
();
110
112
virtual
~
DtSharedMemoryTaskElementCreator
();
113
114
protected
:
116
virtual
DtImageTaskElement
* create(
DtDe
& de,
117
DtProcessImageTask
* owningTask );
118
};
119
}
Document ID: Generated on Thu Apr 12 03:15:37 EDT 2018 from SVN revision 187986
Copyright © 2005-2018 VT MÄK. All Rights Reserved (
www.mak.com
)