Skip to content

Commit

Permalink
Delete YUVImage copy and move operations
Browse files Browse the repository at this point in the history
PiperOrigin-RevId: 698298660
  • Loading branch information
MediaPipe Team authored and copybara-github committed Nov 20, 2024
1 parent 13541a9 commit 7a70aac
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions mediapipe/framework/formats/yuv_image.h
Original file line number Diff line number Diff line change
Expand Up @@ -118,6 +118,12 @@ class YUVImage {
YUVImage() = default;
~YUVImage() { Clear(); }

// YUVImage is neither copyable nor movable.
YUVImage(const YUVImage&) = delete;
YUVImage& operator=(const YUVImage&) = delete;
YUVImage(YUVImage&&) = delete;
YUVImage& operator=(YUVImage&&) = delete;

// Convenience constructor
YUVImage(libyuv::FourCC fourcc, //
std::unique_ptr<uint8_t[]> data_location, //
Expand Down

0 comments on commit 7a70aac

Please sign in to comment.