OpenGrok
Home
Sort by relevance
Sort by last modified time
Full Search
Definition
Symbol
File Path
History
|
|
Help
Searched
refs:relativeAspectRatio
(Results
1 - 7
of
7
) sorted by null
/frameworks/base/media/mca/filterpacks/java/android/filterpacks/ui/
SurfaceTargetFilter.java
204
float
relativeAspectRatio
= screenAspectRatio / mAspectRatio;
211
if (
relativeAspectRatio
> 1.0f) {
213
mProgram.setTargetRect(0.5f - 0.5f /
relativeAspectRatio
, 0.0f,
214
1.0f /
relativeAspectRatio
, 1.0f);
217
mProgram.setTargetRect(0.0f, 0.5f - 0.5f *
relativeAspectRatio
,
218
1.0f,
relativeAspectRatio
);
222
if (
relativeAspectRatio
> 1) {
224
mProgram.setTargetRect(0.0f, 0.5f - 0.5f *
relativeAspectRatio
,
225
1.0f,
relativeAspectRatio
);
228
mProgram.setTargetRect(0.5f - 0.5f /
relativeAspectRatio
, 0.0f
[
all
...]
SurfaceRenderFilter.java
236
float
relativeAspectRatio
= screenAspectRatio / mAspectRatio;
243
if (
relativeAspectRatio
> 1.0f) {
245
mProgram.setTargetRect(0.5f - 0.5f /
relativeAspectRatio
, 0.0f,
246
1.0f /
relativeAspectRatio
, 1.0f);
249
mProgram.setTargetRect(0.0f, 0.5f - 0.5f *
relativeAspectRatio
,
250
1.0f,
relativeAspectRatio
);
254
if (
relativeAspectRatio
> 1) {
256
mProgram.setTargetRect(0.0f, 0.5f - 0.5f *
relativeAspectRatio
,
257
1.0f,
relativeAspectRatio
);
260
mProgram.setTargetRect(0.5f - 0.5f /
relativeAspectRatio
, 0.0f
[
all
...]
/frameworks/base/media/mca/filterpacks/java/android/filterpacks/videosrc/
SurfaceTextureTarget.java
270
float
relativeAspectRatio
= screenAspectRatio / mAspectRatio;
274
", frame AR: " + mAspectRatio + ", relative AR: " +
relativeAspectRatio
);
277
if (
relativeAspectRatio
== 1.0f && mRenderMode != RENDERMODE_CUSTOMIZE) {
290
if (
relativeAspectRatio
> 1.0f) {
292
mTargetQuad.p0.set(0.5f - 0.5f /
relativeAspectRatio
, 0.0f);
293
mTargetQuad.p1.set(0.5f + 0.5f /
relativeAspectRatio
, 0.0f);
294
mTargetQuad.p2.set(0.5f - 0.5f /
relativeAspectRatio
, 1.0f);
295
mTargetQuad.p3.set(0.5f + 0.5f /
relativeAspectRatio
, 1.0f);
299
mTargetQuad.p0.set(0.0f, 0.5f - 0.5f *
relativeAspectRatio
);
300
mTargetQuad.p1.set(1.0f, 0.5f - 0.5f *
relativeAspectRatio
);
[
all
...]
/developers/build/prebuilts/gradle/MediaEffects/Application/src/main/java/com/example/android/mediaeffects/
TextureRenderer.java
146
float
relativeAspectRatio
= viewAspectRatio / imgAspectRatio;
148
if (
relativeAspectRatio
> 1.0f) {
149
x0 = -1.0f /
relativeAspectRatio
;
151
x1 = 1.0f /
relativeAspectRatio
;
155
y0 = -
relativeAspectRatio
;
157
y1 =
relativeAspectRatio
;
/developers/samples/android/media/MediaEffects/Application/src/main/java/com/example/android/mediaeffects/
TextureRenderer.java
146
float
relativeAspectRatio
= viewAspectRatio / imgAspectRatio;
148
if (
relativeAspectRatio
> 1.0f) {
149
x0 = -1.0f /
relativeAspectRatio
;
151
x1 = 1.0f /
relativeAspectRatio
;
155
y0 = -
relativeAspectRatio
;
157
y1 =
relativeAspectRatio
;
/development/samples/HelloEffects/src/com/example/android/mediafx/
TextureRenderer.java
146
float
relativeAspectRatio
= viewAspectRatio / imgAspectRatio;
148
if (
relativeAspectRatio
> 1.0f) {
149
x0 = -1.0f /
relativeAspectRatio
;
151
x1 = 1.0f /
relativeAspectRatio
;
155
y0 = -
relativeAspectRatio
;
157
y1 =
relativeAspectRatio
;
/development/samples/browseable/MediaEffects/src/com.example.android.mediaeffects/
TextureRenderer.java
146
float
relativeAspectRatio
= viewAspectRatio / imgAspectRatio;
148
if (
relativeAspectRatio
> 1.0f) {
149
x0 = -1.0f /
relativeAspectRatio
;
151
x1 = 1.0f /
relativeAspectRatio
;
155
y0 = -
relativeAspectRatio
;
157
y1 =
relativeAspectRatio
;
Completed in 75 milliseconds