Lines Matching refs:file
4 * you may not use this file except in compliance with the License.
65 FILE *file = NULL;
70 printf("%s: file %s does not exist\n", __func__, fileName);
73 if ((file = fopen((const char*)realPath, "rb")) == NULL) {
74 HDF_LOGE("%s: Open file failure: %s", __func__, fileName);
78 (void)fread(&bfType, 1, sizeof(bfType), file);
80 HDF_LOGE("%s: not bitmap file", __func__);
81 fclose(file);
85 (void)fread(bmpFileHeader, 1, sizeof(OsdBitMapFileHeader), file);
86 (void)fread(bmpInfo, 1, sizeof(OsdBitMapInfo), file);
87 fclose(file);
104 HDF_LOGE("%s: not support compressed bitmap file", __func__);
117 FILE *file = NULL;
134 printf("%s: file %s does not exist\n", __func__, fileName);
137 if ((file = fopen((const char*)realPath, "rb")) == NULL) {
138 HDF_LOGE("%s: Open file failure: %s", __func__, fileName);
153 fclose(file);
156 fseek(file, bmpFileHeader.offBits, 0);
160 fclose(file);
165 if (fread((*outBuf), 1, byteNum, file) != byteNum) {
167 fclose(file);
177 fclose(file);
218 HDF_LOGE("%s: file: %s, line: %d, memcpy_s failure", __func__, __FILE__, __LINE__);
245 HDF_LOGE("%s: file: %s, line: %d, no such format", __func__, __FILE__, __LINE__);
264 HDF_LOGE("%s: file: %s, line: %d, memcpy_s failure", __func__, __FILE__, __LINE__);
316 HDF_LOGE("%s: not supported image file", __func__);