/frameworks/base/media/java/android/media/ |
H A D | FaceDetector.java | 26 * Identifies the faces of people in a 103 * be analysed and the maximum number of faces that can be detected. 109 * @param maxFaces the maximum number of faces to identify 125 * Finds all the faces found in a given {@link android.graphics.Bitmap}. 130 * @param faces an array in which to place all found 133 * @return the number of faces found 139 public int findFaces(Bitmap bitmap, Face[] faces) argument 148 if (faces.length < mMaxFaces) { 150 "faces[] smaller than maxFaces"); 157 if (faces[ [all...] |
/frameworks/base/core/java/android/hardware/camera2/legacy/ |
H A D | LegacyFaceDetectMapper.java | 88 public void onFaceDetection(Camera.Face[] faces, Camera camera) { 89 int lengthFaces = faces == null ? 0 : faces.length; 92 mFaces = faces; 96 "onFaceDetection - Ignored some incoming faces since" + 102 Log.v(TAG, "onFaceDetection - read " + lengthFaces + " faces"); 115 * will have the latest faces detected as reflected by the camera1 callbacks.</p> 196 * {@code statistics.faces} and {@code statistics.faceDetectMode}. 199 * {@link #mapResultFaces} will have the latest faces as reflected by the camera1 callbacks.</p> 202 * the camera will still run face detection in the background, but no faces wil [all...] |
/frameworks/rs/cpp/ |
H A D | Type.cpp | 37 uint32_t faces = 1; local 39 faces = 6; 51 uint32_t count = x * y * z * faces; 63 count += x * y * z * faces;
|
/frameworks/support/v8/renderscript/java/src/android/support/v8/renderscript/ |
H A D | Type.java | 38 * faces. LOD and cube map faces are booleans to indicate present or not 157 int faces = 1; 159 faces = 6; 171 int count = x * y * z * faces; 184 count += x * y * z * faces;
|
H A D | RenderScript.java | 295 native int rsnTypeCreate(int con, int eid, int x, int y, int z, boolean mips, boolean faces, int yuv); argument 296 synchronized int nTypeCreate(int eid, int x, int y, int z, boolean mips, boolean faces, int yuv) { argument 298 return rsnTypeCreate(mContext, eid, x, y, z, mips, faces, yuv);
|
/frameworks/base/tests/Camera2Tests/SmartCamera/SimpleCamera/src/androidx/media/filterfw/samples/simplecamera/ |
H A D | FaceSquareFilter.java | 54 .addInputPort("faces", Signature.PORT_REQUIRED, facesType) 66 FrameValues facesFrame = getConnectedInputPort("faces").pullFrame().asFrameValues(); 67 Face[] faces = (Face[]) facesFrame.getValues(); 72 // For every face in faces, draw a white rect around the 74 drawBoxes(pixels, faces, dims); 82 public void drawBoxes(byte[] pixels, Face[] faces, int[] dims) { argument 83 for(int i = 0; i < faces.length; i++) { 84 Rect tempRect = faces[i].rect;
|
/frameworks/base/core/jni/ |
H A D | android_hardware_Camera.cpp | 367 env->SetIntField(rect, fields.rect_left, metadata->faces[i].rect[0]); 368 env->SetIntField(rect, fields.rect_top, metadata->faces[i].rect[1]); 369 env->SetIntField(rect, fields.rect_right, metadata->faces[i].rect[2]); 370 env->SetIntField(rect, fields.rect_bottom, metadata->faces[i].rect[3]); 373 env->SetIntField(face, fields.face_score, metadata->faces[i].score); 375 bool optionalFields = metadata->faces[i].id != 0 376 && metadata->faces[i].left_eye[0] != -2000 && metadata->faces[i].left_eye[1] != -2000 377 && metadata->faces[i].right_eye[0] != -2000 && metadata->faces[ [all...] |
/frameworks/rs/ |
H A D | rsType.cpp | 115 if (mHal.state.faces) { 156 mHal.state.faces); 173 stream->addU8((uint8_t)(mHal.state.faces ? 1 : 0)); 195 uint8_t faces = stream->loadU8(); local 196 Type *type = Type::getType(rsc, elem, x, y, z, lod != 0, faces !=0, 0); 263 nt->mHal.state.faces = dimFaces; 331 uint32_t dimY, uint32_t dimZ, bool mipmaps, bool faces, uint32_t yuv) { 334 return Type::getType(rsc, e, dimX, dimY, dimZ, mipmaps, faces, yuv); 343 // mHal.state.lodCount; mHal.state.faces; mElement; into typeData 330 rsi_TypeCreate(Context *rsc, RsElement _e, uint32_t dimX, uint32_t dimY, uint32_t dimZ, bool mipmaps, bool faces, uint32_t yuv) argument
|
H A D | rsType.h | 53 bool faces; member in struct:android::renderscript::Type::Hal::State 72 bool getDimFaces() const {return mHal.state.faces;}
|
H A D | rs.spec | 41 param bool faces
|
/frameworks/base/rs/java/android/renderscript/ |
H A D | Type.java | 31 * faces. LOD and cube map faces are booleans to indicate present or not 154 int faces = 1; 156 faces = 6; 168 int count = x * y * z * faces; 181 count += x * y * z * faces;
|
H A D | RenderScript.java | 349 native long rsnTypeCreate(long con, long eid, int x, int y, int z, boolean mips, boolean faces, int yuv); argument 350 synchronized long nTypeCreate(long eid, int x, int y, int z, boolean mips, boolean faces, int yuv) { argument 352 return rsnTypeCreate(mContext, eid, x, y, z, mips, faces, yuv);
|
/frameworks/av/camera/ |
H A D | ICameraClient.cpp | 64 data.write(metadata->faces, sizeof(camera_face_t) * metadata->number_of_faces); 108 metadata->faces = (camera_face_t *) data.readInplace(
|
/frameworks/base/tests/Camera2Tests/SmartCamera/SimpleCamera/tests/src/androidx/media/filterfw/samples/simplecamera/ |
H A D | FaceSquareFilterTest.java | 71 Face[] faces = new Face[1]; 72 faces[0] = face; 73 facesFrame.setValue(faces); 74 injectInputFrame("faces", facesFrame);
|
/frameworks/av/services/camera/libcameraservice/api1/client2/ |
H A D | FrameProcessor.cpp | 117 Vector<camera_face_t> faces; local 126 // No faces this frame 134 ALOGE("%s: Camera %d: More faces than expected! (Got %d, max %d)", 184 faces.setCapacity(metadata.number_of_faces); 229 faces.push_back(face); 232 metadata.faces = faces.editArray();
|
/frameworks/rs/driver/runtime/ |
H A D | rs_structs.h | 247 bool faces; member in struct:Type::__anon1508::__anon1509
|
/frameworks/base/core/java/android/hardware/camera2/impl/ |
H A D | CameraMetadataNative.java | 591 private boolean setFaces(Face[] faces) { argument 592 if (faces == null) { 596 int numFaces = faces.length; 598 // Detect if all faces are SIMPLE or not; count # of valid faces 600 for (Face face : faces) { 623 for (Face face : faces) { 689 // To be safe, make number of faces is the minimal of all face info metadata length. 704 // To be safe, make number of faces is the minimal of all face info metadata length. 736 Face[] faces [all...] |
/frameworks/ex/camera2/portability/src/com/android/ex/camera2/portability/ |
H A D | CameraAgent.java | 213 * @param faces Recognized face in the preview. 216 public void onFaceDetection(Camera.Face[] faces, CameraProxy camera); argument
|
H A D | AndroidCameraAgentImpl.java | 1334 final Camera.Face[] faces, Camera camera) { 1338 mCallback.onFaceDetection(faces, mCamera); 1333 onFaceDetection( final Camera.Face[] faces, Camera camera) argument
|
/frameworks/support/v8/renderscript/jni/ |
H A D | android_renderscript_RenderScript.cpp | 309 jint dimx, jint dimy, jint dimz, jboolean mips, jboolean faces, jint yuv) 311 LOG_API("nTypeCreate, con(%p) eid(%p), x(%i), y(%i), z(%i), mips(%i), faces(%i), yuv(%i)", 312 con, eid, dimx, dimy, dimz, mips, faces, yuv); 314 jint id = (jint)rsTypeCreate(con, (RsElement)eid, dimx, dimy, dimz, mips, faces, yuv); 308 nTypeCreate(JNIEnv *_env, jobject _this, RsContext con, RsElement eid, jint dimx, jint dimy, jint dimz, jboolean mips, jboolean faces, jint yuv) argument
|
/frameworks/base/rs/jni/ |
H A D | android_renderscript_RenderScript.cpp | 502 jint dimx, jint dimy, jint dimz, jboolean mips, jboolean faces, jint yuv) 504 LOG_API("nTypeCreate, con(%p) eid(%p), x(%i), y(%i), z(%i), mips(%i), faces(%i), yuv(%i)", 505 (RsContext)con, eid, dimx, dimy, dimz, mips, faces, yuv); 507 return (jlong)(uintptr_t)rsTypeCreate((RsContext)con, (RsElement)eid, dimx, dimy, dimz, mips, faces, yuv); 501 nTypeCreate(JNIEnv *_env, jobject _this, jlong con, jlong eid, jint dimx, jint dimy, jint dimz, jboolean mips, jboolean faces, jint yuv) argument
|
/frameworks/base/core/java/android/hardware/ |
H A D | Camera.java | 271 * The direction that the camera faces. It should be 1629 * Notify the listener of the detected faces in the preview frame. 1631 * @param faces The detected faces in a list 1634 void onFaceDetection(Face[] faces, Camera camera); argument 1638 * Registers a listener to be notified about the faces detected in the 1652 * faces in the preview frame. The detected faces may be the same as the 1660 * have no effect. The camera uses the detected faces to do auto-white balance, 1759 * <p>Depending on the device, even very low-confidence faces ma [all...] |