Lines Matching refs:curPacket
46 size_t curPacket; // current packet index variable
166 if (curPacket <= lastPacket) { in bufferQueueCallback()
173 XAuint32 packetsThisBuffer = lastPacket - curPacket; in bufferQueueCallback()
178 if (curPacket == lastPacket) { in bufferQueueCallback()
188 } else if (curPacket == discPacket) { in bufferQueueCallback()
193 curPacket = afterDiscPacket; in bufferQueueCallback()
195 } else if (curPacket == formatPacket) { in bufferQueueCallback()
207 result = (*caller)->Enqueue(caller, NULL, &packets[curPacket], in bufferQueueCallback()
210 curPacket += packetsThisBuffer; in bufferQueueCallback()
212 if (curPacket % 1000 == 0) { in bufferQueueCallback()
216 printf("Position after enqueueing packet %zu: %u ms\n", curPacket, position); in bufferQueueCallback()
219 if (forceCallbackFailure && (curPacket % 1230 == 0)) { in bufferQueueCallback()
220 return (XAresult) curPacket; in bufferQueueCallback()
477 for (curPacket = firstPacket; curPacket < lastPacket; curPacket += packetsThisBuffer) { in main()
479 packetsThisBuffer = lastPacket - curPacket; in main()
484 &packets[curPacket], MPEG2TS_PACKET_SIZE * packetsThisBuffer, NULL, 0); in main()
486 printf("Enqueued initial %zu packets in %zu buffers\n", curPacket - firstPacket, in main()
487 (curPacket - firstPacket + PACKETS_PER_BUFFER - 1) / PACKETS_PER_BUFFER); in main()