Generic Frame Descriptor (GFD) VP8 templates.
In this CL:
- Updated Vp8TemporalLayers::OnEncodeDone to take a CodecSpecificInfo
instead of a CodecSpecificInfoVP8, so that both the VP8 specific and
generic information can be populated.
- Added structs to represent the GFD template structure.
- Added code to generate templates for video/screensharing.
Bug: webrtc:10342
Change-Id: I978f9d708597a6f86bbdc494e62acf7a7b400db3
Reviewed-on: https://webrtc-review.googlesource.com/c/src/+/123422
Commit-Queue: Philip Eliasson <philipel@webrtc.org>
Reviewed-by: Erik Språng <sprang@webrtc.org>
Reviewed-by: Stefan Holmer <stefan@webrtc.org>
Reviewed-by: Danil Chapovalov <danilchap@webrtc.org>
Cr-Commit-Position: refs/heads/master@{#26987}
diff --git a/test/fake_vp8_encoder.cc b/test/fake_vp8_encoder.cc
index c368eb5..cb60091 100644
--- a/test/fake_vp8_encoder.cc
+++ b/test/fake_vp8_encoder.cc
@@ -106,11 +106,10 @@
uint32_t timestamp) {
RTC_DCHECK_CALLED_SEQUENTIALLY(&sequence_checker_);
codec_specific->codecType = kVideoCodecVP8;
- CodecSpecificInfoVP8* vp8Info = &(codec_specific->codecSpecific.VP8);
- vp8Info->keyIdx = kNoKeyIdx;
- vp8Info->nonReference = false;
+ codec_specific->codecSpecific.VP8.keyIdx = kNoKeyIdx;
+ codec_specific->codecSpecific.VP8.nonReference = false;
temporal_layers_[stream_idx]->OnEncodeDone(
- timestamp, size_bytes, frame_type == kVideoFrameKey, -1, vp8Info);
+ timestamp, size_bytes, frame_type == kVideoFrameKey, -1, codec_specific);
}
EncodedImageCallback::Result FakeVP8Encoder::OnEncodedImage(