Project import generated by Copybara.

PiperOrigin-RevId: 263889205
This commit is contained in:
MediaPipe Team
2019-08-16 18:56:48 -07:00
committed by jqtang
parent dc40414468
commit 294687295d
443 changed files with 33160 additions and 2011 deletions
-16
View File
@@ -46,12 +46,6 @@ class Packet;
namespace packet_internal {
class HolderBase;
// Defined in packet_serialization.cc
// TODO Remove once friend statements are unneeded.
::mediapipe::StatusOr<std::string> SerializePacket(const Packet& packet);
::mediapipe::StatusOr<std::string> SerializePacketContents(
const Packet& packet);
Packet Create(HolderBase* holder);
Packet Create(HolderBase* holder, Timestamp timestamp);
const HolderBase* GetHolder(const Packet& packet);
@@ -70,9 +64,6 @@ const HolderBase* GetHolder(const Packet& packet);
// PointToForeign allows a Packet to be constructed which does not
// own it's data.
//
// See packet_serialization.h for helper functions to serialize and
// deserialize packets.
//
// This class is thread compatible.
class Packet {
public:
@@ -200,13 +191,6 @@ class Packet {
std::string DebugTypeName() const;
private:
// TODO Change serialize_fn to take a Packet instead of a
// HolderBase, removing the need to friend these classes.
friend ::mediapipe::StatusOr<std::string> SerializePacket(
const Packet& packet);
friend ::mediapipe::StatusOr<std::string> SerializePacketContents(
const Packet& packet);
friend Packet packet_internal::Create(packet_internal::HolderBase* holder);
friend Packet packet_internal::Create(packet_internal::HolderBase* holder,
class Timestamp timestamp);