Home
last modified time | relevance | path

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

12

/frameworks/base/tests/SurfaceComposition/src/android/surfacecomposition/
DSurfaceCompositionMeasuringActivity.java122 public CompositorScore measureCompositionScore(int pixelFormat) { in measureCompositionScore() argument
127 configureSurfacesAndWait(0, pixelFormat, false); in measureCompositionScore()
130 new Measurement(mViews.size() + 1, 0.0f), pixelFormat); in measureCompositionScore()
149 public AllocationScore measureAllocationScore(int pixelFormat) { in measureAllocationScore() argument
154 configureSurfacesAndWait(MIN_NUMBER_OF_SURFACES, pixelFormat, false); in measureAllocationScore()
158 configureSurfacesAndWait(0, pixelFormat, false); in measureAllocationScore()
198 final int pixelFormat = PIXEL_FORMATS[mPixelFormatSelector.getSelectedItemPosition()]; in doTest() local
205 CompositorScore score = measureCompositionScore(pixelFormat); in doTest()
206 sb.append("\n " + getPixelFormatInfo(pixelFormat) + ":" + in doTest()
212 AllocationScore score = measureAllocationScore(pixelFormat); in doTest()
[all …]
DSurfaceCompositionTest.java75 int pixelFormat = TEST_PIXEL_FORMATS[i]; in testSurfaceCompositionPerformance() local
76 String formatName = SurfaceCompositionMeasuringActivity.getPixelFormatInfo(pixelFormat); in testSurfaceCompositionPerformance()
77 CompositorScore score = getActivity().measureCompositionScore(pixelFormat); in testSurfaceCompositionPerformance()
84 if (pixelFormat == PixelFormat.TRANSLUCENT) { in testSurfaceCompositionPerformance()
98 int pixelFormat = TEST_PIXEL_FORMATS[i]; in testSurfaceAllocationPerformance() local
99 String formatName = SurfaceCompositionMeasuringActivity.getPixelFormatInfo(pixelFormat); in testSurfaceAllocationPerformance()
100 AllocationScore score = getActivity().measureAllocationScore(pixelFormat); in testSurfaceAllocationPerformance()
108 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/native/libs/renderengine/include/renderengine/
DRenderEngine.h180 int pixelFormat; member
200 : pixelFormat(_pixelFormat) in RenderEngineCreationArgs()
213 Builder& setPixelFormat(int pixelFormat) { in setPixelFormat()
214 this->pixelFormat = pixelFormat; in setPixelFormat()
242 return RenderEngineCreationArgs(pixelFormat, imageCacheSize, useColorManagement, in build()
249 int pixelFormat = 1;
/frameworks/native/services/surfaceflinger/CompositionEngine/include/compositionengine/
DDisplayCreationArgs.h51 ui::PixelFormat pixelFormat = static_cast<ui::PixelFormat>(PIXEL_FORMAT_UNKNOWN); member
88 DisplayCreationArgsBuilder& setPixelFormat(ui::PixelFormat pixelFormat) { in setPixelFormat() argument
89 mArgs.pixelFormat = pixelFormat; in setPixelFormat()
/frameworks/base/libs/hwui/
DHardwareBitmapUploader.cpp45 PixelFormat pixelFormat; member
317 formatInfo.pixelFormat = PIXEL_FORMAT_RGBA_8888; in determineFormat()
326 formatInfo.pixelFormat = PIXEL_FORMAT_RGBA_FP16; in determineFormat()
330 formatInfo.pixelFormat = PIXEL_FORMAT_RGBA_8888; in determineFormat()
337 formatInfo.pixelFormat = PIXEL_FORMAT_RGB_565; in determineFormat()
344 formatInfo.pixelFormat = PIXEL_FORMAT_RGBA_8888; in determineFormat()
399 format.pixelFormat, in allocateHardwareBitmap()
/frameworks/base/services/core/java/com/android/server/wm/
DTaskSnapshotController.java279 boolean prepareTaskSnapshot(Task task, int pixelFormat, TaskSnapshot.Builder builder) {
320 if (pixelFormat == PixelFormat.UNKNOWN) {
321 pixelFormat = mPersister.use16BitFormat() && activity.fillsParent()
327 final boolean isTranslucent = PixelFormat.formatHasAlpha(pixelFormat)
331 builder.setPixelFormat(pixelFormat);
358 float scaleFraction, int pixelFormat, Point outTaskSize) {
379 pixelFormat, excludeLayers);
398 TaskSnapshot snapshotTask(Task task, int pixelFormat) {
401 if (!prepareTaskSnapshot(task, pixelFormat, builder)) {
/frameworks/av/media/libstagefright/omx/
DOmxGraphicBufferSource.cpp55 int32_t dataSpace, int32_t aspects, int32_t pixelFormat) override { in dispatchDataSpaceChanged() argument
56 mOmxNode->dispatchDataSpaceChanged(dataSpace, aspects, pixelFormat); in dispatchDataSpaceChanged()
/frameworks/av/media/libstagefright/omx/1.0/
DWGraphicBufferSource.cpp67 int32_t dataSpace, int32_t aspects, int32_t pixelFormat) override { in dispatchDataSpaceChanged()
74 tMsg.data.eventData.data3 = pixelFormat; in dispatchDataSpaceChanged()
81 static_cast<long>(pixelFormat)); in dispatchDataSpaceChanged()
/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.cpp610 jbyteArray pixelBuffer, jint width, jint height, jint pixelFormat) { in LegacyCameraDevice_nativeProduceFrame() argument
633 pixelFormat, bufSize); in LegacyCameraDevice_nativeProduceFrame()
644 jint pixelFormat) { in LegacyCameraDevice_nativeSetSurfaceFormat() argument
651 status_t err = native_window_set_buffers_format(anw.get(), pixelFormat); in LegacyCameraDevice_nativeSetSurfaceFormat()
/frameworks/native/services/surfaceflinger/CompositionEngine/src/
DDisplay.cpp65 mId = maybeAllocateDisplayIdForVirtualDisplay(args.pixels, args.pixelFormat); in setConfiguration()
70 ui::Size pixels, ui::PixelFormat pixelFormat) const { in maybeAllocateDisplayIdForVirtualDisplay()
73 static_cast<uint32_t>(pixels.height), &pixelFormat); in maybeAllocateDisplayIdForVirtualDisplay()
337 getRenderSurface()->setBufferPixelFormat(clientTargetProperty.pixelFormat); in applyClientTargetRequests()
DRenderSurface.cpp107 void RenderSurface::setBufferPixelFormat(ui::PixelFormat pixelFormat) { in setBufferPixelFormat() argument
108 native_window_set_buffers_format(mNativeWindow.get(), static_cast<int32_t>(pixelFormat)); in setBufferPixelFormat()
/frameworks/av/media/libstagefright/omx/include/media/stagefright/omx/
DIOmxNodeWrapper.h34 int32_t dataSpace, int32_t aspects, int32_t pixelFormat) = 0;
/frameworks/av/media/libstagefright/bqhelper/include/media/stagefright/bqhelper/
DComponentWrapper.h34 int32_t dataSpace, int32_t aspects, int32_t pixelFormat) = 0;
DGraphicBufferSource.h354 void onDataspaceChanged_l(android_dataspace dataspace, android_pixel_format pixelFormat);
/frameworks/base/services/tests/wmtests/src/com/android/server/wm/
DTaskSnapshotControllerTest.java139 final int pixelFormat = PixelFormat.RGBA_8888; in testSnapshotBuilder() local
158 builder.setPixelFormat(pixelFormat); in testSnapshotBuilder()
162 assertEquals(pixelFormat, builder.getPixelFormat()); in testSnapshotBuilder()
/frameworks/base/core/java/android/hardware/camera2/legacy/
DLegacyCameraDevice.java740 int height, int pixelFormat) in produceFrame() argument
748 pixelFormat)); in produceFrame()
751 static void setSurfaceFormat(Surface surface, int pixelFormat) in setSurfaceFormat() argument
755 LegacyExceptionUtils.throwOnError(nativeSetSurfaceFormat(surface, pixelFormat)); in setSurfaceFormat()
863 int height, int pixelFormat); in nativeProduceFrame() argument
865 private static native int nativeSetSurfaceFormat(Surface surface, int pixelFormat); in nativeSetSurfaceFormat() argument
/frameworks/av/media/codec2/sfplugin/
DOmx2IGraphicBufferSource.cpp73 int32_t dataSpace, int32_t aspects, int32_t pixelFormat) override { in dispatchDataSpaceChanged()
80 msg.u.event_data.data3 = pixelFormat; in dispatchDataSpaceChanged()
/frameworks/base/libs/hwui/renderthread/
DVulkanSurface.cpp210 outWindowInfo->pixelFormat = ColorTypeToPixelFormat(colorType); in InitializeWindowInfoStruct()
212 if (outWindowInfo->pixelFormat == PIXEL_FORMAT_RGBA_FP16) { in InitializeWindowInfoStruct()
266 int err = native_window_set_buffers_format(window, windowInfo.pixelFormat); in UpdateWindow()
269 windowInfo.pixelFormat, strerror(-err), err); in UpdateWindow()
DVulkanSurface.h94 PixelFormat pixelFormat; member
/frameworks/base/libs/hwui/jni/
DImageDecoder.cpp398 jint pixelFormat = postProcessAndRelease(env, jdecoder, std::move(canvas)); in ImageDecoder_nDecodeBitmap() local
404 switch (pixelFormat) { in ImageDecoder_nDecodeBitmap()
415 msg.printf("invalid return from postProcess: %i", pixelFormat); in ImageDecoder_nDecodeBitmap()
423 msg.printf("incompatible return from postProcess: %i", pixelFormat); in ImageDecoder_nDecodeBitmap()
DYuvToJpegEncoder.h19 static YuvToJpegEncoder* create(int pixelFormat, int* strides);
/frameworks/native/services/surfaceflinger/layerproto/include/layerproto/
DLayerProtoParser.h99 std::string pixelFormat; variable
/frameworks/native/services/surfaceflinger/layerproto/
DLayerProtoParser.cpp95 layer.pixelFormat = layerProto.pixel_format(); in generateLayer()
293 StringAppendF(&result, "defaultPixelFormat=%s, ", pixelFormat.c_str()); in to_string()

12