# US 2001/0026585 A1 · Image signal coding apparatus with bit stream buffer of reduced storage capacity

> Agents: this data is available as JSON from the patentgrep API and MCP server — see https://patentgrep.com/llms.txt

- Number: US 2001/0026585 A1
- Document ID: US20010026585A1
- Status: Published application
- Kind: A1
- Application number: 09/784,064
- Filed: 2001-02-16
- Published: 2001-10-04
- Earliest claimed: 2000-03-29
- Assignees: Mitsubishi Denki Kabushiki Kaisha
- Inventors: Satoshi Kumaki
- Web page: https://patentgrep.com/patent/US20010026585A1

## CPC

- H04N 21/44004: {involving video buffer management, e.g. video decoder buffer or video display buffer}
- H04N 19/102: characterised by the element, parameter or selection affected or controlled by the adaptive coding
- H04N 19/115: Selection of the code volume for a coding unit prior to coding
- H04N 19/149: by estimating the code amount by means of a model, e.g. mathematical model or statistical model
- H04N 19/152: by measuring the fullness of the transmission buffer
- H04N 19/176: the region being a block, e.g. a macroblock
- H04N 19/184: the unit being bits, e.g. of the compressed video stream
- H04N 19/46: Embedding additional information in the video signal during the compression process (H04N19/517, H04N19/68, H04N19/70 take precedence)
- H04N 19/61: in combination with predictive coding
- H04N 19/70: characterised by syntax aspects related to video coding, e.g. related to compression standards
- H04N 21/23406: {involving management of server-side video buffer}
- H04N 21/236: Assembling of a multiplex stream, e.g. transport stream, by combining a video stream with other content or additional data, e.g. inserting a URL [Uniform Resource Locator] into a video stream, multiplexing software data into a video stream; Remultiplexing of multiplex streams; Insertion of stuffing bits into the multiplex stream, e.g. to obtain a constant bit-rate; Assembling of a packetised elementary stream {(multiplexing of data packets for data networks, e.g. RTP/UDP H04L65/00)}
- H04N 21/434: Disassembling of a multiplex stream, e.g. demultiplexing audio and video streams, extraction of additional data from a video stream; Remultiplexing of multiplex streams; Extraction or processing of SI; Disassembling of packetised elementary stream {(demultiplexing of data packets for data networks, e.g. RTP/UDP H04L65/00)}
- H04N: PICTORIAL COMMUNICATION, e.g. TELEVISION

## Abstract

The number of stuff bytes to be inserted is calculated using a stuff code inserter in a difference detection circuit, inserted as a stuff code into a bit stream of coded data and stored into a bit stream buffer. The stuff code is detected in a multiplexed bit stream read out from the bit stream buffer, read of a coded bit stream is ceased and stuff bytes indicated by the stuff code are inserted into the coded bit stream. Therefore, stuff bytes generated in great amount can be easily inserted into an output bit stream even with a small data transfer capacity of the bit stream buffer.

## Claims

### Claim 1

An image signal coding apparatus comprising:
bit stream generation circuitry for coding an image signal to generate a bit stream of coded image data;
difference detection circuitry calculating a number of bits of coded image data for each predetermined processing unit section of the bit stream from said bit stream generation circuitry and obtaining a difference between the calculated number of bits and a predetermined reference number of bits;
insertion circuitry generating a difference code indicating the difference detected by said difference detection circuitry and a stuff start code indicating an inserting position of said difference code, and outputting the bit stream to a bit stream memory after inserting the difference code and the stuff code into the processing unit section of the bit stream;
output circuitry extracting said stuff start code and said difference code from the bit stream read out from said bit stream memory and inserting stuff bits by a number indicated by said difference code into a corresponding processing unit section, starting at a position indicated by said stuff start code, to generate and output a multiplexed bit stream;
addition circuitry adding an amount of data bits written in said bit stream memory and an amount of data bits indicated by said difference code; and
subtraction circuitry subtracting an amount of stuff bits inserted by said output circuitry from an output value of said addition circuitry, when the difference code is extracted by said output circuitry, to generate information indicating an amount of virtual storage data of said bit stream memory.

### Claim 2 (depends on 1)

The image signal coding apparatus according to claim 1, wherein said subtraction circuitry further comprises a circuit subtracting amounts of data bits of said difference code and said stuff start code from the output value of said addition circuitry.

### Claim 3 (depends on 1)

The image signal coding apparatus according to claim 1, wherein said stuff start code is a flag linked to said difference code.

### Claim 4

An image signal coding apparatus comprising:
bit stream generation circuitry for coding an image signal to generate a bit stream of coded image data;
difference detection circuitry calculating a number of bits of coded image data for each predetermined processing unit section of the bit stream from said bit stream generation circuitry and obtaining a difference between the calculated number of bits and a predetermined reference number of bits;
insertion circuitry generating a difference code indicating the difference detected by said difference detection circuitry, outputting the coded image data with a flag of a first logic state linked thereto, to a bit stream memory, in a unit of a predetermined number of bits in parallel and outputting said difference code with a flag of a second logic state different from the first logic state linked thereto, to the bit stream memory, in the unit of the predetermined number of bits in parallel; and
output circuitry extracting said difference code according to said flag from the bit stream read out from said bit stream memory and inserting stuff bits by a number indicated by said difference code into a corresponding processing unit section, starting at a position indicated by said flag.

### Claim 5

An image signal coding apparatus comprising:
bit stream generation circuitry for coding an image signal to generate a bit stream of coded image data;
difference detection circuitry calculating a number of bits of said coded image data for each predetermined processing unit section of the bit stream from said bit stream generation circuitry and obtaining a difference between the calculated number of bits and a predetermined reference number of bits;
insertion circuitry generating a difference code indicating the difference detected by said difference detection circuitry and a stuff insert position indicating code indicating an inserting position of the difference code and generating a multiplexed bit stream by inserting said difference code and said stuff insert position indicating code into a corresponding processing unit section of the bit stream to output said multiplexed bit stream;
a bit stream memory for storing a bit stream generated by said insertion means;
output circuitry extracting said stuff insert position indicating code and said difference code from the bit stream read out from said bit stream memory and inserting stuff bits by a number indicated by said difference code into a corresponding processing unit section, starting at a position indicated by said stuff insert position indicating code.

### Claim 6 (depends on 5)

The image signal coding apparatus according to claim 5, further comprising:
an accumulation amount calculation circuit calculating a value relating to an accumulation amount of data in accordance with an amount of data bits written in said bit stream memory, an amount of data bits indicated by said difference code, and an amount of stuff bits inserted by said output circuitry; and
a code amount control circuit adjusting a code amount of the bit stream based on the value calculated by said accumulation amount calculation circuit.

### Claim 7 (depends on 6)

The image signal coding apparatus according to claim 6, further comprising a quantization circuit quantizing data relating to an image in accordance with an quantizing scale adjusted by said code amount control circuit, to generate the image data to be supplied to the bit stream generation circuit.

### Claim 8 (depends on 6)

The image signal coding apparatus according to claim 6, further comprising a quantization circuit quantizing DCT coefficient data to generate the image data to be supplied to the bit stream generation circuit, wherein
said code amount control circuit controls to generate the DCT coefficient data.

### Claim 9 (depends on 6)

The image signal coding apparatus according to claim 6, wherein
said accumulation amount calculation circuit performs an arithmetic operation of the amount of data bits written in said bit stream memory plus the amount of data bits indicated by said difference code minus the amount of stuff bits inserted by said output circuitry.

### Claim 10 (depends on 6)

The image signal coding apparatus according to claim 6, wherein an arithmetic operation of the amount of data bits written in said bit stream memory plus the amount of data bits indicated by said difference code minus a size of the difference code minus a size of the stuff start code minus the amount of stuff bits inserted by said output circuitry.

### Claim 11 (depends on 5)

The image signal coding apparatus according to claim 5, wherein said stuff start code is flags respectively linked to first portions into which the coded image data is grouped and second portions into which the difference code is grouped, said first and second portions each having a same bit size.
