Hi, erveryone
I try to display a custom icon in video, but it can't work.
My method is,
1. In videoswosd.h
#define SWOSD_WINDOW_20_CJK_TEST 11
change #define SWOSD_WINDOW_FR_ST 11 to #define SWOSD_WINDOW_FR_ST 12,
2.
in static int swosdChangeXYParmDetail(int streamId,SWOSD_Hndl *osdHndl ) function last, add
bmpWinPrm.enable = SWOSD_RBOOLFALSE;
bmpWinPrm.format = SWOSD_FORMATYUV420p;
bmpWinPrm.startX = 0;
bmpWinPrm.startY = 0;
bmpWinPrm.width = SWOSD_CHARWIDTHTILOGO_80_32;
bmpWinPrm.height = SWOSD_CHARHEIGHTTILOGO_80_32;
bmpWinPrm.lineOffset = SWOSD_CHARWIDTHTILOGO_80_32;
bmpWinPrm.transperencyVal = SWOSD_OSDBLACKTRANSVAL;
bmpWinPrm.transperencyRange = SWOSD_OSDBLACKTRANSRANGE;
bmpWinPrm.transperencyEnable = SWOSD_BMPTRANSDISABLE;
bmpWinPrm.resizeEnable = 0;
bmpWinPrm.bmpWinAddr = iconBuff80_Y;
bmpWinPrm.bmpWinAddrUV = iconBuff80_UV;
SWOSD_setBmpWinPrm(osdHndl, SWOSD_WINDOW_20_CJK_TEST, &bmpWinPrm);
3.
in static int swosdDisplay(int streamId, SWOSD_Hndl *osdHndl ) function last,
SWOSD_setBmpWinEnable(osdHndl, SWOSD_WINDOW_20_CJK_TEST, SWOSD_BMPWINENABLE);
but this can't work, I don't know why?