Packet sequence restoring controller and method thereof
AssigneeMStar Semiconductor, Inc.
InventorsTe-Chuan Wang, Chin-Shien Yang
Life of this patent
Estimating the term…
Abstract
A packet sequence restoring controller includes a recording device, a memory interface unit and a playback device. The recording device includes a first packet detector, a time stamp inserting unit and a first counting module. The playback device includes a second packet detector, a comparing unit, a time stamp deleting unit and a second counting module. Through the memory interface unit, the recording device and the playback device perform data access with an external memory. By recording arrival time of each packet, a live packet sequence is simulated and restored to optimize play quality of a recorded program.
Claims12
A packet sequence restoring controller, for receiving a transport stream comprising a plurality of original packets, the packet sequence restoring controller comprising:
- a recording device, comprising:
- a first packet detector, for detecting a synchronization field in each of the original packets to generate a first detection result;
- and
- a time stamp inserting unit, for determining whether to insert a first time stamp into each of the original packets to correspondingly generate a plurality of temporary packets;
- a memory interface unit, coupled to the recording device and a storage device, for storing the temporary packets into the storage device;
- and
- a playback device, coupled to the memory interface unit, comprising:
- a second packet detector, for reading the temporary packets through the memory interface unit and detecting the synchronization field in each of the temporary packets to generate a second detection result;
- a comparing unit, for comparing a second time stamp and the first time stamp in each of the temporary packets in response to the second detection result to generate a comparison result;
- and
- a time stamp deleting unit, for removing the first time stamps in the temporary packets in response to the comparison result to restore the original packets.
A method for restoring a packet sequence, for receiving a transport stream comprising a plurality of original packets, the method comprising:
- under a recording mode,
- detecting a synchronization field of each of the original packets to generate a detection result;
- determining whether to insert a first time stamp into each of the original packets according to the first detection result to generate a plurality of temporary packets;
- and
- storing the temporary packets to a storage device;
- and
- under a playback mode,
- reading the temporary packets from the storage device;
- detecting a synchronization field of each of the temporary packets to generate a second detection result;
- comparing a second time stamp and the first time stamp in each of the temporary packets in response to the second detection result to generate a comparison result;
- and
- removing the first time stamps in the temporary packets in response to the comparison result to restore the original packets.
Dependencies are inferred from the claim text.