OLD | NEW |
---|---|
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 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 | 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_CODEC_VIDEO_DECODER_H_ | 5 #ifndef REMOTING_CODEC_VIDEO_DECODER_H_ |
6 #define REMOTING_CODEC_VIDEO_DECODER_H_ | 6 #define REMOTING_CODEC_VIDEO_DECODER_H_ |
7 | 7 |
8 #include "base/basictypes.h" | 8 #include "base/basictypes.h" |
9 #include "remoting/proto/video.pb.h" | 9 #include "remoting/proto/video.pb.h" |
10 #include "third_party/skia/include/core/SkRect.h" | 10 #include "third_party/skia/include/core/SkRect.h" |
(...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
61 // and the buffer must be large enough to hold |clip_area| RGBA32 pixels. | 61 // and the buffer must be large enough to hold |clip_area| RGBA32 pixels. |
62 // |image_stride| gives the output buffer's stride in pixels. | 62 // |image_stride| gives the output buffer's stride in pixels. |
63 // | 63 // |
64 // On return, |output_region| contains the updated area, in |view_size| | 64 // On return, |output_region| contains the updated area, in |view_size| |
65 // coordinates. | 65 // coordinates. |
66 virtual void RenderFrame(const SkISize& view_size, | 66 virtual void RenderFrame(const SkISize& view_size, |
67 const SkIRect& clip_area, | 67 const SkIRect& clip_area, |
68 uint8* image_buffer, | 68 uint8* image_buffer, |
69 int image_stride, | 69 int image_stride, |
70 SkRegion* output_region) = 0; | 70 SkRegion* output_region) = 0; |
71 | |
72 // Returns the "shape", if any, of the most recently rendered frame. | |
73 // The shape is returned in source dimensions. | |
74 virtual const SkRegion* GetImageShape() { return NULL; } | |
Jamie
2013/06/20 21:15:57
Everything else here is pure virtual. Does this ne
Sergey Ulanov
2013/06/20 21:27:21
Can you use webrtc::DesktopRegion here instead of
alexeypa (please no reviews)
2013/06/20 22:05:11
Done.
alexeypa (please no reviews)
2013/06/20 22:05:11
I will not be able to do it today. We would really
| |
71 }; | 75 }; |
72 | 76 |
73 } // namespace remoting | 77 } // namespace remoting |
74 | 78 |
75 #endif // REMOTING_CODEC_VIDEO_DECODER_H_ | 79 #endif // REMOTING_CODEC_VIDEO_DECODER_H_ |
OLD | NEW |