Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(859)

Unified Diff: webrtc/sdk/android/api/org/webrtc/RendererCommon.java

Issue 3008423002: Android: Add helper class VideoFrameDrawer that can render VideoFrames (Closed)
Patch Set: Created 3 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: webrtc/sdk/android/api/org/webrtc/RendererCommon.java
diff --git a/webrtc/sdk/android/api/org/webrtc/RendererCommon.java b/webrtc/sdk/android/api/org/webrtc/RendererCommon.java
index 18d96c22e57fdc25ee9ae2f589b6500683a9d327..1491f92fa150bd64202e578ed25ae2ab8536009a 100644
--- a/webrtc/sdk/android/api/org/webrtc/RendererCommon.java
+++ b/webrtc/sdk/android/api/org/webrtc/RendererCommon.java
@@ -83,7 +83,7 @@ public class RendererCommon {
* Helper class for uploading YUV bytebuffer frames to textures that handles stride > width. This
* class keeps an internal ByteBuffer to avoid unnecessary allocations for intermediate copies.
*/
- public static class YuvUploader {
+ static class YuvUploader {
// Intermediate copy buffer for uploading yuv frames that are not packed, i.e. stride > width.
// TODO(magjed): Investigate when GL_UNPACK_ROW_LENGTH is available, or make a custom shader
// that handles stride and compare performance with intermediate copy.
@@ -143,6 +143,10 @@ public class RendererCommon {
return uploadYuvData(buffer.getWidth(), buffer.getHeight(), strides, planes);
}
+ public int[] getYuvTextures() {
+ return yuvTextures;
+ }
+
/**
* Releases cached resources. Uploader can still be used and the resources will be reallocated
* on first use.

Powered by Google App Engine
This is Rietveld 408576698