diff options
author | hclam@chromium.org <hclam@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-02-04 02:08:32 +0000 |
---|---|---|
committer | hclam@chromium.org <hclam@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-02-04 02:08:32 +0000 |
commit | 506861408f234cc0713155918fd5564b380f2ecb (patch) | |
tree | 6636a54391e1ea463e74c5fd2b354f88b20f6b28 /remoting/proto | |
parent | 3ff2d69c9f35289c156f855939ceebe43612fb7b (diff) | |
download | chromium_src-506861408f234cc0713155918fd5564b380f2ecb.zip chromium_src-506861408f234cc0713155918fd5564b380f2ecb.tar.gz chromium_src-506861408f234cc0713155918fd5564b380f2ecb.tar.bz2 |
Speed up chromoting encoding and decoding path for VP8
Several enhancements in this patch:
1. Encoder reports updated rects
2. VP8 decoder only performs YUV conversion on updated rects
3. Painting only updated rects in pepper plugin
BUG=71253
TEST=Use chromoting to watch video
Review URL: http://codereview.chromium.org/6368070
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@73737 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'remoting/proto')
-rw-r--r-- | remoting/proto/video.proto | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/remoting/proto/video.proto b/remoting/proto/video.proto index 394f891..2dadcb8 100644 --- a/remoting/proto/video.proto +++ b/remoting/proto/video.proto @@ -32,6 +32,14 @@ message VideoPacketFormat { optional Encoding encoding = 5 [default = ENCODING_INVALID]; } +// TODO(hclam): Remove this message once we can obtain dirty rects from libvpx. +message Rect { + optional int32 x = 1; + optional int32 y = 2; + optional int32 width = 3; + optional int32 height = 4; +} + message VideoPacket { // Bitmasks for use in the flags field below. // @@ -67,4 +75,10 @@ message VideoPacket { optional VideoPacketFormat format = 4; optional bytes data = 5; + + // This field is only for VP8 to provide out-of-band information of dirty + // rects. + // TODO(hclam): Remove this field when we can obtain this information from + // libvpx. + repeated Rect dirty_rects = 6; } |