# US 2018/0018999 A1 · Video processing system using ring buffer and racing-mode ring buffer access control scheme

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

- Number: US 2018/0018999 A1
- Document ID: US20180018999A1
- Status: Published application
- Kind: A1
- Application number: 15/646,095
- Filed: 2017-07-11
- Published: 2018-01-18
- Earliest claimed: 2016-07-12
- Assignees: Mediatek Inc.
- Applicants: Mediatek Inc.
- Inventors: Ming-Long Wu; Chia-Yun Cheng; Yung-Chang Chang
- Web page: https://patentgrep.com/patent/US20180018999A1

## CPC

- G11B 20/10527: {Audio or video recording; Data buffering arrangements (G11B20/12 - G11B20/18 take precedence)}
- G09G 5/393: Arrangements for updating the contents of the bit-mapped memory
- H04N 19/423: characterised by memory arrangements (H04N19/433 takes precedence)
- H04N 21/4341: {Demultiplexing of audio and video streams}
- H04N 21/4343: {Extraction or processing of packetized elementary streams [PES]}
- H04N 21/435: Processing of additional data, e.g. decrypting of additional data, reconstructing software from modules extracted from the transport stream
- H04N 21/43635: {HDMI}
- H04N 21/43637: {involving a wireless protocol, e.g. Bluetooth®, RF or wireless LAN [IEEE 802.11] (arrangements for wireless networking or broadcasting of information in indoor or near-field type systems H04B10/114)}
- H04N 21/44004: {involving video buffer management, e.g. video decoder buffer or video display buffer}
- G09G 2360/127: Updating a frame memory using a transfer of data from a source area to a destination area
- G11B 2020/10666: {Ring buffers, e.g. buffers wherein an iteratively progressing read or write pointer moves back to the beginning of the buffer when reaching the last storage cell}
- G11B 2020/1074: {involving a specific threshold value}
- G11B 2020/10768: {by pre-caching the initial portion of songs or other recorded or downloaded data for starting playback instantly}
- G11B 2020/10787: {parameters, e.g. for decoding or encoding}
- G11B 2020/10796: {address data}
- G11B: INFORMATION STORAGE BASED ON RELATIVE MOVEMENT BETWEEN RECORD CARRIER AND TRANSDUCER (recording measured values in a way that does not require playback through a transducer G01D9/00; recording or playback apparatus using mechanically marked tape, e.g. punched paper tape, or using unit records, e.g. punched or magnetically marked cards G06K; transferring data from one type of record carrier to another G06K1/18; circuits for coupling output of reproducer to radio receiver H04B1/20; gramophone pick-ups or like acoustic electromechanical transducers or circuits therefor H04R)
- G09G: ARRANGEMENTS OR CIRCUITS FOR CONTROL OF INDICATING DEVICES USING STATIC MEANS TO PRESENT VARIABLE INFORMATION (arrangements for transferring data between digital computers and displays G06F3/14; static indicating arrangements comprising an association of a number of separate sources or light control cells G09F9/00; static indicating arrangements comprising integral associations of a number of light sources H01J, H01K, H10H, H05B33/12; scanning, transmission or reproduction of documents or the like, e.g. facsimile transmission, details thereof H04N1/00)
- H04N: PICTORIAL COMMUNICATION, e.g. TELEVISION

## Abstract

A video processing system has a storage device, an audio/video demultiplexing circuit, and a video decoder. The storage device has a bitstream buffer that is a ring buffer. The audio/video demultiplexing circuit receives an input data, and performs an audio/video demultiplexing operation upon the input data to write data of a video bitstream into the ring buffer. The video decoder fetches data of the video bitstream from the ring buffer, and performs a video decoding operation upon the fetched data of the video bitstream.

## Claims

### Claim 1

A video processing system comprising:
a storage device, comprising:
a bitstream buffer, wherein the bitstream buffer is a ring buffer;
an audio/video demultiplexing circuit, arranged to receive an input data, and perform an audio/video demultiplexing operation upon the input data to write data of a video bitstream into the ring buffer; and
a video decoder, arranged to fetch data of the video bitstream from the ring buffer, and perform a video decoding operation upon the fetched data of the video bitstream.

### Claim 2 (depends on 1)

The video processing system of claim 1, wherein the audio/video demultiplexing circuit is further arranged to update a write pointer to the video decoder, where the write pointer is indicative of a current write address of writing data of the video bitstream into the ring buffer by the audio/video demultiplexing circuit; and the video decoder comprises:
a read controller, arranged to compare the write pointer with a read pointer, and stop fetching data of the video bitstream from the ring buffer when the read pointer catches up the write pointer, where the read pointer is indicative of a current read address of fetching data of the video bitstream from the ring buffer by the video decoder.

### Claim 3 (depends on 2)

The video processing system of claim 2, wherein the read controller does not resume fetching data of the video bitstream from the ring buffer until the audio/video demultiplexing circuit updates the write pointer to a new value.

### Claim 4 (depends on 1)

The video processing system of claim 1, wherein the video decoder is further arranged to update a read pointer to the audio/video demultiplexing circuit, where the read pointer is indicative of a current read address of fetching data of the video bitstream from the ring buffer by the video decoder; and the audio/video demultiplexing circuit comprises:
a write controller, arranged to compare the read pointer with a write pointer, and stop writing data of the video bitstream into the ring buffer when a distance between the write pointer and the read pointer reaches a threshold, where the write pointer is indicative of a current write address of writing data of the video bitstream into the ring buffer by the audio/video demultiplexing circuit.

### Claim 5 (depends on 4)

The video processing system of claim 4, wherein the write controller stops writing data of the video bitstream into the ring buffer when the write pointer lags behind the read pointer by the threshold that is equal to a unit increment of the write pointer.

### Claim 6 (depends on 4)

The video processing system of claim 4, wherein the write controller does not resume writing data of the video bitstream into the ring buffer until the video decoder updates the read pointer to a new value.

### Claim 7

A video processing system comprising:
a storage device, comprising:
a display buffer, wherein the display buffer is a ring buffer;
a video decoder, arranged to perform a video decoding operation upon data of a video bitstream to write pixel data of a reconstructed video frame into the ring buffer; and
a display engine, arranged to fetch pixel data of the reconstructed video frame from the ring buffer, and drive a display device according to the fetched pixel data of the reconstructed video frame.

### Claim 8 (depends on 7)

The video processing system of claim 7, wherein the video decoder comprises a first counter arranged to maintain a first count value indicative of a number of pixel lines that are reconstructed by the video decoder; the display engine comprises a second counter arranged to maintain a second count value indicative of a number of pixel lines that are displayed on the display device through the display engine; and the video processing system further comprises:
a display control circuit, arranged to receive the first count value from the video decoder, receive the second count value from the display engine, and refer to the first count value and the second first count value to control the display engine.

### Claim 9 (depends on 8)

The video processing system of claim 8, wherein the display control circuit is further arranged to compare the first count value with the second count value, and instruct the video decoder to stop writing pixel data of the reconstructed video frame into the ring buffer when a distance between the first count value and the second count value reaches a threshold.

### Claim 10 (depends on 9)

The video processing system of claim 9, wherein the display control circuit does not instruct the video decoder to resume writing pixel data of the reconstructed video frame into the ring buffer until the second count value is updated to a new value.

### Claim 11

A video processing system comprising:
a storage device, comprising:
a data buffer, wherein the data buffer is a ring buffer;
a receiving circuit, arranged to receive packets and unpack the packets to write payload data of the packets into the ring buffer; and
an audio/video demultiplexing circuit, arranged to fetch an input data from the ring buffer, and perform an audio/video demultiplexing operation upon the fetched input data, wherein the fetched input data comprise payload data of at least one of the packets.

### Claim 12 (depends on 11)

The video processing system of claim 11, wherein the receiving circuit is further arranged to update a write pointer to the audio/video demultiplexing circuit, where the write pointer is indicative of a current write address of writing payload data into the ring buffer by the receiving circuit; and the audio/video demultiplexing circuit comprises:
a read controller, arranged to compare the write pointer with a read pointer, and stop fetching payload data from the ring buffer when the read pointer catches up the write pointer, where the read pointer is indicative of a current read address of fetching payload data from the ring buffer by the audio/video demultiplexing circuit.

### Claim 13 (depends on 12)

The video processing system of claim 12, wherein the read controller does not resume fetching payload data from the ring buffer until the receiving circuit updates the write pointer to a new value.

### Claim 14 (depends on 11)

The video processing system of claim 11, wherein the audio/video demultiplexing circuit is further arranged to update a read pointer to the receiving circuit, where the read pointer is indicative of a current read address of fetching payload data from the ring buffer by the audio/video demultiplexing circuit; and the receiving circuit comprises:
a write controller, arranged to compare the read pointer with a write pointer, and stop writing payload data into the ring buffer when a distance between the write pointer and the read pointer reaches a threshold, where the write pointer is indicative of a current write address of writing payload data into the ring buffer by the receiving circuit.

### Claim 15 (depends on 14)

The video processing system of claim 14, wherein the write controller stops writing payload data into the ring buffer when the write pointer lags behind the read pointer by the threshold that is equal to a unit increment of the write pointer.

### Claim 16 (depends on 14)

The video processing system of claim 14, wherein the write controller does not resume writing payload data into the ring buffer until the audio/video demultiplexing circuit updates the read pointer to a new value.

### Claim 17 (depends on 11)

The video processing system of claim 11, wherein the receiving circuit receives the packets transmitted via a wireless communication link.

### Claim 18 (depends on 17)

The video processing system of claim 17, wherein the receiving circuit is a Wireless Fidelity (WiFi) receiver.

### Claim 19 (depends on 11)

The video processing system of claim 11, wherein the receiving circuit receives the packets transmitted via a wired communication link.

### Claim 20 (depends on 19)

The video processing system of claim 19, wherein the receiving circuit is a Universal Serial Bus (USB) receiver or a High-Definition Multimedia Interface (HDMI) receiver.
