Apparatus and method for macroblock based rate control in a coding system
First Claim
Patent Images
1. A method for allocating bits to encode each frame of an image sequence, each of said frame having at least one block, said method comprising the steps of:
- (a) determining a target frame bit rate for the frame; and
(b) allocating said target frame bit rate among the at least one block in accordance with a target block bit rate for the at least one block, wherein said target block bit rate for the at least one block is selected in accordance with a mean absolute difference (Mad) of said block.
2 Assignments
0 Petitions
Accused Products
Abstract
A method and apparatus for selecting a quantizer scale for each macroblock within a frame to optimize the coding rate is presented. A quantizer scale is selected for each macroblock within each frame such that the target bit rate for the frame is achieved while maintaining a uniform visual quality over the entire frame.
-
Citations
20 Claims
-
1. A method for allocating bits to encode each frame of an image sequence, each of said frame having at least one block, said method comprising the steps of:
-
(a) determining a target frame bit rate for the frame; and
(b) allocating said target frame bit rate among the at least one block in accordance with a target block bit rate for the at least one block, wherein said target block bit rate for the at least one block is selected in accordance with a mean absolute difference (Mad) of said block. - View Dependent Claims (2, 3, 4, 5, 6, 7, 8, 9)
-
-
3. The method of claim 1, wherein said target block bit rate is adjusted in accordance with a threshold Hq.
-
4. The method of claim 3, wherein said target block bit rate is adjusted by removing each block within the frame having a sum of absolute difference (SAD) that is less than said threshold Hq from said step (b) of allocating said target frame bit rate among the at least one block.
-
5. The method of claim 1, wherein said block is a macroblock.
-
6. The method of claim 1, wherein said target frame bit rate, Tframe, is derived in accordance with:
-
where R is a remaining number of bits for the image sequence, Nf is a number of remaining frames in the image sequence, Tprevious frame is a number of bits used for encoding a previous frame, and past_percent is a constant.
-
-
7. The method of claim 1, further comprising the step of:
(c) generating a quantizer scale for said at least one block in accordance with said target block bit rate.
-
8. The method of claim 7, further comprising the step of:
(c′
) adjusting said quantizer scale in accordance with a previous quantizer scale of a previous block.
-
9. The method of claim 7, further comprising the step of:
(d) encoding said at least one block with said quantizer scale.
-
10. Apparatus for encoding each frame of an image sequence, said frame having at least one block, said apparatus comprising:
-
a motion compensator for generating a predicted image of a current frame;
a transform module for applying a transformation to a difference signal between the current frame and said predicted image, where said transformation produces a plurality of coefficients;
a quantizer for quantizing said plurality of coefficients with at least one quantizer scale; and
a controller for selectively adjusting said at least one quantizer scale for a current frame in response to a target block bit rate for the at least one block, wherein said target block bit rate for the at least one block is selected in accordance with a mean absolute difference (Mad) of said block. - View Dependent Claims (11, 12, 13, 14, 15, 16)
-
-
12. The apparatus of claim 10, wherein said target macroblock bit rate is adjusted in accordance with a threshold Hq.
-
13. The apparatus of claim 12, wherein said target block bit rate is adjusted by removing each block within the frame having a sum of absolute difference (SAD) that is less than said threshold Hq.
-
14. The apparatus of claim 10, wherein said block is a macroblock.
-
15. The apparatus of claim 10, wherein said target block bit rate is derived from a target frame bit rate.
-
16. The apparatus of claim 15, wherein said target frame bit rate, Tframe, is derived in accordance with:
-
where R is a remaining number of bits for a sequence of frames, Nf is a number of remaining frames in the sequence, Tprevious frame is a number of bits used for encoding a previous frame, and past_percent is a constant.
-
-
17. A computer-readable medium having stored thereon a plurality of instructions, the plurality of instructions including instructions which, when executed by a processor, cause the processor to perform the steps comprising of:
-
(a) determining a target frame bit rate for the frame; and
(b) allocating said target frame bit rate among the at least one block in accordance with a target block bit rate for the at least one block, wherein said target block bit rate for the at least one block is selected in accordance with a mean absolute difference (Mad) of said block. - View Dependent Claims (18, 19, 20)
-
-
19. The computer-readable medium of claim 17, wherein said target block bit rate is adjusted in accordance with a threshold Hq.
-
20. The computer-readable medium of claim 17, wherein said target frame bit rate, Tframe, is derived in accordance with:
-
where R is a remaining number of bits for the image sequence, Nf is a number of remaining frames in the image sequence, Tprevious frame is a number of bits used for encoding a previous frame, and past percent is a constant.
-
Specification