Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(569)

Unified Diff: webrtc/modules/video_coding/qp_parser.cc

Issue 2891803003: Add vp9 QP parser. (Closed)
Patch Set: Refactor. Created 3 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: webrtc/modules/video_coding/qp_parser.cc
diff --git a/webrtc/modules/video_coding/qp_parser.cc b/webrtc/modules/video_coding/qp_parser.cc
index 976cfff963edb2c69b638c9f6a35de5e932da6c1..26b46f17fbfc3161a9c511cfbb02a95427eee6a3 100644
--- a/webrtc/modules/video_coding/qp_parser.cc
+++ b/webrtc/modules/video_coding/qp_parser.cc
@@ -12,6 +12,7 @@
#include "webrtc/common_types.h"
#include "webrtc/modules/video_coding/utility/vp8_header_parser.h"
+#include "webrtc/modules/video_coding/utility/vp9_uncompressed_header_parser.h"
namespace webrtc {
@@ -20,6 +21,9 @@ bool QpParser::GetQp(const VCMEncodedFrame& frame, int* qp) {
case kVideoCodecVP8:
// QP range: [0, 127].
return vp8::GetQp(frame.Buffer(), frame.Length(), qp);
+ case kVideoCodecVP9:
+ // QP range: [0, 255].
+ return vp9::GetQp(frame.Buffer(), frame.Length(), qp);
default:
return false;
}
« no previous file with comments | « webrtc/modules/video_coding/BUILD.gn ('k') | webrtc/modules/video_coding/utility/vp9_uncompressed_header_parser.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698