Home
last modified time | relevance | path

Searched refs:pixelFormat (Results 1 – 20 of 20) 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/libs/hwui/pipeline/skia/
DSkiaOpenGLPipeline.cpp264 PixelFormat pixelFormat; in allocateHardwareBitmap() local
274 pixelFormat = PIXEL_FORMAT_RGBA_8888; in allocateHardwareBitmap()
282 pixelFormat = PIXEL_FORMAT_RGBA_FP16; in allocateHardwareBitmap()
285 pixelFormat = PIXEL_FORMAT_RGBA_8888; in allocateHardwareBitmap()
291 pixelFormat = PIXEL_FORMAT_RGB_565; in allocateHardwareBitmap()
297 pixelFormat = PIXEL_FORMAT_RGBA_8888; in allocateHardwareBitmap()
330 sp<GraphicBuffer> buffer = new GraphicBuffer(info.width(), info.height(), pixelFormat, in allocateHardwareBitmap()
/frameworks/base/core/jni/
Dandroid_hardware_HardwareBuffer.cpp76 int pixelFormat = android_hardware_HardwareBuffer_convertToPixelFormat(format); in android_hardware_HardwareBuffer_create() local
77 if (pixelFormat == 0) { in android_hardware_HardwareBuffer_create()
85 sp<GraphicBuffer> buffer = new GraphicBuffer(width, height, pixelFormat, layers, in android_hardware_HardwareBuffer_create()
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/1.0/
DWGraphicBufferSource.cpp62 int32_t dataSpace, int32_t aspects, int32_t pixelFormat) override { in dispatchDataSpaceChanged()
69 tMsg.data.eventData.data3 = pixelFormat; in dispatchDataSpaceChanged()
76 static_cast<long>(pixelFormat)); in dispatchDataSpaceChanged()
/frameworks/native/opengl/libagl/
Degl.cpp1120 int32_t& pixelFormat, int32_t& depthFormat) in getConfigFormatInfo() argument
1124 pixelFormat = GGL_PIXEL_FORMAT_RGB_565; in getConfigFormatInfo()
1128 pixelFormat = GGL_PIXEL_FORMAT_RGB_565; in getConfigFormatInfo()
1132 pixelFormat = GGL_PIXEL_FORMAT_RGBX_8888; in getConfigFormatInfo()
1136 pixelFormat = GGL_PIXEL_FORMAT_RGBX_8888; in getConfigFormatInfo()
1140 pixelFormat = GGL_PIXEL_FORMAT_RGBA_8888; in getConfigFormatInfo()
1144 pixelFormat = GGL_PIXEL_FORMAT_RGBA_8888; in getConfigFormatInfo()
1148 pixelFormat = GGL_PIXEL_FORMAT_A_8; in getConfigFormatInfo()
1152 pixelFormat = GGL_PIXEL_FORMAT_A_8; in getConfigFormatInfo()
1156 pixelFormat = GGL_PIXEL_FORMAT_BGRA_8888; in getConfigFormatInfo()
[all …]
Dtexture.cpp278 const GGLFormat& pixelFormat(c->rasterizer.formats[src.format]); in copyPixels() local
279 const size_t size = src.height * src.stride * pixelFormat.size; in copyPixels()
370 const GGLFormat& pixelFormat(c->rasterizer.formats[formatIdx]); in createTextureSurface() local
372 const int32_t bpr = ((width * pixelFormat.size) + align) & ~align; in createTextureSurface()
374 const int32_t stride = bpr / pixelFormat.size; in createTextureSurface()
1192 const GGLFormat& pixelFormat(c->rasterizer.formats[formatIdx]); in glTexImage2D() local
1194 const int32_t bpr = ((width * pixelFormat.size) + align) & ~align; in glTexImage2D()
1196 const int32_t stride = bpr / pixelFormat.size; in glTexImage2D()
1276 const GGLFormat& pixelFormat(c->rasterizer.formats[formatIdx]); in glTexSubImage2D() local
1278 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/av/media/libstagefright/omx/include/media/stagefright/omx/
DIOmxNodeWrapper.h34 int32_t dataSpace, int32_t aspects, int32_t pixelFormat) = 0;
DGraphicBufferSource.h336 void onDataspaceChanged_l(android_dataspace dataspace, android_pixel_format pixelFormat);
/frameworks/base/core/java/android/hardware/camera2/legacy/
DLegacyCameraDevice.java704 int height, int pixelFormat) in produceFrame() argument
712 pixelFormat)); in produceFrame()
715 static void setSurfaceFormat(Surface surface, int pixelFormat) in setSurfaceFormat() argument
719 LegacyExceptionUtils.throwOnError(nativeSetSurfaceFormat(surface, pixelFormat)); in setSurfaceFormat()
827 int height, int pixelFormat); in nativeProduceFrame() argument
829 private static native int nativeSetSurfaceFormat(Surface surface, int pixelFormat); in nativeSetSurfaceFormat() argument
/frameworks/av/media/libstagefright/omx/
DBWGraphicBufferSource.cpp45 int32_t dataSpace, int32_t aspects, int32_t pixelFormat) override { in dispatchDataSpaceChanged()
52 msg.u.event_data.data3 = pixelFormat; in dispatchDataSpaceChanged()
DGraphicBufferSource.cpp505 android_dataspace dataspace, android_pixel_format pixelFormat) { in onDataspaceChanged_l() argument
510 mOMXNode->dispatchDataSpaceChanged(mLastDataspace, mDefaultColorAspectsPacked, pixelFormat); in onDataspaceChanged_l()
DOMXNodeInstance.cpp2071 android_pixel_format pixelFormat = (android_pixel_format)msg.u.event_data.data3; in handleDataSpaceChanged() local
2086 params.nPixelFormat = pixelFormat; in handleDataSpaceChanged()
/frameworks/base/core/jni/android/graphics/
DYuvToJpegEncoder.h19 static YuvToJpegEncoder* create(int pixelFormat, int* strides);
/frameworks/base/libs/hwui/renderthread/
DOpenGLPipeline.cpp409 PixelFormat pixelFormat = internalFormatToPixelFormat(internalFormat); in allocateHardwareBitmap() local
410 sp<GraphicBuffer> buffer = new GraphicBuffer(info.width(), info.height(), pixelFormat, in allocateHardwareBitmap()
/frameworks/av/services/camera/libcameraservice/device3/
DCamera3Device.h598 static int mapToFrameworkFormat(hardware::graphics::common::V1_0::PixelFormat pixelFormat);
DCamera3Device.cpp468 hardware::graphics::common::V1_0::PixelFormat pixelFormat) { in mapToFrameworkFormat() argument
469 return static_cast<uint32_t>(pixelFormat); in mapToFrameworkFormat()