Class mediapipe::GlTextureBuffer
ClassList > mediapipe > GlTextureBuffer
Inherits the following classes: mediapipe::internal::GpuBufferStorageImpl< GlTextureBuffer, internal::ViewProvider< GlTextureView > >, std::enable_shared_from_this< GlTextureBuffer >
Public Types
| Type | Name |
|---|---|
| typedef std::function< void(std::shared_ptr< GlSyncPoint > sync_token)> | DeletionCallback |
Public Functions
| Type | Name |
|---|---|
| void | DidRead (std::shared_ptr< GlSyncPoint > cons_token) const |
| const std::shared_ptr< GlContext > & | GetProducerContext () |
| GlTextureView | GetReadView (internal::types< GlTextureView >, int plane) override const |
| GlTextureView | GetWriteView (internal::types< GlTextureView >, int plane) override |
| GlTextureBuffer (GLenum target, GLuint name, int width, int height, GpuBufferFormat format, DeletionCallback deletion_callback, std::shared_ptr< GlContext > producer_context=nullptr) |
|
| void | Reuse () |
| void | Updated (std::shared_ptr< GlSyncPoint > prod_token) |
| void | WaitForConsumers () |
| void | WaitForConsumersOnGpu () |
| void | WaitOnGpu () const |
| void | WaitUntilComplete () const |
| GpuBufferFormat | format () override const |
| int | height () override const |
| GLuint | name () const |
| GLenum | target () const |
| int | width () override const |
| ~GlTextureBuffer () |
Public Static Functions
| Type | Name |
|---|---|
| std::unique_ptr< GlTextureBuffer > | Create (int width, int height, GpuBufferFormat format, const void * data=nullptr, int alignment=4) |
| std::unique_ptr< GlTextureBuffer > | Create (const ImageFrame & image_frame) |
| std::unique_ptr< GlTextureBuffer > | Create (const internal::GpuBufferSpec & spec) |
| std::unique_ptr< GlTextureBuffer > | Wrap (GLenum target, GLuint name, int width, int height, GpuBufferFormat format, DeletionCallback deletion_callback) |
| std::unique_ptr< GlTextureBuffer > | Wrap (GLenum target, GLuint name, int width, int height, GpuBufferFormat format, std::shared_ptr< GlContext > context, DeletionCallback deletion_callback) |
Public Types Documentation
typedef DeletionCallback
using mediapipe::GlTextureBuffer::DeletionCallback = std::function<void(std::shared_ptr<GlSyncPoint> sync_token)>;
Public Functions Documentation
function DidRead
void mediapipe::GlTextureBuffer::DidRead (
std::shared_ptr< GlSyncPoint > cons_token
) const
function GetProducerContext
inline const std::shared_ptr< GlContext > & mediapipe::GlTextureBuffer::GetProducerContext ()
function GetReadView
GlTextureView mediapipe::GlTextureBuffer::GetReadView (
internal::types< GlTextureView >,
int plane
) override const
function GetWriteView
GlTextureView mediapipe::GlTextureBuffer::GetWriteView (
internal::types< GlTextureView >,
int plane
) override
function GlTextureBuffer
mediapipe::GlTextureBuffer::GlTextureBuffer (
GLenum target,
GLuint name,
int width,
int height,
GpuBufferFormat format,
DeletionCallback deletion_callback,
std::shared_ptr< GlContext > producer_context=nullptr
)
function Reuse
void mediapipe::GlTextureBuffer::Reuse ()
function Updated
void mediapipe::GlTextureBuffer::Updated (
std::shared_ptr< GlSyncPoint > prod_token
)
function WaitForConsumers
void mediapipe::GlTextureBuffer::WaitForConsumers ()
function WaitForConsumersOnGpu
void mediapipe::GlTextureBuffer::WaitForConsumersOnGpu ()
function WaitOnGpu
void mediapipe::GlTextureBuffer::WaitOnGpu () const
function WaitUntilComplete
void mediapipe::GlTextureBuffer::WaitUntilComplete () const
function format
inline GpuBufferFormat mediapipe::GlTextureBuffer::format () override const
function height
inline int mediapipe::GlTextureBuffer::height () override const
function name
inline GLuint mediapipe::GlTextureBuffer::name () const
function target
inline GLenum mediapipe::GlTextureBuffer::target () const
function width
inline int mediapipe::GlTextureBuffer::width () override const
function ~GlTextureBuffer
mediapipe::GlTextureBuffer::~GlTextureBuffer ()
Public Static Functions Documentation
function Create [1/3]
static std::unique_ptr< GlTextureBuffer > mediapipe::GlTextureBuffer::Create (
int width,
int height,
GpuBufferFormat format,
const void * data=nullptr,
int alignment=4
)
function Create [2/3]
static std::unique_ptr< GlTextureBuffer > mediapipe::GlTextureBuffer::Create (
const ImageFrame & image_frame
)
function Create [3/3]
static inline std::unique_ptr< GlTextureBuffer > mediapipe::GlTextureBuffer::Create (
const internal::GpuBufferSpec & spec
)
function Wrap [1/2]
static std::unique_ptr< GlTextureBuffer > mediapipe::GlTextureBuffer::Wrap (
GLenum target,
GLuint name,
int width,
int height,
GpuBufferFormat format,
DeletionCallback deletion_callback
)
function Wrap [2/2]
static std::unique_ptr< GlTextureBuffer > mediapipe::GlTextureBuffer::Wrap (
GLenum target,
GLuint name,
int width,
int height,
GpuBufferFormat format,
std::shared_ptr< GlContext > context,
DeletionCallback deletion_callback
)
The documentation for this class was generated from the following file /home/friedel/devel/ILLIXR-plugins/hand_tracking/mediapipe/gpu/gl_texture_buffer.h