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

Unified Diff: remoting/client/plugin/decoder.h

Issue 2690003: Copy the (early prototype of) remoting in Chrome into the public tree.... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 10 years, 6 months 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « remoting/client/plugin/compression.cc ('k') | remoting/client/plugin/host_connection.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: remoting/client/plugin/decoder.h
===================================================================
--- remoting/client/plugin/decoder.h (revision 0)
+++ remoting/client/plugin/decoder.h (revision 0)
@@ -0,0 +1,39 @@
+// Copyright (c) 2010 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+// TODO(hclam): Enable this when we have VP8.
+// extern "C" {
+// #include "remoting/demo/third_party/on2/include/on2_decoder.h"
+// #include "remoting/demo/third_party/on2/include/vp8dx.h"
+// }
+
+class Stream;
+
+class VideoDecoder {
+ public:
+ virtual ~VideoDecoder() {}
+ virtual bool DecodeFrame(char* buffer, int size) = 0;
+ virtual bool GetDecodedFrame(char** planes, int* strides) = 0;
+ virtual bool IsInitialized() = 0;
+ virtual int GetWidth() = 0;
+ virtual int GetHeight() = 0;
+ virtual int GetFormat() = 0;
+};
+
+// TODO(hclam): Enable this when we have VP8.
+// class VP8VideoDecoder {
+// public:
+// VP8VideoDecoder();
+// virtual bool DecodeFrame(char* buffer, int size);
+// virtual bool GetDecodedFrame(char** planes, int* strides);
+// virtual bool IsInitialized();
+// virtual int GetWidth();
+// virtual int GetHeight();
+// virtual int GetFormat();
+
+// private:
+// on2_codec_ctx_t codec_;
+// on2_codec_iter_t iter_;
+// bool first_frame_;
+// };
Property changes on: remoting/client/plugin/decoder.h
___________________________________________________________________
Added: svn:eol-style
+ LF
« no previous file with comments | « remoting/client/plugin/compression.cc ('k') | remoting/client/plugin/host_connection.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698