Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(45)

Side by Side Diff: remoting/base/decoder_vp8.h

Issue 5310011: Reverse rows in VP8 decoder. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 10 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « no previous file | remoting/base/decoder_vp8.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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_
OLDNEW
« no previous file with comments | « no previous file | remoting/base/decoder_vp8.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698