# US 9,357,233 B2 · Video decoder error handling

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

- Number: US 9,357,233 B2
- Document ID: US9357233B2
- Status: Granted
- Kind: B2
- Application number: 12/170,991
- Filed: 2008-07-10
- Published: 2009-08-27
- Granted: 2016-05-31
- Earliest claimed: 2008-02-26
- Assignees: QUALCOMM Incorporated
- Applicants: Yen-Chi Lee; Min Dai; Chia-Yuan Teng
- Inventors: Yen-Chi Lee; Min Dai; Chia-Yuan Teng
- Web page: https://patentgrep.com/patent/US9357233B2

## CPC

- H04N 19/68: involving the insertion of resynchronisation markers into the bitstream
- H04N 19/105: Selection of the reference unit for prediction within a chosen coding or prediction mode, e.g. adaptive choice of position and number of pixels used for prediction
- H04N 19/134: characterised by the element, parameter or criterion affecting or controlling the adaptive coding
- H04N 19/174: the region being a slice, e.g. a line of blocks or a group of blocks
- H04N 19/46: Embedding additional information in the video signal during the compression process (H04N19/517, H04N19/68, H04N19/70 take precedence)
- H04N 19/573: Motion compensation with multiple frame prediction using two or more reference frames in a given prediction direction
- 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 19/895: in combination with error concealment
- H04N: PICTORIAL COMMUNICATION, e.g. TELEVISION

## Abstract

A video decoder performs a sequential error handling process to detect and conceal errors within a corrupted data segment of video data units. The decoder sequentially decodes a current data unit. Upon detecting an error, the decoder sets an error flag and resynchronizes decoding at the start of the next unit. If the error flag is set, the video decoder identifies the end of the corrupted data segment based on the start of the later unit. The decoder conceals data between the start of the current unit and the end of the corrupted data segment. If the error flag is not set, the decoder may decode the remainder of the current unit and proceed to decode the next available unit without performing error handling and concealment for the current unit. The decoder also may address reference unit mismatches caused by lost video data units.

## Claims

### Claim 1

A video decoding method comprising:
determining a start of a current unit of encoded video data;
decoding at least a portion of the current unit without determining a start of a next available unit of the encoded video data;
detecting a decoding error in the current unit;
when the decoding error is detected, determining the start of the next available unit of the encoded video data;
determining an end of a corrupted data segment based on the start of the next available unit, wherein the current unit is a current slice of a first frame, and the corrupted data segment includes the current slice and at least one additional slice of encoded video data from a second frame; and
concealing the corrupted data segment based on the start of the current unit and the end of the corrupted data segment.

### Claim 2 (depends on 1)

The method of claim 1, wherein each of the current unit and the next available unit includes a video data slice.

### Claim 3 (depends on 1)

The method of claim 1, further comprising:
if the decoding error is detected, setting an error flag to indicate the detection of the decoding error; and
determining the end of the corrupted data segment based on the start of the next available unit when the error flag is set.

### Claim 4 (depends on 3)

The method of claim 3, wherein the next available unit comprises at least one slice, the method further comprising seeking a slice header associated with the slice when the decoding error is detected.

### Claim 5 (depends on 3)

The method of claim 3, further comprising, if the decoding error is detected, stopping decoding of the current unit, and proceeding to decode the next available unit.

### Claim 6 (depends on 1)

The method of claim 1, further comprising, if the decoding error is not detected, decoding the entire first unit.

### Claim 7 (depends on 1)

The method of claim 1, wherein the decoding error comprises at least one of a syntax error, semantic error, or entropy coding error.

### Claim 8 (depends on 1)

The method of claim 1, wherein determining a start of the current unit comprises determining a first macroblock (MB) number associated with the start of the current unit, determining an end of the corrupted data segment comprises determining a second MB number prior to a start of the second unit, and concealing comprises concealing the corrupted data segment from the first MB number to the second MB number.

### Claim 9 (depends on 8)

The method of claim 8, wherein determining a start of the second unit comprises determining a third MB number associated with the start of the second unit, and wherein determining the second MB number comprises subtracting one from the third MB number to produce the second MB number.

### Claim 10 (depends on 8)

The method of claim 8, wherein determining a start of the first unit comprises determining a first macroblock (MB) number and a first frame number associated with the start of the first unit, determining an end of the corrupted data segment comprises determining a second MB number and a second frame number associated with the end of the corrupted data segment, and concealing comprises concealing at least a portion of the corrupted data segment based on the first and second MB numbers and the first and second frame numbers, wherein the first and second frame numbers are different.

### Claim 11 (depends on 1)

The method of claim 1, further comprising:
detecting a loss of one or more frames; and
replacing the one or more lost frames to conceal a reference frame mismatch for another frame.

### Claim 12

A video decoding device comprising:
means for determining a start of a current unit of encoded video data;
means for decoding at least a portion of the current unit without detecting a start of a next available unit of the encoded video data;
means for detecting a decoding error in the current unit;
means for determining, when the decoding error is detected, the start of the next available unit of the encoded video data;
means for determining, an end of a corrupted data segment based on the start of the next available unit, wherein the current unit is a current slice of a first frame, and the corrupted data segment includes the current slice and at least one additional slice of encoded video data from a second frame; and
means for concealing the corrupted data segment based on the start of the current unit and the end of the corrupted data segment.

### Claim 13 (depends on 12)

The device of claim 12, wherein each of the current unit and the next available unit includes a video data slice.

### Claim 14 (depends on 12)

The device of claim 12, further comprising:
means for setting, if the decoding error is detected, an error flag to indicate the detection of the decoding error; and
means for determining the end of the corrupted data segment based on the start of the next available unit when the error flag is set.

### Claim 15 (depends on 14)

The device of claim 14, wherein the next available unit comprises at least one slice, the device further comprising means for seeking a slice header associated with the slice when the decoding error is detected.

### Claim 16 (depends on 14)

The device of claim 14, further comprising means for, if the decoding error is detected, stopping decoding of the current unit, and proceeding to decode the next available unit.

### Claim 17 (depends on 12)

The device of claim 12, further comprising means for decoding, if the decoding error is not detected, the entire first unit.

### Claim 18 (depends on 12)

The device of claim 12, wherein the decoding error comprises at least one of a syntax error, semantic error, or entropy coding error.

### Claim 19 (depends on 12)

The device of claim 12, wherein the means for determining a start of the current unit comprises means for determining a first macroblock (MB) number associated with the start of the current unit, the means for determining an end of the corrupted data segment comprises means for determining a second MB number prior to a start of the second unit, and the means for concealing comprises means for concealing the corrupted data segment from the first MB number to the second MB number.

### Claim 20 (depends on 19)

The device of claim 19, wherein the means for determining a start of the second unit comprises means for determining a third MB number associated with the start of the second unit, and wherein the means for determining the second MB number comprises means for subtracting one from the third MB number to produce the second MB number.

### Claim 21 (depends on 19)

The device of claim 19, wherein the means for determining a start of the first unit comprises means for determining a first macroblock (MB) number and a first frame number associated with the start of the first unit, the means for determining an end of the corrupted data segment comprises means for determining a second MB number and a second frame number associated with the end of the corrupted data segment, and the means for concealing comprises means for concealing at least a portion of the corrupted data segment based on the first and second MB numbers and the first and second frame numbers, wherein the first and second frame numbers are different.

### Claim 22 (depends on 12)

The device of claim 12, further comprising:
means for detecting a loss of one or more frames; and
means for replacing the one or more lost frames to conceal a reference frame mismatch for another frame.

### Claim 23

A video decoding device comprising:
a decoding engine that decodes at least a portion of a current unit of encoded video data before a start of a next available unit of the encoded video data is determined;
an error detection module that detects a decoding error in the current unit;
an error mapping module that determines a start of the current unit, determines, when the decoding error is detected, the start of the next available unit of the encoded video data and, determines an end of a corrupted data segment based on the start of the next available unit, wherein the current unit is a current slice of a first frame, and the corrupted data segment includes the current slice and at least one additional slice of encoded video data from a second frame; and
an error concealment module that conceals the corrupted data segment based on the start of the current unit and the end of the corrupted data segment.

### Claim 24 (depends on 23)

The device of claim 23, wherein each of the current unit and the next available unit includes a video data slice.

### Claim 25 (depends on 23)

The device of claim 23, wherein the error detection module sets an error flag to indicate the detection of the decoding error, and the error mapping module determines the end of the corrupted data segment based on the start of the next available unit when the error flag is set.

### Claim 26 (depends on 25)

The device of claim 25, wherein the next available unit comprises at least one slice, and the decoding engine seeks a slice header associated with the slice when the decoding error is detected.

### Claim 27 (depends on 25)

The device of claim 25, wherein, if the decoding error is detected, the decoding engine stops decoding of the current unit, and proceeds to decode the next available unit.

### Claim 28 (depends on 23)

The device of claim 23, wherein the decoding engine decodes the entire first unit if the decoding error is not detected.

### Claim 29 (depends on 23)

The device of claim 23, wherein the decoding error comprises at least one of a syntax error, semantic error, or entropy coding error.

### Claim 30 (depends on 23)

The device of claim 23, wherein the error mapping module determines a first macroblock (MB) number associated with the start of the current unit, and determines a second MB number prior to a start of the second unit, and the error concealment module conceals the corrupted data segment from the first MB number to the second MB number.

### Claim 31 (depends on 30)

The device of claim 30, wherein the error mapping module determines a third MB number associated with the start of the second unit, and determining the second MB number by subtracting one from the third MB number to produce the second MB number.

### Claim 32 (depends on 30)

The device of claim 30, wherein the error mapping module determines a first macroblock (MB) number and a first frame number associated with the start of the first unit, and determines a second MB number and a second frame number associated with the end of the corrupted data segment, and the error concealment module conceals at least a portion of the corrupted data segment based on the first and second MB numbers and the first and second frame numbers, wherein the first and second frame numbers are different.

### Claim 33 (depends on 23)

The device of claim 23, wherein the error concealment module detects a loss of one or more frames, and replaces the one or more lost frames to conceal a reference frame mismatch for another frame.

### Claim 34 (depends on 23)

The device of claim 23, wherein the device comprises a wireless communication device handset.

### Claim 35 (depends on 23)

The device of claim 23, wherein the device comprises an integrated circuit device.

### Claim 36

A non-transitory computer-readable medium comprising instructions to cause one or more processors to:
determine a start of a current unit of encoded video data;
decode at least a portion of the current unit without determining an end of a next available unit of the encoded video data;
detect a decoding error in the current unit;
when the decoding error is detected, determine the start of the next available unit of the encoded video data;
determine an end of a corrupted data segment based on the start of the next available unit, wherein the current unit is a current slice of a first frame, and the corrupted data segment includes the current slice and at least one additional slice of encoded video data from a second frame; and
conceal the corrupted data segment based on the start of the current unit and the end of the corrupted data segment.

### Claim 37 (depends on 36)

The non-transitory computer-readable medium of claim 36, wherein each of the current unit and the next available unit includes a video data slice.

### Claim 38 (depends on 36)

The non-transitory computer-readable medium of claim 36, further comprising instructions to cause the one or more processors:
set an error flag to indicate the detection of the decoding error if the decoding error is detected; and
determine the end of the corrupted data segment based on the start of the next available unit when the error flag is set.

### Claim 39 (depends on 38)

The non-transitory computer-readable medium of claim 38, wherein the next available unit comprises at least one slice, and the instructions cause the one or more processors to seek a slice header associated with the slice when the decoding error is detected.

### Claim 40 (depends on 38)

The non-transitory computer-readable medium of claim 38, further comprising instructions to cause the one or more processors to, if the decoding error is detected, stop decoding of the current unit, and proceed to decode the next available unit.

### Claim 41 (depends on 36)

The non-transitory computer-readable medium of claim 36, wherein the instructions cause the one or more processors to decode the entire first unit if the decoding error is not detected.

### Claim 42 (depends on 36)

The non-transitory computer-readable medium of claim 36, wherein the decoding error comprises at least one of a syntax error, semantic error, or entropy coding error.

### Claim 43 (depends on 36)

The non-transitory computer-readable medium of claim 36, wherein the instructions cause the one or more processors to determine a first macroblock (MB) number associated with the start of the current unit, determine a second MB number prior to a start of the second unit, and conceal the corrupted data segment from the first MB number to the second MB number.

### Claim 44

The non-transitory computer-readable medium of 43, wherein the instructions cause the one or more processors to determine a third MB number associated with the start of the second unit, and subtract one from the third MB number to produce the second MB number.

### Claim 45 (depends on 43)

The non-transitory computer-readable medium of claim 43, wherein the instructions cause the one or more processors to determine a first macroblock (MB) number and a first frame number associated with the start of the first unit, determine a second MB number and a second frame number associated with the end of the corrupted data segment, and conceal at least a portion of the corrupted data segment based on the first and second MB numbers and the first and second frame numbers, wherein the first and second frame numbers are different.

### Claim 46 (depends on 36)

The non- transitory _computer-readable medium of claim 36, wherein the instructions cause the one or more processors to:
detect a loss of one or more frames; and
replace the one or more lost frames to conceal a reference frame mismatch for another frame.

### Claim 47

An apparatus comprising:
a processor configured to determine a start of a current unit of encoded video data, decode at least a portion of the current unit without determining an end of a next available unit of the encoded video data, detect a decoding error in the current unit, when the decoding error is detected, determine the start of the next available unit of the encoded video data, determine an end of a corrupted data segment based on the start of the next available unit, wherein the current unit is a current slice of a first frame, and the corrupted data segment includes the current slice and at least one additional slice of encoded video data from a second frame, and conceal the corrupted data segment based on the start of the current unit and the end of the corrupted data segment.
