public class

YUVLoader

extends Object
java.lang.Object
   ↳ org.opencdnunion.media.streamer.util.gles.YUVLoader

Class Overview

Load I420 data to texture.

Summary

Constants
String YUV420P_VS
Public Constructors
YUVLoader(GLRender glRender)
Public Methods
int loadTexture(ByteBuffer buf, int width, int height, int[] strides)
void reset()
[Expand]
Inherited Methods
From class java.lang.Object

Constants

public static final String YUV420P_VS

Constant Value: "precision mediump float; attribute vec4 aPosition; attribute vec4 aTextureCoord; varying vec2 vTextureCoord; void main() { gl_Position = aPosition; vTextureCoord = aTextureCoord.xy; } "

Public Constructors

public YUVLoader (GLRender glRender)

Public Methods

public int loadTexture (ByteBuffer buf, int width, int height, int[] strides)

public void reset ()