Lines Matching refs:enFmt
133 static int32_t LoadPicToBuffer(const int8_t *fileName, OsdLogo *videoLogo, OsdColorFmt enFmt,
176 if (enFmt >= OSD_COLOR_FMT_RGB888) {
185 static void LoadRgbData(OsdLogo *videoLogo, OsdColorFmt enFmt, uint32_t stride, uint8_t *origBuf)
203 *dst = OsdMakeColorU16(c.r, c.g, c.b, g_osdCompInfo[enFmt]);
208 static int32_t LoadData(OsdLogo *videoLogo, OsdColorFmt enFmt, uint32_t stride, uint8_t *origBuf)
215 (void)enFmt;
231 static int32_t Copy3BitsByFmt(OsdLogo *videoLogo, OsdColorFmt enFmt, uint32_t stride, uint8_t *origBuf)
235 switch (enFmt) {
242 LoadRgbData(videoLogo, enFmt, stride, origBuf);
246 ret = LoadData(videoLogo, enFmt, stride, origBuf);
276 static int32_t LoadBMPEx(const int8_t *fileName, OsdLogo *videoLogo, OsdColorFmt enFmt)
282 ret = LoadPicToBuffer(fileName, videoLogo, enFmt, &origBmpBuf, &stride);
288 ret = Copy3BitsByFmt(videoLogo, enFmt, stride, origBmpBuf);
304 static int32_t LoadImageEx(const int8_t *fileName, OsdLogo *videoLogo, OsdColorFmt enFmt)
315 if (LoadBMPEx(fileName, videoLogo, enFmt) != 0) {