/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 | 87 public void onFaceDetection(Camera.Face[] faces, Camera camera) { 88 int lengthFaces = faces == null ? 0 : faces.length; 91 mFaces = faces; 95 "onFaceDetection - Ignored some incoming faces since" + 101 Log.v(TAG, "onFaceDetection - read " + lengthFaces + " faces"); 114 * will have the latest faces detected as reflected by the camera1 callbacks.</p> 195 * {@code statistics.faces} and {@code statistics.faceDetectMode}. 198 * {@link #mapResultFaces} will have the latest faces as reflected by the camera1 callbacks.</p> 201 * the camera will still run face detection in the background, but no faces wil [all...] |
/frameworks/rs/ |
H A D | rsType.cpp | 118 if (mHal.state.faces) { 159 mHal.state.faces); 176 stream->addU8((uint8_t)(mHal.state.faces ? 1 : 0)); 200 p.faces = stream->loadU8(); 239 if (t->getDimFaces() != params->faces) continue; 271 nt->mHal.state.faces = params->faces; 315 p.faces = getDimFaces(); 365 uint32_t dimY, uint32_t dimZ, bool mipmaps, bool faces, uint32_t yuv) { 374 p.faces 364 rsi_TypeCreate(Context *rsc, RsElement _e, uint32_t dimX, uint32_t dimY, uint32_t dimZ, bool mipmaps, bool faces, uint32_t yuv) argument [all...] |
H A D | rsType.h | 56 bool faces; member in struct:android::renderscript::Type::Hal::State 75 bool getDimFaces() const {return mHal.state.faces;}
|
H A D | rsInternalDefines.h | 219 bool faces; member in struct:__anon1686
|
H A D | rsScriptC_Lib.cpp | 285 uint32_t dimY, uint32_t dimZ, bool mipmaps, bool faces, 287 return rsi_TypeCreate(rsc, element, dimX, dimY, dimZ, mipmaps, faces, yuv); 284 rsrTypeCreate(Context *rsc, const RsElement element, uint32_t dimX, uint32_t dimY, uint32_t dimZ, bool mipmaps, bool faces, uint32_t yuv) argument
|
H A D | rsRuntime.h | 170 uint32_t dimY, uint32_t dimZ, bool mipmaps, bool faces,
|
H A D | rs.spec | 45 param bool faces
|
/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 | 373 env->SetIntField(rect, fields.rect_left, metadata->faces[i].rect[0]); 374 env->SetIntField(rect, fields.rect_top, metadata->faces[i].rect[1]); 375 env->SetIntField(rect, fields.rect_right, metadata->faces[i].rect[2]); 376 env->SetIntField(rect, fields.rect_bottom, metadata->faces[i].rect[3]); 379 env->SetIntField(face, fields.face_score, metadata->faces[i].score); 381 bool optionalFields = metadata->faces[i].id != 0 382 && metadata->faces[i].left_eye[0] != -2000 && metadata->faces[i].left_eye[1] != -2000 383 && metadata->faces[i].right_eye[0] != -2000 && metadata->faces[ [all...] |
/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 188 int faces = 1; 190 faces = 6; 202 int count = x * y * z * faces; 215 count += x * y * z * faces;
|
H A D | RenderScript.java | 430 native long rsnTypeCreate(long con, long eid, int x, int y, int z, boolean mips, boolean faces, int yuv); argument 431 synchronized long nTypeCreate(long eid, int x, int y, int z, boolean mips, boolean faces, int yuv) { argument 433 return rsnTypeCreate(mContext, eid, x, y, z, mips, faces, yuv);
|
/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 155 int faces = 1; 157 faces = 6; 169 int count = x * y * z * faces; 182 count += x * y * z * faces;
|
H A D | RenderScript.java | 363 native long rsnTypeCreate(long con, long eid, int x, int y, int z, boolean mips, boolean faces, int yuv); argument 364 synchronized long nTypeCreate(long eid, int x, int y, int z, boolean mips, boolean faces, int yuv) { argument 366 return rsnTypeCreate(mContext, eid, x, y, z, mips, faces, yuv); 1022 native long rsnIncTypeCreate(long con, long eid, int x, int y, int z, boolean mips, boolean faces, int yuv); argument 1023 synchronized long nIncTypeCreate(long eid, int x, int y, int z, boolean mips, boolean faces, int yuv) { argument 1025 return rsnIncTypeCreate(mIncCon, eid, x, y, z, mips, faces, yuv);
|
/frameworks/av/camera/ |
H A D | ICameraClient.cpp | 68 data.write(metadata->faces, sizeof(camera_face_t) * metadata->number_of_faces); 122 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 | 123 Vector<camera_face_t> faces; local 132 // No faces this frame 140 ALOGE("%s: Camera %d: More faces than expected! (Got %d, max %d)", 190 faces.setCapacity(metadata.number_of_faces); 235 faces.push_back(face); 238 metadata.faces = faces.editArray();
|
/frameworks/rs/driver/runtime/ |
H A D | rs_structs.h | 264 bool faces; member in struct:Type::__anon1664::__anon1665
|
/frameworks/rs/api/ |
H A D | rs_object_types.spec | 96 summary: Enum for selecting cube map faces 98 An enum used to specify one the six faces of a cubemap.
|
H A D | rs_allocation_create.spec | 83 arg: bool faces, "Flag indicating if the Type is a cubemap" 99 faces indicates the presence of cubemap faces.
|
/frameworks/base/core/java/android/hardware/camera2/impl/ |
H A D | CameraMetadataNative.java | 605 private boolean setFaces(Face[] faces) { argument 606 if (faces == null) { 610 int numFaces = faces.length; 612 // Detect if all faces are SIMPLE or not; count # of valid faces 614 for (Face face : faces) { 637 for (Face face : faces) { 703 // To be safe, make number of faces is the minimal of all face info metadata length. 718 // To be safe, make number of faces is the minimal of all face info metadata length. 750 Face[] faces [all...] |
/frameworks/rs/driver/ |
H A D | rsdRuntimeStubs.cpp | 248 bool faces, 281 if (faces) { 295 if (faces && dimY < 1) { 300 if (dimZ != 0 || dimY == 0 || faces || mipmaps) { 307 faces, yuv_format); 374 uint32_t dimZ, bool mipmaps, bool faces, 377 dimY, dimZ, mipmaps, faces, 403 bool mipmaps, bool faces, 405 return CreateType((RsElement) element.p, dimX, dimY, dimZ, mipmaps, faces, 245 CreateType(RsElement element, uint32_t dimX, uint32_t dimY, uint32_t dimZ, bool mipmaps, bool faces, uint32_t yuv_format) argument 373 rsCreateType(::rs_element element, uint32_t dimX, uint32_t dimY, uint32_t dimZ, bool mipmaps, bool faces, rs_yuv_format yuv_format) argument 401 rsCreateType(::rs_element element, uint32_t dimX, uint32_t dimY, uint32_t dimZ, bool mipmaps, bool faces, rs_yuv_format yuv_format) argument
|
/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
|