Android: Expose VideoFrame.TextureBuffer.applyTransformMatrix
Bug: None Change-Id: Id1c35dd1aa231ea25831d0354b8125d6c29d3834 Reviewed-on: https://webrtc-review.googlesource.com/c/src/+/274708 Commit-Queue: Magnus Jedvert <magjed@webrtc.org> Reviewed-by: Fabian Bergmark <fabianbergmark@google.com> Cr-Commit-Position: refs/heads/main@{#38061}
This commit is contained in:

committed by
WebRTC LUCI CQ

parent
ceb71cd557
commit
c7d1f11646
@ -169,6 +169,7 @@ public class TextureBufferImpl implements VideoFrame.TextureBuffer {
|
|||||||
* existing buffer is unchanged. The given transform matrix is applied first when texture
|
* existing buffer is unchanged. The given transform matrix is applied first when texture
|
||||||
* coordinates are still in the unmodified [0, 1] range.
|
* coordinates are still in the unmodified [0, 1] range.
|
||||||
*/
|
*/
|
||||||
|
@Override
|
||||||
public TextureBufferImpl applyTransformMatrix(
|
public TextureBufferImpl applyTransformMatrix(
|
||||||
Matrix transformMatrix, int newWidth, int newHeight) {
|
Matrix transformMatrix, int newWidth, int newHeight) {
|
||||||
return applyTransformMatrix(transformMatrix, /* unscaledWidth= */ newWidth,
|
return applyTransformMatrix(transformMatrix, /* unscaledWidth= */ newWidth,
|
||||||
|
@ -136,6 +136,16 @@ public class VideoFrame implements RefCounted {
|
|||||||
* the coordinate that should be used to sample that location from the buffer.
|
* the coordinate that should be used to sample that location from the buffer.
|
||||||
*/
|
*/
|
||||||
Matrix getTransformMatrix();
|
Matrix getTransformMatrix();
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Create a new TextureBufferImpl with an applied transform matrix and a new size. The existing
|
||||||
|
* buffer is unchanged. The given transform matrix is applied first when texture coordinates are
|
||||||
|
* still in the unmodified [0, 1] range.
|
||||||
|
*/
|
||||||
|
default TextureBuffer applyTransformMatrix(
|
||||||
|
Matrix transformMatrix, int newWidth, int newHeight) {
|
||||||
|
throw new UnsupportedOperationException("Not implemented");
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
private final Buffer buffer;
|
private final Buffer buffer;
|
||||||
|
Reference in New Issue
Block a user