public final class io.wcm.handler.mediasource.ngdm.impl.MediaArgsDimension extends java.lang.Object
{
private void <init>()
{
io.wcm.handler.mediasource.ngdm.impl.MediaArgsDimension v;
v := @this: io.wcm.handler.mediasource.ngdm.impl.MediaArgsDimension;
specialinvoke v.<java.lang.Object: void <init>()>();
return;
}
public static io.wcm.handler.media.Dimension getRequestedDimension(io.wcm.handler.media.MediaArgs)
{
io.wcm.handler.media.Dimension v, v, v;
io.wcm.handler.media.MediaArgs v;
long v, v, v, v;
byte v, v;
io.wcm.handler.media.format.MediaFormat v;
v := @parameter: io.wcm.handler.media.MediaArgs;
v = virtualinvoke v.<io.wcm.handler.media.MediaArgs: long getFixedWidth()>();
v = v cmp 0L;
if v > 0 goto label;
v = virtualinvoke v.<io.wcm.handler.media.MediaArgs: long getFixedHeight()>();
v = v cmp 0L;
if v <= 0 goto label;
label:
v = new io.wcm.handler.media.Dimension;
v = virtualinvoke v.<io.wcm.handler.media.MediaArgs: long getFixedWidth()>();
v = virtualinvoke v.<io.wcm.handler.media.MediaArgs: long getFixedHeight()>();
specialinvoke v.<io.wcm.handler.media.Dimension: void <init>(long,long)>(v, v);
return v;
label:
v = staticinvoke <io.wcm.handler.mediasource.ngdm.impl.MediaArgsDimension: io.wcm.handler.media.format.MediaFormat getFirstMediaFormat(io.wcm.handler.media.MediaArgs)>(v);
if v == null goto label;
v = virtualinvoke v.<io.wcm.handler.media.format.MediaFormat: io.wcm.handler.media.Dimension getMinDimension()>();
if v == null goto label;
return v;
label:
v = new io.wcm.handler.media.Dimension;
specialinvoke v.<io.wcm.handler.media.Dimension: void <init>(long,long)>(0L, 0L);
return v;
}
public static double getRequestedRatio(io.wcm.handler.media.MediaArgs)
{
io.wcm.handler.media.MediaArgs v;
long v, v, v, v;
byte v, v, v;
io.wcm.handler.media.format.MediaFormat v;
double v, v, v;
v := @parameter: io.wcm.handler.media.MediaArgs;
v = virtualinvoke v.<io.wcm.handler.media.MediaArgs: long getFixedWidth()>();
v = v cmp 0L;
if v <= 0 goto label;
v = virtualinvoke v.<io.wcm.handler.media.MediaArgs: long getFixedHeight()>();
v = v cmp 0L;
if v <= 0 goto label;
v = virtualinvoke v.<io.wcm.handler.media.MediaArgs: long getFixedWidth()>();
v = virtualinvoke v.<io.wcm.handler.media.MediaArgs: long getFixedHeight()>();
v = staticinvoke <io.wcm.handler.media.format.Ratio: double get(long,long)>(v, v);
return v;
label:
v = staticinvoke <io.wcm.handler.mediasource.ngdm.impl.MediaArgsDimension: io.wcm.handler.media.format.MediaFormat getFirstMediaFormat(io.wcm.handler.media.MediaArgs)>(v);
if v == null goto label;
v = virtualinvoke v.<io.wcm.handler.media.format.MediaFormat: double getRatio()>();
v = v cmpl 0.0;
if v <= 0 goto label;
v = virtualinvoke v.<io.wcm.handler.media.format.MediaFormat: double getRatio()>();
return v;
label:
return 0.0;
}
public static io.wcm.handler.media.Dimension getRequestedRatioAsWidthHeight(io.wcm.handler.media.MediaArgs)
{
io.wcm.handler.media.MediaArgs v;
long v, v, v, v, v, v, v, v;
byte v, v, v, v, v, v, v, v, v, v, v;
double v, v, v, v, v;
io.wcm.handler.media.Dimension v, v;
io.wcm.handler.media.format.MediaFormat v;
v := @parameter: io.wcm.handler.media.MediaArgs;
v = virtualinvoke v.<io.wcm.handler.media.MediaArgs: long getFixedWidth()>();
v = v cmp 0L;
if v <= 0 goto label;
v = virtualinvoke v.<io.wcm.handler.media.MediaArgs: long getFixedHeight()>();
v = v cmp 0L;
if v <= 0 goto label;
v = new io.wcm.handler.media.Dimension;
v = virtualinvoke v.<io.wcm.handler.media.MediaArgs: long getFixedWidth()>();
v = virtualinvoke v.<io.wcm.handler.media.MediaArgs: long getFixedHeight()>();
specialinvoke v.<io.wcm.handler.media.Dimension: void <init>(long,long)>(v, v);
return v;
label:
v = staticinvoke <io.wcm.handler.mediasource.ngdm.impl.MediaArgsDimension: io.wcm.handler.media.format.MediaFormat getFirstMediaFormat(io.wcm.handler.media.MediaArgs)>(v);
if v == null goto label;
v = virtualinvoke v.<io.wcm.handler.media.format.MediaFormat: double getRatio()>();
v = v cmpl 0.0;
if v <= 0 goto label;
v = virtualinvoke v.<io.wcm.handler.media.format.MediaFormat: double getRatioWidthAsDouble()>();
v = virtualinvoke v.<io.wcm.handler.media.format.MediaFormat: double getRatioHeightAsDouble()>();
v = v cmpl 0.0;
if v <= 0 goto label;
v = v cmpl 0.0;
if v > 0 goto label;
label:
v = virtualinvoke v.<io.wcm.handler.media.format.MediaFormat: double getRatio()>();
v = 1.0;
label:
v = v % 1.0;
v = v cmpl 0.0;
if v > 0 goto label;
v = v % 1.0;
v = v cmpl 0.0;
if v <= 0 goto label;
label:
v = v * 100000.0;
v = v * 100000.0;
label:
v = staticinvoke <java.lang.Math: long round(double)>(v);
v = staticinvoke <java.lang.Math: long round(double)>(v);
label:
v = v % 10L;
v = v cmp 0L;
if v != 0 goto label;
v = v % 10L;
v = v cmp 0L;
if v != 0 goto label;
v = v cmp 0L;
if v <= 0 goto label;
v = v cmp 0L;
if v <= 0 goto label;
v = v / 10L;
v = v / 10L;
goto label;
label:
v = new io.wcm.handler.media.Dimension;
specialinvoke v.<io.wcm.handler.media.Dimension: void <init>(long,long)>(v, v);
return v;
label:
return null;
}
public static io.wcm.handler.media.format.MediaFormat getFirstMediaFormat(io.wcm.handler.media.MediaArgs)
{
io.wcm.handler.media.format.MediaFormat[] v;
io.wcm.handler.media.format.MediaFormat v;
int v;
io.wcm.handler.media.MediaArgs v;
v := @parameter: io.wcm.handler.media.MediaArgs;
v = virtualinvoke v.<io.wcm.handler.media.MediaArgs: io.wcm.handler.media.format.MediaFormat[] getMediaFormats()>();
if v == null goto label;
v = lengthof v;
if v <= 0 goto label;
v = v[0];
return v;
label:
return null;
}
}