Erik Språng
edb7ea2e69
Refactors Vp9UncompressedHeaderParser.
...
Biggest change is a new helper class used to read data from the
bitstream and then pass the result to a function if reading was
successful. There's also helper to do if/else flow based on the read
values. This avoids a bunch of temporaries and in my view makes the
code esaier to read.
For example, this block:
uint32_t bit;
RETURN_FALSE_IF_ERROR(br->ReadBits(&bit, 1));
if (bit) {
RETURN_FALSE_IF_ERROR(br->ConsumeBits(7));
}
...is now written as:
RETURN_IF_FALSE(
br->IfNextBoolean([br] { return br->ConsumeBits(7); }));
In addition, we parse and put a few extra things in FrameInfo:
show_existing_frame, is_keyframe, and base_qp.
Bug: webrtc:12354
Change-Id: Ia0b707b223a1afe0a4521ce2b995437d41243c06
Reviewed-on: https://webrtc-review.googlesource.com/c/src/+/215239
Commit-Queue: Erik Språng <sprang@webrtc.org >
Reviewed-by: Philip Eliasson <philipel@webrtc.org >
Cr-Commit-Position: refs/heads/master@{#33776}
2021-04-19 16:46:48 +00:00
..
2021-04-07 13:02:25 +00:00
2021-02-22 12:53:23 +00:00
2021-04-16 08:46:12 +00:00
2021-02-22 12:53:23 +00:00
2021-03-26 11:17:00 +00:00
2019-09-24 08:22:38 +00:00
2021-04-19 16:46:48 +00:00
2021-04-19 16:46:48 +00:00
2020-05-18 14:22:44 +00:00
2020-05-18 14:22:44 +00:00
2020-05-18 14:22:44 +00:00
2019-09-24 08:22:38 +00:00
2021-02-19 12:08:49 +00:00
2021-02-19 12:08:49 +00:00
2019-07-08 13:45:15 +00:00
2020-01-14 14:47:48 +00:00
2021-03-25 09:57:00 +00:00
2020-02-28 16:59:10 +00:00
2021-03-30 11:45:00 +00:00
2021-03-19 14:12:28 +00:00
2020-03-06 08:39:35 +00:00
2020-03-06 08:39:35 +00:00
2020-07-07 11:41:21 +00:00
2020-07-07 11:41:21 +00:00
2019-07-08 13:45:15 +00:00
2021-03-23 14:22:47 +00:00
2021-02-15 14:42:02 +00:00
2021-02-15 14:42:02 +00:00
2020-10-28 16:00:27 +00:00
2019-09-30 09:48:26 +00:00
2020-11-23 10:52:06 +00:00
2020-11-23 10:52:06 +00:00
2020-11-23 10:52:06 +00:00
2021-03-25 21:57:29 +00:00
2021-03-25 10:44:40 +00:00
2020-10-26 15:03:56 +00:00
2021-04-09 14:47:52 +00:00
2021-04-09 14:47:52 +00:00
2019-07-08 13:45:15 +00:00
2019-12-03 14:55:54 +00:00
2020-06-24 21:54:45 +00:00
2019-12-03 14:55:54 +00:00
2019-07-08 13:45:15 +00:00
2019-07-08 13:45:15 +00:00
2019-07-08 13:45:15 +00:00
2020-10-28 16:00:27 +00:00
2020-07-07 11:41:21 +00:00
2020-05-19 11:51:29 +00:00
2020-05-19 11:51:29 +00:00
2020-05-19 11:51:29 +00:00
2020-01-24 11:53:28 +00:00
2020-01-24 11:53:28 +00:00
2021-02-10 15:04:55 +00:00
2019-11-04 13:50:59 +00:00
2019-11-04 13:50:59 +00:00
2020-05-27 14:20:34 +00:00
2020-05-27 14:20:34 +00:00
2021-02-10 15:04:55 +00:00
2020-05-30 16:34:44 +00:00
2020-02-19 14:05:46 +00:00
2021-04-13 18:24:45 +00:00
2021-04-14 16:05:51 +00:00
2021-04-14 16:05:51 +00:00
2019-06-20 10:24:29 +00:00
2019-06-20 10:24:29 +00:00
2021-04-12 07:21:03 +00:00
2020-10-28 16:00:27 +00:00
2020-07-16 13:52:28 +00:00
2021-03-23 14:22:47 +00:00
2021-03-23 14:22:47 +00:00
2021-03-23 14:22:47 +00:00
2021-03-23 14:22:47 +00:00
2021-03-25 10:44:40 +00:00
2021-03-23 14:22:47 +00:00
2021-03-23 14:22:47 +00:00
2021-03-23 14:22:47 +00:00
2021-03-23 14:22:47 +00:00
2021-03-23 14:22:47 +00:00
2021-03-23 14:22:47 +00:00
2021-03-23 14:22:47 +00:00
2021-03-23 14:22:47 +00:00
2021-03-23 14:22:47 +00:00
2021-03-23 14:22:47 +00:00
2019-09-24 08:22:38 +00:00
2020-06-15 11:18:00 +00:00
2019-07-08 13:45:15 +00:00
2021-04-09 14:47:52 +00:00
2021-04-09 14:47:52 +00:00
2021-04-09 14:47:52 +00:00
2019-07-08 13:45:15 +00:00
2020-11-02 11:49:46 +00:00
2020-11-02 11:49:46 +00:00
2019-10-30 15:27:48 +00:00
2019-10-30 15:27:48 +00:00
2019-10-30 15:27:48 +00:00
2020-09-22 16:09:53 +00:00
2020-12-30 16:45:03 +00:00
2019-08-27 07:43:01 +00:00
2021-02-10 15:04:55 +00:00
2021-02-10 15:04:55 +00:00
2021-02-19 12:08:49 +00:00
2021-02-19 12:08:49 +00:00
2020-08-11 14:20:59 +00:00
2021-02-10 15:04:55 +00:00