Searched refs:faces (Results 1 - 25 of 35) sorted by relevance

12

/frameworks/base/media/java/android/media/
H A DFaceDetector.java26 * 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 DLegacyFaceDetectMapper.java87 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/base/tests/Camera2Tests/SmartCamera/SimpleCamera/src/androidx/media/filterfw/samples/simplecamera/
H A DFaceSquareFilter.java54 .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 Dandroid_hardware_Camera.cpp399 env->SetIntField(rect, fields.rect_left, metadata->faces[i].rect[0]);
400 env->SetIntField(rect, fields.rect_top, metadata->faces[i].rect[1]);
401 env->SetIntField(rect, fields.rect_right, metadata->faces[i].rect[2]);
402 env->SetIntField(rect, fields.rect_bottom, metadata->faces[i].rect[3]);
405 env->SetIntField(face, fields.face_score, metadata->faces[i].score);
407 bool optionalFields = metadata->faces[i].id != 0
408 && metadata->faces[i].left_eye[0] != -2000 && metadata->faces[i].left_eye[1] != -2000
409 && metadata->faces[i].right_eye[0] != -2000 && metadata->faces[
[all...]
/frameworks/rs/
H A DrsType.cpp117 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();
363 uint32_t dimY, uint32_t dimZ, bool mipmaps, bool faces, uint32_t yuv) {
372 p.faces
362 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 DrsType.h58 bool faces; member in struct:android::renderscript::Type::Hal::State
77 bool getDimFaces() const {return mHal.state.faces;}
H A DrsInternalDefines.h219 bool faces; member in struct:__anon2031
H A DrsScriptC_Lib.cpp340 uint32_t dimY, uint32_t dimZ, bool mipmaps, bool faces,
342 return rsi_TypeCreate(rsc, element, dimX, dimY, dimZ, mipmaps, faces, yuv);
339 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 DrsRuntime.h166 uint32_t dimY, uint32_t dimZ, bool mipmaps, bool faces,
/frameworks/base/rs/java/android/renderscript/
H A DType.java31 * 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;
/frameworks/rs/cpp/
H A DType.cpp39 uint32_t faces = 1; local
41 faces = 6;
53 uint32_t count = x * y * z * faces;
65 count += x * y * z * faces;
/frameworks/rs/support/java/src/android/support/v8/renderscript/
H A DType.java38 * 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 DRenderScript.java363 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/base/tests/Camera2Tests/SmartCamera/SimpleCamera/tests/src/androidx/media/filterfw/samples/simplecamera/
H A DFaceSquareFilterTest.java71 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 DFrameProcessor.cpp110 Vector<camera_face_t> faces; local
119 // No faces this frame
127 ALOGE("%s: Camera %d: More faces than expected! (Got %d, max %d)",
177 faces.setCapacity(metadata.number_of_faces);
222 faces.push_back(face);
225 metadata.faces = faces.editArray();
/frameworks/rs/driver/runtime/
H A Drs_structs.h264 bool faces; member in struct:Type::__anon2008::__anon2009
/frameworks/av/camera/
H A DICameraClient.cpp69 data.write(metadata->faces, sizeof(camera_face_t) * metadata->number_of_faces);
146 metadata->faces = (camera_face_t *) data.readInplace(
/frameworks/rs/script_api/
H A Drs_object_types.spec96 summary: Enum for selecting cube map faces
98 An enum used to specify one the six faces of a cubemap.
H A Drs_allocation_create.spec83 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 DCameraMetadataNative.java633 private boolean setFaces(Face[] faces) { argument
634 if (faces == null) {
638 int numFaces = faces.length;
640 // Detect if all faces are SIMPLE or not; count # of valid faces
642 for (Face face : faces) {
665 for (Face face : faces) {
731 // To be safe, make number of faces is the minimal of all face info metadata length.
746 // To be safe, make number of faces is the minimal of all face info metadata length.
778 Face[] faces
[all...]
/frameworks/rs/rsov/driver/
H A DrsovRuntimeStubs.cpp246 bool faces,
276 if (faces) {
291 if (faces && dimY < 1) {
296 if (dimZ != 0 || dimY == 0 || faces || mipmaps) {
303 faces, yuv_format);
363 uint32_t dimZ, bool mipmaps, bool faces,
366 CreateType((RsElement)element.p, dimX, dimY, dimZ, mipmaps, faces,
389 bool mipmaps, bool faces,
391 return CreateType((RsElement)element.p, dimX, dimY, dimZ, mipmaps, faces,
243 CreateType(RsElement element, uint32_t dimX, uint32_t dimY, uint32_t dimZ, bool mipmaps, bool faces, uint32_t yuv_format) argument
362 rsCreateType(::rs_element element, uint32_t dimX, uint32_t dimY, uint32_t dimZ, bool mipmaps, bool faces, rs_yuv_format yuv_format) argument
387 rsCreateType(::rs_element element, uint32_t dimX, uint32_t dimY, uint32_t dimZ, bool mipmaps, bool faces, rs_yuv_format yuv_format) argument
/frameworks/rs/driver/
H A DrsdRuntimeStubs.cpp264 bool faces,
297 if (faces) {
311 if (faces && dimY < 1) {
316 if (dimZ != 0 || dimY == 0 || faces || mipmaps) {
323 faces, yuv_format);
390 uint32_t dimZ, bool mipmaps, bool faces,
393 dimY, dimZ, mipmaps, faces,
419 bool mipmaps, bool faces,
421 return CreateType((RsElement) element.p, dimX, dimY, dimZ, mipmaps, faces,
261 CreateType(RsElement element, uint32_t dimX, uint32_t dimY, uint32_t dimZ, bool mipmaps, bool faces, uint32_t yuv_format) argument
389 rsCreateType(::rs_element element, uint32_t dimX, uint32_t dimY, uint32_t dimZ, bool mipmaps, bool faces, rs_yuv_format yuv_format) argument
417 rsCreateType(::rs_element element, uint32_t dimX, uint32_t dimY, uint32_t dimZ, bool mipmaps, bool faces, rs_yuv_format yuv_format) argument
/frameworks/av/services/camera/libcameraservice/device1/
H A DCameraHardwareInterface.cpp134 md.number_of_faces = metadata.faces.size();
135 md.faces = (camera_face_t*) metadata.faces.data();
/frameworks/ex/camera2/portability/src/com/android/ex/camera2/portability/
H A DCameraAgent.java213 * @param faces Recognized face in the preview.
216 public void onFaceDetection(Camera.Face[] faces, CameraProxy camera); argument
H A DAndroidCameraAgentImpl.java1334 final Camera.Face[] faces, Camera camera) {
1338 mCallback.onFaceDetection(faces, mCamera);
1333 onFaceDetection( final Camera.Face[] faces, Camera camera) argument

Completed in 427 milliseconds

12