forked from homuler/MediaPipeUnityPlugin
-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathgpu_shared_data_internal.h
More file actions
36 lines (26 loc) · 1.67 KB
/
Copy pathgpu_shared_data_internal.h
File metadata and controls
36 lines (26 loc) · 1.67 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
// Copyright (c) 2021 homuler
//
// Use of this source code is governed by an MIT-style
// license that can be found in the LICENSE file or at
// https://opensource.org/licenses/MIT.
#ifndef MEDIAPIPE_API_GPU_GPU_SHARED_DATA_INTERNAL_H_
#define MEDIAPIPE_API_GPU_GPU_SHARED_DATA_INTERNAL_H_
#include <memory>
#include <utility>
#include "mediapipe/gpu/gpu_shared_data_internal.h"
#include "mediapipe_api/common.h"
#include "mediapipe_api/external/absl/statusor.h"
extern "C" {
typedef std::shared_ptr<mediapipe::GpuResources> SharedGpuResources;
MP_CAPI(void) mp_SharedGpuResources__delete(SharedGpuResources* gpu_resources);
MP_CAPI(mediapipe::GpuResources*) mp_SharedGpuResources__get(SharedGpuResources* gpu_resources);
MP_CAPI(void) mp_SharedGpuResources__reset(SharedGpuResources* gpu_resources);
MP_CAPI(MpReturnCode) mp_GpuResources_Create(absl::StatusOr<SharedGpuResources>** status_or_gpu_resources_out);
MP_CAPI(MpReturnCode) mp_GpuResources_Create__Pv(mediapipe::PlatformGlContext external_context,
absl::StatusOr<SharedGpuResources>** status_or_gpu_resources_out);
MP_CAPI(void) mp_StatusOrGpuResources__delete(absl::StatusOr<SharedGpuResources>* status_or_gpu_resources);
MP_CAPI(bool) mp_StatusOrGpuResources__ok(absl::StatusOr<SharedGpuResources>* status_or_gpu_resources);
MP_CAPI(MpReturnCode) mp_StatusOrGpuResources__status(absl::StatusOr<SharedGpuResources>* status_or_gpu_resources, absl::Status** status_out);
MP_CAPI(MpReturnCode) mp_StatusOrGpuResources__value(absl::StatusOr<SharedGpuResources>* status_or_gpu_resources, SharedGpuResources** value_out);
} // extern "C"
#endif // MEDIAPIPE_API_GPU_GPU_SHARED_DATA_INTERNAL_H_