VR-Forces 4.1 Class Documentation
Home
Modules
Namespaces
Classes
Files
Examples
Behavior Models
File List
File Members
include
vrvVideoStream
DtVideoFrameBuffer.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
namespace
makVrv
15
{
20
class
DT_DLL_VRVVIDEOSTREAM
DtVideoFrameBuffer
21
{
22
public
:
24
enum
DataFormat
25
{
26
RAW
,
27
JPG
,
28
PNG
29
};
30
32
DtVideoFrameBuffer
();
33
35
~
DtVideoFrameBuffer
();
36
38
unsigned
char
* imageData()
const
;
39
41
void
setImageData(
unsigned
char
* imageData );
42
44
int
imageDataSize()
const
;
45
47
void
setImageDataSize(
int
imageDataSize );
48
50
DataFormat type()
const
;
51
53
void
setType( DataFormat type );
54
56
int
y()
const
;
57
59
void
setY(
int
y );
60
62
int
x()
const
;
63
65
void
setX(
int
x );
66
68
int
rowInBytes()
const
;
69
71
void
setRowInBytes(
int
rowInBytes );
72
74
int
bpp()
const
;
75
77
void
setBpp(
int
bpp );
78
80
int
format()
const
;
81
83
void
setFormat(
int
format );
84
86
unsigned
char
* metadata()
const
;
87
89
void
setMetadata(
unsigned
char
* metadata );
90
92
int
metadataSize()
const
;
93
95
void
setMetadataSize(
int
metadataSize );
96
97
protected
:
98
unsigned
char
*
myImageData
;
//pixel data
99
int
myImageDataSize
;
//number of bytes (may not be the size of the data in the buffer)
100
DataFormat
myType
;
//how the data is compressed, if at all
101
int
myY
;
//height
102
int
myX
;
//width
103
int
myRowInBytes
;
//needed for conversion later
104
int
myBpp
;
//bits per pixel
105
int
myFormat
;
//openGL image format
106
unsigned
char
*
myMetadata
;
//metadata
107
int
myMetadataSize
;
//metadata size in bytes
108
};
109
}
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
)