-
Notifications
You must be signed in to change notification settings - Fork 82
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add optional corruption filter settings to EncodedImage.
This is a prerequisite for enabling implementation-specific filter settings for automatic corruption detection. Bug: webrtc:358039777 Change-Id: I363c592aa35164f690dd4ad1204e90afc0277d8b Reviewed-on: https://webrtc-review.googlesource.com/c/src/+/368940 Commit-Queue: Erik Språng <[email protected]> Reviewed-by: Sergey Silkin <[email protected]> Cr-Commit-Position: refs/heads/main@{#43443}
- Loading branch information
Erik Språng
authored and
WebRTC LUCI CQ
committed
Nov 22, 2024
1 parent
24992e9
commit e5f6f1f
Showing
9 changed files
with
122 additions
and
37 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
/* | ||
* Copyright (c) 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 API_VIDEO_CORRUPTION_DETECTION_FILTER_SETTINGS_H_ | ||
#define API_VIDEO_CORRUPTION_DETECTION_FILTER_SETTINGS_H_ | ||
|
||
#include <stdint.h> | ||
|
||
// Filter settings for automatic corruption detection. See | ||
// http://www.webrtc.org/experiments/rtp-hdrext/corruption-detection for more | ||
// information. | ||
struct CorruptionDetectionFilterSettings { | ||
// Size of the blur kernel used. | ||
double std_dev = 0.0; | ||
// Allowed error thresholds (maps to `Y err` and `UV err` respectively). | ||
int luma_error_threshold = 0; | ||
int chroma_error_threshold = 0; | ||
}; | ||
|
||
#endif // API_VIDEO_CORRUPTION_DETECTION_FILTER_SETTINGS_H_ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters