VR-Forces 4.3 Class Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
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 
13 
14 namespace makVrv
15 {
21 {
22  public:
25  {
26  RAW,
27  JPG,
28  PNG,
29  BMP,
30  NITF
31  };
32 
35 
38 
40  unsigned char* imageData() const;
41 
43  void setImageData(unsigned char* imageData);
44 
46  int imageDataSize() const;
47 
49  void setImageDataSize(int imageDataSize);
50 
52  void resetImageData();
53 
55  void resizeImageBuffer(int sizeInBytes);
56 
58  void resizeMetadataBuffer(int sizeInBytes);
59 
61  DataFormat type() const;
62 
64  void setType(DataFormat type);
65 
67  int y() const;
68 
70  void setY(int y);
71 
73  int x() const;
74 
76  void setX(int x);
77 
79  int rowInBytes() const;
80 
82  void setRowInBytes(int rowInBytes);
83 
85  int bpp() const;
86 
88  void setBpp(int bpp);
89 
91  int format() const;
92 
94  void setFormat(int format);
95 
97  unsigned char* metadata() const;
98 
100  void setMetadata(unsigned char* metadata);
101 
103  int metadataSize() const;
104 
106  void setMetadataSize(int metadataSize);
107 
108  protected:
109  unsigned char* myImageData; //pixel data
110  int myImageDataSize; //number of bytes (may not be the size of the data in the buffer)
111  DataFormat myType; //how the data is compressed, if at all
112  int myY; //height
113  int myX; //width
114  int myRowInBytes; //needed for conversion later
115  int myBpp; //bits per pixel
116  int myFormat; //openGL image format
117  unsigned char* myMetadata; //metadata
118  int myMetadataSize; //metadata size in bytes
119 };
120 }

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)