1 // Copyright (c) 2012 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.
5 #ifndef REMOTING_CODEC_VIDEO_ENCODER_H_
6 #define REMOTING_CODEC_VIDEO_ENCODER_H_
8 #include "base/memory/scoped_ptr.h"
18 // A class to perform the task of encoding a continuous stream of images. The
19 // interface is asynchronous to enable maximum throughput.
22 virtual ~VideoEncoder() {}
24 // Encode an image stored in |frame|.
25 virtual scoped_ptr
<VideoPacket
> Encode(const webrtc::DesktopFrame
& frame
) = 0;
28 } // namespace remoting
30 #endif // REMOTING_CODEC_VIDEO_ENCODER_H_