Main Page
Related Pages
Modules
Namespaces
Classes
Files
File List
File Members
wrappers
unrealengine4
Plugins
RealSense
Source
RealSense
Private
DynamicTexture.h
Go to the documentation of this file.
1
#pragma once
2
3
#include "Texture2DResource.h"
4
5
struct
FTextureUpdateData
6
{
7
class
FDynamicTexture
*
Context
;
8
void
*
Data
;
9
uint32
DataSize
;
10
uint32
Stride
;
11
uint32
Width
;
12
uint32
Height
;
13
};
14
15
class
FDynamicTexture
16
{
17
private
:
18
19
FString
Name
;
20
UTexture2D* TextureObject =
nullptr
;
21
22
std::vector<FTextureUpdateData*>
TudPool
;
23
FThreadSafeCounter
CommandCounter
;
24
25
FCriticalSection
StateMx
;
26
FCriticalSection
TudMx
;
27
28
int
Width
= 0;
29
int
Height
= 0;
30
int
Bpp = 0;
31
EPixelFormat Format = PF_Unknown;
32
TextureCompressionSettings Compression = TextureCompressionSettings::TC_VectorDisplacementmap;
33
34
private
:
35
36
void
RenderCmd_CreateTexture();
37
void
RenderCmd_UpdateTexture(
FTextureUpdateData
* Tud);
38
39
public
:
40
41
FDynamicTexture
(FString Name,
int
Width,
int
Height, EPixelFormat Format, TextureCompressionSettings Compression);
42
virtual
~
FDynamicTexture
();
43
44
FTextureUpdateData
* AllocBuffer();
45
void
EnqueUpdateCommand(
FTextureUpdateData
* Tud);
46
47
void
Update(
const
rs2::video_frame
& Frame);
48
void
CopyData(
FTextureUpdateData
* Tud,
const
rs2::video_frame
& Frame);
49
50
inline
UTexture2D*
GetTextureObject
() {
return
TextureObject; }
51
int
GetWidth
()
const
{
return
Width
; }
52
int
GetHeight
()
const
{
return
Height
; }
53
int
GetBpp
()
const
{
return
Bpp; }
54
EPixelFormat
GetFormat
()
const
{
return
Format; }
55
TextureCompressionSettings
GetCompression
()
const
{
return
Compression; }
56
};
rs2::video_frame
Definition:
rs_frame.hpp:636
FTextureUpdateData::Width
uint32 Width
Definition:
DynamicTexture.h:11
FDynamicTexture::GetFormat
EPixelFormat GetFormat() const
Definition:
DynamicTexture.h:54
FTextureUpdateData::Height
uint32 Height
Definition:
DynamicTexture.h:12
FDynamicTexture::GetTextureObject
UTexture2D * GetTextureObject()
Definition:
DynamicTexture.h:50
FDynamicTexture::GetCompression
TextureCompressionSettings GetCompression() const
Definition:
DynamicTexture.h:55
FTextureUpdateData::Stride
uint32 Stride
Definition:
DynamicTexture.h:10
FTextureUpdateData
Definition:
DynamicTexture.h:5
FDynamicTexture::TudMx
FCriticalSection TudMx
Definition:
DynamicTexture.h:26
FDynamicTexture::TudPool
std::vector< FTextureUpdateData * > TudPool
Definition:
DynamicTexture.h:22
FDynamicTexture::StateMx
FCriticalSection StateMx
Definition:
DynamicTexture.h:25
FDynamicTexture::Name
FString Name
Definition:
DynamicTexture.h:19
FDynamicTexture::GetHeight
int GetHeight() const
Definition:
DynamicTexture.h:52
FTextureUpdateData::Data
void * Data
Definition:
DynamicTexture.h:8
FDynamicTexture::GetWidth
int GetWidth() const
Definition:
DynamicTexture.h:51
FDynamicTexture::CommandCounter
FThreadSafeCounter CommandCounter
Definition:
DynamicTexture.h:23
FDynamicTexture::GetBpp
int GetBpp() const
Definition:
DynamicTexture.h:53
FTextureUpdateData::Context
class FDynamicTexture * Context
Definition:
DynamicTexture.h:7
FTextureUpdateData::DataSize
uint32 DataSize
Definition:
DynamicTexture.h:9
FDynamicTexture
Definition:
DynamicTexture.h:15
librealsense2
Author(s): Sergey Dorodnicov
, Doron Hirshberg
, Mark Horn
, Reagan Lopez
, Itay Carpis
autogenerated on Mon May 3 2021 02:47:13