1 package mhr.appcore.pointops;
3 import android.location.Address;
4 import android.nfc.NfcAdapter.CreateBeamUrisCallback;
5 import mhr.appcore.bitmap.BitmapInfo;
6 import mhr.appcore.bitmap.ChannelCount;
7 import mhr.appcore.bitmap.NBitmap;
8 import mhr.appcore.exceptions.AlreadyDisposedException;
9 import mhr.appcore.utils.NotImplementedException;
10 import mhr.appcore.utils.Rect;
84 MM[0], MM[1], MM[0].length,
85 RR[0], RR[1], RR[0].length,
86 GG[0], GG[1], GG[0].length,
87 BB[0], BB[1], BB[0].length,
88 AA[0], AA[1], AA[0].length);
106 double[][] r =
new double[2][a[0].length];
107 for (
int i = 0; i < a[0].length; i++) {
114 protected static native
long createLut();
120 protected static native
long createCurvesLut(
double[] xM,
double[] yM,
int cM,
121 double[] xR,
double[] yR,
int cR,
122 double[] xG,
double[] yG,
int cG,
123 double[] xB,
double[] yB,
int cB,
124 double[] xA,
double[] yA,
int cA);
127 protected static native
int fillContrastLut(
long lutAdress,
double bias);
128 protected static native
int fillGammaLut(
long lutAdress,
double gamma);
130 double[] xM,
double[] yM,
int cM,
131 double[] xR,
double[] yR,
int cR,
132 double[] xG,
double[] yG,
int cG,
133 double[] xB,
double[] yB,
int cB,
134 double[] xA,
double[] yA,
int cA);
137 protected static native
int applyTo(
long lutAdress,
long dstAdress,
int dstTlx,
int dstTly,
int dstBrX,
int dstBrY);
138 protected static native
int applyTo(
long lutAdress,
long dstAdress,
int dstTlx,
int dstTly,
int dstBrX,
int dstBrY,
double alpha);
139 protected static native
int applyTo(
long lutAdress,
long dstAdress,
long mskAdress,
int mskTlx,
int mskTly,
int mskBrx,
int mskBry,
int mskOrigX,
int mskOrigY);
140 protected static native
int applyTo(
long lutAdress,
long dstAdress,
long mskAdress,
int mskTlx,
int mskTly,
int mskBrx,
int mskBry,
int mskOrigX,
int mskOrigY,
double alpha);
178 MM[0], MM[1], MM[0].length,
179 RR[0], RR[1], RR[0].length,
180 GG[0], GG[1], GG[0].length,
181 BB[0], BB[1], BB[0].length,
182 AA[0], AA[1], AA[0].length);
196 return applyTo(
adress, dst.getAdress(), dstRect.tlx, dstRect.tly, dstRect.brx, dstRect.bry, opacity);
198 return applyTo(
adress, dst.getAdress(), dstRect.tlx, dstRect.tly, dstRect.brx, dstRect.bry);
201 throw new IllegalArgumentException(
"Operation is not applicable to supplied bitmap.");
216 return applyTo(
adress, dst.getAdress(), msk.getAdress(), mskRect.tlx, mskRect.tly, mskRect.brx, mskRect.bry, mskOrigX, mskOrigY, opacity);
218 return applyTo(
adress, dst.getAdress(), msk.getAdress(), mskRect.tlx, mskRect.tly, mskRect.brx, mskRect.bry, mskOrigX, mskOrigY);
221 throw new IllegalArgumentException(
"Operation is not applicable to supplied bitmap.");