Lines Matching defs:enFmt
114 static int32_t LoadPicToBuffer(const int8_t *fileName, OsdLogo *videoLogo, OsdColorFmt enFmt,
172 if (enFmt >= OSD_COLOR_FMT_RGB888) {
181 static void LoadRgbData(OsdLogo *videoLogo, OsdColorFmt enFmt, uint32_t stride, uint8_t *origBuf)
199 *dst = OsdMakeColorU16(c.r, c.g, c.b, g_osdCompInfo[enFmt]);
204 static int32_t LoadData(OsdLogo *videoLogo, OsdColorFmt enFmt, uint32_t stride, uint8_t *origBuf)
211 (void)enFmt;
227 static int32_t Copy3BitsByFmt(OsdLogo *videoLogo, OsdColorFmt enFmt, uint32_t stride, uint8_t *origBuf)
231 switch (enFmt) {
238 LoadRgbData(videoLogo, enFmt, stride, origBuf);
242 ret = LoadData(videoLogo, enFmt, stride, origBuf);
272 static int32_t LoadBMPEx(const int8_t *fileName, OsdLogo *videoLogo, OsdColorFmt enFmt)
278 ret = LoadPicToBuffer(fileName, videoLogo, enFmt, &origBmpBuf, &stride);
284 ret = Copy3BitsByFmt(videoLogo, enFmt, stride, origBmpBuf);
300 static int32_t LoadImageEx(const int8_t *fileName, OsdLogo *videoLogo, OsdColorFmt enFmt)
311 if (LoadBMPEx(fileName, videoLogo, enFmt) != 0) {