diff options
author | Android Build Coastguard Worker <android-build-coastguard-worker@google.com> | 2022-04-08 16:02:03 +0000 |
---|---|---|
committer | Android Build Coastguard Worker <android-build-coastguard-worker@google.com> | 2022-04-08 16:02:03 +0000 |
commit | 34c40490440c7fcec1a4c944c1fbf18b1fee57a6 (patch) | |
tree | b207ce2b6cb08f3ba9b14ea81e060885101abb7a /accel/vp9_picture.h | |
parent | e7a9fb61a353807cb59c4ea9e0ff328e2ea18f8c (diff) | |
parent | ec976846efd4d2d8b1b00652b69e3c2f526980f3 (diff) | |
download | v4l2_codec2-34c40490440c7fcec1a4c944c1fbf18b1fee57a6.tar.gz |
Snap for 8426163 from ec976846efd4d2d8b1b00652b69e3c2f526980f3 to mainline-tzdata2-releaseandroid-mainline-12.0.0_r112aml_tz2_305400500aml_tz2_305400300aml_tz2_305400100aml_tz2_304500300aml_tz2_303900110aml_tz2_303900102aml_tz2_303800002aml_tz2_303800001aml_tz2_303200001android12-mainline-tzdata2-releaseaml_tz2_305400100
Change-Id: I640c9ccb6dfc3cdc336453090a7931a5dc5cb6c9
Diffstat (limited to 'accel/vp9_picture.h')
-rw-r--r-- | accel/vp9_picture.h | 42 |
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_ |