Home
last modified time | relevance | path

Searched refs:pixelFormat (Results 1 – 11 of 11) sorted by relevance

/frameworks/base/tests/SurfaceComposition/src/android/surfacecomposition/
DSurfaceCompositionMeasuringActivity.java123 public CompositorScore measureCompositionScore(int pixelFormat) { in measureCompositionScore() argument
128 configureSurfacesAndWait(0, pixelFormat, false); in measureCompositionScore()
131 new Measurement(mViews.size() + 1, 0.0f), pixelFormat); in measureCompositionScore()
150 public AllocationScore measureAllocationScore(int pixelFormat) { in measureAllocationScore() argument
155 configureSurfacesAndWait(MIN_NUMBER_OF_SURFACES, pixelFormat, false); in measureAllocationScore()
159 configureSurfacesAndWait(0, pixelFormat, false); in measureAllocationScore()
199 final int pixelFormat = PIXEL_FORMATS[mPixelFormatSelector.getSelectedItemPosition()]; in doTest() local
206 CompositorScore score = measureCompositionScore(pixelFormat); in doTest()
207 sb.append("\n " + getPixelFormatInfo(pixelFormat) + ":" + in doTest()
213 AllocationScore score = measureAllocationScore(pixelFormat); in doTest()
[all …]
DSurfaceCompositionTest.java78 int pixelFormat = TEST_PIXEL_FORMATS[i]; in testSurfaceCompositionPerformance() local
79 String formatName = SurfaceCompositionMeasuringActivity.getPixelFormatInfo(pixelFormat); in testSurfaceCompositionPerformance()
80 CompositorScore score = getActivity().measureCompositionScore(pixelFormat); in testSurfaceCompositionPerformance()
87 if (pixelFormat == PixelFormat.TRANSLUCENT) { in testSurfaceCompositionPerformance()
101 int pixelFormat = TEST_PIXEL_FORMATS[i]; in testSurfaceAllocationPerformance() local
102 String formatName = SurfaceCompositionMeasuringActivity.getPixelFormatInfo(pixelFormat); in testSurfaceAllocationPerformance()
103 AllocationScore score = getActivity().measureAllocationScore(pixelFormat); in testSurfaceAllocationPerformance()
111 if (pixelFormat == PixelFormat.TRANSLUCENT) { in testSurfaceAllocationPerformance()
DCustomSurfaceView.java96 public void setMode(int pixelFormat, boolean drawNameOnReady) { in setMode() argument
98 getHolder().setFormat(pixelFormat); in setMode()
/frameworks/base/core/java/android/hardware/camera2/legacy/
DLegacyCameraDevice.java676 int height, int pixelFormat) in produceFrame() argument
684 pixelFormat)); in produceFrame()
687 static void setSurfaceFormat(Surface surface, int pixelFormat) in setSurfaceFormat() argument
691 LegacyExceptionUtils.throwOnError(nativeSetSurfaceFormat(surface, pixelFormat)); in setSurfaceFormat()
799 int height, int pixelFormat); in nativeProduceFrame() argument
801 private static native int nativeSetSurfaceFormat(Surface surface, int pixelFormat); in nativeSetSurfaceFormat() argument
/frameworks/native/opengl/libagl/
Degl.cpp1096 int32_t& pixelFormat, int32_t& depthFormat) in getConfigFormatInfo() argument
1100 pixelFormat = GGL_PIXEL_FORMAT_RGB_565; in getConfigFormatInfo()
1104 pixelFormat = GGL_PIXEL_FORMAT_RGB_565; in getConfigFormatInfo()
1108 pixelFormat = GGL_PIXEL_FORMAT_RGBX_8888; in getConfigFormatInfo()
1112 pixelFormat = GGL_PIXEL_FORMAT_RGBX_8888; in getConfigFormatInfo()
1116 pixelFormat = GGL_PIXEL_FORMAT_RGBA_8888; in getConfigFormatInfo()
1120 pixelFormat = GGL_PIXEL_FORMAT_RGBA_8888; in getConfigFormatInfo()
1124 pixelFormat = GGL_PIXEL_FORMAT_A_8; in getConfigFormatInfo()
1128 pixelFormat = GGL_PIXEL_FORMAT_A_8; in getConfigFormatInfo()
1281 int32_t pixelFormat; in createWindowSurface() local
[all …]
Dtexture.cpp285 const GGLFormat& pixelFormat(c->rasterizer.formats[src.format]); in copyPixels() local
286 const size_t size = src.height * src.stride * pixelFormat.size; in copyPixels()
377 const GGLFormat& pixelFormat(c->rasterizer.formats[formatIdx]); in createTextureSurface() local
379 const int32_t bpr = ((width * pixelFormat.size) + align) & ~align; in createTextureSurface()
381 const int32_t stride = bpr / pixelFormat.size; in createTextureSurface()
1199 const GGLFormat& pixelFormat(c->rasterizer.formats[formatIdx]); in glTexImage2D() local
1201 const int32_t bpr = ((width * pixelFormat.size) + align) & ~align; in glTexImage2D()
1203 const int32_t stride = bpr / pixelFormat.size; in glTexImage2D()
1283 const GGLFormat& pixelFormat(c->rasterizer.formats[formatIdx]); in glTexSubImage2D() local
1285 const int32_t bpr = ((width * pixelFormat.size) + align) & ~align; in glTexSubImage2D()
[all …]
Dmipmap.cpp34 const GGLFormat& pixelFormat(c->rasterizer.formats[base->format]); in buildAPyramid() local
46 const int bpr = w * pixelFormat.size; in buildAPyramid()
/frameworks/base/core/jni/android/graphics/
DYuvToJpegEncoder.h19 static YuvToJpegEncoder* create(int pixelFormat, int* strides);
/frameworks/base/core/jni/
Dandroid_hardware_camera2_legacy_LegacyCameraDevice.cpp568 jbyteArray pixelBuffer, jint width, jint height, jint pixelFormat) { in LegacyCameraDevice_nativeProduceFrame() argument
591 pixelFormat, bufSize); in LegacyCameraDevice_nativeProduceFrame()
602 jint pixelFormat) { in LegacyCameraDevice_nativeSetSurfaceFormat() argument
609 status_t err = native_window_set_buffers_format(anw.get(), pixelFormat); in LegacyCameraDevice_nativeSetSurfaceFormat()
/frameworks/av/media/libstagefright/omx/
DGraphicBufferSource.h252 void onDataSpaceChanged_l(android_dataspace dataSpace, android_pixel_format pixelFormat);
DGraphicBufferSource.cpp510 android_dataspace dataSpace, android_pixel_format pixelFormat) { in onDataSpaceChanged_l() argument
527 params.nPixelFormat = pixelFormat; in onDataSpaceChanged_l()