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

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

Issue 4136010: Cleanups in the video encoding decoding code. Reenable VP8. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fixed arm build Created 10 years, 1 month 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 | « remoting/base/encoder_vp8.cc ('k') | remoting/base/encoder_zlib.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_ENCODER_ZLIB_H_ 5 #ifndef REMOTING_BASE_ENCODER_ZLIB_H_
6 #define REMOTING_BASE_ENCODER_ZLIB_H_ 6 #define REMOTING_BASE_ENCODER_ZLIB_H_
7 7
8 #include "remoting/base/encoder.h" 8 #include "remoting/base/encoder.h"
9 9
10 #include "gfx/rect.h" 10 #include "gfx/rect.h"
(...skipping 14 matching lines...) Expand all
25 virtual void Encode(scoped_refptr<CaptureData> capture_data, 25 virtual void Encode(scoped_refptr<CaptureData> capture_data,
26 bool key_frame, 26 bool key_frame,
27 DataAvailableCallback* data_available_callback); 27 DataAvailableCallback* data_available_callback);
28 28
29 private: 29 private:
30 // Encode a single dirty rect using compressor. 30 // Encode a single dirty rect using compressor.
31 void EncodeRect(CompressorZlib* compressor, const gfx::Rect& rect, 31 void EncodeRect(CompressorZlib* compressor, const gfx::Rect& rect,
32 size_t rect_index); 32 size_t rect_index);
33 33
34 // Marks a packets as the first in a series of rectangle updates. 34 // Marks a packets as the first in a series of rectangle updates.
35 void PrepareUpdateStart(const gfx::Rect& rect, 35 void PrepareUpdateStart(const gfx::Rect& rect, VideoPacket* packet);
36 RectangleUpdatePacket* update);
37 36
38 // Retrieves a pointer to the output buffer in |update| used for storing the 37 // Retrieves a pointer to the output buffer in |update| used for storing the
39 // encoded rectangle data. Will resize the buffer to |size|. 38 // encoded rectangle data. Will resize the buffer to |size|.
40 uint8* GetOutputBuffer(RectangleUpdatePacket* update, size_t size); 39 uint8* GetOutputBuffer(VideoPacket* packet, size_t size);
41 40
42 // Submit |message| to |callback_|. 41 // Submit |message| to |callback_|.
43 void SubmitMessage(ChromotingHostMessage* message, size_t rect_index); 42 void SubmitMessage(VideoPacket* packet, size_t rect_index);
44 43
45 scoped_refptr<CaptureData> capture_data_; 44 scoped_refptr<CaptureData> capture_data_;
46 scoped_ptr<DataAvailableCallback> callback_; 45 scoped_ptr<DataAvailableCallback> callback_;
47 //size_t current_rect_; 46 //size_t current_rect_;
48 int packet_size_; 47 int packet_size_;
49 }; 48 };
50 49
51 } // namespace remoting 50 } // namespace remoting
52 51
53 #endif // REMOTING_BASE_ENCODER_ZLIB_H_ 52 #endif // REMOTING_BASE_ENCODER_ZLIB_H_
OLDNEW
« no previous file with comments | « remoting/base/encoder_vp8.cc ('k') | remoting/base/encoder_zlib.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698