Adaptive quantization
First Claim
Patent Images
1. In an encoder for encoding an input sequence of interlaced video frames to generate a compressed bitstream, a method for generating a quantization scale factor for coding a macroblock in a frame, said method comprising the steps of:
- (1) maintaining by said encoder first, second and third virtual buffers for I, P and B frames in said sequence of frames,(2) determining by said encoder for a macroblock n in a frame, a rate control quantization scale factor QnR, said rate control quantization scale factor being determined as a function of a ratio of virtual buffer fullness to virtual buffer size for the virtual buffer of the frame to which the macroblock belongs,(3) multiplying the rate control quantization scale factor for the macroblock by a masking activity quantization scale factor QSn given by
space="preserve" listing-type="equation">(α
(ma.sub.n +k.sub.1)+ma/[ma.sub.n +α
(ma.sub.n +k.sub.1)) where man is a masking activity for the macroblock,where ma is a masking activity for the entire picture, where α and
k1 are constants,(4) coding said macroblock in said encoder using said final quantization scale factor to generate a portion of said compressed bitstream.
11 Assignments
0 Petitions
Accused Products
Abstract
A rate control algorithm for an MPEG-2 compliant encoder is described. The rate control algorithm has embodiments useful for constant bit rate and variable bit rate encoding. In particular, the invention relates to adaptive quantization.
155 Citations
1 Claim
-
1. In an encoder for encoding an input sequence of interlaced video frames to generate a compressed bitstream, a method for generating a quantization scale factor for coding a macroblock in a frame, said method comprising the steps of:
-
(1) maintaining by said encoder first, second and third virtual buffers for I, P and B frames in said sequence of frames, (2) determining by said encoder for a macroblock n in a frame, a rate control quantization scale factor QnR, said rate control quantization scale factor being determined as a function of a ratio of virtual buffer fullness to virtual buffer size for the virtual buffer of the frame to which the macroblock belongs, (3) multiplying the rate control quantization scale factor for the macroblock by a masking activity quantization scale factor QSn given by
space="preserve" listing-type="equation">(α
(ma.sub.n +k.sub.1)+ma/[ma.sub.n +α
(ma.sub.n +k.sub.1))where man is a masking activity for the macroblock, where ma is a masking activity for the entire picture, where α and
k1 are constants,(4) coding said macroblock in said encoder using said final quantization scale factor to generate a portion of said compressed bitstream.
-
Specification