mediapipe/mediapipe/gpu/image_frame_view.h
2022-11-15 18:41:53 -08:00

23 lines
589 B
C++

#ifndef MEDIAPIPE_GPU_IMAGE_FRAME_VIEW_H_
#define MEDIAPIPE_GPU_IMAGE_FRAME_VIEW_H_
#include "mediapipe/framework/formats/image_frame.h"
#include "mediapipe/gpu/gpu_buffer_storage.h"
namespace mediapipe {
namespace internal {
template <>
class ViewProvider<ImageFrame> {
public:
virtual ~ViewProvider() = default;
virtual std::shared_ptr<const ImageFrame> GetReadView(
types<ImageFrame>) const = 0;
virtual std::shared_ptr<ImageFrame> GetWriteView(types<ImageFrame>) = 0;
};
} // namespace internal
} // namespace mediapipe
#endif // MEDIAPIPE_GPU_IMAGE_FRAME_VIEW_H_