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

Unified Diff: remoting/base/encoder_verbatim.cc

Issue 4476003: Add VideoPacket struct for video packets. Refactor Decode interface to use it. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: merged 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « remoting/base/encoder.h ('k') | remoting/base/encoder_vp8.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: remoting/base/encoder_verbatim.cc
diff --git a/remoting/base/encoder_verbatim.cc b/remoting/base/encoder_verbatim.cc
index 0bbe4e8fa44cc7a7705e95d1967c4b0411e3d666..1185bff1d8929fd8cf55f8c32b53c3661f789587 100644
--- a/remoting/base/encoder_verbatim.cc
+++ b/remoting/base/encoder_verbatim.cc
@@ -6,9 +6,10 @@
#include "base/logging.h"
#include "gfx/rect.h"
-#include "media/base/data_buffer.h"
+#include "net/base/io_buffer.h"
#include "remoting/base/capture_data.h"
#include "remoting/base/util.h"
+#include "remoting/proto/video.pb.h"
namespace remoting {
@@ -17,8 +18,6 @@ namespace remoting {
// Add support for splitting across packets and remove the 10*.
static const int kPacketSize = 10 * 1024 * 1024;
-using media::DataBuffer;
-
EncoderVerbatim::EncoderVerbatim()
: packet_size_(kPacketSize) {
}
@@ -87,7 +86,6 @@ void EncoderVerbatim::PrepareUpdateStart(const gfx::Rect& rect,
format->set_width(rect.width());
format->set_height(rect.height());
format->set_encoding(VideoPacketFormat::ENCODING_VERBATIM);
- format->set_pixel_format(capture_data_->pixel_format());
}
uint8* EncoderVerbatim::GetOutputBuffer(VideoPacket* packet, size_t size) {
« no previous file with comments | « remoting/base/encoder.h ('k') | remoting/base/encoder_vp8.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698