Reland of "Change type of pid_diff (int16_t -> uint8_t) according to updates in RTP payload profile."
BUG=webrtc:5144 TBR=mflodman@webrtc.org Review URL: https://codereview.webrtc.org/1409753007 Cr-Commit-Position: refs/heads/master@{#10533}
This commit is contained in:
@ -131,7 +131,7 @@ struct GofInfoVP9 {
|
||||
temporal_idx[i] = src.temporal_idx[i];
|
||||
temporal_up_switch[i] = src.temporal_up_switch[i];
|
||||
num_ref_pics[i] = src.num_ref_pics[i];
|
||||
for (size_t r = 0; r < num_ref_pics[i]; ++r) {
|
||||
for (uint8_t r = 0; r < num_ref_pics[i]; ++r) {
|
||||
pid_diff[i][r] = src.pid_diff[i][r];
|
||||
}
|
||||
}
|
||||
@ -140,8 +140,8 @@ struct GofInfoVP9 {
|
||||
size_t num_frames_in_gof;
|
||||
uint8_t temporal_idx[kMaxVp9FramesInGof];
|
||||
bool temporal_up_switch[kMaxVp9FramesInGof];
|
||||
size_t num_ref_pics[kMaxVp9FramesInGof];
|
||||
int16_t pid_diff[kMaxVp9FramesInGof][kMaxVp9RefPics];
|
||||
uint8_t num_ref_pics[kMaxVp9FramesInGof];
|
||||
uint8_t pid_diff[kMaxVp9FramesInGof][kMaxVp9RefPics];
|
||||
};
|
||||
|
||||
struct RTPVideoHeaderVP9 {
|
||||
@ -185,9 +185,9 @@ struct RTPVideoHeaderVP9 {
|
||||
|
||||
uint8_t gof_idx; // Index to predefined temporal frame info in SS data.
|
||||
|
||||
size_t num_ref_pics; // Number of reference pictures used by this layer
|
||||
// frame.
|
||||
int16_t pid_diff[kMaxVp9RefPics]; // P_DIFF signaled to derive the PictureID
|
||||
uint8_t num_ref_pics; // Number of reference pictures used by this layer
|
||||
// frame.
|
||||
uint8_t pid_diff[kMaxVp9RefPics]; // P_DIFF signaled to derive the PictureID
|
||||
// of the reference pictures.
|
||||
int16_t ref_picture_id[kMaxVp9RefPics]; // PictureID of reference pictures.
|
||||
|
||||
|
||||
Reference in New Issue
Block a user