VR-Forces 4.6 Class Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties 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 
34  DtVideoFrameBuffer(int imgBufferSize = 0, int metadataBufferSize = 0);
35 
38 
40  unsigned char* imageData() const;
41 
43  void setImageData(unsigned char* imageData, int imageDataSize);
44 
46  int imageSize() const;
47 
49  DataFormat type() const;
50 
52  void setType(DataFormat type);
53 
55  int y() const;
56 
58  void setY(int y);
59 
61  int x() const;
62 
64  void setX(int x);
65 
67  int rowInBytes() const;
68 
70  void setRowInBytes(int rowInBytes);
71 
73  int bpp() const;
74 
76  void setBpp(int bpp);
77 
79  int format() const;
80 
82  void setFormat(int format);
83 
85  unsigned char* metadata() const;
86 
88  void setMetadata(unsigned char* metadata, int metadataSize);
89 
91  int metadataSize() const;
92  protected:
94  void resizeImageBuffer(int sizeInBytes);
95 
97  void resizeMetadataBuffer(int sizeInBytes);
98 
99  unsigned char* myImageBuffer; //pixel data
100  int myImageSize; //number of bytes the image uses (may not be the size of the buffer)
101  int myImageBufferSize; //image buffer size
102  DataFormat myType; //how the data is compressed, if at all
103  int myY; //height
104  int myX; //width
105  int myRowInBytes; //needed for conversion later
106  int myBpp; //bits per pixel
107  int myFormat; //openGL image format
108  unsigned char* myMetadataBuffer; //metadata
109  int myMetadataSize; //metadata size in bytes
110  int myMetadataBufferSize; //metadata buffer size
111 };
112 }

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)