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

Unified Diff: webrtc/modules/video_coding/utility/include/qp_parser.h

Issue 1340623002: Add stats for average QP per frame for VP8 (for received video streams). (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@master
Patch Set: remove check Created 5 years, 2 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/utility/include/qp_parser.h
diff --git a/webrtc/common_video/rotation.h b/webrtc/modules/video_coding/utility/include/qp_parser.h
similarity index 50%
copy from webrtc/common_video/rotation.h
copy to webrtc/modules/video_coding/utility/include/qp_parser.h
index 46a9ecc5eab132b21587fd61a0dd778857addad0..805b37b45c9cb0b375a540923e0cc342a5744b28 100644
--- a/webrtc/common_video/rotation.h
+++ b/webrtc/modules/video_coding/utility/include/qp_parser.h
@@ -8,19 +8,23 @@
* be found in the AUTHORS file in the root of the source tree.
*/
-#ifndef WEBRTC_COMMON_VIDEO_ROTATION_H_
-#define WEBRTC_COMMON_VIDEO_ROTATION_H_
+#ifndef WEBRTC_MODULES_VIDEO_CODING_UTILITY_QP_PARSER_H_
+#define WEBRTC_MODULES_VIDEO_CODING_UTILITY_QP_PARSER_H_
+
+#include "webrtc/modules/video_coding/main/source/encoded_frame.h"
namespace webrtc {
-// enum for clockwise rotation.
-enum VideoRotation {
- kVideoRotation_0 = 0,
- kVideoRotation_90 = 90,
- kVideoRotation_180 = 180,
- kVideoRotation_270 = 270
+class QpParser {
+ public:
+ QpParser() {}
+ ~QpParser() {}
+
+ // Parses an encoded |frame| and extracts the |qp|.
+ // Returns true on success, false otherwise.
+ bool GetQp(const VCMEncodedFrame& frame, int* qp);
};
} // namespace webrtc
-#endif // WEBRTC_COMMON_VIDEO_ROTATION_H_
+#endif // WEBRTC_MODULES_VIDEO_CODING_UTILITY_QP_PARSER_H_

Powered by Google App Engine
This is Rietveld 408576698