Method and system for estimating objective quality of compressed video data
First Claim
1. A method for evaluating the quality of encoded video data, the method comprising the steps of:
- decoding at least a substantial portion of said encoded video data to produce decompressed video data including a plurality of blocks;
performing a discrete cosine transform (DCT) on said decompressed video data to produce a set of DCT coefficients for at least one AC frequency band;
simultaneously, extracting quantization matrix data for the at least one AC frequency band and extracting a quantizer scale for each block of said decompressed video data;
estimating a variance of said DCT coefficients;
determining an average quantization error for each set of said DCT coefficients based on said variance, said quantization matrix, and said quantizer scale; and
, calculating a peak signal to noise ratio (PSNR) based on said average quantization error.
5 Assignments
0 Petitions
Accused Products
Abstract
The present invention relates to a method and system for evaluating the quality of encoded video data without gaining access to the source data or the compressed video bitstream. The system is configured to decode compressed video data using an MPEG decoder to produce decompressed video data. The decoded data is analyzed to determine whether the decompressed video data is intra-coded. If so, a discrete cosine transform (DCT) is performed to produce a set of DCT coefficients for at least one AC frequency band in the decompressed video data. At the same time, quantization matrix data of a frame of the decompressed video data as well as a quantizer scale for each block of the decompressed video data are extracted. Thereafter, the variance of the converted DCT coefficients is obtained, and then an average quantization error for each set of said DCT coefficients is determined based on the variance, the quantization matrix, and the quantizer scale. Lastly, a peak signal to noise ratio (PSNR) is calculated based on the resultant average quantization error.
105 Citations
27 Claims
-
1. A method for evaluating the quality of encoded video data, the method comprising the steps of:
-
decoding at least a substantial portion of said encoded video data to produce decompressed video data including a plurality of blocks;
performing a discrete cosine transform (DCT) on said decompressed video data to produce a set of DCT coefficients for at least one AC frequency band;
simultaneously, extracting quantization matrix data for the at least one AC frequency band and extracting a quantizer scale for each block of said decompressed video data;
estimating a variance of said DCT coefficients;
determining an average quantization error for each set of said DCT coefficients based on said variance, said quantization matrix, and said quantizer scale; and
,calculating a peak signal to noise ratio (PSNR) based on said average quantization error. - View Dependent Claims (2, 3, 4, 5, 6, 7)
where Ci, j represents the (i, j)th AC coefficient in the current block, {overscore (C)}i, j represents the normalized AC coefficient, and Wi, j represents the (i, j)th quantization matrix.
-
-
3. The method of claim 2, wherein the variance of the coefficients (λ
-
2ij) is determined by the following equation;
where Cbij represents the (i, j)th AC coefficient in each block (b), and N represents the total number of blocks.
-
2ij) is determined by the following equation;
-
4. The method of claim 3, wherein the average quantization error (D) is computed as follows:
-
and Di, j=2λ
2i, j,where λ
2ij represents the variance of the coefficients (λ
2ij), and Di, j represents the quantization error for the (i, j)th AC coefficient in each block.
-
-
5. The method of claim 4, wherein said PSNR is calculated as follows:
-
where D represents an average quantization error.
-
-
6. The method of claim 1, wherein said quantization matrix and said quantizer scale correspond substantially to coding parameters used in a coding operation that was previously performed on said encoded video data.
-
7. The method of claim 1, wherein said quantization matrix and said quantizer scale correspond substantially to coding parameters used in a coding operation that was previously performed on said encoded video data.
-
8. A method for evaluating the quality of encoded video data, the method comprising the steps of:
-
at least partially decompressing said encoded video data in an MPEG decoder and outputting a decompressed video data including a plurality of blocks;
detecting an intra-coded picture in each block of said decompressed video data;
if detected, performing a discrete cosine transform (DCT) on said decompressed video data to produce a set of DCT coefficients for at least one AC frequency band;
extracting quantization matrix data for the at least one AC frequency band;
extracting a quantizer scale for each block of said decompressed video data;
estimating a variance of said DCT coefficients;
determining an average quantization error for each set of said DCT coefficients; and
,calculating a peak signal to noise ratio (PSNR) based on said average quantization error. - View Dependent Claims (9, 10, 11, 12, 13)
performing a DC computation operation to recover the intra-dc-precision level from said decompressed video data; and
,if said intra-dc-precision level is less than a predefined threshold, classifying said decoded video data as an intra-coded picture.
-
-
10. The method of claim 8, wherein said quantizer step size is calculated by averaging the AC coefficients in each of said decompressed video data as follows:
-
where Ci, j represents the (i, j)th AC coefficient in the current block, {overscore (C)}i, j represents the normalized AC coefficient, and Wi, j represents the (i, j)th quantization matrix.
-
-
11. The method of claim 10, wherein the variance of the coefficients (λ
-
2ij) is determined by the following equation;
where Cbij represents the (i, j)th AC coefficient in each block (b), and N represents the total number of blocks.
-
2ij) is determined by the following equation;
-
12. The method of claim 11, wherein the average quantization error (D) is computed as follows:
-
and Di, j=2λ
2i, j,where λ
2ij represents the variance of the coefficients (λ
2ij), and Di, j represents the quantization error for the (i, j)th AC coefficient in each block.
-
-
13. The method of claim 12, wherein said PSNR is calculated as follows:
-
where D represents an average quantization error.
-
-
14. An apparatus for evaluating the quality of encoded video data comprising:
-
a decoder for decoding at least a substantial portion of said encoded video data to produce decoded video data including a plurality of blocks;
a discrete cosine transform (DCT) configured to transform said decompressed video data into a set of DCT coefficients for at least one AC frequency band;
an extractor for extracting quantization matrix data for the at least one AC frequency band and for extracting a quantizer scale for each block of said decompressed video data;
a collector for estimating a variance of said DCT coefficients;
a first calculator for determining an average quantization error for each set of said DCT coefficients based on said variance, said quantization matrix, and said quantizer scale; and
,a second calculator for determining a peak signal to noise ratio (PSNR) based on said average quantization error. - View Dependent Claims (15, 16, 17, 18, 19, 20, 21)
means for performing a DC computation operation to recover an intra-dc-precision level from said decompressed video data; and
,means for classifying said decoded video data as an intra-coded picture when said intra-dc-precision level is less than a predefined threshold.
-
-
17. The apparatus of claim 14, wherein said quantization matrix and said quantizer scale correspond substantially to coding parameters used in a coding operation that was previously performed on said encoded video data.
-
18. The apparatus of claim 14, wherein said quantizer step size is calculated by averaging the AC coefficients in each of said decompressed video data as follows:
-
where Ci, j represents the (i, j)th AC coefficient in current block, {overscore (C)}i, j represents the normalized AC coefficient, and Wi, j represents the (i, j)th quantization matrix.
-
-
19. The apparatus of claim 18, wherein the variance of the coefficients (λ
-
2ij) is determined by the following equation;
where Cbij represents the (i, j)th AC coefficient in each block (b), and N represents the total number of blocks.
-
2ij) is determined by the following equation;
-
20. The apparatus of claim 19, wherein the average quantization error (D) is computed as follows:
-
and Di, j=2λ
2i, j,where λ
2ij represents the variance of the coefficients (λ
2ij), and Di, j represents the quantization error for the (i, j)th AC coefficient in each block.
-
-
21. The apparatus of claim 20, wherein said PSNR is calculated as follows:
-
where D represents an average quantization error.
-
-
22. An apparatus for evaluating the quality of encoded video data comprising:
-
a decoder configured to decode compressed variable-length Huffman codes and for producing therefrom decoded data, and for extracting quantization matrix data and a quantizer scale for each block of said decoded video data;
an inverse quantizer configured to perform inverse-quantizing of the decoded data output from said decoder to produce a set of DCT coefficients;
an inverse DCT configured to transform values of pixels in blocks of signals output from said inverse quantizer to dequantize decoded data including difference data;
a motion compensation and adder for receiving reference data within the encoded video data and said difference data from said inverse DCT to form motion-compensated pictures therefrom;
a collector coupled to the output of said inverse quantizer for estimating a variance of said DCT coefficients;
a first calculator for determining an average quantization error for each set of said DCT coefficients based on said variance, said quantization matrix, and said quantizer scale; and
,a second calculator for determining a peak signal to noise ratio (PSNR) based on said average quantization error. - View Dependent Claims (23, 24)
-
-
25. A system for evaluating the quality of encoded video data comprising:
-
a memory for storing a computer-readable code; and
,a processor operatively coupled to said memory, said processor configured to;
decompress said encoded video data to produce a decompressed video data including a plurality of blocks;
detect an intra-coded picture in each block of said decompressed video data;
if detected, perform a discrete cosine transform (DCT) on said decompressed video data to produce a set of DCT coefficients for at least one AC frequency band;
extract quantization matrix data for the at least one AC frequency band;
extract a quantizer scale for each block of said decompressed video data;
estimate a variance of said DCT coefficients;
determine an average quantization error for each set of said DCT coefficients; and
,calculate a peak signal to noise ratio (PSNR) based on said average quantization error. - View Dependent Claims (26, 27)
performing a DC computation operation to recover an intra-dc-precision level from said decompressed video data; and
,classifying said decoded video data as an intra-coded picture when said intra-dc-precision level is less than a predefined threshold.
-
-
27. The apparatus of claim 25, wherein said quantization matrix and said quantizer scale correspond substantially to coding parameters used in a coding operation that was previously performed on said encoded video data.
Specification