Patent ID: 9025665
Filing Date: 2015-05-05
Classification: H04N

Abstract:
1. A method for estimating a size of an encoded macroblock within a video encoder, the method comprising: deciding a prediction mode based on motion estimation or spatial prediction for a macroblock within a video image; performing a transform of data and a specific compression level over the data within the macroblock from the prediction mode selected; determining a size for header bits and a size for texture bits within the macroblock respectively based on the prediction mode and the transform; performing a bit estimation using the size for header bits and the size for texture bits to estimate the potential size of the encoded macroblock using the prediction mode selected; and determining whether the encoded macroblock has a data size that exceeds a desired size for a buffer and if not output the encoded macroblock to the buffer and if so force a special prediction mode or change encoding parameters of the video encoder to form a re-encoded version of the macroblock that omits information to meet a desired size limitation of the video encoder.