| 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_VP8_H_ | 5 #ifndef REMOTING_BASE_DECODER_VP8_H_ |
| 6 #define REMOTING_BASE_DECODER_VP8_H_ | 6 #define REMOTING_BASE_DECODER_VP8_H_ |
| 7 | 7 |
| 8 #include "remoting/base/decoder.h" | 8 #include "remoting/base/decoder.h" |
| 9 | 9 |
| 10 typedef struct vpx_codec_ctx vpx_codec_ctx_t; | 10 typedef struct vpx_codec_ctx vpx_codec_ctx_t; |
| (...skipping 13 matching lines...) Expand all Loading... |
| 24 virtual void Reset(); | 24 virtual void Reset(); |
| 25 virtual VideoPacketFormat::Encoding Encoding(); | 25 virtual VideoPacketFormat::Encoding Encoding(); |
| 26 | 26 |
| 27 private: | 27 private: |
| 28 enum State { | 28 enum State { |
| 29 kUninitialized, | 29 kUninitialized, |
| 30 kReady, | 30 kReady, |
| 31 kError, | 31 kError, |
| 32 }; | 32 }; |
| 33 | 33 |
| 34 // True if we should decode the image upside down. |
| 35 bool reverse_rows_; |
| 36 |
| 34 // The internal state of the decoder. | 37 // The internal state of the decoder. |
| 35 State state_; | 38 State state_; |
| 36 | 39 |
| 37 // The video frame to write to. | 40 // The video frame to write to. |
| 38 scoped_refptr<media::VideoFrame> frame_; | 41 scoped_refptr<media::VideoFrame> frame_; |
| 39 | 42 |
| 40 vpx_codec_ctx_t* codec_; | 43 vpx_codec_ctx_t* codec_; |
| 41 | 44 |
| 42 DISALLOW_COPY_AND_ASSIGN(DecoderVp8); | 45 DISALLOW_COPY_AND_ASSIGN(DecoderVp8); |
| 43 }; | 46 }; |
| 44 | 47 |
| 45 } // namespace remoting | 48 } // namespace remoting |
| 46 | 49 |
| 47 #endif // REMOTING_BASE_DECODER_VP8_H_ | 50 #endif // REMOTING_BASE_DECODER_VP8_H_ |
| OLD | NEW |