Home
last modified time | relevance | path

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

/ohos5.0/foundation/graphic/graphic_surface/surface/src/
H A Dnative_buffer.cpp91 BufferRequestConfig bfConfig = {}; in OH_NativeBuffer_Alloc() local
92 bfConfig.width = config->width; in OH_NativeBuffer_Alloc()
93 bfConfig.height = config->height; in OH_NativeBuffer_Alloc()
94 bfConfig.strideAlignment = 0x8; // set 0x8 as default value to alloc SurfaceBufferImpl in OH_NativeBuffer_Alloc()
95 bfConfig.format = config->format; // PixelFormat in OH_NativeBuffer_Alloc()
96 bfConfig.usage = config->usage; in OH_NativeBuffer_Alloc()
97 bfConfig.timeout = 0; in OH_NativeBuffer_Alloc()
98 bfConfig.colorGamut = GraphicColorGamut::GRAPHIC_COLOR_GAMUT_SRGB; in OH_NativeBuffer_Alloc()
99 bfConfig.transform = GraphicTransformType::GRAPHIC_ROTATE_NONE; in OH_NativeBuffer_Alloc()
101 GSError ret = bufferImpl->Alloc(bfConfig); in OH_NativeBuffer_Alloc()