本文整理汇总了C++中EXCEPTION函数的典型用法代码示例。如果您正苦于以下问题:C++ EXCEPTION函数的具体用法?C++ EXCEPTION怎么用?C++ EXCEPTION使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了EXCEPTION函数的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: cellSnd3SMFGetPlayVelocity
s32 cellSnd3SMFGetPlayVelocity(u32 smfID)
{
throw EXCEPTION("");
}
示例2: BIG5stoUCS2s
s32 BIG5stoUCS2s()
{
throw EXCEPTION("");
}
示例3: UCS2toEUCJP
s32 UCS2toEUCJP()
{
throw EXCEPTION("");
}
示例4: UCS2stoSBCSs
s32 UCS2stoSBCSs()
{
throw EXCEPTION("");
}
示例5: UCS2stoUHCs
s32 UCS2stoUHCs()
{
throw EXCEPTION("");
}
示例6: JISstoUCS2s
s32 JISstoUCS2s()
{
throw EXCEPTION("");
}
示例7: ARIBstoUCS2s
s32 ARIBstoUCS2s()
{
throw EXCEPTION("");
}
示例8: pts
PesHeader::PesHeader(DemuxerStream& stream)
: pts(CODEC_TS_INVALID)
, dts(CODEC_TS_INVALID)
, size(0)
, has_ts(false)
, is_ok(false)
{
u16 header;
if (!stream.get(header))
{
throw EXCEPTION("End of stream (header)");
}
if (!stream.get(size))
{
throw EXCEPTION("End of stream (size)");
}
if (!stream.check(size))
{
throw EXCEPTION("End of stream (size=%d)", size);
}
u8 pos = 0;
while (pos++ < size)
{
u8 v;
if (!stream.get(v))
{
return; // should never occur
}
if (v == 0xff) // skip padding bytes
{
continue;
}
if ((v & 0xf0) == 0x20 && (size - pos) >= 4) // pts only
{
pos += 4;
pts = stream.get_ts(v);
has_ts = true;
}
else if ((v & 0xf0) == 0x30 && (size - pos) >= 9) // pts and dts
{
pos += 5;
pts = stream.get_ts(v);
stream.get(v);
has_ts = true;
if ((v & 0xf0) != 0x10)
{
cellDmux.error("PesHeader(): dts not found (v=0x%x, size=%d, pos=%d)", v, size, pos - 1);
stream.skip(size - pos);
return;
}
pos += 4;
dts = stream.get_ts(v);
}
else
{
cellDmux.warning("PesHeader(): unknown code (v=0x%x, size=%d, pos=%d)", v, size, pos - 1);
stream.skip(size - pos);
pos = size;
break;
}
}
is_ok = true;
}
示例9: dmuxOpen
void dmuxOpen(u32 dmux_id) // TODO: call from the constructor
{
const auto sptr = idm::get<Demuxer>(dmux_id);
Demuxer& dmux = *sptr;
dmux.id = dmux_id;
dmux.dmuxCb = idm::make_ptr<PPUThread>(fmt::format("Demuxer[0x%x] Thread", dmux_id));
dmux.dmuxCb->prio = 1001;
dmux.dmuxCb->stack_size = 0x10000;
dmux.dmuxCb->custom_task = [sptr](PPUThread& CPU)
{
Demuxer& dmux = *sptr;
DemuxerTask task;
DemuxerStream stream = {};
ElementaryStream* esALL[96]; memset(esALL, 0, sizeof(esALL));
ElementaryStream** esAVC = &esALL[0]; // AVC (max 16 minus M2V count)
ElementaryStream** esM2V = &esALL[16]; // M2V (max 16 minus AVC count)
ElementaryStream** esDATA = &esALL[32]; // user data (max 16)
ElementaryStream** esATX = &esALL[48]; // ATRAC3+ (max 16)
ElementaryStream** esAC3 = &esALL[64]; // AC3 (max 16)
ElementaryStream** esPCM = &esALL[80]; // LPCM (max 16)
u32 cb_add = 0;
while (true)
{
if (Emu.IsStopped() || dmux.is_closed)
{
break;
}
if (!dmux.job.try_peek(task) && dmux.is_running && stream.addr)
{
// default task (demuxing) (if there is no other work)
be_t<u32> code;
be_t<u16> len;
if (!stream.peek(code))
{
// demuxing finished
dmux.is_running = false;
// callback
auto dmuxMsg = vm::ptr<CellDmuxMsg>::make(dmux.memAddr + (cb_add ^= 16));
dmuxMsg->msgType = CELL_DMUX_MSG_TYPE_DEMUX_DONE;
dmuxMsg->supplementalInfo = stream.userdata;
dmux.cbFunc(CPU, dmux.id, dmuxMsg, dmux.cbArg);
dmux.is_working = false;
stream = {};
continue;
}
switch (code)
{
case PACK_START_CODE:
{
if (!stream.check(14))
{
throw EXCEPTION("End of stream (PACK_START_CODE)");
}
stream.skip(14);
break;
}
case SYSTEM_HEADER_START_CODE:
{
if (!stream.check(18))
{
throw EXCEPTION("End of stream (SYSTEM_HEADER_START_CODE)");
}
stream.skip(18);
break;
}
case PADDING_STREAM:
{
if (!stream.check(6))
{
throw EXCEPTION("End of stream (PADDING_STREAM)");
}
stream.skip(4);
stream.get(len);
if (!stream.check(len))
{
throw EXCEPTION("End of stream (PADDING_STREAM, len=%d)", len);
}
stream.skip(len);
break;
}
case PRIVATE_STREAM_2:
{
if (!stream.check(6))
{
//.........这里部分代码省略.........
示例10: cellSnd3NoteOnByTone
s32 cellSnd3NoteOnByTone(u32 hd3ID, u32 toneIndex, u32 note, u32 keyOnID, vm::ptr<CellSnd3KeyOnParam> keyOnParam)
{
throw EXCEPTION("");
}
示例11: cellSnd3VoiceKeyOnByTone
s32 cellSnd3VoiceKeyOnByTone(u32 hd3ID, u32 voiceNum, u32 toneIndex, u32 pitch, u32 keyOnID, vm::ptr<CellSnd3KeyOnParam> keyOnParam)
{
throw EXCEPTION("");
}
示例12: cellSnd3SMFGetPlayChannel
s32 cellSnd3SMFGetPlayChannel(u32 smfID, vm::ptr<u32> playChannelBit)
{
throw EXCEPTION("");
}
示例13: cellSnd3SMFGetPlayStatus
s32 cellSnd3SMFGetPlayStatus(u32 smfID)
{
throw EXCEPTION("");
}
示例14: cellSnd3SMFGetPlayPanpotEx
s32 cellSnd3SMFGetPlayPanpotEx(u32 smfID)
{
throw EXCEPTION("");
}
示例15: eucjp2kuten
s32 eucjp2kuten()
{
throw EXCEPTION("");
}