Lines Matching defs:info
139 static int32_t InitBufferHandle(PriBufferHandle* buffer, const AllocInfo* info)
143 int32_t h = ALIGN_UP(info->height, HEIGHT_ALIGN);
144 const FormatInfo *fmtInfo = GetFormatInfo(info->format);
150 stride = ALIGN_UP(AdjustStrideFromFormat(info->format, info->width), WIDTH_ALIGN) *
153 buffer->hdl.width = info->width;
155 buffer->hdl.height = info->height;
157 buffer->hdl.usage = info->usage;
160 buffer->hdl.format = info->format;
206 static int32_t AllocMem(const AllocInfo* info, BufferHandle **buffer)
210 DISPLAY_CHK_RETURN((info == NULL), DISPLAY_NULL_PTR, HDF_LOGE("%s: in info is null", __func__));
214 ret = InitBufferHandle(priBuffer, info);