Lines Matching defs:config
86 OH_NativeBuffer* OH_NativeBuffer_Alloc(const OH_NativeBuffer_Config* config)
88 if (config == nullptr) {
92 bfConfig.width = config->width;
93 bfConfig.height = config->height;
95 bfConfig.format = config->format; // PixelFormat
96 bfConfig.usage = config->usage;
103 BLOGE("Alloc failed ret: %{public}d, config info: width[%{public}d, height[%{public}d,"
104 "format[%{public}d], usage[%{public}d]", ret, config->width, config->height,
105 config->format, config->usage);
138 void OH_NativeBuffer_GetConfig(OH_NativeBuffer *buffer, OH_NativeBuffer_Config* config)
140 if (buffer == nullptr || config == nullptr) {
144 config->width = sbuffer->GetWidth();
145 config->height = sbuffer->GetHeight();
146 config->format = sbuffer->GetFormat();
147 config->usage = sbuffer->GetUsage();
148 config->stride = sbuffer->GetStride();
199 void OH_NativeBuffer_GetNativeBufferConfig(const OH_NativeBuffer *buffer, OH_NativeBuffer_Config* config)
201 if (buffer == nullptr || config == nullptr) {
205 config->width = sbuffer->GetWidth();
206 config->height = sbuffer->GetHeight();
207 config->format = sbuffer->GetFormat();
208 config->usage = sbuffer->GetUsage();
209 config->stride = sbuffer->GetStride();