Lines Matching refs:fileName
63 int32_t GetBmpInfo(const int8_t *fileName, OsdBitMapFileHeader *bmpFileHeader, OsdBitMapInfo *bmpInfo)
69 if (realpath((char*)fileName, realPath) == NULL) {
70 printf("%s: file %s does not exist\n", __func__, fileName);
74 HDF_LOGE("%s: Open file failure: %s", __func__, fileName);
114 static FILE * OpenPicFile(const int8_t *fileName, OsdBitMapFileHeader *fileHeader, OsdBitMapInfo *info)
117 if (GetBmpInfo(fileName, fileHeader, info) < 0) {
125 if (realpath((char*)fileName, realPath) == NULL) {
126 printf("%s: file %s does not exist\n", __func__, fileName);
133 static int32_t LoadPicToBuffer(const int8_t *fileName, OsdLogo *videoLogo, OsdColorFmt enFmt,
141 file = OpenPicFile(fileName, &bmpFileHeader, &bmpInfo);
143 HDF_LOGE("%s: Open file failure: %s", __func__, fileName);
276 static int32_t LoadBMPEx(const int8_t *fileName, OsdLogo *videoLogo, OsdColorFmt enFmt)
282 ret = LoadPicToBuffer(fileName, videoLogo, enFmt, &origBmpBuf, &stride);
304 static int32_t LoadImageEx(const int8_t *fileName, OsdLogo *videoLogo, OsdColorFmt enFmt)
306 char *ext = strrchr((const char *)fileName, '.');
315 if (LoadBMPEx(fileName, videoLogo, enFmt) != 0) {
327 int32_t CreateSurfaceByBitMap(const int8_t *fileName, OsdSurface *pstSurface, uint8_t *virAddr, uint32_t len)
331 if (fileName == NULL) {
332 HDF_LOGE("%s: fileName is null", __func__);
346 if (LoadImageEx(fileName, &stLogo, pstSurface->colorFmt) < 0) {