Lines Matching refs:bmpInfo
63 int32_t GetBmpInfo(const int8_t *fileName, OsdBitMapFileHeader *bmpFileHeader, OsdBitMapInfo *bmpInfo)
86 (void)fread(bmpInfo, 1, sizeof(OsdBitMapInfo), file);
92 static int32_t CheckBmpInfo(const OsdBitMapInfo *bmpInfo)
96 bpp = bmpInfo->header.bitCnt / EIGHT_BITS_PER_PIXEL;
103 if (bmpInfo->header.compress != 0) {
107 if (bmpInfo->header.height == 0) {
108 HDF_LOGE("%s: bmpInfo.header.height is 0", __func__);
119 OsdBitMapInfo bmpInfo;
124 if (GetBmpInfo(fileName, &bmpFileHeader, &bmpInfo) < 0) {
127 if (CheckBmpInfo(&bmpInfo) != DISPLAY_SUCCESS) {
132 videoLogo->bpp = bmpInfo.header.bitCnt / EIGHT_BITS_PER_PIXEL;
141 videoLogo->width = bmpInfo.header.width;
142 videoLogo->height = ((bmpInfo.header.height > 0) ? bmpInfo.header.height :
143 (-bmpInfo.header.height));