VR-Forces 4.3 Class Documentation
Home
Modules
Namespaces
Classes
Files
Examples
Behavior Models
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
Groups
Pages
include
vrvVideoStream
DtTransformFrameTaskElement.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
14
#include <
vrvVideoStream/DtProcessImageTask.h
>
15
#include <
vrvVideoStream/DtImageTaskElement.h
>
16
17
namespace
makVrv
18
{
19
class
DtVideoFrameBuffer;
20
25
class
DT_DLL_VRVVIDEOSTREAM
DtTransformFrameTaskElement
26
:
public
DtImageTaskElement
27
{
28
public
:
31
friend
class
DtTransformFrameTaskElementCreator
;
32
34
virtual
~
DtTransformFrameTaskElement
();
35
37
virtual
bool
shouldFlip()
const
;
38
40
virtual
void
setShouldFlip(
bool
flip );
41
43
virtual
bool
shouldScale()
const
;
44
46
virtual
void
setShouldScale(
bool
scale );
47
49
virtual
int
scaleX()
const
;
50
52
virtual
void
setScaleX(
int
scaleX );
53
55
virtual
int
scaleY()
const
;
56
58
virtual
void
setScaleY(
int
scaleY );
59
61
virtual
bool
shouldResample()
const
;
62
64
virtual
void
setShouldResample(
bool
resample );
65
67
virtual
int
bitsPerPixel()
const
;
68
70
virtual
void
setBitsPerPixel(
int
bpp );
71
73
virtual
void
setShouldRotate(
bool
rotate );
74
76
virtual
bool
shouldRotate()
const
;
77
79
virtual
void
setRotationAngle(
float
degrees);
80
82
virtual
float
rotationAngle()
const
;
83
85
void
setFromRecord(
const
makArchives::DtImageTaskRecord
& config );
86
87
protected
:
89
DtTransformFrameTaskElement
(
DtDe
&,
DtProcessImageTask
* owningTask );
90
92
void
handleProcessFrame(
DtVideoFrameBuffer
* frame);
93
94
private
:
96
DtTransformFrameTaskElement
();
97
99
DtTransformFrameTaskElement
(
const
DtTransformFrameTaskElement
& orig );
100
102
DtTransformFrameTaskElement
& operator=(
103
const
DtTransformFrameTaskElement
& rhs );
104
105
protected
:
106
107
bool
myShouldFlip
;
108
bool
myShouldScale
;
109
bool
myShouldResample
;
110
bool
myShouldRotate
;
111
112
int
myScaleX
;
113
int
myScaleY
;
114
int
myBitsPerPixel
;
115
float
myRotateAngle
;
116
};
117
122
class
DT_DLL_VRVVIDEOSTREAM
DtTransformFrameTaskElementCreator
123
:
public
DtImageTaskElementCreator
124
{
125
public
:
127
friend
class
DtVideoStreamManager
;
128
130
DtTransformFrameTaskElementCreator
();
131
133
virtual
~
DtTransformFrameTaskElementCreator
();
134
135
protected
:
137
virtual
DtImageTaskElement
* create(
DtDe
& de,
138
DtProcessImageTask
* owningTask );
139
};
140
}
Document ID: Generated on Wed Mar 11 21:20:57 EDT 2015 from SVN revision 150940
Copyright © 2005-2014 VT MÄK. All Rights Reserved (
www.mak.com
)