FR2910216A1 - Macroblock adaptative field/frame coding mode selecting method for coding image part of video sequence, involves respectively selecting frame and image coding modes when counter value is higher and lower than preset threshold - Google Patents

Macroblock adaptative field/frame coding mode selecting method for coding image part of video sequence, involves respectively selecting frame and image coding modes when counter value is higher and lower than preset threshold Download PDF

Info

Publication number
FR2910216A1
FR2910216A1 FR0611034A FR0611034A FR2910216A1 FR 2910216 A1 FR2910216 A1 FR 2910216A1 FR 0611034 A FR0611034 A FR 0611034A FR 0611034 A FR0611034 A FR 0611034A FR 2910216 A1 FR2910216 A1 FR 2910216A1
Authority
FR
France
Prior art keywords
image
pixels
frame
pixel
mode
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
FR0611034A
Other languages
French (fr)
Inventor
Christophe Chevance
Jean-Claude Chevet
Ronan Poullaouec
Thierry Viellard
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Thomson Licensing SAS
Original Assignee
Thomson Licensing SAS
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Thomson Licensing SAS filed Critical Thomson Licensing SAS
Priority to FR0611034A priority Critical patent/FR2910216A1/en
Priority to PCT/FR2007/002079 priority patent/WO2008087305A2/en
Publication of FR2910216A1 publication Critical patent/FR2910216A1/en
Pending legal-status Critical Current

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N19/00Methods or arrangements for coding, decoding, compressing or decompressing digital video signals
    • H04N19/40Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using video transcoding, i.e. partial or full decoding of a coded input stream followed by re-encoding of the decoded output stream
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N19/00Methods or arrangements for coding, decoding, compressing or decompressing digital video signals
    • H04N19/10Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding
    • H04N19/102Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding characterised by the element, parameter or selection affected or controlled by the adaptive coding
    • H04N19/103Selection of coding mode or of prediction mode
    • H04N19/112Selection of coding mode or of prediction mode according to a given display mode, e.g. for interlaced or progressive display mode
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N19/00Methods or arrangements for coding, decoding, compressing or decompressing digital video signals
    • H04N19/10Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding
    • H04N19/134Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding characterised by the element, parameter or criterion affecting or controlling the adaptive coding
    • H04N19/136Incoming video signal characteristics or properties
    • H04N19/137Motion inside a coding unit, e.g. average field, frame or block difference
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N19/00Methods or arrangements for coding, decoding, compressing or decompressing digital video signals
    • H04N19/10Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding
    • H04N19/134Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding characterised by the element, parameter or criterion affecting or controlling the adaptive coding
    • H04N19/136Incoming video signal characteristics or properties
    • H04N19/14Coding unit complexity, e.g. amount of activity or edge presence estimation
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N19/00Methods or arrangements for coding, decoding, compressing or decompressing digital video signals
    • H04N19/10Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding
    • H04N19/169Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding characterised by the coding unit, i.e. the structural portion or semantic portion of the video signal being the object or the subject of the adaptive coding
    • H04N19/17Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding characterised by the coding unit, i.e. the structural portion or semantic portion of the video signal being the object or the subject of the adaptive coding the unit being an image region, e.g. an object
    • H04N19/176Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding characterised by the coding unit, i.e. the structural portion or semantic portion of the video signal being the object or the subject of the adaptive coding the unit being an image region, e.g. an object the region being a block, e.g. a macroblock
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N19/00Methods or arrangements for coding, decoding, compressing or decompressing digital video signals
    • H04N19/60Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using transform coding
    • H04N19/61Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using transform coding in combination with predictive coding
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N19/00Methods or arrangements for coding, decoding, compressing or decompressing digital video signals
    • H04N19/80Details of filtering operations specially adapted for video compression, e.g. for pixel interpolation
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N19/00Methods or arrangements for coding, decoding, compressing or decompressing digital video signals
    • H04N19/85Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using pre-processing or post-processing specially adapted for video compression

Abstract

The method involves determining absolute departure value between luminous data representing a considered pixel and luminous data representing a pixel group (21) comprising the considered pixel and two pixels. A value of a counter is increased when the absolute value is higher than a preset threshold (SA), and the pixel considering, departure value determining and counter value increasing processes are repeated for each portion of the image. The frame and image coding modes are respectively selected when the counter value is higher than preset threshold (SD) and lower than the threshold (SD). Independent claims are also included for the following: (1) a recording medium comprising computer program comprises a set of instructions for executing a steps of the coding mode selecting method (2) a device for selecting an frame/image coding mode of a part of an image of video sequence (3) a method for coding image according to the macroblock adaptative field/frame (4) a method for encoding MPEG2 compression format to a MPEG4 compression format.

Description

1 L'invention est relative au domaine de la compression vidéo et notammentThe invention relates to the field of video compression and in particular

à la compression vidéo selon le format MPEG4/AVC dans un mode image/trame adaptatif de macro-bloc (généralement appelé mode MBAFF : de l'anglais Macroblock Adaptative Field/Frame ).  MPEG4 / AVC video compression in an adaptive macro-block image / frame mode (generally referred to as the MBAFF: Adaptive Macroblock Field / Frame mode).

En particulier, la présente invention concerne un procédé du type procédé de sélection d'un mode de codage trame ou image pour le codage d'au moins une partie d'une image d'une séquence vidéo, ladite partie d'image comportant des pixels répartis selon n lignes et m colonnes. Lors d'une compression vidéo, les images et les séquences d'images sont analysées pour définir des paramètres de codage représentatifs des données d'image. Ces paramètres de codage doivent être judicieusement choisis pour minimiser le coût de codage. Lorsqu'une vidéo codée utilise le mode MBAFF du codage MPEG4/AVC, il est nécessaire d'indiquer au codeur MPEG4 quel est le mode de codage à utiliser parmi le mode image ou le mode trame pour coder les paires de macro-blocs. En mode trame , la paire de macroblocs est constitué de deux macro-blocs et pour chacun d'entre eux, les lignes sont constituées à partir des lignes d'une même trame. En mode image , les macro-blocs conservent la notion d'image entrelacée.  In particular, the present invention relates to a method of the method of selecting a frame or frame coding mode for encoding at least part of an image of a video sequence, said image portion comprising pixels divided into n rows and m columns. In video compression, images and image sequences are analyzed to define encoding parameters representative of the image data. These coding parameters must be carefully chosen to minimize the cost of coding. When an encoded video uses MPEG4 / AVC encoding mode MBAFF, it is necessary to indicate to the MPEG4 encoder which encoding mode to use from the picture mode or the frame mode to encode the macroblock pairs. In raster mode, the pair of macroblocks consists of two macroblocks and for each of them, the lines are formed from the lines of the same frame. In image mode, macroblocks retain the notion of interlaced image.

L'invention se situe dans un contexte de codage MPEG4/AVC en utilisant un premier codage dans le format MPEG2 (transcodage). Dans ce cas, il est possible de récupérer certains paramètres calculés pour le codage selon le format MPEG2 par décodage de la vidéo codée en MPEG2 pour coder cette même vidéo dans un format MPEG4/AVC. Ces paramètres de codage comprennent notamment les vecteurs de mouvement des macro- blocs de l'image et les choix de codage inter/intra. L'invention s'étend également à un codage vidéo MPEG4/AVC pur puisqu'elle décrit le choix d'uilisation du mode MBAFF propre à MPEG4/AVC.  The invention is in an MPEG4 / AVC encoding context using a first encoding in the MPEG2 (transcoding) format. In this case, it is possible to recover some parameters calculated for coding according to the MPEG2 format by decoding the coded video in MPEG2 to encode this same video in an MPEG4 / AVC format. These coding parameters include in particular the motion vectors of the macroblocks of the image and the inter / intra coding choices. The invention also extends to pure MPEG4 / AVC video coding since it describes the choice of use of the MBAFF mode specific to MPEG4 / AVC.

Selon le format MPEG2, les images sont codées par macro-bloc sans identification d'un mode de codage MBAFF. Le décodage d'une vidéo codée 2910216 2 selon le format MPEG2 ne donne donc aucune information sur le mode de codage à utiliser pour chaque paire de macro-blocs de l'image puisque contrairement au codage selon le mode MBAFF du format MPEG4, le codage selon le format MPEG2 ne traite pas les données d'image par paire 5 de macro-blocs. Pour résoudre cette difficulté, il peut être envisagé de choisir arbitrairement l'un des deux modes image ou trame et de l'appliquer sur toutes les paires de macro-blocs de l'image. Toutefois, ce choix arbitraire n'est pas optimum. En effet, lorsque le 10 mode image est choisi pour une séquence d'images présentant de nombreux mouvements, la qualité des images décodées est insatisfaisante en raison des hautes fréquences générées par l'entrelacé sur les contours. Lorsque au contraire, le mode trame est choisi pour des séquences d'images homogènes, le coût de codage n'est pas optimisé.  According to the MPEG2 format, the images are coded by macroblock without identifying an MBAFF encoding mode. The decoding of a coded video 2910216 2 according to the MPEG2 format thus gives no information on the coding mode to be used for each pair of macroblocks of the picture since, unlike the MPEG4 format coding in the MBAFF mode, the coding MPEG2 format does not process image data by pair of macroblocks. To solve this problem, it is possible to arbitrarily choose one of the two image or frame modes and to apply it to all pairs of macroblocks of the image. However, this arbitrary choice is not optimal. Indeed, when the image mode is chosen for a sequence of images having many movements, the quality of the decoded images is unsatisfactory because of the high frequencies generated by the interlaced on the contours. When, on the contrary, the frame mode is chosen for homogeneous image sequences, the coding cost is not optimized.

15 En particulier, dans le cas d'un transcodage d'un format MPEG2 à un format MPEG4/AVC, le coût de codage est pénalisé lorsque le mode trame est choisi pour des images du type P et B avec des prédictions trame MPEG2 puisque chaque macro-bloc est divisé en deux sous partitions de 16 lignes par 8 colonnes avec des vecteurs de mouvement provenant de 20 chaque sous partition. En conséquence, dans ce cas, le choix du mode trame augmente par deux le nombre de vecteurs de mouvement à coder. L'invention a pour but de proposer un procédé permettant de choisir le meilleur mode parmi le mode image ou le mode trame pour chaque paire de macro-blocs d'une image afin de minimiser le coût de codage tout 25 en assurant une qualité suffisante des images, lors d'un codage selon le mode MBAFF du format MPEG4. A cet effet, l'invention a pour objet un procédé de sélection du type précité, caractérisé en ce qu'il comporte les étapes suivantes : a) définir une portion de la ou de chaque partie d'image ; 30 b) considérer un pixel appartenant à ladite portion d'image ; 2910216 3 c) déterminer la valeur absolue de l'écart entre une donnée lumineuse représentative du pixel considéré et une donnée lumineuse représentative d'un groupe de pixels, ledit groupe de pixels comprenant le pixel considéré et au moins deux pixels appartenant à des lignes différentes dudit pixel 5 considéré ; d) incrémenter d'un pas une valeur d'un compteur lorsque ladite valeur absolue est supérieure à un premier seuil prédéfini ; e) répéter les étapes b) à d) pour chaque pixel de la portion d'image ; et f) sélectionner le mode de codage trame pour la ou chaque partie 10 d'image lorsque la valeur du compteur est supérieure à un second seuil prédéfini et le mode de codage image lorsque la valeur du compteur est inférieure au second seuil prédéfini. Le mode de codage sélectionné par le procédé de sélection selon l'invention est destiné à être utilisé pour le codage de la partie d'image selon 15 le mode adaptatif de macro-blocs (MBAFF) du format de compression MPEG4. Suivant des modes particuliers de réalisation, le procédé de sélection comporte l'une ou plusieurs des caractéristiques suivantes : - ladite donnée lumineuse comprend une donnée de luminance ; 20 - l'étape de détermination de la valeur absolue comprend une étape de recherche de la valeur médiane de la donnée lumineuse du groupe de pixels ; - la portion d'image comprend l'ensemble des pixels de la partie d'image à l'exception des pixels des I premières lignes et des n-1 dernières lignes, I 25 étant un entier naturel ; - lorsque le pixel considéré appartient à la kième ligne, le groupe de pixels comprend le pixel considéré et les pixels compris entre la k-lième ligne et la k+ lième ligne ; - 1 est égal à 1 ; 2910216 4 - la partie d'image est une paire de macro-blocs de ladite image, ladite paire de macro-blocs comprenant des pixels répartis selon 32 lignes et 16 colonnes ; - il comporte, avant l'étape a) de définition d'une portion d'image, les étapes 5 suivantes : -réceptionner une image; - considérer une partie de l'image réceptionnée ; et il comporte, après l'étape de sélection g), les étapes suivantes : -remettre à zéro la valeur du compteur et considérer une autre partie 10 de ladite image ; et - répéter les étapes a) à g) pour l'ensemble des parties de l'image. - l'image est une image entrelacée. L'invention a également pour objet un procédé de codage d'au moins une image selon le mode image/trame adaptatif' de macro-bloc du format de 15 compression MPEG4, le procédé comprenant les étapes du procédé de sélection d'un mode de codage selon l'une quelconque des caractéristiques précédentes, et une étape de codage de chaque partie de l'image selon le mode de codage sélectionné. L'invention a également pour objet un support d'enregistrement 20 comprenant un programme d'ordinateur comportant des instructions pour l'exécution des étapes du procédé de sélection, lorsque le programme est exécuté sur un ordinateur. L'invention a également pour objet un dispositif de sélection d'un mode de codage trame ou image d'au moins une partie d'une image d'une 25 séquence vidéo, ladite partie d'images comportant des pixels répartis selon n lignes et m colonnes, le mode de codage sélectionné étant destiné à être utilisé pour le codage de la partie d'image selon le mode adaptatif de macrobloc du format de compression MPEG4, caractérisé en ce qu'il comporte : - des moyens de détermination de la valeur absolue de l'écart entre une 30 donnée lumineuse du pixel considéré et une donnée lumineuse représentative d'un groupe de pixels, ledit groupe de pixels comprenant le 2910216 5 pixel considéré et au moins deux pixels appartenant à des lignes différentes dudit pixel considéré ; - un compteur dont la valeur est propre à être incrémentée d'un pas lorsque la valeur absolue calculée par les moyens de détermination est supérieure à 5 un premier seuil prédéfini ; et - des moyens de sélection adaptés pour sélectionner le mode de codage trame pour la ou chaque partie d'image lorsque la valeur du compteur est supérieure à un second seuil prédéfini, et le mode de codage image lorsque la valeur du compteur est inférieure au second seuil prédéfini.In particular, in the case of transcoding from an MPEG2 format to an MPEG4 / AVC format, the coding cost is penalized when the frame mode is chosen for P and B type images with MPEG2 frame predictions since each Macroblock is divided into two sub-partitions of 16 rows by 8 columns with motion vectors from each sub-partition. Accordingly, in this case, the choice of the frame mode increases the number of motion vectors to be encoded by two. It is an object of the invention to provide a method for selecting the best mode from the image mode or the frame mode for each pair of macroblocks of an image in order to minimize coding cost while ensuring sufficient quality of the images. images, when encoding in MBAFF mode of MPEG4 format. To this end, the subject of the invention is a selection method of the aforementioned type, characterized in that it comprises the following steps: a) defining a portion of the or each image portion; B) considering a pixel belonging to said image portion; C) determining the absolute value of the difference between a light data representative of the pixel in question and a light data representative of a group of pixels, said group of pixels comprising the pixel in question and at least two pixels belonging to different lines said pixel 5 considered; d) incrementing by one step a value of a counter when said absolute value is greater than a first predefined threshold; e) repeating steps b) to d) for each pixel of the image portion; and f) selecting the frame encoding mode for the or each image portion when the counter value is greater than a second predefined threshold and the image encoding mode when the counter value is less than the second predefined threshold. The encoding mode selected by the selection method according to the invention is intended to be used for coding the macro-block adaptive mode (MBAFF) image portion of the MPEG4 compression format. According to particular embodiments, the selection method comprises one or more of the following characteristics: said luminous datum comprises a luminance datum; The step of determining the absolute value comprises a step of searching for the median value of the light data of the group of pixels; the image portion comprises all the pixels of the image part except the pixels of the first and the last lines, I being a natural number; when the pixel in question belongs to the kth line, the group of pixels comprises the pixel considered and the pixels between the k-th line and the k + lth line; - 1 is equal to 1; The image portion is a pair of macroblocks of said image, said pair of macroblocks comprising pixels distributed along 32 lines and 16 columns; it comprises, before step a) of definition of an image portion, the following steps: - to receive an image; - consider part of the image received; and it comprises, after the selection step g), the following steps: reset the value of the counter and consider another part 10 of said image; and - repeat steps a) to g) for all parts of the image. - the image is an interlaced image. The invention also relates to a method for encoding at least one macro-block adaptive image / frame image of the MPEG4 compression format, the method comprising the steps of the method of selecting a macro-block mode. encoding according to any one of the preceding features, and a step of coding each part of the image according to the selected coding mode. The invention also relates to a recording medium 20 comprising a computer program comprising instructions for performing the steps of the selection method, when the program is executed on a computer. The subject of the invention is also a device for selecting a frame or image encoding mode of at least a part of an image of a video sequence, said part of images comprising pixels distributed along n lines and m columns, the selected coding mode being intended to be used for the coding of the image part according to the macroblock adaptive mode of the MPEG4 compression format, characterized in that it comprises: means for determining the value absolute of the difference between a luminous datum of the pixel in question and a luminous datum representative of a group of pixels, said group of pixels comprising the pixel considered and at least two pixels belonging to different lines of said pixel in question; a counter whose value is adapted to be incremented by one step when the absolute value calculated by the determination means is greater than a first predefined threshold; and selection means adapted to select the frame coding mode for the or each image part when the counter value is greater than a second predefined threshold, and the image coding mode when the counter value is lower than the second one; predefined threshold.

10 L'invention a en outre pour objet un procédé de transcodage du format de compression MPEG2 au format de compression MPEG4. La sélection d'un mode de codage trame ou image pour le codage d'au moins une partie d'une image d'une séquence vidéo selon le mode adaptatif de macrobloc (MBAFF) du format de compression MPEG4 est effectuée selon le 15 procédé de sélection mentionné ci-dessus. L'invention sera mieux comprise à la lecture de la description qui va suivre, donnée uniquement à titre d'exemple et faite en se référant aux dessins, sur lesquels : La figure 1 est un schéma de principe représentant un système de 20 transcodage MPEG2 û MPEG4/AVC intégrant un dispositif de sélection selon l'invention ; La figure 2 est un schéma de principe représentant une image à coder ; et La figure 3 est un organigramme représentant des étapes du procédé 25 de sélection selon l'invention. Un système de transcodage MPEG2ûMPEG4/AVC est illustré schématiquement sur la figure 1. Ce système de transcodage comprend un codeur 1 et un décodeur 2 connecté au codeur 1. Le codeur 1 est propre à recevoir des images 3, 4 entrelacées d'une 30 séquence vidéo 5, à coder ces images par macro-bloc selon le format MPEG2 et à les transmettre au décodeur 2.The invention further relates to a method of transcoding the MPEG2 compression format to the MPEG4 compression format. The selection of a frame or frame coding mode for coding at least part of an image of a macroblock adaptive mode (MBAFF) video sequence of the MPEG4 compression format is carried out according to the method of selection mentioned above. The invention will be better understood on reading the description which follows, given solely by way of example and with reference to the drawings, in which: FIG. 1 is a block diagram showing a MPEG2 transcoding system; MPEG4 / AVC incorporating a selection device according to the invention; Figure 2 is a block diagram showing an image to be encoded; and Fig. 3 is a flow chart showing steps of the selection process according to the invention. An MPEG2UMPEG4 / AVC transcoding system is illustrated schematically in FIG. 1. This transcoding system comprises an encoder 1 and a decoder 2 connected to the encoder 1. The encoder 1 is capable of receiving images 3, 4 interleaved with a sequence video 5, to code these images by macroblock according to the MPEG2 format and to transmit them to the decoder 2.

2910216 6 Le décodeur 2 est apte à décoder les images 3, 4 et à en extraire des paramètres de codage propres à chaque image 3, 4 tels que par exemple les vecteurs de mouvement et les choix de codage Infra-Inter de ces images. Le système de transcodage comprend en outre un transcodeur 6 5 connecté au décodeur 2, un codeur 7 connecté au transcodeur 6 et un dispositif 8 de sélection du mode de codage selon l'invention, relié au codeur 7. Le transcodeur 6 est adapté pour recevoir les paramètres de codage codés selon le format MPEG2 du décodeur 2, à les convertir selon le format 10 MPEG4 et enfin à les transmettre au codeur 7. Le codeur 7 comprend une unité de traitement 7A. Lorsque le mode MBAFF du format MPEG4/AVC est utilisé, l'unité de traitement 7A est apte à recevoir les images 3, 4 de la vidéo 5 et à agencer les paires 11, 12 de macro-blocs 10 des images selon un mode trame ou image à partir 15 des choix de mode de codage générés par le dispositif de sélection 8. Le codeur 7 est adapté pour coder des paires de macro-blocs issues de l'unité de traitement 7A selon le mode MBAFF du format MPEG4/AVC à partir des paramètres de codage au format MPEG4 reçus du transcodeur 6. Un macrobloc 10 comprend des pixels répartis selon 16 lignes et 16 20 colonnes. Une paire 11 ou 12 de macro-blocs comprend deux macro-blocs 10 adjacents disposés verticalement l'un sur l'autre dans le sens des colonnes. Ainsi, chaque paire 11, 12 de macro-blocs comporte 32 lignes et 16 colonnes. Comme visible sur la figure 2, lorsqu'une paire 11 de macro-blocs est 25 agencée selon le mode image , cette paire comprend successivement une ligne 13 appartenant à la trame courante et une ligne 14 appartenant à la trame suivante. Ainsi, dans cette paire 11 de macro-blocs, deux trames successives d'image 3, 4 appartenant à la même image sont entrelacées. Lorsqu'une paire 12 de macro-blocs est agencée selon le mode trame , 30 toutes les lignes 15 d'un macro-bloc appartiennent à la trame supérieure ou trame top d'une image courante et toutes les lignes 16 de l'autre macro- 2910216 7 bloc appartiennent à la trame inférieure ou trame bottom de la même image. Le dispositif 8 de sélection selon l'invention est propre à recevoir les images 3, 4 de la vidéo 5 avant codage, à les analyser et à délivrer un choix 5 de mode de codage parmi le mode trame ou image . Ce choix de mode de codage est déterminé pour chaque paire 11, 12 de macro-blocs des images 3,4. Le dispositif de sélection 8 comprend des moyens 17 de détermination de luminance et des moyens de calcul 18 reliés aux moyens de 10 détermination 17. Les moyens de détermination 17 comportent notamment des moyens de sélection 19A de pixels à intérieur d'un macro-bloc et un filtre médian 19B. Les moyens de sélection 19A sont aptes à considérer tour à tour un 15 pixel et un groupe de pixels appartenant à une portion 20 d'un macro-bloc 11 et à déterminer une donnée lumineuse tel que la luminance de ces pixels. Le filtre médian 19B est propre à être appliqué sur le groupe de pixels 21 pour déterminer la luminance médiane de ce groupe de pixel 21 comme explicité ultérieurement dans la description.The decoder 2 is able to decode the images 3, 4 and to extract coding parameters specific to each image 3, 4 such as for example the motion vectors and the Infra-Inter coding choices of these images. The transcoding system further comprises a transcoder 6 connected to the decoder 2, an encoder 7 connected to the transcoder 6 and a coding mode selection device 8 according to the invention, connected to the encoder 7. The transcoder 6 is adapted to receive the coding parameters coded according to the MPEG2 format of the decoder 2, converting them to the MPEG4 format and finally transmitting them to the encoder 7. The encoder 7 comprises a processing unit 7A. When the MBAFF mode MPEG4 / AVC format is used, the processing unit 7A is able to receive the images 3, 4 of the video 5 and to arrange the pairs 11, 12 of macroblocks 10 images in a frame mode or image from the encoding mode choices generated by the selection device 8. The encoder 7 is adapted to encode pairs of macroblocks from the processing unit 7A according to the MPEG4 / AVC format MBAFF mode. from the MPEG4 coding parameters received from the transcoder 6. A macroblock 10 comprises pixels distributed along 16 lines and 16 columns. A pair 11 or 12 of macroblocks comprises two adjacent macroblocks 10 arranged vertically one over the other in the direction of the columns. Thus, each pair 11, 12 of macroblocks has 32 rows and 16 columns. As can be seen in FIG. 2, when a pair of macroblocks is arranged according to the image mode, this pair successively comprises a line 13 belonging to the current frame and a line 14 belonging to the next frame. Thus, in this pair 11 of macroblocks, two successive image frames 3, 4 belonging to the same image are interleaved. When a pair of macroblocks is arranged according to the frame mode, all the lines of a macroblock belong to the top or top frame of a current image and all the lines 16 of the other macro. - 2910216 7 block belong to the lower frame or bottom frame of the same picture. The selection device 8 according to the invention is adapted to receive the images 3, 4 of the video 5 before encoding, to analyze them and to provide a choice of coding mode mode among the frame or picture mode. This choice of coding mode is determined for each pair 11, 12 of macro-blocks of the images 3,4. The selection device 8 comprises luminance determination means 17 and calculation means 18 connected to the determination means 17. The determination means 17 comprise, in particular, pixel selection means 19A inside a macro-block and a median filter 19B. The selection means 19A are able to consider in turn a pixel and a group of pixels belonging to a portion 20 of a macroblock 11 and to determine a luminous datum such as the luminance of these pixels. The median filter 19B is adapted to be applied to the group of pixels 21 to determine the median luminance of this pixel group 21 as explained later in the description.

20 Les moyens de calcul 18 sont propres à calculer la valeur absolue de de la différence entre la luminance du pixel considéré et la luminance médiane du groupe de pixels 21. Cette différence représente l'écart entre la luminance du pixel considéré et la luminance médiane du groupe de pixels. Le dispositif de sélection 8 comporte en outre des premiers moyens 25 de comparaison 22 reliés aux moyens de calcul 18 et une première mémoire 23 reliée aux premiers moyens de comparaison 22. Les premiers moyens de comparaison 22 sont adaptés pour comparer la valeur absolue calculée par les moyens de calcul 18 à un premier seuil prédéfini SA enregistré dans la première mémoire 23 et à générer un signal 30 positif lorsque la valeur absolue est supérieure au premier seuil SA.The calculation means 18 are able to calculate the absolute value of the difference between the luminance of the pixel in question and the median luminance of the pixel group 21. This difference represents the difference between the luminance of the pixel considered and the median luminance of the pixel. group of pixels. The selection device 8 further comprises first comparison means 22 connected to the calculation means 18 and a first memory 23 connected to the first comparison means 22. The first comparison means 22 are adapted to compare the absolute value calculated by the calculation means 18 at a first predefined threshold SA recorded in the first memory 23 and generating a positive signal when the absolute value is greater than the first threshold SA.

2910216 8 Le dispositif de sélection 8 comprend en outre un compteur 24 connecté à la sortie des premiers moyens de comparaison 22, une seconde mémoire 25 et des seconds moyens de comparaison 26 reliés en entrée au compteur 24 et à la seconde mémoire 25, et en sortie au codeur 7.The selection device 8 further comprises a counter 24 connected to the output of the first comparison means 22, a second memory 25 and second comparison means 26 connected at input to the counter 24 and to the second memory 25, and output to encoder 7.

5 Le compteur 24 est apte à recevoir un signal positif de la sortie des premiers moyens de comparaison 22 et à s'incrémenter d'un pas lors de la réception d'un tel signal. Le compteur 24 est également relié aux moyens de détermination 17 et est propre à recevoir de ceux-ci un signal d'avertissement lorsque le dernier pixel de la portion 20 a été considéré. Le 10 compteur 24 est apte à transmettre aux seconds moyens de comparaison 26 la valeur incrémentée sur réception de ce signal d'avertissement. Les seconds moyens de comparaison 26 sont propres à comparer la valeur reçue du compteur 24 à un second seuil prédéfini SD enregistré dans la seconde mémoire 25 et à sélectionner un mode de codage trame pour 15 la paire de macro-blocs considérée 11 lorsque la valeur du compteur 24 est supérieure au second seuil prédéfini SD et le mode de codage image lorsque la valeur du compteur 24 est inférieure à ce seuil. Le procédé de sélection d'un mode de codage trame ou image selon l'invention est illustré sur la figure 3.The counter 24 is able to receive a positive signal from the output of the first comparison means 22 and to increment by one step when receiving such a signal. The counter 24 is also connected to the determination means 17 and is adapted to receive therefrom a warning signal when the last pixel of the portion 20 has been considered. The counter 24 is able to transmit to the second comparison means 26 the incremented value on receipt of this warning signal. The second comparison means 26 are able to compare the value received from the counter 24 with a second predefined threshold SD recorded in the second memory 25 and to select a frame coding mode for the pair of macroblocks considered 11 when the value of the counter 24 is greater than the second predefined threshold SD and the image coding mode when the value of the counter 24 is below this threshold. The method for selecting a frame or frame coding mode according to the invention is illustrated in FIG.

20 Le procédé selon l'invention comprend une étape initiale 40 au cours de laquelle la portion 20 de la paire 11 de macro-blocs de l'image 3 est considérée. Cette portion 20 comprend l'ensemble des pixels de la paire 11 de macro-blocs à l'exception des pixels de la première et de la dernière lignes.The method according to the invention comprises an initial step 40 during which the portion 20 of the pair 11 of macroblocks of the image 3 is considered. This portion 20 comprises all the pixels of the pair 11 of macroblocks with the exception of the pixels of the first and the last lines.

25 Au cours d'une étape 42, le pixel x(i,j) de la deuxième ligne et de la première colonne est défini comme le pixel courant, par les moyens de détermination 17. Au cours d'une étape 44, les deux pixels x(i,j-1), x(i,j+1) contigus au pixel courant x(i,j), appartenant à la même colonne que le pixel courant x(i,j) 30 et à des lignes différentes sont définis comme étant le groupe de pixels 2910216 9 courant 21. Ainsi, le groupe de pixels 21 comprend trois pixels contigus alignés verticalement. Puis, à l'étape 46, le filtre médian 19B est appliqué sur le groupe de pixels 21 pour déterminer le médian des valeurs de luminance des pixels du 5 groupe de pixels courant. Le filtre médian 19B classe les valeurs de luminance par ordre croissant puis délivre la valeur située au milieu de la série. Par exemple, lorsque les valeurs de luminance du groupe de pixels 20 sont égales à x(i,j-1)=114 ; x(i,j)=110 ; x(i,j+1)=120, la valeur délivrée par le filtre médian est 10 égale à 114. Les moyens de détermination 17 transmettent alors la valeur de luminance du pixel courant et la valeur médiane de luminance du groupe de pixels 20 aux moyens de calcul 18. A l'étape 48, la valeur absolue de la différence entre d'une part, la 15 valeur de luminance du pixel courant x(i,j) et d'autre part, la valeur médiane de luminance du groupe de pixels courant est calculée, par les moyens de calcul 18. A l'étape 50, la valeur absolue calculée au cours de l'étape 48 est comparée au premier seuil prédéfini SA par les premiers moyens de 20 comparaison 22. Le premier seuil SA est par exemple égal à 10. Lorsque cette valeur est inférieure au premier seuil SA, le procédé passe à l'étape 52 au cours de laquelle les moyens de détermination 17 vérifient si tous les pixels de la portion 20 ont été considérés. Lorsque cela n'est pas le cas, le procédé passe à l'étape 42, pendant laquelle le pixel de la 25 ligne suivante x(i+1, j) ou le pixel de la colonne suivante x(i, j+1) est considéré. Lorsque la valeur absolue calculée au cours de l'étape 48 est supérieure au premier seuil SA, le compteur 24 est incrémenté d'un pas au cours d'une étape 54 et le procédé passe à l'étape de vérification 52.During a step 42, the pixel x (i, j) of the second line and of the first column is defined as the current pixel, by the determination means 17. During a step 44, the two pixels x (i, j-1), x (i, j + 1) contiguous to the current pixel x (i, j), belonging to the same column as the current pixel x (i, j) and to different lines are defined as being the current pixel group 29. Thus, the pixel group 21 comprises three contiguous pixels aligned vertically. Then, in step 46, the median filter 19B is applied to the pixel group 21 to determine the median of the luminance values of the pixels of the current pixel group. The median filter 19B ranks the luminance values in ascending order and then delivers the value in the middle of the series. For example, when the luminance values of the pixel group 20 are equal to x (i, j-1) = 114; x (i, j) = 110; x (i, j + 1) = 120, the value delivered by the median filter is equal to 114. The determination means 17 then transmit the luminance value of the current pixel and the median luminance value of the pixel group 20 to the pixels. computing means 18. In step 48, the absolute value of the difference between, on the one hand, the luminance value of the current pixel x (i, j) and, on the other hand, the median luminance value of the group Current pixels are calculated by the calculation means 18. In step 50, the absolute value calculated in step 48 is compared with the first predefined threshold SA by the first comparison means 22. The first threshold SA is for example equal to 10. When this value is lower than the first threshold SA, the process goes to step 52 during which the determination means 17 check whether all the pixels of the portion 20 have been considered. When this is not the case, the method proceeds to step 42, during which the pixel of the next line x (i + 1, j) or the pixel of the next column x (i, j + 1) is considered. When the absolute value calculated in step 48 is greater than the first threshold SA, the counter 24 is incremented by one step in a step 54 and the process proceeds to the verification step 52.

30 Les étapes 40 à 50 sont alors répétées jusqu'à ce que tous les pixels de la portion 20 du macro-bloc 11 aient été considérés.Steps 40 to 50 are then repeated until all the pixels of the portion 20 of the macroblock 11 have been considered.

2910216 10 Si, à l'étape 52 tous les pixels de la portion 20 ont été considérés comme pixels courants, les moyens de déterrnination 17 transmettent un signal d'avertissement au compteur 24 et la valeur du compteur 24 est comparée au second seuil SD au cours d'une étape 56.If at step 52 all the pixels of the portion 20 have been considered as current pixels, the detecting means 17 transmits a warning signal to the counter 24 and the value of the counter 24 is compared to the second threshold SD at during a step 56.

5 Lorsque la valeur du compteur 24 est supérieure au second seuil SD, les seconds moyens de comparaison 26 émettent un signal représentatif du mode de codage trame à l'étape 58. Lorsque la valeur du compteur 24 est inférieure au second seuil SD, les seconds moyens de comparaison 26 émettent un signal représentatif du mode de codage image à l'étape 60.When the value of the counter 24 is greater than the second threshold SD, the second comparing means 26 outputs a signal representative of the frame coding mode in step 58. When the value of the counter 24 is less than the second threshold SD, the second comparison means 26 transmit a signal representative of the image coding mode in step 60.

10 Le second seuil SD est par exemple égal à 48. Au cours d'une étape 62, le compteur 24 est remis à la valeur 0 et le procédé de sélection retourne à l'étape 40 au cours de laquelle le macro-bloc 12 suivant de l'image 3 est considéré. Comme les images 3, 4 de la vidéo 5 sont des images entrelacées, la 15 différence entre le médian du groupe de pixels 21 et le pixel considéré est faible dans une zone homogène d'une trame à l'autre. Dans ce cas, le mode trame est privilégié. Au contraire, lorsque la différence entre le médian du groupe 21 et le pixel considéré est grande, les images entrelacées 2,4 comprennent du mouvement et le mode image est privilégié.The second threshold SD is for example equal to 48. During a step 62, the counter 24 is reset to 0 and the selection process returns to step 40 during which the next macroblock 12 of image 3 is considered. Since the images 3, 4 of the video 5 are interlaced images, the difference between the median of the pixel group 21 and the pixel in question is small in a homogeneous area from one frame to another. In this case, the frame mode is preferred. On the other hand, when the difference between the median of the group 21 and the pixel in question is large, the interlaced images 2,4 comprise motion and the image mode is preferred.

20 En variante, le procédé de sélection selon l'invention est utilisé dans un contexte de codage MPEG4 direct c'est-à-dire sans utilisation des paramètres obtenus par un codage MPEG2. En variante, le groupe de pixels comprend un nombre de pixels supérieur à 3.As a variant, the selection method according to the invention is used in a context of direct MPEG4 coding, that is to say without using the parameters obtained by MPEG2 coding. In a variant, the group of pixels comprises a number of pixels greater than 3.

25 En variante, ce groupe de pixels est disposé de façon diagonale. En variante, le procédé de sélection selon l'invention est utilisé pour des images non entrelacées c'est-à-dire progressives. En variante, la donnée lumineuse est ou comprend la chrominance des pixels du macro-bloc.As a variant, this group of pixels is arranged diagonally. Alternatively, the selection method according to the invention is used for non-interlaced images that is to say progressive. As a variant, the light data is or comprises the chrominance of the pixels of the macroblock.

2910216 11 En variante, le filtre médian 19B est un filtre moyen permettant de calculer la valeur moyenne entre les valeurs de luminance du groupe de pixels. Avantageusement, le procédé de sélection selon l'invention permet 5 d'obtenir un débit de 10 % inférieur par rapport à un mode MBAFF trame seulement pour une qualité identique. De plus, ce procédé de sélection permet un gain de 0,85 décibels en qualité et de 2,3 % en débit par rapport au mode MBAFF image seulement pour un transcodage d'une image intra.As a variant, the median filter 19B is a mean filter making it possible to calculate the average value between the luminance values of the group of pixels. Advantageously, the selection method according to the invention makes it possible to obtain a flow rate 10% lower compared to a frame MBAFF mode only for an identical quality. In addition, this selection method allows a gain of 0.85 decibels in quality and 2.3% in flow compared to image mode MBAFF only for a transcoding of an intra image.

10 L'invention concerne également un procédé de codage d'au moins une image selon le mode image/trame adaptatif du macro-bloc du format de compression MPEG4. Ce procédé comprenant les étapes du procédé de sélection d'un mode de codage décrit ci-dessus, une étape d'agencement des macro-blocs selon le mode image ou trame à partir des modes 15 sélectionnés par ce procédé et une étape de codage de chaque macro-bloc. Selon une variante, le procédé de codage comprend les étapes suivantes : - codage d'images entrelacées 3, 4 selon le format de compression MPEG2 ; 20 - décodage des images codées 3, 4 pour obtenir les paramètres de codage dans un format MPEG2 relatifs aux champs de mouvement et aux choix Inter-Infra ; - transcodage des paramètres de codage dans un format MPEG4 ; - sélection d'un mode de codage image ou trame pour chaque 25 paire de macro-bloc des images, selon le procédé de sélection mentionné ci-dessus ; - agencement des macro-blocs des irnages selon les modes de codage sélectionnés ; et - codage dans le format MPEG4 des macro-blocs agencés à partir des 30 paramètres de codage dans le format MPEG4.The invention also relates to a method for encoding at least one image according to the adaptive frame / frame mode of the macro-block of the MPEG4 compression format. This method comprises the steps of the method of selecting an encoding mode described above, a step of arranging the macroblocks according to the image or frame mode from the modes selected by this method and a coding step of each macro-block. According to one variant, the coding method comprises the following steps: coding of interlaced images 3, 4 according to the MPEG2 compression format; Decoding the coded images 3, 4 to obtain the coding parameters in MPEG2 format relating to the movement fields and to the Inter-Infra choices; - transcoding coding parameters in MPEG4 format; selecting an image or frame coding mode for each macroblock pair of images, according to the selection method mentioned above; arrangement of the macro-blocks of the irnages according to the selected coding modes; and coding in the MPEG4 format of the macroblocks arranged from the coding parameters in the MPEG4 format.

2910216 12 L'invention concerne également un support d'enregistrement comprenant un programme d'ordinateur comportant des instructions pour l'exécution des étapes du procédé de sélection décrit ci-dessus lorsque le programme est exécuté sur un ordinateur.The invention also relates to a recording medium comprising a computer program comprising instructions for executing the steps of the selection method described above when the program is executed on a computer.

5 Lors du transcodage MPEG2/MPEG4 et dans une mise en oeuvre particulière, un algorithme de sélection de mode détermine le mode de codage pour une image ou pour une rangée de macro-blocs de l'image (slice). Lorsque le mode de codage MBAFF est choisi, par exemple pour une image, le procédé de sélection du mode de codage "trame" ou "image", tel 10 que précédemment décrit, est appliqué pour l'ensemble des paires de macro-blocs de l'image. Les informations provenant du flux de données MPEG2 et attribuées à chacun des macro-blocs de l'image relatifs à la paire de macro-blocs, par exemple les vecteurs mouvement, sont alors adaptées au mode de codage "trame" ou "image" sélectionné pour cette paire de 15 macro-blocs. L'invention décrite est relative au mode MBAFF du format de compression MPEG4. Il est bien évident qu'elle peut s'appliquer à tout type de format ou de norme exploitant un mode MBAFF similaire à celui du format MPEG4. 20When transcoding MPEG2 / MPEG4 and in a particular implementation, a mode selection algorithm determines the encoding mode for an image or for a row of macroblocks of the image (slice). When the MBAFF encoding mode is chosen, for example for an image, the method of selecting the "frame" or "image" encoding mode, as previously described, is applied for all macroblock pairs of the image. The information from the MPEG2 data stream and allocated to each of the macroblocks of the image relating to the pair of macroblocks, for example the motion vectors, are then adapted to the coding mode "frame" or "image" selected for this pair of 15 macroblocks. The invention described relates to the MBAFF mode of the MPEG4 compression format. It is obvious that it can be applied to any type of format or standard exploiting an MBAFF mode similar to that of the MPEG4 format. 20

Claims (13)

REVENDICATIONS 1. Procédé de sélection d'un mode de codage trame ou image pour le codage d'au moins une partie (11, 12) d'une image d'une séquence vidéo, ladite partie d'image (11, 12) comportant des pixels répartis selon n lignes et m colonnes, caractérisé en ce qu'il comporte les étapes suivantes : - a) définir (40) une portion (20) de la ou de chaque partie d'image (11, 12) ; - b) considérer (42) un pixel appartenant à ladite portion d'image (20) ; - c) déterminer (44, 46, 48) la valeur absolue de l'écart entre une donnée lumineuse représentative du pixel considéré et une donnée lumineuse représentative d'un groupe de pixels (21), ledit groupe de pixels (21) comprenant le pixel considéré et au moins deux pixels appartenant à des lignes différentes dudit pixel considéré ; - d) incrémenter (50, 54) d'un pas une valeur d'un compteur (24) lorsque ladite valeur absolue est supérieure à un premier seuil prédéfini (SA); - e) répéter (52) les étapes b) à d) pour chaque pixel de la portion d'image (20) ; et - f) sélectionner (56) le mode de codage trame pour la ou chaque partie d'image (11, 12) lorsque la valeur du compteur est supérieure à un second seuil prédéfini (SD) et le mode de codage image lorsque la valeur du compteur est inférieure au second seuil prédéfini (SD).  A method of selecting a frame or frame coding mode for encoding at least a portion (11, 12) of an image of a video sequence, said image portion (11, 12) including pixels divided into n rows and m columns, characterized in that it comprises the following steps: - a) defining (40) a portion (20) of the or each image portion (11, 12); b) considering (42) a pixel belonging to said image portion (20); c) determining (44, 46, 48) the absolute value of the difference between a light data item representative of the pixel in question and a light data item representative of a group of pixels (21), said group of pixels (21) comprising the pixel considered and at least two pixels belonging to different lines of said pixel considered; - d) incrementing (50, 54) by one step a value of a counter (24) when said absolute value is greater than a first predefined threshold (SA); e) repeating (52) steps b) to d) for each pixel of the image portion (20); and f) selecting (56) the frame encoding mode for the or each image portion (11, 12) when the counter value is greater than a second predefined threshold (SD) and the image encoding mode when the value counter is less than the second predefined threshold (SD). 2. Procédé de sélection selon la revendication 1, caractérisé en ce que ladite donnée lumineuse comprend une donnée de luminance.  2. Selection method according to claim 1, characterized in that said light data comprises a luminance data. 3. Procédé de sélection selon l'une quelconque des revendications 1 et 2, caractérisé en ce que l'étape de détermination (44, 46, 48) de la valeur absolue comprend une étape de recherche (46) de la valeur médiane de la donnée lumineuse du groupe de pixels (21). 2910216 14  3. Selection process according to any one of claims 1 and 2, characterized in that the step of determining (44, 46, 48) the absolute value comprises a step of searching (46) the median value of the luminous data of the group of pixels (21). 2910216 14 4. Procédé de sélection selon l'une quelconque des revendications 1 à 3, caractérisé en ce que la portion d'image (20) comprend l'ensemble des pixels de la partie d'image (11, 12) à l'exception des pixels des I premières lignes et des n-1 dernières lignes, I étant un entier naturel.  4. Selection method according to any one of claims 1 to 3, characterized in that the image portion (20) comprises all the pixels of the image portion (11, 12) with the exception of pixels of the first I lines and the last n-1 lines, I being a natural integer. 5. Procédé de sélection selon l'une quelconque des revendications 1 à 4, caractérisé en ce que lorsque le pixel considéré appartient à la kième ligne, le groupe de pixels (21) comprend le pixel considéré et les pixels compris entre la k-lième ligne et la k+l1ème ligne.  5. A selection method according to any one of claims 1 to 4, characterized in that when the pixel in question belongs to the kth line, the group of pixels (21) comprises the pixel and the pixels between the k-1 line and the k + lth line. 6. Procédé de sélection selon l'une quelconque des revendications 4 et 5, caractérisé en ce que I est égal à 1.  6. Selection process according to any one of claims 4 and 5, characterized in that I is equal to 1. 7. Procédé de sélection selon l'une quelconque des revendications 15 précédentes, caractérisé en ce que la partie d'image (11, 12) est une paire de macro-blocs de ladite image, ladite paire de macro-blocs comprenant des pixels répartis selon 32 lignes et 16 colonnes.  A selection method according to any one of the preceding claims, characterized in that the image portion (11, 12) is a pair of macroblocks of said image, said pair of macroblocks comprising distributed pixels. according to 32 lines and 16 columns. 8. Procédé de sélection selon l'une quelconque des revendications 20 précédentes, caractérisé en ce qu'il comporte, avant l'étape a) de définition d'une portion d'image (20), les étapes suivantes : -réceptionner une image (3, 4); - considérer une partie (11, 12) de l'image réceptionnée ; et en ce qu'il comporte, après l'étape de sélection g), les étapes 25 suivantes : - remettre (62) à zéro la valeur du compteur (24) et considérer une autre partie (11, 12) de ladite image ; et répéter les étapes a) à g) pour l'ensemble des parties (11, 12) de l'image. 5 10 30 2910216 15  8. Selection method according to any one of the preceding claims, characterized in that it comprises, before step a) of defining an image portion (20), the following steps: - receive an image (3, 4); - consider a portion (11, 12) of the received image; and in that it comprises, after the selection step g), the following steps: - reset (62) the value of the counter (24) and consider another part (11, 12) of said image; and repeating steps a) to g) for all parts (11, 12) of the image. 5 10 30 2910216 15 9. Procédé de sélection selon l'une quelconque des revendications précédentes, caractérisé en ce que l'image est une image entrelacée.  9. Selection process according to any one of the preceding claims, characterized in that the image is an interlaced image. 10. Procédé de codage d'au moins une image (3, 4) selon le mode 5 image/trame adaptatif de macro-bloc du format de compression MPEG4, le procédé comprenant les étapes du procédé de sélection d'un mode de codage selon l'une quelconque des revendications précédentes, et une étape de codage de chaque partie de l'image (11, 12) selon le mode de codage sélectionné. 10  A method of encoding at least one image (3, 4) according to the image mode / adaptive macro-block frame of the MPEG4 compression format, the method comprising the steps of the method of selecting an encoding mode according to any one of the preceding claims, and a step of encoding each portion of the image (11, 12) according to the selected encoding mode. 10 11. Support d'enregistrement comprenant un programme d'ordinateur comportant des instructions pour l'exécution des étapes du procédé de sélection selon l'une quelconque des revendications 1 à 9, lorsque le programme est exécuté sur un ordinateur. 15  Recording medium comprising a computer program comprising instructions for executing the steps of the selection method according to any one of claims 1 to 9, when the program is executed on a computer. 15 12. Dispositif de sélection (8) d'un mode de codage trame ou image d'au moins une partie (11, 12) d'une image (3, 4) d'une séquence vidéo (5), ladite partie d'images (11, 12) comportant des pixels répartis selon n lignes et m colonnes, le mode de codage sélectionné étant destiné à être 20 utilisé pour le codage de la partie d'image (11, 12) selon le mode adaptatif de macro-bloc (MBAFF) du format de compression MPEG4, caractérisé en ce qu'il comporte : - des moyens de détermination (17,18, 19A, 19B) de la valeur absolue de l'écart entre une donnée lumineuse du pixel considéré et une donnée 25 lumineuse représentative d'un groupe de pixels (21), ledit groupe de pixels (21) comprenant le pixel considéré et au moins deux pixels appartenant à des lignes différentes dudit pixel considéré ; - un compteur (24) dont la valeur est propre à être incrémentée d'un pas lorsque la valeur absolue calculée par les moyens de détermination 30 (17,18, 19A, 19B) est supérieure à un premier seuil prédéfini (SA) ; et 2910216 16 - des moyens de sélection (25, 26) adaptés pour sélectionner le mode de codage trame pour la ou chaque partie d'image (11, 12) lorsque la valeur du compteur (24) est supérieure à un second seuil prédéfini (SD), et le mode de codage image lorsque la valeur du compteur (24) est inférieure 5 au second seuil prédéfini (SD).  12. A selection device (8) for a frame or frame coding mode of at least one part (11, 12) of an image (3, 4) of a video sequence (5), said part of images (11, 12) having pixels distributed along n rows and m columns, the selected encoding mode being for use in encoding the image portion (11, 12) according to the macroblock adaptive mode (MBAFF) of the MPEG4 compression format, characterized in that it comprises: determination means (17, 18, 19A, 19B) of the absolute value of the difference between a light datum of the pixel in question and a datum 25 light representative of a group of pixels (21), said group of pixels (21) comprising the pixel in question and at least two pixels belonging to different lines of said pixel in question; a counter (24) whose value is adapted to be incremented by one step when the absolute value calculated by the determination means (17, 18, 19A, 19B) is greater than a first predefined threshold (SA); and selection means (25, 26) adapted to select the frame coding mode for the or each picture portion (11, 12) when the counter value (24) is greater than a second predefined threshold ( SD), and the picture encoding mode when the value of the counter (24) is less than the second predefined threshold (SD). 13. Procédé de transcodage du format de compression MPEG2 au format de compression MPEG4, caractérisé en ce que la sélection d'un mode de codage trame ou image pour le codage d'au moins une 10 partie (11, 12) d'une image d'une séquence vidéo selon le mode adaptatif de macro-bloc (MBAFF) du format de compression MPEG4, est effectué selon le procédé de sélection de l'une quelconque des revendications 1 à 9.  13. A method of transcoding the MPEG2 compression format to the MPEG4 compression format, characterized in that the selection of a frame or frame coding mode for encoding at least a portion (11, 12) of an image a video sequence according to the macro-block adaptive mode (MBAFF) of the MPEG4 compression format, is performed according to the selection method of any one of claims 1 to 9.
FR0611034A 2006-12-18 2006-12-18 Macroblock adaptative field/frame coding mode selecting method for coding image part of video sequence, involves respectively selecting frame and image coding modes when counter value is higher and lower than preset threshold Pending FR2910216A1 (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
FR0611034A FR2910216A1 (en) 2006-12-18 2006-12-18 Macroblock adaptative field/frame coding mode selecting method for coding image part of video sequence, involves respectively selecting frame and image coding modes when counter value is higher and lower than preset threshold
PCT/FR2007/002079 WO2008087305A2 (en) 2006-12-18 2007-12-14 Adaptive selection of an image/frame coding mode for mpeg2/h.264 transcoding

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
FR0611034A FR2910216A1 (en) 2006-12-18 2006-12-18 Macroblock adaptative field/frame coding mode selecting method for coding image part of video sequence, involves respectively selecting frame and image coding modes when counter value is higher and lower than preset threshold

Publications (1)

Publication Number Publication Date
FR2910216A1 true FR2910216A1 (en) 2008-06-20

Family

ID=38337845

Family Applications (1)

Application Number Title Priority Date Filing Date
FR0611034A Pending FR2910216A1 (en) 2006-12-18 2006-12-18 Macroblock adaptative field/frame coding mode selecting method for coding image part of video sequence, involves respectively selecting frame and image coding modes when counter value is higher and lower than preset threshold

Country Status (2)

Country Link
FR (1) FR2910216A1 (en)
WO (1) WO2008087305A2 (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20130107961A1 (en) * 2011-10-28 2013-05-02 Fujitsu Limited Video transcoder and video transcoding method

Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2006033915A2 (en) * 2004-09-16 2006-03-30 Thomson Licensing Method and apparatus for rapid video frame and field coding

Patent Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2006033915A2 (en) * 2004-09-16 2006-03-30 Thomson Licensing Method and apparatus for rapid video frame and field coding

Non-Patent Citations (5)

* Cited by examiner, † Cited by third party
Title
DONALD R. MATTHYS: "Spatial Filters", LECTURE OF COURSE PHYS198/EECE226, A COURSE ON DIGITAL IMAGE PROCESSING, SPRING 2001, 5 February 2001 (2001-02-05), Marquette University, Physics Dept., Milwaukee, WI, USA, pages 1 - 5, XP002447227, Retrieved from the Internet <URL:http://www.mu.edu/~matthysd/web226/L0205.htm> [retrieved on 20070817] *
HAAN DE G ET AL: "Deinterlacing - An overview", PROCEEDINGS OF THE IEEE, IEEE. NEW YORK, US, vol. 86, no. 9, 1 September 1998 (1998-09-01), pages 1839 - 1857, XP011044084, ISSN: 0018-9219 *
LEJUN YU; JINTAO LI; YONGDONG ZHANG: "Fast picture and macroblock level adaptive frame/field coding for H.264", PROCEEDINGS OF THE IEEE ASIA PACIFIC CONFERENCE ON CIRCUITS AND SYSTEMS, 2006 (APCCAS 2006), SINGAPORE, 4 December 2006 (2006-12-04) - 7 December 2006 (2006-12-07), IEEE, Piscataway, NJ, USA, pages 768 - 771, XP002447228 *
YIN PENG ; TOURAPIS ALEXIS MICHAEL ; BOYCE JILL: "Fast decision on picture adaptive frame/field coding for H.264", PROCEEDINGS OF THE SPIE; VISUAL COMMUNICATIONS AND IMAGE PROCESSING 2005, vol. 5960, 12 July 2005 (2005-07-12) - 15 July 2005 (2005-07-15), Beijing, China, pages 2092 - 2099, XP002447226 *
ZHI ZHOU ET AL: "Motion Information and Coding Mode Reuse for MPEG-2 to H.264 Transcoding", CIRCUITS AND SYSTEMS, 2005. ISCAS 2005. IEEE INTERNATIONAL SYMPOSIUM ON KOBE, JAPAN 23-26 MAY 2005, PISCATAWAY, NJ, USA,IEEE, 23 May 2005 (2005-05-23), pages 1230 - 1233, XP010815932, ISBN: 0-7803-8834-8 *

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20130107961A1 (en) * 2011-10-28 2013-05-02 Fujitsu Limited Video transcoder and video transcoding method

Also Published As

Publication number Publication date
WO2008087305A2 (en) 2008-07-24
WO2008087305A3 (en) 2008-09-12

Similar Documents

Publication Publication Date Title
EP3209021B1 (en) Recording medium storing coded image data
EP2304963B1 (en) Method and device for encoding images using improved prediction, and corresponding decoding method and device, signal and computer software
FR2903556A1 (en) Digital image encoding method for e.g. mobile phone, involves associating information, representative of bit rate and distortion corresponding to target definition comprised between lower and upper definition layers, with coding result
EP2446629B1 (en) Methods of coding and decoding images, corresponding devices for coding and decoding, and computer program
EP3490258A1 (en) Method and recording medium storing coded image data
EP3707900B1 (en) Method for forming an output image sequence from an input image sequence, method for reconstructing an input image sequence from an output image sequence, associated devices, server equipment, client equipment and computer programs
EP2279621B1 (en) Method of coding, decoding, coder and decoder
FR2951345A1 (en) METHOD AND DEVICE FOR PROCESSING A VIDEO SEQUENCE
FR2857205A1 (en) DEVICE AND METHOD FOR VIDEO DATA CODING
EP3139608A1 (en) Method for compressing a video data stream
FR2745679A1 (en) Digital image decoder e.g. for cable or broadcast TV
EP2410749A1 (en) Method for adaptive encoding of a digital video stream, particularly for broadcasting over xDSL line
WO2018002474A1 (en) Method for intra-coding of a digital image and corresponding decoding method
EP1702473B1 (en) Method for coding an image sequence
FR2910216A1 (en) Macroblock adaptative field/frame coding mode selecting method for coding image part of video sequence, involves respectively selecting frame and image coding modes when counter value is higher and lower than preset threshold
EP3637765A1 (en) Optimisation of sub-sampling taking place before the encoding of images in compression
FR2955995A1 (en) METHOD AND DEVICE FOR PROCESSING A VIDEO SEQUENCE
US20060067410A1 (en) Method for encoding and decoding video signals
WO2005088979A1 (en) Method for finding the prediction direction in intraframe video coding
EP1854299B1 (en) Method, device and system for processing successive block-coded images
FR2728129A1 (en) DEVICE FOR DIGITAL MULTIPLEXING OF VIDEO PROGRAMS
FR3098071A1 (en) Low latency video encoding and decoding process
FR2918203A1 (en) METHODS AND APPARATUSES FOR ENCODING AND DECODING DIGITAL IMAGES BASED ON THE TYPE OF SOURCE BLOCKS, SIGNAL, AND CORRESPONDING COMPUTER PROGRAM PRODUCTS.
FR2956552A1 (en) Method for coding video sequence consisting digital images, involves determining reference block in reference image, modifying determined reference block, and coding block to be coded by using predictor block
FR2903845A1 (en) Digital image coding method for telecommunication system, involves selecting one of modes of upper definition layer based on evaluation of quantity, and encoding upper definition layer by implementing selected coding mode for part of image