Home
last modified time | relevance | path

Searched refs:relativeAspectRatio (Results 1 – 2 of 2) sorted by relevance

/development/samples/browseable/MediaEffects/src/com.example.android.mediaeffects/
DTextureRenderer.java146 float relativeAspectRatio = viewAspectRatio / imgAspectRatio; in computeOutputVertices() local
148 if (relativeAspectRatio > 1.0f) { in computeOutputVertices()
149 x0 = -1.0f / relativeAspectRatio; in computeOutputVertices()
151 x1 = 1.0f / relativeAspectRatio; in computeOutputVertices()
155 y0 = -relativeAspectRatio; in computeOutputVertices()
157 y1 = relativeAspectRatio; in computeOutputVertices()
/development/samples/HelloEffects/src/com/example/android/mediafx/
DTextureRenderer.java146 float relativeAspectRatio = viewAspectRatio / imgAspectRatio; in computeOutputVertices() local
148 if (relativeAspectRatio > 1.0f) { in computeOutputVertices()
149 x0 = -1.0f / relativeAspectRatio; in computeOutputVertices()
151 x1 = 1.0f / relativeAspectRatio; in computeOutputVertices()
155 y0 = -relativeAspectRatio; in computeOutputVertices()
157 y1 = relativeAspectRatio; in computeOutputVertices()