OpenGrok
Home
Sort by relevance
Sort by last modified time
Full Search
Definition
Symbol
File Path
History
|
|
Help
Searched
full:relativeaspectratio
(Results
1 - 4
of
4
) sorted by null
/frameworks/base/media/mca/filterpacks/java/android/filterpacks/videosrc/
SurfaceTextureTarget.java
280
float
relativeAspectRatio
= screenAspectRatio / mAspectRatio;
284
", frame AR: " + mAspectRatio + ", relative AR: " +
relativeAspectRatio
);
287
if (
relativeAspectRatio
== 1.0f && mRenderMode != RENDERMODE_CUSTOMIZE) {
300
if (
relativeAspectRatio
> 1.0f) {
302
mTargetQuad.p0.set(0.5f - 0.5f /
relativeAspectRatio
, 0.0f);
303
mTargetQuad.p1.set(0.5f + 0.5f /
relativeAspectRatio
, 0.0f);
304
mTargetQuad.p2.set(0.5f - 0.5f /
relativeAspectRatio
, 1.0f);
305
mTargetQuad.p3.set(0.5f + 0.5f /
relativeAspectRatio
, 1.0f);
309
mTargetQuad.p0.set(0.0f, 0.5f - 0.5f *
relativeAspectRatio
);
310
mTargetQuad.p1.set(1.0f, 0.5f - 0.5f *
relativeAspectRatio
);
[
all
...]
/frameworks/base/media/mca/filterpacks/java/android/filterpacks/ui/
SurfaceTargetFilter.java
212
float
relativeAspectRatio
= screenAspectRatio / mAspectRatio;
219
if (
relativeAspectRatio
> 1.0f) {
221
mProgram.setTargetRect(0.5f - 0.5f /
relativeAspectRatio
, 0.0f,
222
1.0f /
relativeAspectRatio
, 1.0f);
225
mProgram.setTargetRect(0.0f, 0.5f - 0.5f *
relativeAspectRatio
,
226
1.0f,
relativeAspectRatio
);
230
if (
relativeAspectRatio
> 1) {
232
mProgram.setTargetRect(0.0f, 0.5f - 0.5f *
relativeAspectRatio
,
233
1.0f,
relativeAspectRatio
);
236
mProgram.setTargetRect(0.5f - 0.5f /
relativeAspectRatio
, 0.0f
[
all
...]
SurfaceRenderFilter.java
244
float
relativeAspectRatio
= screenAspectRatio / mAspectRatio;
251
if (
relativeAspectRatio
> 1.0f) {
253
mProgram.setTargetRect(0.5f - 0.5f /
relativeAspectRatio
, 0.0f,
254
1.0f /
relativeAspectRatio
, 1.0f);
257
mProgram.setTargetRect(0.0f, 0.5f - 0.5f *
relativeAspectRatio
,
258
1.0f,
relativeAspectRatio
);
262
if (
relativeAspectRatio
> 1) {
264
mProgram.setTargetRect(0.0f, 0.5f - 0.5f *
relativeAspectRatio
,
265
1.0f,
relativeAspectRatio
);
268
mProgram.setTargetRect(0.5f - 0.5f /
relativeAspectRatio
, 0.0f
[
all
...]
/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
;
Completed in 531 milliseconds