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

Side by Side Diff: media/gpu/h264_dpb.h

Issue 2760513002: h264_decoder_unittests: Initial Change. (Closed)
Patch Set: Rebase Created 3 years, 5 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 unified diff | Download patch
« no previous file with comments | « media/gpu/h264_decoder_unittest.cc ('k') | media/test/data/bear-320x192-baseline-frame-0.h264 » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 // 4 //
5 // This file contains an implementation of an H.264 Decoded Picture Buffer 5 // This file contains an implementation of an H.264 Decoded Picture Buffer
6 // used in H264 decoders. 6 // used in H264 decoders.
7 7
8 #ifndef MEDIA_GPU_H264_DPB_H_ 8 #ifndef MEDIA_GPU_H264_DPB_H_
9 #define MEDIA_GPU_H264_DPB_H_ 9 #define MEDIA_GPU_H264_DPB_H_
10 10
11 #include <stddef.h> 11 #include <stddef.h>
12 12
13 #include <vector> 13 #include <vector>
14 14
15 #include "base/macros.h" 15 #include "base/macros.h"
16 #include "base/memory/ref_counted.h" 16 #include "base/memory/ref_counted.h"
17 #include "media/filters/h264_parser.h" 17 #include "media/filters/h264_parser.h"
18 #include "media/gpu/media_gpu_export.h"
18 #include "ui/gfx/geometry/rect.h" 19 #include "ui/gfx/geometry/rect.h"
19 20
20 namespace media { 21 namespace media {
21 22
22 class V4L2H264Picture; 23 class V4L2H264Picture;
23 class VaapiH264Picture; 24 class VaapiH264Picture;
24 25
25 // A picture (a frame or a field) in the H.264 spec sense. 26 // A picture (a frame or a field) in the H.264 spec sense.
26 // See spec at http://www.itu.int/rec/T-REC-H.264 27 // See spec at http://www.itu.int/rec/T-REC-H.264
27 class H264Picture : public base::RefCounted<H264Picture> { 28 class MEDIA_GPU_EXPORT H264Picture : public base::RefCounted<H264Picture> {
28 public: 29 public:
29 using Vector = std::vector<scoped_refptr<H264Picture>>; 30 using Vector = std::vector<scoped_refptr<H264Picture>>;
30 31
31 enum Field { 32 enum Field {
32 FIELD_NONE, 33 FIELD_NONE,
33 FIELD_TOP, 34 FIELD_TOP,
34 FIELD_BOTTOM, 35 FIELD_BOTTOM,
35 }; 36 };
36 37
37 H264Picture(); 38 H264Picture();
(...skipping 135 matching lines...) Expand 10 before | Expand all | Expand 10 after
173 174
174 H264Picture::Vector pics_; 175 H264Picture::Vector pics_;
175 size_t max_num_pics_; 176 size_t max_num_pics_;
176 177
177 DISALLOW_COPY_AND_ASSIGN(H264DPB); 178 DISALLOW_COPY_AND_ASSIGN(H264DPB);
178 }; 179 };
179 180
180 } // namespace media 181 } // namespace media
181 182
182 #endif // MEDIA_GPU_H264_DPB_H_ 183 #endif // MEDIA_GPU_H264_DPB_H_
OLDNEW
« no previous file with comments | « media/gpu/h264_decoder_unittest.cc ('k') | media/test/data/bear-320x192-baseline-frame-0.h264 » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698