OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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 CHROME_GPU_GPU_VIDEO_DECODER_H_ | 5 #ifndef CHROME_GPU_GPU_VIDEO_DECODER_H_ |
6 #define CHROME_GPU_GPU_VIDEO_DECODER_H_ | 6 #define CHROME_GPU_GPU_VIDEO_DECODER_H_ |
7 | 7 |
8 #include <map> | 8 #include <map> |
9 #include <vector> | 9 #include <vector> |
10 | 10 |
11 #include "base/basictypes.h" | 11 #include "base/basictypes.h" |
12 #include "base/callback.h" | 12 #include "base/callback.h" |
| 13 #include "base/process.h" |
13 #include "base/ref_counted.h" | 14 #include "base/ref_counted.h" |
14 #include "base/scoped_ptr.h" | 15 #include "base/scoped_ptr.h" |
15 #include "chrome/common/gpu_video_common.h" | 16 #include "base/shared_memory.h" |
16 #include "chrome/gpu/media/gpu_video_device.h" | 17 #include "chrome/gpu/media/gpu_video_device.h" |
17 #include "media/video/video_decode_context.h" | 18 #include "media/video/video_decode_context.h" |
18 #include "media/video/video_decode_engine.h" | 19 #include "media/video/video_decode_engine.h" |
19 #include "ipc/ipc_channel.h" | 20 #include "ipc/ipc_channel.h" |
20 | 21 |
21 using media::Buffer; | 22 using media::Buffer; |
22 using media::PipelineStatistics; | 23 using media::PipelineStatistics; |
23 using media::VideoCodecConfig; | 24 using media::VideoCodecConfig; |
24 using media::VideoCodecInfo; | 25 using media::VideoCodecInfo; |
25 using media::VideoStreamInfo; | 26 using media::VideoStreamInfo; |
26 using media::VideoFrame; | 27 using media::VideoFrame; |
27 | 28 |
28 namespace gpu { | 29 namespace gpu { |
29 namespace gles2 { | 30 namespace gles2 { |
30 class GLES2Decoder; | 31 class GLES2Decoder; |
31 } // namespace gles2 | 32 } // namespace gles2 |
32 } // namespace gpu | 33 } // namespace gpu |
33 | 34 |
34 class GpuChannel; | 35 class GpuChannel; |
| 36 struct GpuVideoDecoderInitDoneParam; |
| 37 struct GpuVideoDecoderInitParam; |
| 38 struct GpuVideoDecoderInputBufferParam; |
35 | 39 |
36 // A GpuVideoDecoder is a platform independent video decoder that uses platform | 40 // A GpuVideoDecoder is a platform independent video decoder that uses platform |
37 // specific VideoDecodeEngine and GpuVideoDevice for the actual decoding | 41 // specific VideoDecodeEngine and GpuVideoDevice for the actual decoding |
38 // operations. | 42 // operations. |
39 // | 43 // |
40 // In addition to delegating video related commamnds to VideoDecodeEngine it | 44 // In addition to delegating video related commamnds to VideoDecodeEngine it |
41 // has the following important functions: | 45 // has the following important functions: |
42 // | 46 // |
43 // BUFFER ALLOCATION | 47 // BUFFER ALLOCATION |
44 // | 48 // |
(...skipping 151 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
196 // TODO(hclam): Using a faster data structure than map. | 200 // TODO(hclam): Using a faster data structure than map. |
197 typedef std::map<int32, scoped_refptr<media::VideoFrame> > VideoFrameMap; | 201 typedef std::map<int32, scoped_refptr<media::VideoFrame> > VideoFrameMap; |
198 VideoFrameMap video_frame_map_; | 202 VideoFrameMap video_frame_map_; |
199 | 203 |
200 media::VideoCodecInfo info_; | 204 media::VideoCodecInfo info_; |
201 | 205 |
202 DISALLOW_COPY_AND_ASSIGN(GpuVideoDecoder); | 206 DISALLOW_COPY_AND_ASSIGN(GpuVideoDecoder); |
203 }; | 207 }; |
204 | 208 |
205 #endif // CHROME_GPU_GPU_VIDEO_DECODER_H_ | 209 #endif // CHROME_GPU_GPU_VIDEO_DECODER_H_ |
OLD | NEW |