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

Side by Side Diff: content/common/gpu/media/h264_decoder.h

Issue 967693002: Clang fixes for chromeos (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Feedback Created 5 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 #ifndef CONTENT_COMMON_GPU_MEDIA_H264_DECODER_H_ 5 #ifndef CONTENT_COMMON_GPU_MEDIA_H264_DECODER_H_
6 #define CONTENT_COMMON_GPU_MEDIA_H264_DECODER_H_ 6 #define CONTENT_COMMON_GPU_MEDIA_H264_DECODER_H_
7 7
8 #include <vector> 8 #include <vector>
9 9
10 #include "base/memory/ref_counted.h" 10 #include "base/memory/ref_counted.h"
(...skipping 87 matching lines...) Expand 10 before | Expand all | Expand 10 after
98 }; 98 };
99 99
100 H264Decoder(H264Accelerator* accelerator); 100 H264Decoder(H264Accelerator* accelerator);
101 ~H264Decoder() override; 101 ~H264Decoder() override;
102 102
103 // content::AcceleratedVideoDecoder implementation. 103 // content::AcceleratedVideoDecoder implementation.
104 bool Flush() override WARN_UNUSED_RESULT; 104 bool Flush() override WARN_UNUSED_RESULT;
105 void Reset() override; 105 void Reset() override;
106 void SetStream(const uint8_t* ptr, size_t size) override; 106 void SetStream(const uint8_t* ptr, size_t size) override;
107 DecodeResult Decode() override WARN_UNUSED_RESULT; 107 DecodeResult Decode() override WARN_UNUSED_RESULT;
108 gfx::Size GetPicSize() const override { return pic_size_; } 108 gfx::Size GetPicSize() const override;
109 size_t GetRequiredNumOfPictures() const override; 109 size_t GetRequiredNumOfPictures() const override;
110 110
111 private: 111 private:
112 // We need to keep at most kDPBMaxSize pictures in DPB for 112 // We need to keep at most kDPBMaxSize pictures in DPB for
113 // reference/to display later and an additional one for the one currently 113 // reference/to display later and an additional one for the one currently
114 // being decoded. We also ask for some additional ones since VDA needs 114 // being decoded. We also ask for some additional ones since VDA needs
115 // to accumulate a few ready-to-output pictures before it actually starts 115 // to accumulate a few ready-to-output pictures before it actually starts
116 // displaying and giving them back. +2 instead of +1 because of subjective 116 // displaying and giving them back. +2 instead of +1 because of subjective
117 // smoothness improvement during testing. 117 // smoothness improvement during testing.
118 enum { 118 enum {
(...skipping 135 matching lines...) Expand 10 before | Expand all | Expand 10 after
254 int last_output_poc_; 254 int last_output_poc_;
255 255
256 H264Accelerator* accelerator_; 256 H264Accelerator* accelerator_;
257 257
258 DISALLOW_COPY_AND_ASSIGN(H264Decoder); 258 DISALLOW_COPY_AND_ASSIGN(H264Decoder);
259 }; 259 };
260 260
261 } // namespace content 261 } // namespace content
262 262
263 #endif // CONTENT_COMMON_GPU_MEDIA_H264_DECODER_H_ 263 #endif // CONTENT_COMMON_GPU_MEDIA_H264_DECODER_H_
OLDNEW
« no previous file with comments | « content/common/gpu/media/generic_v4l2_device.h ('k') | content/common/gpu/media/h264_decoder.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698