摘要 |
PURPOSE: A method for recording data in a digital recorder is provided to temporarily stop an encoding process of an MPEG encoder if an overflow occurs in an FPGA buffer or a data recording process exceeds a reference data capacity, thereby preventing the overflow from occurring in an encoder buffer. CONSTITUTION: A system reads an MPEG data stream, and records the data stream in a hard disk(S10). An FPGA chip continuously monitors whether a data overflow occurs in an FPGA buffer(S11). If so(S12), the FPGA chip generates an interrupt to transmit the interrupt to a host CPU(S13). The host CPU outputs a command or a control signal, so that an MPEG encoder can temporarily stop an encoding process(S14). If a data storage capacity is reduced within the FPGA buffer(S16), the FPGA chip generates an interrupt to transmit the interrupt to the host CPU(S17). The host CPU outputs a command or a control signal such that the MPEG encoder can reopen the encoding process(S18). If a data recording completion is requested(S19), the host CPU completes a data recording process.
|