From c1dc8abeeb3d38b67a5785e35bcb4a3895d4069c Mon Sep 17 00:00:00 2001 From: Philipp Hancke Date: Tue, 17 Sep 2024 08:46:40 -0700 Subject: [PATCH] Remove non-span NAL unit splitter and SPS parser MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit after cleaning up the Chromium dependency BUG=webrtc:42225170 Change-Id: Icd3934ca51f829c55e061fc1943500435c845a8d Reviewed-on: https://webrtc-review.googlesource.com/c/src/+/362569 Reviewed-by: Sergey Silkin Reviewed-by: Henrik Boström Commit-Queue: Philipp Hancke Cr-Commit-Position: refs/heads/main@{#43053} --- common_video/h264/h264_common.h | 6 ------ common_video/h264/sps_parser.h | 5 ----- 2 files changed, 11 deletions(-) diff --git a/common_video/h264/h264_common.h b/common_video/h264/h264_common.h index e7df02ae0d..0068b78c56 100644 --- a/common_video/h264/h264_common.h +++ b/common_video/h264/h264_common.h @@ -66,12 +66,6 @@ struct NaluIndex { RTC_EXPORT std::vector FindNaluIndices( rtc::ArrayView buffer); -// TODO: bugs.webrtc.org/42225170 - Deprecate. -inline std::vector FindNaluIndices(const uint8_t* buffer, - size_t buffer_size) { - return FindNaluIndices(rtc::MakeArrayView(buffer, buffer_size)); -} - // Get the NAL type from the header byte immediately following start sequence. RTC_EXPORT NaluType ParseNaluType(uint8_t data); diff --git a/common_video/h264/sps_parser.h b/common_video/h264/sps_parser.h index 7347e6d186..49cca712dd 100644 --- a/common_video/h264/sps_parser.h +++ b/common_video/h264/sps_parser.h @@ -44,11 +44,6 @@ class RTC_EXPORT SpsParser { // Unpack RBSP and parse SPS state from the supplied buffer. static std::optional ParseSps(rtc::ArrayView data); - // TODO: bugs.webrtc.org/42225170 - Deprecate. - static inline std::optional ParseSps(const uint8_t* data, - size_t length) { - return ParseSps(rtc::MakeArrayView(data, length)); - } protected: // Parse the SPS state, up till the VUI part, for a buffer where RBSP