chromium/third_party/mediapipe/src/mediapipe/framework/input_stream_manager.cc

// Copyright 2019 The MediaPipe Authors.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
//      http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.

#include "mediapipe/framework/input_stream_manager.h"

#include <string>
#include <type_traits>
#include <utility>

#include "absl/log/absl_check.h"
#include "absl/log/absl_log.h"
#include "absl/status/status.h"
#include "absl/strings/str_cat.h"
#include "absl/strings/str_format.h"
#include "absl/strings/str_join.h"
#include "absl/synchronization/mutex.h"
#include "mediapipe/framework/packet.h"
#include "mediapipe/framework/port/logging.h"
#include "mediapipe/framework/port/source_location.h"
#include "mediapipe/framework/port/status_builder.h"
#include "mediapipe/framework/tool/status_util.h"

namespace mediapipe {

absl::Status InputStreamManager::Initialize(const std::string& name,
                                            const PacketType* packet_type,
                                            bool back_edge) {}

const std::string& InputStreamManager::Name() const {}

void InputStreamManager::SetQueueSizeCallbacks(
    QueueSizeCallback becomes_full_callback,
    QueueSizeCallback becomes_not_full_callback) {}

void InputStreamManager::PrepareForRun() {}

bool InputStreamManager::IsEmpty() const {}

Packet InputStreamManager::QueueHead() const {}

absl::Status InputStreamManager::SetHeader(const Packet& header) {}

absl::Status InputStreamManager::AddPackets(const std::list<Packet>& container,
                                            bool* notify) {}

absl::Status InputStreamManager::MovePackets(std::list<Packet>* container,
                                             bool* notify) {}

template <typename Container>
absl::Status InputStreamManager::AddOrMovePacketsInternal(Container container,
                                                          bool* notify) {}

absl::Status InputStreamManager::SetNextTimestampBound(const Timestamp bound,
                                                       bool* notify) {}

void InputStreamManager::DisableTimestamps() {}

void InputStreamManager::Close() {}

Timestamp InputStreamManager::MinTimestampOrBound(bool* is_empty) const {}

Timestamp InputStreamManager::MinTimestampOrBoundHelper() const
    ABSL_EXCLUSIVE_LOCKS_REQUIRED(stream_mutex_) {}

Packet InputStreamManager::PopPacketAtTimestamp(Timestamp timestamp,
                                                int* num_packets_dropped,
                                                bool* stream_is_done) {}

Packet InputStreamManager::PopQueueHead(bool* stream_is_done) {}

int InputStreamManager::NumPacketsAdded() const {}

int InputStreamManager::QueueSize() const {}

int InputStreamManager::MaxQueueSize() const {}

void InputStreamManager::SetMaxQueueSize(int max_queue_size) {}

bool InputStreamManager::IsFull() const {}

Timestamp InputStreamManager::GetMinTimestampAmongNLatest(int n) const {}

void InputStreamManager::ErasePacketsEarlierThan(Timestamp timestamp) {}

bool InputStreamManager::IsDone() const {}

}  // namespace mediapipe