Add data() accessors to EncodedImage
Intend to make the |_buffer| member private, in a later cl. Bug: webrtc:9378 Change-Id: I8398932a36d8d931a7e587edca7be3957bbafcfd Reviewed-on: https://webrtc-review.googlesource.com/c/116782 Commit-Queue: Niels Moller <nisse@webrtc.org> Reviewed-by: Philip Eliasson <philipel@webrtc.org> Reviewed-by: Karl Wiberg <kwiberg@webrtc.org> Cr-Commit-Position: refs/heads/master@{#26201}
This commit is contained in:
@ -79,6 +79,9 @@ class RTC_EXPORT EncodedImage {
|
||||
capacity_ = capacity;
|
||||
}
|
||||
|
||||
uint8_t* data() { return _buffer; }
|
||||
const uint8_t* data() const { return _buffer; }
|
||||
|
||||
uint32_t _encodedWidth = 0;
|
||||
uint32_t _encodedHeight = 0;
|
||||
// NTP time of the capture time in local timebase in milliseconds.
|
||||
|
||||
Reference in New Issue
Block a user