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

Unified Diff: remoting/base/encoder.h

Issue 10877014: Moved the video encoders/decoders to the codec directory. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Addressed comments Created 8 years, 4 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/base/encode_decode_unittest.cc ('k') | remoting/base/encoder_row_based.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: remoting/base/encoder.h
diff --git a/remoting/base/encoder.h b/remoting/base/encoder.h
deleted file mode 100644
index ae6fadc626094f8827bdd54b924a4d487a6f6688..0000000000000000000000000000000000000000
--- a/remoting/base/encoder.h
+++ /dev/null
@@ -1,48 +0,0 @@
-// Copyright (c) 2012 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.
-
-#ifndef REMOTING_BASE_ENCODER_H_
-#define REMOTING_BASE_ENCODER_H_
-
-#include "base/basictypes.h"
-#include "base/callback.h"
-#include "media/base/data_buffer.h"
-
-namespace media {
- class DataBuffer;
-}
-
-namespace remoting {
-
-class CaptureData;
-class VideoPacket;
-
-// A class to perform the task of encoding a continous stream of
-// images.
-// This class operates asynchronously to enable maximum throughput.
-class Encoder {
- public:
-
- // DataAvailableCallback is called as blocks of data are made available
- // from the encoder. Data made available by the encoder is in the form
- // of HostMessage to reduce the amount of memory copies.
- typedef base::Callback<void(scoped_ptr<VideoPacket>)> DataAvailableCallback;
-
- virtual ~Encoder() {}
-
- // Encode an image stored in |capture_data|.
- //
- // If |key_frame| is true, the encoder should not reference
- // previous encode and encode the full frame.
- //
- // When encoded data is available, partial or full |data_available_callback|
- // is called.
- virtual void Encode(scoped_refptr<CaptureData> capture_data,
- bool key_frame,
- const DataAvailableCallback& data_available_callback) = 0;
-};
-
-} // namespace remoting
-
-#endif // REMOTING_BASE_ENCODER_H_
« no previous file with comments | « remoting/base/encode_decode_unittest.cc ('k') | remoting/base/encoder_row_based.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698