/frameworks/base/tests/Camera2Tests/SmartCamera/SimpleCamera/src/androidx/media/filterfw/geometry/ |
D | Quad.java | 38 public class Quad { class 50 public static Quad unitQuad() { in unitQuad() 51 return new Quad(0f, 0f, 1f, 0f, 0f, 1f, 1f, 1f); in unitQuad() 60 public static Quad fromRect(RectF rect) { in fromRect() 61 return new Quad(new PointF(rect.left, rect.top), in fromRect() 76 public static Quad fromRect(float x, float y, float width, float height) { in fromRect() 77 return new Quad(new PointF(x, y), in fromRect() 94 public static Quad fromLineAndHeight(PointF topLeft, PointF topRight, float height) { in fromLineAndHeight() 100 return new Quad(topLeft, topRight, p2, p3); in fromLineAndHeight() 112 public static Quad fromRotatedRect(RectF rect, float angle) { in fromRotatedRect() [all …]
|
/frameworks/base/media/mca/filterfw/java/android/filterfw/geometry/ |
D | Quad.java | 30 public class Quad { class 37 public Quad() { in Quad() method in Quad 40 public Quad(Point p0, Point p1, Point p2, Point p3) { in Quad() method in Quad 54 public Quad translated(Point t) { in translated() 55 return new Quad(p0.plus(t), p1.plus(t), p2.plus(t), p3.plus(t)); in translated() 58 public Quad translated(float x, float y) { in translated() 59 return new Quad(p0.plus(x, y), p1.plus(x, y), p2.plus(x, y), p3.plus(x, y)); in translated() 62 public Quad scaled(float s) { in scaled() 63 return new Quad(p0.times(s), p1.times(s), p2.times(s), p3.times(s)); in scaled() 66 public Quad scaled(float x, float y) { in scaled() [all …]
|
D | Rectangle.java | 21 import android.filterfw.geometry.Quad; 26 public class Rectangle extends Quad {
|
/frameworks/base/tests/Camera2Tests/SmartCamera/SimpleCamera/src/androidx/media/filterfw/ |
D | CropFilter.java | 32 import androidx.media.filterfw.geometry.Quad; 36 private Quad mCropRect = Quad.fromRect(0f, 0f, 1f, 1f); 53 .addInputPort("cropRect", Signature.PORT_REQUIRED, FrameType.single(Quad.class)) in getSignature() 100 Quad sourceQuad = null; in onProcess() 107 Quad targetQuad = Quad.fromRect(0f, 0f, targetWidth, targetHeight); in onProcess() 124 Quad sourceQuad = mCropRect.scale2(inDims[0], inDims[1]); in onProcess() 125 Quad targetQuad = Quad.fromRect(0f, 0f, inDims[0], inDims[1]); in onProcess() 128 Matrix transform = Quad.getTransform(sourceQuad, targetQuad); in onProcess()
|
D | RotateFilter.java | 27 import androidx.media.filterfw.geometry.Quad; 31 private Quad mSourceRect = Quad.fromRect(0f, 0f, 1f, 1f); 46 .addInputPort("sourceRect", Signature.PORT_OPTIONAL, FrameType.single(Quad.class)) in getSignature() 75 Quad targetQuad = mSourceRect.rotated((float) (mRotateAngle / 180 * Math.PI)); in onProcess()
|
D | StatsFilter.java | 33 import androidx.media.filterfw.geometry.Quad; 49 private Quad mCropRect = Quad.fromRect(0f, 0f, 1f, 1f); 67 .addInputPort("cropRect", Signature.PORT_OPTIONAL, FrameType.single(Quad.class)) in getSignature() 81 private void calcMeanAndStd(ByteBuffer pixelBuffer, int width, int height, Quad quad) { in calcMeanAndStd()
|
D | ToGrayValuesFilter.java | 29 import androidx.media.filterfw.geometry.Quad; 98 mShader.setSourceQuad(Quad.fromRect(0f, 0f, ((float)outDim[0])/dim[0], 1f)); in onProcess()
|
D | ImageShader.java | 23 import androidx.media.filterfw.geometry.Quad; 419 public void setSourceQuad(Quad quad) { in setSourceQuad() 467 public void setTargetQuad(Quad quad) { in setTargetQuad()
|
/frameworks/base/media/mca/filterpacks/java/android/filterpacks/imageproc/ |
D | FixedRotationFilter.java | 28 import android.filterfw.geometry.Quad; 78 Quad sourceRegion; in process() 81 sourceRegion = new Quad(p3,p1,p4,p2); in process() 85 sourceRegion = new Quad(p4,p3,p2,p1); in process() 88 sourceRegion = new Quad(p2,p4,p1,p3); in process() 93 sourceRegion = new Quad(p1,p2,p3,p4); in process()
|
D | DrawRectFilter.java | 27 import android.filterfw.geometry.Quad; 71 addMaskedInputPort("box", ObjectFormat.fromClass(Quad.class, FrameFormat.TARGET_SIMPLE)); in setupPorts() 92 Quad box = (Quad)boxFrame.getObjectValue(); in process() 109 private void renderBox(Quad box) { in renderBox()
|
D | DrawOverlayFilter.java | 25 import android.filterfw.geometry.Quad; 46 addMaskedInputPort("box", ObjectFormat.fromClass(Quad.class, FrameFormat.TARGET_SIMPLE)); in setupPorts() 68 Quad box = (Quad)boxFrame.getObjectValue(); in process()
|
D | CropFilter.java | 28 import android.filterfw.geometry.Quad; 74 addMaskedInputPort("box", ObjectFormat.fromClass(Quad.class, FrameFormat.TARGET_SIMPLE)); in setupPorts() 115 Quad box = (Quad)boxFrame.getObjectValue(); in process()
|
D | RotateFilter.java | 28 import android.filterfw.geometry.Quad; 148 Quad quad = new Quad(x0, x1, x2, x3); in updateParameters()
|
D | StraightenFilter.java | 28 import android.filterfw.geometry.Quad; 146 Quad quad = new Quad(p0, p1, p2, p3); in updateParameters()
|
/frameworks/base/media/mca/filterpacks/native/base/ |
D | geometry.h | 51 class Quad { 53 Quad() : points_(4) {} in Quad() function 54 virtual ~Quad() {} in ~Quad() 56 Quad(const Point& p0, const Point& p1, const Point& p2, const Point& p3) in Quad() function 71 class SlantedRect : public Quad {
|
D | geometry.cpp | 130 const Point& Quad::point(int ix) const { in point()
|
/frameworks/base/media/mca/filterfw/native/core/ |
D | geometry.h | 51 class Quad { 53 Quad() : points_(4) {} in Quad() function 54 virtual ~Quad() {} in ~Quad() 56 Quad(const Point& p0, const Point& p1, const Point& p2, const Point& p3) in Quad() function
|
D | shader_program.h | 37 class Quad; variable 143 void SetSourceRegion(const Quad& quad); 157 void SetTargetRegion(const Quad& quad);
|
D | geometry.cpp | 131 const Point& Quad::point(int ix) const { in point()
|
D | shader_program.cpp | 224 Quad quad(Point(x, y), in SetSourceRect() 231 void ShaderProgram::SetSourceRegion(const Quad& quad) { in SetSourceRegion() 240 Quad quad(Point(x, y), in SetTargetRect() 247 void ShaderProgram::SetTargetRegion(const Quad& quad) { in SetTargetRegion()
|
/frameworks/base/media/mca/filterpacks/java/android/filterpacks/videosrc/ |
D | SurfaceTextureTarget.java | 32 import android.filterfw.geometry.Quad; 75 private Quad mSourceQuad = new Quad(new Point(0.0f, 1.0f), 81 private Quad mTargetQuad = new Quad(new Point(0.0f, 0.0f),
|
/frameworks/base/media/mca/filterpacks/java/android/filterpacks/videosink/ |
D | MediaEncoderFilter.java | 30 import android.filterfw.geometry.Quad; 135 private Quad mSourceRegion; 189 mSourceRegion = new Quad(bl, br, tl, tr); in MediaEncoderFilter() 218 Quad flippedRegion = new Quad(); in updateSourceRegion()
|
/frameworks/base/media/mca/filterfw/java/android/filterfw/core/ |
D | ShaderProgram.java | 25 import android.filterfw.geometry.Quad; 170 public void setSourceRegion(Quad region) { in setSourceRegion() 177 public void setTargetRegion(Quad region) { in setTargetRegion()
|
/frameworks/base/media/mca/filterfw/jni/ |
D | jni_shader_program.cpp | 34 using android::filterfw::Quad; 155 program->SetSourceRegion(Quad(Point(x0, y0), Point(x1, y1), Point(x2, y2), Point(x3, y3))); in Java_android_filterfw_core_ShaderProgram_setSourceRegion() 173 program->SetTargetRegion(Quad(Point(x0, y0), Point(x1, y1), Point(x2, y2), Point(x3, y3))); in Java_android_filterfw_core_ShaderProgram_setTargetRegion()
|