Reland "Rename vp9::FrameInfo to vp9::UncompressedHeader and add more fields."
This is a reland of 3097008de03b6260da5cfabb5cbac6f6a64ca810 Patchset 1 is a pure reland. Patchset 2 contains a bugfix plus a test covering that case. Bug: webrtc:12354, chromium:1230448 Original change's description: > Rename vp9::FrameInfo to vp9::UncompressedHeader and add more fields. > > These fields will be used for bitstream validation in upcoming CLs. > A new vp9_constants.h file is also added, containing common constants > defined by the bitstream spec. > > Bug: webrtc:12354 > Change-Id: If04256d83409069c8bee43ad41aed41c3707dfd3 > Reviewed-on: https://webrtc-review.googlesource.com/c/src/+/226060 > Commit-Queue: Erik Språng <sprang@webrtc.org> > Reviewed-by: Philip Eliasson <philipel@webrtc.org> > Cr-Commit-Position: refs/heads/master@{#34476} Bug: webrtc:12354 Change-Id: Ibd301eb458a6104b562cefbc0e616c39b54fb38b Reviewed-on: https://webrtc-review.googlesource.com/c/src/+/229060 Commit-Queue: Erik Språng <sprang@webrtc.org> Reviewed-by: Danil Chapovalov <danilchap@webrtc.org> Cr-Commit-Position: refs/heads/master@{#34789}
This commit is contained in:
committed by
WebRTC LUCI CQ
parent
923d2c237e
commit
e57a493301
@ -204,8 +204,9 @@ int LibvpxVp9Decoder::Decode(const EncodedImage& input_image,
|
||||
}
|
||||
|
||||
if (input_image._frameType == VideoFrameType::kVideoFrameKey) {
|
||||
absl::optional<vp9::FrameInfo> frame_info =
|
||||
vp9::ParseIntraFrameInfo(input_image.data(), input_image.size());
|
||||
absl::optional<Vp9UncompressedHeader> frame_info =
|
||||
ParseUncompressedVp9Header(
|
||||
rtc::MakeArrayView(input_image.data(), input_image.size()));
|
||||
if (frame_info) {
|
||||
RenderResolution frame_resolution(frame_info->frame_width,
|
||||
frame_info->frame_height);
|
||||
|
||||
Reference in New Issue
Block a user