Class mediapipe::GlCalculatorHelper
ClassList > mediapipe > GlCalculatorHelper
Public Functions
Type | Name |
---|---|
void | BindFramebuffer (const GlTexture & dst) |
GlTexture | CreateDestinationTexture (int output_width, int output_height, GpuBufferFormat format=GpuBufferFormat::kBGRA32) |
GlTexture | CreateDestinationTexture (GpuBuffer & buffer) |
GlTexture | CreateDestinationTexture (const ImageFrame & image_frame) |
void | CreateFramebuffer () |
GlTexture | CreateSourceTexture (const GpuBuffer & pixel_buffer) |
GlTexture | CreateSourceTexture (const mediapipe::Image & image) |
GlTexture | CreateSourceTexture (const GpuBuffer & pixel_buffer, int plane) |
GlTexture | CreateSourceTexture (const ImageFrame & image_frame) |
GlContext & | GetGlContext () const |
GlVersion | GetGlVersion () const |
void | GetGpuBufferDimensions (const GpuBuffer & pixel_buffer, int * width, int * height) |
std::shared_ptr< GlContext > | GetSharedGlContext () const |
GlCalculatorHelper () |
|
GpuBuffer | GpuBufferCopyingImageFrame (const ImageFrame & image_frame) |
GpuBuffer | GpuBufferWithImageFrame (std::shared_ptr< ImageFrame > image_frame) |
void | InitializeForTest (GpuResources * gpu_resources) |
void | InitializeForTest (GpuSharedData * gpu_shared) |
bool | Initialized () |
absl::Status | Open (CalculatorContext * cc) |
absl::Status | RunInGlContext (std::function< absl::Status(void)> gl_func) |
void | RunInGlContext (T f) |
GLuint | framebuffer () const |
~GlCalculatorHelper () |
Public Static Functions
Type | Name |
---|---|
absl::Status | SetupInputSidePackets (PacketTypeSet * input_side_packets) |
absl::Status | UpdateContract (CalculatorContract * cc, bool request_gpu_as_optional=false) |
Public Functions Documentation
function BindFramebuffer
void mediapipe::GlCalculatorHelper::BindFramebuffer (
const GlTexture & dst
)
function CreateDestinationTexture [1/3]
GlTexture mediapipe::GlCalculatorHelper::CreateDestinationTexture (
int output_width,
int output_height,
GpuBufferFormat format=GpuBufferFormat::kBGRA32
)
function CreateDestinationTexture [2/3]
GlTexture mediapipe::GlCalculatorHelper::CreateDestinationTexture (
GpuBuffer & buffer
)
function CreateDestinationTexture [3/3]
GlTexture mediapipe::GlCalculatorHelper::CreateDestinationTexture (
const ImageFrame & image_frame
)
function CreateFramebuffer
void mediapipe::GlCalculatorHelper::CreateFramebuffer ()
function CreateSourceTexture [1/4]
GlTexture mediapipe::GlCalculatorHelper::CreateSourceTexture (
const GpuBuffer & pixel_buffer
)
function CreateSourceTexture [2/4]
GlTexture mediapipe::GlCalculatorHelper::CreateSourceTexture (
const mediapipe::Image & image
)
function CreateSourceTexture [3/4]
GlTexture mediapipe::GlCalculatorHelper::CreateSourceTexture (
const GpuBuffer & pixel_buffer,
int plane
)
function CreateSourceTexture [4/4]
GlTexture mediapipe::GlCalculatorHelper::CreateSourceTexture (
const ImageFrame & image_frame
)
function GetGlContext
inline GlContext & mediapipe::GlCalculatorHelper::GetGlContext () const
function GetGlVersion
inline GlVersion mediapipe::GlCalculatorHelper::GetGlVersion () const
function GetGpuBufferDimensions
void mediapipe::GlCalculatorHelper::GetGpuBufferDimensions (
const GpuBuffer & pixel_buffer,
int * width,
int * height
)
function GetSharedGlContext
inline std::shared_ptr< GlContext > mediapipe::GlCalculatorHelper::GetSharedGlContext () const
function GlCalculatorHelper
mediapipe::GlCalculatorHelper::GlCalculatorHelper ()
function GpuBufferCopyingImageFrame
GpuBuffer mediapipe::GlCalculatorHelper::GpuBufferCopyingImageFrame (
const ImageFrame & image_frame
)
function GpuBufferWithImageFrame
GpuBuffer mediapipe::GlCalculatorHelper::GpuBufferWithImageFrame (
std::shared_ptr< ImageFrame > image_frame
)
function InitializeForTest [1/2]
void mediapipe::GlCalculatorHelper::InitializeForTest (
GpuResources * gpu_resources
)
function InitializeForTest [2/2]
void mediapipe::GlCalculatorHelper::InitializeForTest (
GpuSharedData * gpu_shared
)
function Initialized
inline bool mediapipe::GlCalculatorHelper::Initialized ()
function Open
absl::Status mediapipe::GlCalculatorHelper::Open (
CalculatorContext * cc
)
function RunInGlContext [1/3]
absl::Status mediapipe::GlCalculatorHelper::RunInGlContext (
std::function< absl::Status(void)> gl_func
)
function RunInGlContext [2/3]
template<typename T, typename>
inline void mediapipe::GlCalculatorHelper::RunInGlContext (
T f
)
function framebuffer
GLuint mediapipe::GlCalculatorHelper::framebuffer () const
function ~GlCalculatorHelper
mediapipe::GlCalculatorHelper::~GlCalculatorHelper ()
Public Static Functions Documentation
function SetupInputSidePackets
static absl::Status mediapipe::GlCalculatorHelper::SetupInputSidePackets (
PacketTypeSet * input_side_packets
)
function UpdateContract
static absl::Status mediapipe::GlCalculatorHelper::UpdateContract (
CalculatorContract * cc,
bool request_gpu_as_optional=false
)
The documentation for this class was generated from the following file /home/friedel/devel/ILLIXR-plugins/hand_tracking/mediapipe/gpu/gl_calculator_helper.h