Lines Matching defs: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 int32_t LoadPicToBuffer(const int8_t *fileName, OsdLogo *videoLogo, OsdColorFmt enFmt,
124 if (GetBmpInfo(fileName, &bmpFileHeader, &bmpInfo) < 0) {
133 if (realpath((char*)fileName, realPath) == NULL) {
134 printf("%s: file %s does not exist\n", __func__, fileName);
138 HDF_LOGE("%s: Open file failure: %s", __func__, fileName);
272 static int32_t LoadBMPEx(const int8_t *fileName, OsdLogo *videoLogo, OsdColorFmt enFmt)
278 ret = LoadPicToBuffer(fileName, videoLogo, enFmt, &origBmpBuf, &stride);
300 static int32_t LoadImageEx(const int8_t *fileName, OsdLogo *videoLogo, OsdColorFmt enFmt)
302 char *ext = strrchr((const char *)fileName, '.');
311 if (LoadBMPEx(fileName, videoLogo, enFmt) != 0) {
323 int32_t CreateSurfaceByBitMap(const int8_t *fileName, OsdSurface *pstSurface, uint8_t *virAddr, uint32_t len)
327 if (fileName == NULL) {
328 HDF_LOGE("%s: fileName is null", __func__);
342 if (LoadImageEx(fileName, &stLogo, pstSurface->colorFmt) < 0) {