Home
last modified time | relevance | path

Searched refs:face (Results 1 – 25 of 93) sorted by relevance

1234

/frameworks/av/services/camera/libcameraservice/api1/client2/
DFrameProcessor.cpp190 camera_face_t face; in processFaceDetect() local
192 face.rect[0] = l.mParameters.arrayXToNormalizedWithCrop( in processFaceDetect()
194 face.rect[1] = l.mParameters.arrayYToNormalizedWithCrop( in processFaceDetect()
196 face.rect[2] = l.mParameters.arrayXToNormalizedWithCrop( in processFaceDetect()
198 face.rect[3] = l.mParameters.arrayYToNormalizedWithCrop( in processFaceDetect()
200 face.score = faceScores[i]; in processFaceDetect()
202 face.id = faceIds[i]; in processFaceDetect()
203 face.left_eye[0] = l.mParameters.arrayXToNormalizedWithCrop( in processFaceDetect()
205 face.left_eye[1] = l.mParameters.arrayYToNormalizedWithCrop( in processFaceDetect()
207 face.right_eye[0] = l.mParameters.arrayXToNormalizedWithCrop( in processFaceDetect()
[all …]
/frameworks/base/core/jni/android/graphics/
DTypeface.cpp41 Typeface* face = Typeface::createRelative(family, (Typeface::Style)style); in Typeface_createFromTypeface() local
44 if (NULL == face) { in Typeface_createFromTypeface()
45 face = Typeface::createRelative(family, (Typeface::Style)(style ^ Typeface::kItalic)); in Typeface_createFromTypeface()
47 for (int i = 0; NULL == face && i < 4; i++) { in Typeface_createFromTypeface()
48 face = Typeface::createRelative(family, (Typeface::Style)i); in Typeface_createFromTypeface()
50 return toJLong(face); in Typeface_createFromTypeface()
114 Typeface* face = toTypeface(faceHandle); in Typeface_getSupportedAxes() local
115 const std::unordered_set<minikin::AxisTag>& tagSet = face->fFontCollection->getSupportedTags(); in Typeface_getSupportedAxes()
DHarfBuzzNGFaceSkia.h53 hb_blob_t* harfbuzzSkiaReferenceTable(hb_face_t* face, hb_tag_t tag, void* userData);
55 hb_font_t* createFont(hb_face_t* face, SkPaint* paint, float sizeX, float sizeY);
DHarfBuzzNGFaceSkia.cpp141 hb_blob_t* harfbuzzSkiaReferenceTable(hb_face_t* face, hb_tag_t tag, void* userData) in harfbuzzSkiaReferenceTable() argument
166 hb_font_t* createFont(hb_face_t* face, SkPaint* paint, float sizeX, float sizeY) { in createFont() argument
167 hb_font_t* font = hb_font_create(face); in createFont()
/frameworks/rs/rsov/driver/
DrsovAllocation.cpp149 RsAllocationCubemapFace face) { in GetOffsetPtr() argument
151 ptr += face * alloc->mHal.drvState.faceOffset; in GetOffsetPtr()
159 void mip565(const Allocation *alloc, int lod, RsAllocationCubemapFace face) { in mip565() argument
164 uint16_t *oPtr = (uint16_t *)GetOffsetPtr(alloc, 0, y, 0, lod + 1, face); in mip565()
166 (uint16_t *)GetOffsetPtr(alloc, 0, 0, y * 2, lod, face); in mip565()
168 (uint16_t *)GetOffsetPtr(alloc, 0, 0, y * 2 + 1, lod, face); in mip565()
179 void mip8888(const Allocation *alloc, int lod, RsAllocationCubemapFace face) { in mip8888() argument
184 uint32_t *oPtr = (uint32_t *)GetOffsetPtr(alloc, 0, y, 0, lod + 1, face); in mip8888()
186 (uint32_t *)GetOffsetPtr(alloc, 0, y * 2, 0, lod, face); in mip8888()
188 (uint32_t *)GetOffsetPtr(alloc, 0, y * 2 + 1, 0, lod, face); in mip8888()
[all …]
/frameworks/rs/driver/
DrsdAllocation.cpp88 uint32_t lod, RsAllocationCubemapFace face) { in GetOffsetPtr() argument
90 ptr += face * alloc->mHal.drvState.faceOffset; in GetOffsetPtr()
100 RsAllocationCubemapFace face, uint32_t w, uint32_t h) { in Update2DTexture() argument
109 t = gFaceOrder[face]; in Update2DTexture()
129 for (uint32_t face = 0; face < faceCount; face ++) { in Upload2DTexture() local
131 const uint8_t *p = GetOffsetPtr(alloc, 0, 0, 0, lod, (RsAllocationCubemapFace)face); in Upload2DTexture()
135 t = gFaceOrder[face]; in Upload2DTexture()
848 uint32_t xoff, uint32_t yoff, uint32_t lod, RsAllocationCubemapFace face, in rsdAllocationData2D() argument
860 uint8_t *dst = GetOffsetPtr(alloc, xoff, yoff, 0, lod, face); in rsdAllocationData2D()
890 uint8_t *dst = GetOffsetPtr(alloc, xoff, yoff, 0, lod, face); in rsdAllocationData2D()
[all …]
/frameworks/base/apct-tests/perftests/core/src/android/graphics/perftests/
DTypefaceCreatePerfTest.java52 Typeface face = Typeface.create(Typeface.SANS_SERIF, Typeface.NORMAL); in testCreate_fromFamily() local
61 Typeface face = Typeface.create("monospace", Typeface.NORMAL); in testCreate_fromFamilyName() local
72 Typeface face = Typeface.createFromAsset(am, TEST_FONT_NAME); in testCreate_fromAsset() local
101 Typeface face = Typeface.createFromFile(outFile); in testCreate_fromFile() local
/frameworks/minikin/tests/util/
DFreeTypeMinikinFontForTest.cpp50 void loadGlyphOrDie(uint32_t glyphId, float size, FT_Face face) { in loadGlyphOrDie() argument
52 LOG_ALWAYS_FATAL_IF(FT_Set_Char_Size(face, scale, scale, 72 /* dpi */, 72 /* dpi */), in loadGlyphOrDie()
54 LOG_ALWAYS_FATAL_IF(FT_Load_Glyph(face, glyphId, LOAD_FLAG), "Failed to load glyph"); in loadGlyphOrDie()
55 LOG_ALWAYS_FATAL_IF(face->glyph->format != FT_GLYPH_FORMAT_OUTLINE, in loadGlyphOrDie()
/frameworks/minikin/libs/minikin/
DMinikinInternal.h61 HbBlob(const HbFaceUniquePtr& face, uint32_t tag) in HbBlob() argument
62 : mBlob(hb_face_reference_table(face.get(), tag)) {} in HbBlob()
/frameworks/base/core/java/android/hardware/camera2/impl/
DCameraMetadataNative.java681 for (Face face : faces) { in setFaces()
682 if (face == null) { in setFaces()
688 if (face.getId() == Face.ID_UNSUPPORTED) { in setFaces()
704 for (Face face : faces) { in setFaces()
705 if (face == null) { in setFaces()
709 faceRectangles[i] = face.getBounds(); in setFaces()
710 faceScores[i] = (byte)face.getScore(); in setFaces()
713 faceIds[i] = face.getId(); in setFaces()
717 faceLandmarks[i * FACE_LANDMARK_SIZE + j++] = face.getLeftEyePosition().x; in setFaces()
718 faceLandmarks[i * FACE_LANDMARK_SIZE + j++] = face.getLeftEyePosition().y; in setFaces()
[all …]
/frameworks/rs/
DrsAllocation.cpp172 void * Allocation::getPointer(const Context *rsc, uint32_t lod, RsAllocationCubemapFace face, in getPointer() argument
177 ((face != RS_ALLOCATION_CUBEMAP_FACE_POSITIVE_X) && !mHal.state.hasFaces) || in getPointer()
184 mRSC->mHal.funcs.allocation.getPointer(rsc, this, lod, face, z, array); in getPointer()
212 …ation::data(Context *rsc, uint32_t xoff, uint32_t yoff, uint32_t lod, RsAllocationCubemapFace face, in data() argument
214 …rsc->mHal.funcs.allocation.data2D(rsc, this, xoff, yoff, lod, face, w, h, data, sizeBytes, stride); in data()
242 …ation::read(Context *rsc, uint32_t xoff, uint32_t yoff, uint32_t lod, RsAllocationCubemapFace face, in read() argument
258 …rsc->mHal.funcs.allocation.read2D(rsc, this, xoff, yoff, lod, face, w, h, data, sizeBytes, stride); in read()
701 …xt *rsc, RsAllocation va, uint32_t xoff, uint32_t yoff, uint32_t lod, RsAllocationCubemapFace face, in rsi_Allocation2DData() argument
704 a->data(rsc, xoff, yoff, lod, face, w, h, data, sizeBytes, stride); in rsi_Allocation2DData()
805 for (uint32_t face = 0; face < 6; face ++) { in rsi_AllocationCubeCreateFromBitmap() local
[all …]
DrsAllocation.h133 … void data(Context *rsc, uint32_t xoff, uint32_t yoff, uint32_t lod, RsAllocationCubemapFace face,
139 … void read(Context *rsc, uint32_t xoff, uint32_t yoff, uint32_t lod, RsAllocationCubemapFace face,
191 void * getPointer(const Context *rsc, uint32_t lod, RsAllocationCubemapFace face,
196 RsAllocationCubemapFace face = RS_ALLOCATION_CUBEMAP_FACE_POSITIVE_X,
/frameworks/base/opengl/java/android/opengl/
DGLErrorWrapper.java510 public void glMaterialf(int face, int pname, float param) { in glMaterialf() argument
512 mgl.glMaterialf(face, pname, param); in glMaterialf()
516 public void glMaterialfv(int face, int pname, float[] params, int offset) { in glMaterialfv() argument
518 mgl.glMaterialfv(face, pname, params, offset); in glMaterialfv()
522 public void glMaterialfv(int face, int pname, FloatBuffer params) { in glMaterialfv() argument
524 mgl.glMaterialfv(face, pname, params); in glMaterialfv()
528 public void glMaterialx(int face, int pname, int param) { in glMaterialx() argument
530 mgl.glMaterialx(face, pname, param); in glMaterialx()
534 public void glMaterialxv(int face, int pname, int[] params, int offset) { in glMaterialxv() argument
536 mgl.glMaterialxv(face, pname, params, offset); in glMaterialxv()
[all …]
DGLES10.java830 int face, in glMaterialf() argument
838 int face, in glMaterialfv() argument
847 int face, in glMaterialfv() argument
855 int face, in glMaterialx() argument
863 int face, in glMaterialxv() argument
872 int face, in glMaterialxv() argument
DGLES11.java395 int face, in glGetMaterialfv() argument
404 int face, in glGetMaterialfv() argument
412 int face, in glGetMaterialxv() argument
421 int face, in glGetMaterialxv() argument
DGLES11Ext.java408 int face, in glGetMaterialxvOES() argument
417 int face, in glGetMaterialxvOES() argument
525 int face, in glMaterialxOES() argument
533 int face, in glMaterialxvOES() argument
542 int face, in glMaterialxvOES() argument
DGLLogWrapper.java783 private String getFaceName(int face) { in getFaceName() argument
784 switch (face) { in getFaceName()
788 return getHex(face); in getFaceName()
1983 public void glMaterialf(int face, int pname, float param) { in glMaterialf() argument
1985 arg("face", getFaceName(face)); in glMaterialf()
1990 mgl.glMaterialf(face, pname, param); in glMaterialf()
1994 public void glMaterialfv(int face, int pname, float[] params, int offset) { in glMaterialfv() argument
1996 arg("face", getFaceName(face)); in glMaterialfv()
2002 mgl.glMaterialfv(face, pname, params, offset); in glMaterialfv()
2006 public void glMaterialfv(int face, int pname, FloatBuffer params) { in glMaterialfv() argument
[all …]
/frameworks/base/opengl/java/javax/microedition/khronos/opengles/
DGL10.java652 int face, in glMaterialf() argument
658 int face, in glMaterialfv() argument
665 int face, in glMaterialfv() argument
671 int face, in glMaterialx() argument
677 int face, in glMaterialxv() argument
684 int face, in glMaterialxv() argument
DGL11.java326 int face, in glGetMaterialfv() argument
333 int face, in glGetMaterialfv() argument
339 int face, in glGetMaterialxv() argument
346 int face, in glGetMaterialxv() argument
/frameworks/base/opengl/java/com/google/android/gles_jni/
DGLImpl.java655 int face, in glMaterialf() argument
663 int face, in glMaterialfv() argument
672 int face, in glMaterialfv() argument
680 int face, in glMaterialx() argument
688 int face, in glMaterialxv() argument
697 int face, in glMaterialxv() argument
1407 int face, in glGetMaterialfv() argument
1416 int face, in glGetMaterialfv() argument
1424 int face, in glGetMaterialxv() argument
1433 int face, in glGetMaterialxv() argument
/frameworks/native/opengl/libs/GLES_CM/
Dgl_api.in37 void API_ENTRY(glGetMaterialfv)(GLenum face, GLenum pname, GLfloat *params) {
38 CALL_GL_API(glGetMaterialfv, face, pname, params);
64 void API_ENTRY(glMaterialf)(GLenum face, GLenum pname, GLfloat param) {
65 CALL_GL_API(glMaterialf, face, pname, param);
67 void API_ENTRY(glMaterialfv)(GLenum face, GLenum pname, const GLfloat *params) {
68 CALL_GL_API(glMaterialfv, face, pname, params);
259 void API_ENTRY(glGetMaterialxv)(GLenum face, GLenum pname, GLfixed *params) {
260 CALL_GL_API(glGetMaterialxv, face, pname, params);
316 void API_ENTRY(glMaterialx)(GLenum face, GLenum pname, GLfixed param) {
317 CALL_GL_API(glMaterialx, face, pname, param);
[all …]
/frameworks/base/core/java/android/hardware/camera2/legacy/
DLegacyFaceDetectMapper.java241 for (Camera.Face face : faces) { in mapResultFaces()
242 if (face != null) { in mapResultFaces()
244 ParameterUtils.convertFaceFromLegacy(face, activeArray, zoomData)); in mapResultFaces()
DParameterUtils.java912 public static Face convertFaceFromLegacy(Camera.Face face, Rect activeArray, in convertFaceFromLegacy() argument
914 checkNotNull(face, "face must not be null"); in convertFaceFromLegacy()
918 Camera.Area fakeArea = new Camera.Area(face.rect, /*weight*/1); in convertFaceFromLegacy()
923 Point leftEye = face.leftEye, rightEye = face.rightEye, mouth = face.mouth; in convertFaceFromLegacy()
934 api2Face = faceRect.toFace(face.id, leftEye, rightEye, mouth); in convertFaceFromLegacy()
/frameworks/base/tests/Camera2Tests/SmartCamera/SimpleCamera/tests/src/androidx/media/filterfw/samples/simplecamera/
DFaceSquareFilterTest.java66 Face face = new Face(); in testFaceSquareFilter() local
70 face.rect = faceRect; in testFaceSquareFilter()
72 faces[0] = face; in testFaceSquareFilter()
/frameworks/native/opengl/libagl/
Dlight.cpp93 c->lighting.colorMaterial.face = GL_FRONT_AND_BACK; in ogles_init_light()
564 static void materialx(GLenum face, GLenum pname, GLfixed param, ogles_context_t* c) in materialx() argument
566 if (ggl_unlikely(face != GL_FRONT_AND_BACK)) { in materialx()
745 void glMaterialf(GLenum face, GLenum pname, GLfloat param) in glMaterialf() argument
748 materialx(face, pname, gglFloatToFixed(param), c); in glMaterialf()
751 void glMaterialx(GLenum face, GLenum pname, GLfixed param) in glMaterialx() argument
754 materialx(face, pname, param, c); in glMaterialx()
758 GLenum face, GLenum pname, const GLfloat *params) in glMaterialfv() argument
761 if (ggl_unlikely(face != GL_FRONT_AND_BACK)) { in glMaterialfv()
798 GLenum face, GLenum pname, const GLfixed *params) in glMaterialxv() argument
[all …]

1234