EP2094017B1

Method for direct mode encoding and decoding

Abstract

This record has no abstract on file.

EP2094017B1, drawing sheet 1
Sheet 1 of 44

Term

2.4 yearsleft in the term

Expires 20 February 2029.

  1. Priority
  2. Filed
  3. Granted
  4. Today
  5. Expires

4 claims: 2 independent, 2 dependent

  1. 1
    A method for operating an encoder for encoding in a direct mode when coding moving images, comprising the steps of:receiving by the encoder input images to be encoded;storing said images in a memory;and outputting from said memory a current block to be encoded, characterised in that the method further comprises the steps of: (a) obtaining a first motion vector from the same position block of a backward reference picture for the current block to be encoded in a temporal direct mode;(b) deriving a first bidirectional motion vector of the current block by scaling the obtained first motion vector;(c) calculating a first cost for encoding a backward-based temporal direct mode using the first bidirectional motion vector and two prediction blocks to which the first bidirectional motion vector points;(d) obtaining a second motion vector from the same position block of a forward reference picture for the current block to be encoded in a temporal direct mode;(e) deriving a second bidirectional motion vector of the current block by scaling the obtained second motion vector;(f) calculating a second cost for encoding in a forward-based temporal direct mode using the second bidirectional motion vector and two prediction blocks to which the second bidirectional motion vector points;(g) obtaining a third motion vector from neighboring blocks for the current block to be encoded in a spatial direct mode;(h) deriving a third bidirectional motion vector of the current block by scaling the obtained third motion vector;(i) calculating a third cost for encoding in a spatial direct mode using the third bidirectional motion vector and two prediction blocks to which the third bidirectional motion vector points;and determining one direct mode having the lowest cost as a result of comparing the first, second and third costs as an optimal encoding mode, performing encoding in the determined direct mode, and inserting information into the encoded bit stream indicating which of the direct modes has been selected as the optimal encoding mode.
  2. 3
    A method for operating a decoder for decoding in a direct mode when coding moving images, comprising the steps of:receiving by the decoder an input bit stream to be decoded;obtaining a direct mode of a current block to be decoded from information inserted in the input bit stream, wherein the direct mode is one of a temporal direct mode which uses the same position block located in a backward reference frame, a temporal direct mode which uses the same position block located in a forward reference frame, and a spatial direct mode;in the case of a temporal direct mode which uses the same position block located in a backward reference frame, finding a bidirectional prediction block by obtaining and scaling a motion vector from the same position block of a backward reference picture and thus deriving a bidirectional motion vector;in the case of a temporal direct mode which uses the same position block located in a forward reference frame, finding a bidirectional prediction block by obtaining and scaling a motion vector from the same position block of a forward reference picture and thus deriving a bidirectional motion vector in the case of a spatial direct mode, finding a bidirectional prediction block by obtaining a motion vector from neighboring blocks having spatial correlation with the current block and thus deriving a bidirectional motion vector;and restoring the current block by adding the prediction block found according to the backward-based direct mode, the forward-based direct mode or the spatial direct mode and a residual block found from the input bit stream.