Method for producing video coding and programme-product
AssigneeSiemens Aktiengesellschaft
InventorsGero Bäse, Norbert Oertel
Life of this patent
Estimating the term…
Abstract
According to the invention, there are provided sets of contexts specifically adapted to encode special coefficients of a prediction error matrix, on the basis of previously encoded values of level k. Furthermore, the number of values of levels other than 0 is explicitly encoded and numbers of appropriate contexts are selected on the basis of the number of spectral coefficients other than 0.
Claims10
A method for video coding using symbols, the method performed by execution of a computer program stored on a non-transitory computer readable medium and comprising the steps of:
- receiving a current image of a video data stream via a data input interface;
- segmenting the received current image into a plurality of rectangular macro blocks;
- comparing the rectangular macroblocks with respective macro blocks from one or more previously received reference images to calculate motion vectors, whereby previously received references images are stored in an image memory;
- calculating a prediction image associated with movement of the macroblocks of the reference image based on the calculated motion vectors;
- calculating a prediction error by subtracting the prediction image from the current image;
- generating a prediction error matrix by transformation and quantization of the prediction error;
- converting the prediction error matrix by coefficient sampling into a series of symbols;
- performing context-adaptive arithmetic encoding of the symbols to form a bitstream, wherein the encoding includes for a symbol being encoded, selecting from different predetermined distributions of symbol frequencies a particular predetermined distribution of symbol frequencies based on the symbol encoded immediately beforehand, the predetermined distribution of symbol frequencies indicating the likelihood of different types of symbols occurring immediately following the type of the symbol encoded immediately beforehand based on known statistical interdependencies between different types of symbols occurring in succession;
- and
- transmitting the bitstream formed by the context-adaptive arithmetic encoding of the symbols via a data output interface.
A computer program, stored on a non-transitory computer readable medium, containing program code for executing a method for video coding using symbols, comprising the steps of:
- receiving a current image of a video data stream via a data input interface;
- segmenting the received current image into a plurality of rectangular macro blocks;
- comparing the rectangular macroblocks with respective macro blocks from one or more previously received reference images to calculate motion vectors, whereby previously received references images are stored in an image memory;
- calculating a prediction image associated with movement of the macroblocks of the reference image based on the calculated motion vectors;
- calculating a prediction error by subtracting the prediction image from the current image;
- generating a prediction error matrix by transformation and quantization of the prediction error;
- converting the prediction error matrix by coefficient sampling into a series of symbols;
- performing context-adaptive arithmetic encoding of the symbols to form a bitstream, wherein the encoding includes for a symbol being encoded, selecting from different predetermined distribution of symbol frequencies a particular predetermined distribution of symbol frequencies based on the symbol encoded immediately beforehand, the predetermined distributions of symbol frequencies indicating the likelihood of different types of symbols occurring immediately following the type of the symbol encoded immediately beforehand based on known statistical interdependencies between different types of symbols occurring in succession;
- and
- transmitting the bitstream formed by the context-adaptive arithmetic encoding of the symbols via a data output interface.
An encoder for video coding using symbols, the encoder comprising:
- a data input interface configured to receive a current image of a video data stream;
- a movement estimation unit configured to segment the received current image into a plurality of rectangular macro blocks;
- a movement estimation unit configured to compare the rectangular macroblocks with respective macro blocks from one or more previously received reference images to calculate motion vectors, whereby previously received references images are stored in an image memory;
- a movement compensator configured to calculate a prediction image associated with movement of the macroblocks of the reference image based on the calculated motion vectors;
- an error calculator configured to calculate a prediction error by subtracting the prediction image from the current image;
- a transformer and quantizer configured to generate a prediction error matrix by transformation and quantization of the prediction error;
- and
- a context-sensitive encoding unit configured to:
- converting the prediction error matrix by coefficient sampling into a series of symbols corresponding to levels and lengths of zero sequences;
- perform context-adaptive arithmetic encoding of the symbols to form a bitstream, wherein the encoding includes for a symbol being encoded, selecting from different predetermined distributions of symbol frequencies a particular predetermined distribution of symbol frequencies based on the symbol encoded immediately beforehand, the predetermined distribution of symbol frequencies indicating the likelihood of different types of symbols occurring immediately following the type of the symbol encoded immediately beforehand based on known statistical interdependencies between different types of symbols occurring in succession;
- and
- output the bitstream formed by the context-adaptive arithmetic encoding of the symbols via a data input interface.
Dependencies are inferred from the claim text.