摘要 |
<P>PROBLEM TO BE SOLVED: To perform AC encoding of a JPEG (Joint Photographic Experts Group) with the fixed number of cycles without depending on data content. <P>SOLUTION: Pieces of data are read from a memory in a reverse order to judge whether or not an AC component is zero (S414), when the AC component is zero, a flag e is stored in the memory (S415) and after non-zero appears first from the tail end side, the AC component is stored in the memory as it is (S416-S419). Next, pieces of the data are fetched from the memory in a right order (S432). When a flag e appears, an EOB (End Of Block) code is immediately generated (S470). When zero appears, after adding "1" to an operator R which monitors the continuous number of zeros (S435), processing returns to S432 to shift the processing to processing of the next data to be processed if the continuous number of zeros is not "16" (S450-NO) and when the continuous number of zeros becomes "16", a ZRL (Zero Run Length) code is immediately generated (S452). When the non-zero (except the flag e) appears, an AC code is immediately generated (S454). <P>COPYRIGHT: (C)2007,JPO&INPIT |