19 m_syntaxChecker.
reset();
22 std::auto_ptr<Packet> newPacketPtr;
26 size_t wordAdvance =
extractPacket(words, wordCount, newPacketPtr);
30 else if (wordAdvance > wordCount)
throw Exception();
33 wordCount -= wordAdvance;
36 if (0 == newPacketPtr.get())
continue;
38 newPacketPtr->accept(m_syntaxChecker);
40 bitstream.
append(newPacketPtr);
55 return readType1Packet(*(static_cast<Type1Packet*>(packetPtr.get())), words, wordCount);
62 return readType2Packet(*(static_cast<Type2Packet*>(packetPtr.get())), words, wordCount);
68 (
static_cast<DummyWord*
>(packetPtr.get()))->value(*words);
80 (
static_cast<DummyWord*
>(packetPtr.get()))->value(*words);
85 if (0 < packetWordCount)
88 return packetWordCount;
91 packetWordCount =
isSyncWord(words, wordCount);
92 if (0 < packetWordCount)
95 return packetWordCount;
126 bsr.
read(bitstream, words, wordCount);