Detection and proper scaling of interlaced moving areas in MPEG-2 compressed video
AssigneeKoninklijke Philips Electronics N.V.
InventorsZhun Zhong, Tse-hua Lan, Yingwei Chen
Life of this patent
Estimating the term…
Abstract
The present invention provides a method of and system for determining whether a local area of a compressed video stream represented by a plurality of DCT encoded blocks subject to decoding and filtering/scaling is a stationary area or an interlaced moving area. Further, given such information, the invention relates to dynamically switching between frame- or field-based operations in a smart way, thus optimizing the output picture quality. Also, a DCT-domain-filtering scheme for field-based filtering/scaling of frame-DCT data is provided herein.
Claims14
A method of processing a compressed video stream, in which said compressed video stream is represented by a plurality of discrete cosine transform (“DCT”) encoded blocks, said method comprising:
- when a DCT encoded block of said compressed video stream is a field-based DCT encoded block, determining that field-based decoding and filtering/scaling methods are to be used to process said DCT encoded block;
- or
- when a DCT encoded block of said compressed video stream is a frame-based DCT encoded block, obtaining a first absolute value which represents the energy of vertical high frequency of said DCT encoded block of said compressed video stream;
- and
- comparing said first absolute value to a predetermined first reference value;
- and
- (a) when said first absolute value is less than or equal to said predetermined first reference value, determining that frame-based decoding and filtering/scaling methods are to be used to process said DCT encoded block;
- or
- (b) when said first absolute value is greater than said predetermined first reference value, obtaining a second absolute value which represents the energy of vertical mid frequency of said DCT encoded block of said compressed video stream;
- and
- conducting a second comparison in which said second absolute value which represents the energy of vertical mid frequency is compared to a second predetermined reference value;
- and
- (i) when said second absolute value which represents the energy of vertical mid frequency is less than said second predetermined reference value, determining that frame-based decoding and field-based and filtering/scaling methods are to be used to process said DCT encoded block;
- or
- (ii) when said second absolute value which represents the energy of vertical mid frequency is greater than or equal to said second predetermined reference value, determining that frame-based decoding and filtering/scaling methods are to be used to process said DCT encoded block.
A method of detecting whether an area of a compressed video stream is an interlaced moving area, in which said area of a compressed video stream is represented by a plurality of frame DCT encoded blocks, said method comprising:
- obtaining a DCT encoded block of said compressed video stream;
- and
- obtaining a first absolute value which represents the energy of vertical high frequency of said DCT encoded block of said compressed video stream;
- and
- comparing said first absolute value to a predetermined first reference value;
- and
- (a) when said first absolute value is less than or equal to said predetermined first reference value, determining that the area of said compressed video stream represented by said DCT encoded block is not an interlaced moving area;
- or
- (b) when said first absolute value is greater than said predetermined first reference value, obtaining a second absolute value which represents the energy of vertical mid frequency of said DCT encoded block of said compressed video stream;
- and
- conducting a second comparison in which said second absolute value which represents the energy of vertical mid frequency is compared to a second predetermined reference value;
- and
- (i) when said second absolute value which represents the energy of vertical mid frequency is less than said second predetermined reference value, determining that the area of said compressed video stream represented by said DCT encoded block is an interlaced moving area;
- or
- (ii) when said second absolute value which represents the energy of vertical mid frequency is greater than or equal to said second predetermined reference value, determining that the area of said compressed video stream represented by said DCT encoded block is not an interlaced moving area.
A system for processing a compressed video stream, in which said video stream is represented by a plurality of DCT encoded blocks, said system comprising:
- a video signal source of said compressed video stream;
- and
- a processor operatively coupled to said video signal source, and a video output, said processor configured to:
- obtain a DCT encoded block from said compressed video stream;
- and
- determine when said DCT encoded block is a field-based DCT encoded block and apply field-based decoding and filtering/scaling to said DCT encoded block;
- or
- when said DCT encoded block is a frame-based DCT encoded block, obtain a first absolute value of the energy of vertical high frequency of said given area in an said DCT encoded block;
- and
- compare said first absolute value of the energy of vertical high frequency to a predetermined first reference value;
- and
- (a) when said first absolute value is less than or equal to said predetermined first reference value, apply frame-based decoding and filtering/scaling to said DCT encoded block;
- or
- (b) when said first absolute value is greater than said predetermined first reference value, obtain a second absolute value which represents the energy of vertical mid frequency of said DCT encoded block of said compressed video stream;
- and
- conducting a second comparison in which said second absolute value which represents the energy of vertical mid frequency is compared to a second predetermined reference value;
- and
- (i) when said second absolute value which represents the energy of vertical mid frequency is less than said second predetermined reference value, apply frame-based decoding and field-based filtering/scaling to said DCT encoded block;
- or
- (ii) when said second absolute value which represents the energy of vertical mid frequency is greater than or equal to said second predetermined reference value, apply frame-based decoding and filtering/scaling to said DCT encoded block;
- and
- place processed video onto said video output.
A system for detecting whether an area of a compressed video stream is an interlaced moving area, in which said video stream is represented by a plurality of DCT encoded blocks, said system comprising:
- a video signal source of said compressed video stream;
- and
- a processor operatively coupled to said video signal source, and a logic output, said processor configured to:
- obtain a DCT encoded block from said compressed video stream;
- and
- obtain a first absolute value of the energy of vertical high frequency of said given area in an said DCT encoded block;
- and
- compare said first absolute value of the energy of vertical high frequency to a predetermined first reference value;
- and
- (a) when said first absolute value is less than or equal to said predetermined first reference value, determine that said DCT encoded block does not represent an interlaced moving area of said compressed video and setting the logic output to a FALSE value to indicate this;
- or
- (b) when said first absolute value is greater than said predetermined first reference value, obtain a second absolute value which represents the energy of vertical mid frequency of said DCT encoded block of said compressed video stream;
- and
- conducting a second comparison in which said second absolute value which represents the energy of vertical mid frequency is compared to a second predetermined reference value;
- and
- (i) when said second absolute value which represents the energy of vertical mid frequency is less than said second predetermined reference value, determine that said DCT encoded block represents an interlaced moving area of said compressed video and setting the logic output to a TRUE value to indicate this;
- or
- (ii) when said second absolute value which represents the energy of vertical mid frequency is greater than or equal to said second predetermined reference value, determine that said DCT encoded block does not represent an interlaced moving area of said compressed video and setting the logic output to a FALSE value to indicate this.
Dependencies are inferred from the claim text.