Bug: webrtc:358039777 Change-Id: Ic27e162d67c64958844908cdd8413c406e88ea39 Reviewed-on: https://webrtc-review.googlesource.com/c/src/+/375201 Reviewed-by: Harald Alvestrand <hta@webrtc.org> Reviewed-by: Erik Språng <sprang@webrtc.org> Commit-Queue: Fanny Linderborg <linderborg@webrtc.org> Cr-Commit-Position: refs/heads/main@{#43804}
38 lines
1.4 KiB
C++
38 lines
1.4 KiB
C++
/*
|
|
* Copyright 2024 The WebRTC project authors. All Rights Reserved.
|
|
*
|
|
* Use of this source code is governed by a BSD-style license
|
|
* that can be found in the LICENSE file in the root of the source
|
|
* tree. An additional intellectual property rights grant can be found
|
|
* in the file PATENTS. All contributing project authors may
|
|
* be found in the AUTHORS file in the root of the source tree.
|
|
*/
|
|
|
|
#ifndef COMMON_VIDEO_CORRUPTION_DETECTION_CONVERTERS_H_
|
|
#define COMMON_VIDEO_CORRUPTION_DETECTION_CONVERTERS_H_
|
|
|
|
#include <optional>
|
|
|
|
#include "api/transport/rtp/corruption_detection_message.h"
|
|
#include "common_video/frame_instrumentation_data.h"
|
|
|
|
namespace webrtc {
|
|
|
|
std::optional<FrameInstrumentationData>
|
|
ConvertCorruptionDetectionMessageToFrameInstrumentationData(
|
|
const CorruptionDetectionMessage& message,
|
|
int previous_sequence_index);
|
|
std::optional<FrameInstrumentationSyncData>
|
|
ConvertCorruptionDetectionMessageToFrameInstrumentationSyncData(
|
|
const CorruptionDetectionMessage& message,
|
|
int previous_sequence_index);
|
|
std::optional<CorruptionDetectionMessage>
|
|
ConvertFrameInstrumentationDataToCorruptionDetectionMessage(
|
|
const FrameInstrumentationData& frame_instrumentation_data);
|
|
std::optional<CorruptionDetectionMessage>
|
|
ConvertFrameInstrumentationSyncDataToCorruptionDetectionMessage(
|
|
const FrameInstrumentationSyncData& frame_instrumentation_sync_data);
|
|
} // namespace webrtc
|
|
|
|
#endif // COMMON_VIDEO_CORRUPTION_DETECTION_CONVERTERS_H_
|