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