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

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

Issue 2760513002: h264_decoder_unittests: Initial Change. (Closed)
Patch Set: Address kcwu's comments. Created 3 years, 9 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
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 19
19 namespace media { 20 namespace media {
20 21
21 class V4L2H264Picture; 22 class V4L2H264Picture;
22 class VaapiH264Picture; 23 class VaapiH264Picture;
23 24
24 // A picture (a frame or a field) in the H.264 spec sense. 25 // A picture (a frame or a field) in the H.264 spec sense.
25 // See spec at http://www.itu.int/rec/T-REC-H.264 26 // See spec at http://www.itu.int/rec/T-REC-H.264
26 class H264Picture : public base::RefCounted<H264Picture> { 27 class MEDIA_GPU_EXPORT H264Picture : public base::RefCounted<H264Picture> {
27 public: 28 public:
28 using Vector = std::vector<scoped_refptr<H264Picture>>; 29 using Vector = std::vector<scoped_refptr<H264Picture>>;
29 30
30 enum Field { 31 enum Field {
31 FIELD_NONE, 32 FIELD_NONE,
32 FIELD_TOP, 33 FIELD_TOP,
33 FIELD_BOTTOM, 34 FIELD_BOTTOM,
34 }; 35 };
35 36
36 H264Picture(); 37 H264Picture();
(...skipping 131 matching lines...) Expand 10 before | Expand all | Expand 10 after
168 169
169 H264Picture::Vector pics_; 170 H264Picture::Vector pics_;
170 size_t max_num_pics_; 171 size_t max_num_pics_;
171 172
172 DISALLOW_COPY_AND_ASSIGN(H264DPB); 173 DISALLOW_COPY_AND_ASSIGN(H264DPB);
173 }; 174 };
174 175
175 } // namespace media 176 } // namespace media
176 177
177 #endif // MEDIA_GPU_H264_DPB_H_ 178 #endif // MEDIA_GPU_H264_DPB_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698