From 3adf1b2a65a85ff7d4b55cd57a4e400f104d27dd Mon Sep 17 00:00:00 2001 From: "sergeyu@chromium.org" Date: Tue, 9 Nov 2010 23:22:20 +0000 Subject: Add VideoPacket struct for video packets. Refactor Decode interface to use it. Various cleanups. BUG=None TEST=Unittests. Review URL: http://codereview.chromium.org/4476003 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@65590 0039d316-1c4b-4281-b951-d872f2087c98 --- remoting/base/decoder_vp8.h | 14 ++++---------- 1 file changed, 4 insertions(+), 10 deletions(-) (limited to 'remoting/base/decoder_vp8.h') diff --git a/remoting/base/decoder_vp8.h b/remoting/base/decoder_vp8.h index dfef0b7..ebe082a 100644 --- a/remoting/base/decoder_vp8.h +++ b/remoting/base/decoder_vp8.h @@ -17,17 +17,11 @@ class DecoderVp8 : public Decoder { virtual ~DecoderVp8(); // Decoder implementations. - virtual void Initialize(scoped_refptr frame, - const gfx::Rect& clip, int bytes_per_src_pixel); - - virtual void Reset(); - - // Feeds more data into the decoder. - virtual void DecodeBytes(const std::string& encoded_bytes); - - // Returns true if decoder is ready to accept data via ProcessRectangleData. + virtual void Initialize(scoped_refptr frame); + virtual DecodeResult DecodePacket(const VideoPacket* packet); + virtual void GetUpdatedRects(UpdatedRects* rects); virtual bool IsReadyForData(); - + virtual void Reset(); virtual VideoPacketFormat::Encoding Encoding(); private: -- cgit v1.1