webrtc_m130/common_video/frame_instrumentation_data.h
Fanny Linderborg 6e072e6bfb Rename is_key_frame to communicate_upper_bits in FrameInstrumentation*Data
This is to make it clear that this field indicate whether the upper bits
of the sequence number should be communicated. However, the current
implementation only sets the field if it is a key frame.

Bug: webrtc:358039777
Change-Id: Ic2c8b6d91499e4e5cf25b8ce9591d326d7044fb0
Reviewed-on: https://webrtc-review.googlesource.com/c/src/+/361402
Commit-Queue: Fanny Linderborg <linderborg@webrtc.org>
Reviewed-by: Erik Språng <sprang@webrtc.org>
Cr-Commit-Position: refs/heads/main@{#42924}
2024-09-03 10:42:18 +00:00

36 lines
983 B
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_FRAME_INSTRUMENTATION_DATA_H_
#define COMMON_VIDEO_FRAME_INSTRUMENTATION_DATA_H_
#include <vector>
namespace webrtc {
// TODO: b/358039777 - Error handling: negative values etc.
struct FrameInstrumentationSyncData {
int sequence_index;
bool communicate_upper_bits;
};
struct FrameInstrumentationData {
int sequence_index;
bool communicate_upper_bits;
double std_dev;
int luma_error_threshold;
int chroma_error_threshold;
std::vector<double> sample_values;
};
} // namespace webrtc
#endif // COMMON_VIDEO_FRAME_INSTRUMENTATION_DATA_H_