Update documentation for VideoEncoder.Callback#onEncodedImage.

Allows assuming that the buffer is not accessed after the call returns.

Bug: b/72675429
No-Try: True
Change-Id: Iff4a05433c6eed6aefec49ce67486966b1ed882f
Reviewed-on: https://webrtc-review.googlesource.com/49161
Reviewed-by: Magnus Jedvert <magjed@webrtc.org>
Commit-Queue: Sami Kalliomäki <sakal@webrtc.org>
Cr-Commit-Position: refs/heads/master@{#21940}
This commit is contained in:
Sami Kalliomäki 2018-02-07 12:50:47 +01:00 committed by Commit Bot
parent 5684921a16
commit 11c51dd53d

View File

@ -122,7 +122,10 @@ public interface VideoEncoder {
}
public interface Callback {
/** Call to return an encoded frame. */
/**
* Call to return an encoded frame. It is safe to assume the byte buffer held by |frame| is not
* accessed after the call to this method returns.
*/
void onEncodedFrame(EncodedImage frame, CodecSpecificInfo info);
}