static int Create(rawimage* p) { const tchar_t* Format = LangStr(p->Format.Format.Class,RAWIMAGE_FORMAT); if (tcsnicmp(Format,T("vcodec/"),7)==0) p->FourCC = StringToFourCC(Format+7,1); if (!p->FourCC) return ERR_INVALID_PARAM; p->Format.Init = (fmtfunc)Init; p->Format.Seek = (fmtseek)Seek; p->Format.ReadPacket = (fmtreadpacket)Packet; p->Format.FillQueue = (fmtfill)FillQueue; p->Format.Process = (fmtstreamprocess)ProcessStream; p->Format.Sended = (fmtstream)Sended; p->Format.Timing = 0; return ERR_NONE; }
/** * Get the device type for a given FourCC string. * @param str String. * @return FourCC, or IOT_MAX if the FourCC doesn't match any device type. */ inline IoManager::IoType_t IoManager::StringToIoType(const std::string& str) { return FourCCToIoType(StringToFourCC(str)); }