OLD | NEW |
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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 REMOTING_BASE_DECODER_H_ | 5 #ifndef REMOTING_BASE_DECODER_H_ |
6 #define REMOTING_BASE_DECODER_H_ | 6 #define REMOTING_BASE_DECODER_H_ |
7 | 7 |
8 #include <vector> | 8 #include <vector> |
9 | 9 |
| 10 #include "base/task.h" |
10 #include "base/scoped_ptr.h" | 11 #include "base/scoped_ptr.h" |
11 #include "gfx/rect.h" | 12 #include "gfx/rect.h" |
12 #include "media/base/video_frame.h" | 13 #include "media/base/video_frame.h" |
13 #include "remoting/proto/video.pb.h" | 14 #include "remoting/proto/video.pb.h" |
14 | 15 |
15 class Task; | |
16 | |
17 namespace remoting { | 16 namespace remoting { |
18 | 17 |
19 typedef std::vector<gfx::Rect> UpdatedRects; | 18 typedef std::vector<gfx::Rect> UpdatedRects; |
20 | 19 |
21 // Interface for a decoder that takes a stream of bytes from the network and | 20 // Interface for a decoder that takes a stream of bytes from the network and |
22 // outputs frames of data. | 21 // outputs frames of data. |
23 // | 22 // |
24 // TODO(ajwong): Beef up this documentation once the API stablizes. | 23 // TODO(ajwong): Beef up this documentation once the API stablizes. |
25 class Decoder { | 24 class Decoder { |
26 public: | 25 public: |
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
58 | 57 |
59 // Returns true if decoder is ready to accept data via DecodePacket. | 58 // Returns true if decoder is ready to accept data via DecodePacket. |
60 virtual bool IsReadyForData() = 0; | 59 virtual bool IsReadyForData() = 0; |
61 | 60 |
62 virtual VideoPacketFormat::Encoding Encoding() = 0; | 61 virtual VideoPacketFormat::Encoding Encoding() = 0; |
63 }; | 62 }; |
64 | 63 |
65 } // namespace remoting | 64 } // namespace remoting |
66 | 65 |
67 #endif // REMOTING_BASE_DECODER_H_ | 66 #endif // REMOTING_BASE_DECODER_H_ |
OLD | NEW |