Systems and methods for decoding of partially corrupted reversible variable length code (RVLC) intra-coded macroblocks and partial block decoding of corrupted macroblocks in a video decoder
First Claim
1. A circuit adapted to recover useful data from a video packet that is at least partially corrupted, the circuit comprising:
- a decoding circuit configured to decode a video packet in a forward direction and in a backward direction, where the decoding circuit detects bit locations of errors first encountered in the forward direction and in the backward direction;
a counter adapted to maintain a count of complete macroblocks decoded in the forward direction and in the backward direction; and
a control circuit adapted to discard at least a portion of the video packet that corresponds to an overlapping region, where the control circuit is further configured to further discard additional data corresponding to a backtracking amount when there is no overlapping region, where the control circuit is further configured to discard information in incomplete macroblocks, and where the control circuit is adapted to permit use of at least a portion of the remaining data.
13 Assignments
0 Petitions
Accused Products
Abstract
The invention is related to methods and apparatus that recover usable video data from partially corrupted data. Embodiments inspect corrupted data packets and identify the location or locations of an error, whether the corrupted data packet contains data expected to be error-free, and whether the error-free data should be used. Decoding of a packet in both the forward direction and the backward direction can be used to locate a position of an error. Intra-coded macroblocks can also be recovered. A decoder can elect to use or to drop an intra-coded macroblock recovered from a corrupted data packet according to further criteria that is applied to the recovered intra-coded macroblock. One embodiment inspects video bitstream data that has been encoded with an optional data partitioning feature enabled, and retrieves specified data in areas of a corrupted packet that are expected to be free from error.
50 Citations
21 Claims
-
1. A circuit adapted to recover useful data from a video packet that is at least partially corrupted, the circuit comprising:
-
a decoding circuit configured to decode a video packet in a forward direction and in a backward direction, where the decoding circuit detects bit locations of errors first encountered in the forward direction and in the backward direction;
a counter adapted to maintain a count of complete macroblocks decoded in the forward direction and in the backward direction; and
a control circuit adapted to discard at least a portion of the video packet that corresponds to an overlapping region, where the control circuit is further configured to further discard additional data corresponding to a backtracking amount when there is no overlapping region, where the control circuit is further configured to discard information in incomplete macroblocks, and where the control circuit is adapted to permit use of at least a portion of the remaining data. - View Dependent Claims (2, 3, 4)
-
-
5. A circuit adapted to recover useful data from a video packet that is at least partially corrupted, the circuit comprising:
-
a data parsing circuit adapted to determine whether a video packet is encoded with data partitioning enabled;
an error checking circuit configured to determine whether an error exists ahead of a motion marker of the video packet; and
a decoder coupled to the data parsing circuit and to the error checking circuit, where the decoder is adapted to decode at least a portion of the data in the corrupted video packet ahead of the motion marker when data parsing circuit indicates that the video packet is encoded with data partitioning enabled and when the error checking circuit indicates that the error does not exist ahead of the motion marker. - View Dependent Claims (6)
-
-
7. A circuit adapted to recover useful data from a video packet that is at least partially corrupted, the circuit comprising:
-
means for receiving the video packet;
means for ending without recovering data when corruption is detected in at least one of a video packet header of the video packet, a DC portion of the video packet, and a motion vector portion of the video packet;
means for initiating decoding of the video packet in a forward direction;
means for maintaining a first count of a number of macroblocks decoded without error in the forward direction;
means for storing codewords decoded in the forward direction;
means for storing a first bit location when an error is first detected in the forward direction;
means for initiating decoding of the video packet in a reverse direction;
means for maintaining a second count of a number of macroblocks decoded without error in the reverse direction;
means for storing codewords decoded in the reverse direction;
means for storing a second bit location when an error is first detected in the reverse direction;
means for determining if there is an overlapping region, where the overlapping region corresponds to a region identified in both the forward direction and in the reverse direction as having an error;
means for discarding the data in the overlapping region and for using the data in a remaining portion of the video packet if there is an overlapping region; and
means for discarding the data between a first backtracking amount ahead of the first error location in the forward direction and a second backtracking amount behind the second error location in the first location, and for recovering the remaining portion of the video packet if there is no overlapping region.
-
-
8. A method of recovering useful data from a video packet that has been corrupted, the method comprising:
-
receiving the video packet;
ending without recovering data when corruption is detected in a video packet header of the video packet;
ending without recovering data when corruption is detected in a DC portion of the video packet;
ending without recovering data when corruption is detected in a motion vector portion of the video packet;
initiating decoding of the video packet in a forward direction;
maintaining a first count of a number of macroblocks decoded without error in the forward direction;
storing codewords decoded in the forward direction;
storing a first bit location when an error is first detected in the forward direction;
initiating decoding of the video packet in a reverse direction;
maintaining a second count of a number of macroblocks decoded without error in the reverse direction;
storing codewords decoded in the reverse direction;
storing a second bit location when an error is first detected in the reverse direction;
determining if there is an overlapping region, where the overlapping region corresponds to a region identified in both the forward direction and in the reverse direction as having an error;
if there is an overlapping region, discarding the data in the overlapping region and using the data in a remaining portion of the video packet; and
if there is no overlapping region, discarding the data between a first backtracking amount ahead of the first error location in the forward direction and a second backtracking amount behind the second error location in the first location, and recovering the remaining portion of the video packet. - View Dependent Claims (9, 10, 11, 12, 13, 14, 15, 16, 18, 19, 20, 21)
-
-
17. A method for recovering data in a corrupted video packet comprising:
-
inspecting the video packet to determine whether the video packet was encoded with data partitioning enabled;
determining whether an error exists ahead of a motion marker of the video packet; and
decoding at least a portion of the data in the corrupted video packet ahead of the motion marker when the video packet was encoded with data partitioning enabled and when the error does not exist ahead of the motion marker.
-
Specification