| 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_
|
|
|