Remove non-span NAL unit splitter and SPS parser
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 <ssilkin@webrtc.org> Reviewed-by: Henrik Boström <hbos@webrtc.org> Commit-Queue: Philipp Hancke <phancke@meta.com> Cr-Commit-Position: refs/heads/main@{#43053}
This commit is contained in:
parent
4595711bf5
commit
c1dc8abeeb
@ -66,12 +66,6 @@ struct NaluIndex {
|
|||||||
RTC_EXPORT std::vector<NaluIndex> FindNaluIndices(
|
RTC_EXPORT std::vector<NaluIndex> FindNaluIndices(
|
||||||
rtc::ArrayView<const uint8_t> buffer);
|
rtc::ArrayView<const uint8_t> buffer);
|
||||||
|
|
||||||
// TODO: bugs.webrtc.org/42225170 - Deprecate.
|
|
||||||
inline std::vector<NaluIndex> 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.
|
// Get the NAL type from the header byte immediately following start sequence.
|
||||||
RTC_EXPORT NaluType ParseNaluType(uint8_t data);
|
RTC_EXPORT NaluType ParseNaluType(uint8_t data);
|
||||||
|
|
||||||
|
|||||||
@ -44,11 +44,6 @@ class RTC_EXPORT SpsParser {
|
|||||||
|
|
||||||
// Unpack RBSP and parse SPS state from the supplied buffer.
|
// Unpack RBSP and parse SPS state from the supplied buffer.
|
||||||
static std::optional<SpsState> ParseSps(rtc::ArrayView<const uint8_t> data);
|
static std::optional<SpsState> ParseSps(rtc::ArrayView<const uint8_t> data);
|
||||||
// TODO: bugs.webrtc.org/42225170 - Deprecate.
|
|
||||||
static inline std::optional<SpsState> ParseSps(const uint8_t* data,
|
|
||||||
size_t length) {
|
|
||||||
return ParseSps(rtc::MakeArrayView(data, length));
|
|
||||||
}
|
|
||||||
|
|
||||||
protected:
|
protected:
|
||||||
// Parse the SPS state, up till the VUI part, for a buffer where RBSP
|
// Parse the SPS state, up till the VUI part, for a buffer where RBSP
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user