aboutsummaryrefslogtreecommitdiff
path: root/accel/vp9_picture.h
diff options
context:
space:
mode:
authorAndroid Build Coastguard Worker <android-build-coastguard-worker@google.com>2022-04-08 16:02:03 +0000
committerAndroid Build Coastguard Worker <android-build-coastguard-worker@google.com>2022-04-08 16:02:03 +0000
commit34c40490440c7fcec1a4c944c1fbf18b1fee57a6 (patch)
treeb207ce2b6cb08f3ba9b14ea81e060885101abb7a /accel/vp9_picture.h
parente7a9fb61a353807cb59c4ea9e0ff328e2ea18f8c (diff)
parentec976846efd4d2d8b1b00652b69e3c2f526980f3 (diff)
downloadv4l2_codec2-34c40490440c7fcec1a4c944c1fbf18b1fee57a6.tar.gz
Change-Id: I640c9ccb6dfc3cdc336453090a7931a5dc5cb6c9
Diffstat (limited to 'accel/vp9_picture.h')
-rw-r--r--accel/vp9_picture.h42
1 files changed, 42 insertions, 0 deletions
diff --git a/accel/vp9_picture.h b/accel/vp9_picture.h
new file mode 100644
index 0000000..efff37b
--- /dev/null
+++ b/accel/vp9_picture.h
@@ -0,0 +1,42 @@
+// Copyright 2015 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+// Note: ported from Chromium commit head: 70340ce
+
+#ifndef VP9_PICTURE_H_
+#define VP9_PICTURE_H_
+
+#include <memory>
+
+#include "base/macros.h"
+#include "base/memory/ref_counted.h"
+#include "rect.h"
+#include "vp9_parser.h"
+
+namespace media {
+
+class V4L2VP9Picture;
+
+class VP9Picture : public base::RefCountedThreadSafe<VP9Picture> {
+ public:
+ VP9Picture();
+
+ virtual V4L2VP9Picture* AsV4L2VP9Picture();
+
+ std::unique_ptr<Vp9FrameHeader> frame_hdr;
+
+ // The visible size of picture. This could be either parsed from frame
+ // header, or set to Rect(0, 0) for indicating invalid values or
+ // not available.
+ Rect visible_rect;
+
+ protected:
+ friend class base::RefCountedThreadSafe<VP9Picture>;
+ virtual ~VP9Picture();
+
+ DISALLOW_COPY_AND_ASSIGN(VP9Picture);
+};
+
+} // namespace media
+
+#endif // VP9_PICTURE_H_