Add spatial index to EncodedImage.
Replaces the VP8 simulcast index and VP9 spatial index formely part of CodecSpecificInfo. Bug: webrtc:9378 Change-Id: I80eafd63fbdee0a25864338196a690628b4bd3d2 Reviewed-on: https://webrtc-review.googlesource.com/83161 Commit-Queue: Niels Moller <nisse@webrtc.org> Reviewed-by: Erik Språng <sprang@webrtc.org> Reviewed-by: Sebastian Jansson <srte@webrtc.org> Reviewed-by: Magnus Jedvert <magjed@webrtc.org> Reviewed-by: Philip Eliasson <philipel@webrtc.org> Reviewed-by: Rasmus Brandt <brandtr@webrtc.org> Cr-Commit-Position: refs/heads/master@{#24485}
This commit is contained in:
@ -28,6 +28,8 @@ class RTPFragmentationHeader; // forward declaration
|
||||
// with a copy-constructor. See below.
|
||||
struct CodecSpecificInfoVP8 {
|
||||
bool nonReference;
|
||||
// TODO(bugs.webrtc.org/9378): Delete simulcastIdx, replaced by spatial index
|
||||
// member in EncodedImage. Unused, but assigned in downstream code.
|
||||
uint8_t simulcastIdx;
|
||||
uint8_t temporalIdx;
|
||||
bool layerSync;
|
||||
@ -43,6 +45,8 @@ struct CodecSpecificInfoVP9 {
|
||||
bool non_ref_for_inter_layer_pred;
|
||||
|
||||
uint8_t temporal_idx;
|
||||
// TODO(bugs.webrtc.org/9378): Delete spatial_idx, replaced by spatial index
|
||||
// member in EncodedImage. Unused, but assigned in downstream code.
|
||||
uint8_t spatial_idx;
|
||||
bool temporal_up_switch;
|
||||
bool inter_layer_predicted; // Frame is dependent on directly lower spatial
|
||||
@ -63,13 +67,14 @@ struct CodecSpecificInfoVP9 {
|
||||
bool end_of_picture;
|
||||
};
|
||||
|
||||
// TODO(bugs.webrtc.org/9378): Delete this struct. Unused, except that
|
||||
// simulcast_idx is assigned in downstream code.
|
||||
struct CodecSpecificInfoGeneric {
|
||||
uint8_t simulcast_idx;
|
||||
};
|
||||
|
||||
struct CodecSpecificInfoH264 {
|
||||
H264PacketizationMode packetization_mode;
|
||||
uint8_t simulcast_idx;
|
||||
};
|
||||
|
||||
union CodecSpecificInfoUnion {
|
||||
|
Reference in New Issue
Block a user