OLD | NEW |
(Empty) | |
| 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 |
| 3 // found in the LICENSE file. |
| 4 |
| 5 // TODO(hclam): Enable this when we have VP8. |
| 6 // extern "C" { |
| 7 // #include "remoting/demo/third_party/on2/include/on2_decoder.h" |
| 8 // #include "remoting/demo/third_party/on2/include/vp8dx.h" |
| 9 // } |
| 10 |
| 11 class Stream; |
| 12 |
| 13 class VideoDecoder { |
| 14 public: |
| 15 virtual ~VideoDecoder() {} |
| 16 virtual bool DecodeFrame(char* buffer, int size) = 0; |
| 17 virtual bool GetDecodedFrame(char** planes, int* strides) = 0; |
| 18 virtual bool IsInitialized() = 0; |
| 19 virtual int GetWidth() = 0; |
| 20 virtual int GetHeight() = 0; |
| 21 virtual int GetFormat() = 0; |
| 22 }; |
| 23 |
| 24 // TODO(hclam): Enable this when we have VP8. |
| 25 // class VP8VideoDecoder { |
| 26 // public: |
| 27 // VP8VideoDecoder(); |
| 28 // virtual bool DecodeFrame(char* buffer, int size); |
| 29 // virtual bool GetDecodedFrame(char** planes, int* strides); |
| 30 // virtual bool IsInitialized(); |
| 31 // virtual int GetWidth(); |
| 32 // virtual int GetHeight(); |
| 33 // virtual int GetFormat(); |
| 34 |
| 35 // private: |
| 36 // on2_codec_ctx_t codec_; |
| 37 // on2_codec_iter_t iter_; |
| 38 // bool first_frame_; |
| 39 // }; |
OLD | NEW |