CN102355579B - The coding or coding/decoding method and device of a kind of predictive mode - Google Patents

The coding or coding/decoding method and device of a kind of predictive mode Download PDF

Info

Publication number
CN102355579B
CN102355579B CN201110237865.6A CN201110237865A CN102355579B CN 102355579 B CN102355579 B CN 102355579B CN 201110237865 A CN201110237865 A CN 201110237865A CN 102355579 B CN102355579 B CN 102355579B
Authority
CN
China
Prior art keywords
mode
picture elements
predictive mode
adjacent picture
interframe
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.)
Expired - Fee Related
Application number
CN201110237865.6A
Other languages
Chinese (zh)
Other versions
CN102355579A (en
Inventor
梁立伟
王宁
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.)
ZTE Corp
Original Assignee
ZTE Corp
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 ZTE Corp filed Critical ZTE Corp
Priority to CN201110237865.6A priority Critical patent/CN102355579B/en
Publication of CN102355579A publication Critical patent/CN102355579A/en
Application granted granted Critical
Publication of CN102355579B publication Critical patent/CN102355579B/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

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/46Embedding additional information in the video signal during the compression process
    • H04N19/463Embedding additional information in the video signal during the compression process by compressing encoding parameters before transmission

Landscapes

  • Engineering & Computer Science (AREA)
  • Multimedia (AREA)
  • Signal Processing (AREA)
  • Compression Or Coding Systems Of Tv Signals (AREA)

Abstract

The invention provides a kind of coding of predictive mode or coding/decoding method and device, methods described to include:Judge the availability of the adjacent picture elements of present image unit, obtain the predictive mode combination of adjacent picture elements;According to predictive mode combination and predictive mode list index table, the predictive mode list of present image unit is obtained;When for coding side when, according to the predictive mode list of present image unit, entropy code is carried out to the actual prediction pattern of present image unit.The present invention is combined by obtaining the predictive mode of adjacent picture elements, obtain being best suitable for the predictive mode list of present image unit, especially when the predictive mode of adjacent picture elements is combined as the combination of interframe partition mode, preferably interframe partition mode list can also be obtained, so, movement properties, texture information of present image unit etc. are effectively combined, realizes adaptively selected predictive mode coding method and selection interframe partition mode coding method, improves the efficiency of video compress.

Description

The coding or coding/decoding method and device of a kind of predictive mode
Technical field
The present invention relates to coding and decoding video field, more particularly to a kind of coding of predictive mode or coding/decoding method and device.
Background technology
Reach efficient Video coding, such as infra-frame prediction, interframe in video coding algorithm using a series of technologies Prediction, conversion, quantization and entropy code etc..Image is wherein eliminated using block-based motion vector by inter prediction first Inter-frame redundancy, then redundancy in the frame of image is eliminated using spatial prediction mode by infra-frame prediction;Then by prediction Residual error carries out the visual redundancy that transform and quantization eliminates image;Finally by motion vector, predictive mode, quantization parameter and conversion Parameter constant entropy cataloged procedure is further compressed.
In Video Coding prediction pattern, include in skip mode, Direct Model, merging patterns, inter-frame mode and frame Pattern.Coding method for these predictive modes, the coded sequence of generally use is using skip mode as override, so at present It is other several modes successively afterwards.Above-mentioned coded sequence is obtained based on probability statistics, that is, assumes the quantity of skip mode most More, the rest may be inferred.
But for the image of a certain frame, due to the movement properties between two field picture, texture information and coding parameter etc. Influence so that the sequence of above-mentioned predictive mode might not can be adapted well to two field picture to be encoded, be likely to result in code The redundancy of word so that video compress it is inefficient.
And in the inter-frame mode of Video coding, include 16 × 16,16 × 8,8 × 16,8 × 8,8 × 4,4 × 8,4 The specific interframe division mould of × 4,32 × 32,32 × 16,16 × 32,64 × 64,64 × 32,32 × 64 grade multiple pixel sizes Formula, in order to distinguish these different interframe partition modes, it is necessary to take corresponding code word and make a distinction.Usually existing All it is that the partition mode of size block is placed on before code table in video encoding standard, then puts the division of small size block successively Pattern, when so being encoded to small size block partition mode, it just may require that more code word.
And be directed to for a certain two field picture, due to the influence of its movement properties, texture information and coding parameter etc., above-mentioned frame Between partition mode quantity number and differ so that the sequence of above-mentioned interframe partition mode be able to might not be adapted well to Two field picture to be encoded, be likely to result in the redundancy of code word so that video compress it is inefficient.
The content of the invention
In view of this, it is a primary object of the present invention to provide the coding or coding/decoding method and device of a kind of predictive mode, It is capable of the coding method of adaptively selected predictive mode, interframe partition mode, improves the efficiency of video compress.
To reach above-mentioned purpose, the technical proposal of the invention is realized in this way:
The coding or coding/decoding method of a kind of predictive mode, methods described include:
Judge the availability of the adjacent picture elements of present image unit, and adjacent picture elements are obtained according to judged result Predictive mode combination;
The predictive mode list index table for combining and prestoring according to the predictive mode of acquisition, obtains present image unit Predictive mode list;
When for coding side when, according to the predictive mode list of the present image unit, to the present image unit Actual prediction pattern carries out entropy code;Or
When for decoding end when, according to the predictive mode list of the present image unit, the prediction to present image unit Pattern carries out entropy decoding, obtains the actual predictive mode of present image unit.
Wherein, predictive mode included in the predictive mode list index table prestored is combined as:One phase Combination that combination that the predictive mode of adjacent elementary area is carried out, the predictive mode of two adjacent picture elements are carried out, three it is adjacent The combination that the predictive mode of elementary area is carried out or the combination that the predictive mode of four adjacent picture elements is carried out;
In the predictive mode list prestored, predictive mode puts in order according to the predictive mode list rope Draw the predictive mode combination in table corresponding to predictive mode list index to be ranked up.
Wherein, the predictive mode in the predictive mode list index table prestored is combined as three adjacent image lists During the combination that the predictive mode of member is carried out, the predictive mode for obtaining adjacent picture elements is combined as:
Obtain the predictive mode of four or three available adjacent picture elements of present image unit;
Three predictive modes are chosen from described four or three available predictive modes as the pre- of adjacent picture elements Survey mode combinations.
Wherein, the predictive mode in the predictive mode list index table prestored is combined as three adjacent image lists During the combination that the predictive mode of member is carried out, the predictive mode for obtaining adjacent picture elements is combined as:
Obtain the predictive mode of present image two available adjacent picture elements of unit;
The predictive mode of any one disabled adjacent picture elements of present image unit is configured to described two One of predictive mode of available adjacent picture elements.
Wherein, the predictive mode in the predictive mode list index table prestored is combined as three adjacent image lists During the combination that the predictive mode of member is carried out, the predictive mode for obtaining adjacent picture elements is combined as:
Obtain the predictive mode of present image one available adjacent picture elements of unit;
The predictive mode of the disabled adjacent picture elements of any two of present image unit is configured to one The predictive mode of available adjacent picture elements.
Wherein, the predictive mode in the predictive mode list index table prestored is combined as three adjacent image lists During the combination that the predictive mode of member is carried out, the predictive mode for obtaining adjacent picture elements is combined as:
The predictive mode of any three disabled adjacent picture elements of present image unit is respectively configured as predicting One kind of predictive mode in mode list concordance list.
Wherein, it is described that phase is obtained according to judged result when the predictive mode of the adjacent picture elements is inter-frame mode The predictive mode of adjacent elementary area is combined as:
Obtain the interframe partition mode combination of adjacent picture elements;
Correspondingly, the predictive mode list index table for combining and prestoring according to the predictive mode of acquisition, is obtained The predictive mode list of present image unit is:The interframe for combining and prestoring according to the interframe partition mode of acquisition divides mould Formula list index table, obtain the interframe partition mode list of present image unit;
The actual prediction pattern to the present image unit carries out entropy code:According to the present image unit Interframe partition mode list, entropy code is carried out to the actual interframe partition mode of the present image unit;
The described pair of predictive mode to present image unit carries out entropy decoding:According to the interframe of the present image unit Partition mode list, entropy decoding is carried out to the interframe partition mode of present image unit, obtains the actual of present image unit Interframe partition mode.
Wherein, the interframe partition mode in the interframe partition mode list index table prestored is combined as three phases During the combination that the interframe partition mode of adjacent elementary area is carried out, the interframe partition mode combination for obtaining adjacent picture elements For:
Obtain the interframe partition mode of four or three available adjacent picture elements of present image unit;
Three interframe partition modes are chosen from described four or three available interframe partition modes as adjacent image The interframe partition mode combination of unit;Or
Obtain the interframe partition mode of present image two available adjacent picture elements of unit;
The interframe partition mode of any one disabled adjacent picture elements of present image unit is configured to described One of interframe partition mode of two available adjacent picture elements;Or
Obtain the interframe partition mode of present image one available adjacent picture elements of unit;
The interframe partition mode of the disabled adjacent picture elements of any two of present image unit is configured to described The interframe partition mode of one available adjacent picture elements;Or
The interframe partition mode of any three disabled adjacent picture elements of present image unit is respectively configured as One kind of interframe partition mode in interframe partition mode list index table.
A kind of code device of predictive mode, described device include:Predictive mode acquisition module, predictive mode list query Module, coding module;Wherein,
Predictive mode acquisition module, the availability of the adjacent picture elements for judging present image unit, and according to sentencing Disconnected result obtains the predictive mode combination of adjacent picture elements;
Predictive mode list query module, for obtained according to the predictive mode acquisition module predictive mode combination and The predictive mode list index table prestored, obtains the predictive mode list of present image unit;
Coding module, for the predictive mode of the present image unit obtained according to the predictive mode list query module List, entropy code is carried out to the actual prediction pattern of the present image unit.
Wherein, the predictive mode in the predictive mode list index table prestored is combined as three adjacent image lists During the combination that the predictive mode of member is carried out, the predictive mode acquisition module, four specifically for obtaining present image unit Or the predictive mode of three available adjacent picture elements;Three are chosen from described four or three available predictive modes in advance Survey pattern combines as the predictive mode of adjacent picture elements.
Wherein, the predictive mode in the predictive mode list index table prestored is combined as three adjacent image lists During the combination that the predictive mode of member is carried out, the predictive mode acquisition module can specifically for obtaining present image unit two The predictive mode of adjacent picture elements;By the prediction of any one disabled adjacent picture elements of present image unit Pattern configurations are one of predictive mode of described two available adjacent picture elements.
Wherein, the predictive mode in the predictive mode list index table prestored is combined as three adjacent image lists During the combination that the predictive mode of member is carried out, the predictive mode acquisition module can specifically for obtaining present image unit one The predictive mode of adjacent picture elements;By the prediction of the disabled adjacent picture elements of any two of present image unit Pattern configurations are the predictive mode of one available adjacent picture elements.
Wherein, the predictive mode in the predictive mode list index table prestored is combined as three adjacent image lists During the combination that the predictive mode of member is carried out, the predictive mode acquisition module, specifically for by any the three of present image unit The predictive mode of individual disabled adjacent picture elements is respectively configured as one kind of predictive mode in predictive mode list index table.
Wherein, when the predictive mode of the adjacent picture elements is inter-frame mode, the predictive mode acquisition module, tool The interframe partition mode that body is used to obtain adjacent picture elements according to judged result combines;
The predictive mode list query module, drawn specifically for the interframe obtained according to the predictive mode acquisition module The interframe partition mode list index table that merotype is combined and prestored, obtain the interframe partition mode row of present image unit Table;
Coding module, for the interframe division of the present image unit obtained according to the predictive mode list query module Mode list, entropy code is carried out to the actual interframe partition mode of the present image unit.
Wherein, the interframe partition mode in the interframe partition mode list index table prestored is combined as three phases During the combination that the interframe partition mode of adjacent elementary area is carried out, the predictive mode acquisition module, specifically for obtaining current figure As the interframe partition mode of four of unit or three available adjacent picture elements;From described four or three available interframe The interframe partition mode that three interframe partition modes are chosen in partition mode as adjacent picture elements combines;Or obtain and work as The interframe partition mode of preceding two available adjacent picture elements of elementary area;Any one by present image unit is unavailable Adjacent picture elements interframe partition mode be configured to described two available adjacent picture elements interframe partition mode it One;Or obtain the interframe partition mode of present image one available adjacent picture elements of unit;By present image unit The interframe partition mode of the disabled adjacent picture elements of any two is configured to one available adjacent picture elements Interframe partition mode;Or the interframe partition mode by any three disabled adjacent picture elements of present image unit It is respectively configured as one kind of interframe partition mode in interframe partition mode list index table.
A kind of decoding apparatus of predictive mode, described device include:Predictive mode acquisition module, predictive mode list query Module, decoder module;Wherein,
Predictive mode acquisition module, the availability of the adjacent picture elements for judging present image unit, and according to sentencing Disconnected result obtains the predictive mode combination of adjacent picture elements;
Predictive mode list query module, for obtained according to the predictive mode acquisition module predictive mode combination and The predictive mode list index table prestored, obtains the predictive mode list of present image unit;
Decoder module, for the predictive mode of the present image unit obtained according to the predictive mode list query module List, entropy decoding is carried out to the predictive mode of present image unit, obtains the actual predictive mode of present image unit.
Wherein, when the predictive mode of the adjacent picture elements is inter-frame mode, the predictive mode acquisition module, tool The interframe partition mode that body is used to obtain adjacent picture elements according to judged result combines;
The predictive mode list query module, drawn specifically for the interframe obtained according to the predictive mode acquisition module The interframe partition mode list index table that merotype is combined and prestored, obtain the interframe partition mode row of present image unit Table;
Decoder module, specifically for the interframe partition mode list according to the present image unit, to present image list The interframe partition mode of member carries out entropy decoding, obtains the actual interframe partition mode of present image unit.
A kind of coding or coding/decoding method of interframe partition mode, methods described include:
Judge the availability of the adjacent picture elements of present image unit, and adjacent picture elements are obtained according to judged result Interframe partition mode combination;
The interframe partition mode list index table for combining and prestoring according to the interframe partition mode of acquisition, obtain current The interframe partition mode list of elementary area;
When for coding side when, according to the interframe partition mode list of the present image unit, to the present image list The actual interframe partition mode of member carries out entropy code;Or
When for decoding end when, according to the interframe partition mode list of the present image unit, to present image unit Interframe partition mode carries out entropy decoding, obtains the actual interframe partition mode of present image unit.
Wherein, interframe partition mode included in the interframe partition mode list index table prestored combination For:The combination of the interframe partition mode progress of one adjacent picture elements, the interframe partition mode of two adjacent picture elements enter The interframe of capable combination, the combination that the interframe partition mode of three adjacent picture elements is carried out or four adjacent picture elements is drawn The combination that merotype is carried out;
In the interframe partition mode list prestored, putting in order for interframe partition mode is drawn according to the interframe Interframe partition mode combination in merotype list index table corresponding to interframe partition mode list index is ranked up.
Wherein, the interframe partition mode in the interframe partition mode list index table prestored is combined as three phases During the combination that the interframe partition mode of adjacent elementary area is carried out, the interframe partition mode combination for obtaining adjacent picture elements For:
Obtain the interframe partition mode of four or three available adjacent picture elements of present image unit;
Three interframe partition modes are chosen from described four or three available interframe partition modes as adjacent image The interframe partition mode combination of unit;Or
Obtain the interframe partition mode of present image two available adjacent picture elements of unit;
The interframe partition mode of any one disabled adjacent picture elements of present image unit is configured to described One of interframe partition mode of two available adjacent picture elements;Or
Obtain the interframe partition mode of present image one available adjacent picture elements of unit;
The interframe partition mode of the disabled adjacent picture elements of any two of present image unit is configured to described The interframe partition mode of one available adjacent picture elements;Or
The interframe partition mode of any three disabled adjacent picture elements of present image unit is respectively configured as One kind of interframe partition mode in interframe partition mode list index table.
A kind of code device of interframe partition mode, described device include:Interframe partition mode acquisition module, interframe division Mode list enquiry module, coding module;Wherein,
Interframe partition mode acquisition module, the availability of the adjacent picture elements for judging present image unit, and root It is judged that result obtains the interframe partition mode combination of adjacent picture elements;
Interframe partition mode list query module, the interframe for being obtained according to the interframe partition mode acquisition module are drawn The interframe partition mode list index table that merotype is combined and prestored, obtain the interframe partition mode row of present image unit Table;
Coding module, for the interframe of the present image unit obtained according to the interframe partition mode list query module Partition mode list, entropy code is carried out to the actual interframe partition mode of the present image unit.
A kind of decoding apparatus of interframe partition mode, described device include:Interframe partition mode acquisition module, interframe division Mode list enquiry module, decoder module;Wherein,
Interframe partition mode acquisition module, the availability of the adjacent picture elements for judging present image unit, and root It is judged that result obtains the interframe partition mode combination of adjacent picture elements;
Interframe partition mode list query module, the interframe for being obtained according to the interframe partition mode acquisition module are drawn The interframe partition mode list index table that merotype is combined and prestored, obtain the interframe partition mode row of present image unit Table;
Decoder module, for the interframe partition mode list according to the present image unit, to present image unit Interframe partition mode carries out entropy decoding, obtains the actual interframe partition mode of present image unit.
The present invention is combined by obtaining the predictive mode of the adjacent picture elements of present image unit, obtains being best suitable for currently The predictive mode list of elementary area, according to obtained predictive mode list, the actual prediction pattern of present image unit is entered Row entropy code, especially adjacent picture elements predictive mode be combined as interframe partition mode combination when, can also basis obtain Preferably interframe partition mode list, and then entropy code is carried out to the actual interframe partition mode of present image unit, in this way, having Effect ground combines the movement properties of present image unit, texture information etc., realize adaptively selected predictive mode coding method with And interframe partition mode coding method is selected, improve the efficiency of video compress.
Brief description of the drawings
Fig. 1 is elementary area and the schematic diagram of adjacent picture elements;
Fig. 2 is elementary area and the schematic diagram of adjacent picture elements in a two field picture;
Fig. 3 is the signal of elementary area and adjacent picture elements in the two field picture for used strips S lice/GOB/VP Figure;
Fig. 4 is the coding of predictive mode provided by the invention or the implementation process schematic diagram of coding/decoding method;
Fig. 5 be predictive mode provided by the invention coding or coding/decoding method specific embodiment implementation process signal Figure;
Fig. 6 is the structural representation of the code device of predictive mode provided by the invention;
Fig. 7 is the structural representation of the decoding apparatus of predictive mode provided by the invention;
Fig. 8 is predictive mode provided by the invention when being inter-frame mode, on specific interframe partition mode coding or The implementation process schematic diagram of coding/decoding method;
Fig. 9 is predictive mode provided by the invention when being inter-frame mode, on specific interframe partition mode coding or The implementation process schematic diagram of the specific embodiment of coding/decoding method;
Figure 10 is the structural representation of the code device of interframe partition mode provided by the invention;
Figure 11 is the structural representation of the decoding apparatus of interframe partition mode provided by the invention.
Embodiment
The present invention basic thought be:Judge the availability of the adjacent picture elements of present image unit, and according to judgement As a result the predictive mode combination of adjacent picture elements is obtained;The predictive mode for combining and prestoring according to the predictive mode of acquisition List index table, obtain the predictive mode list of present image unit;When for coding side when, according to the present image unit Predictive mode list, entropy code is carried out to the actual prediction pattern of the present image unit;Or when for decoding end when, root According to the predictive mode list of the present image unit, entropy decoding is carried out to the predictive mode of present image unit, obtained current The actual predictive mode of elementary area.
For the ease of the present invention understanding, introduce first elementary area adjacent picture elements and its availability it is general Read.
Locus between one elementary area E and its adjacent picture elements A, B, C and D in figure as shown in figure 1, scheme As the size of unit can be 16 × 16,32 × 32,64 × 64 or other Pixel Dimensions;Wherein A is E left elementary area, B It is E upper images unit, C is E upper right side elementary area, and D is E upper left-hand image unit.
Adjacent picture elements X (X A, B, C or D) " availability " refers to that the elementary area should be in the image, and is somebody's turn to do Elementary area should belong in same band (Slice/GOB/VP) with present image unit E, and encode or decoded prior to E Into;Otherwise, adjacent picture elements are considered as " unavailable ".
Here, elementary area can be in efficient video coding (High Efficiency Video Coding, HEVC) Coding unit (Coding Unit, CU) or predicting unit (Prediction Unit, PU) or H.264, H.263 With the macro block (Macro Block, MB) in the standard such as MPEG-4.
Fig. 2 is elementary area and the schematic diagram of adjacent picture elements in a two field picture, it can be seen that the phase in image border Adjacent elementary area only has part available or even all unavailable, is such as located at the elementary area E adjacent picture elements in the upper left corner not It can use;It can use positioned at the elementary area E in lower left corner adjacent picture elements part.
Fig. 3 is elementary area and the schematic diagram of adjacent picture elements in the two field picture for used Slice/GOB/VP, such as Shown in Fig. 3, due to having used Slice/GOB/VP packings, even if elementary area E is not at image border, its adjacent picture elements Also the disabled situation in part occurs.
It is by the following examples and referring to the drawings, right for the object, technical solutions and advantages of the present invention are more clearly understood The present invention is further described.
Fig. 4 shows the coding of predictive mode of the present invention or the implementation process of coding/decoding method, as shown in figure 4, methods described Comprise the steps:
Step 401, the availability of the adjacent picture elements of present image unit is judged;
Specifically, in this step, by judging whether the actual prediction pattern of adjacent picture elements has obtained, if so, Then the adjacent picture elements are available, otherwise to be unavailable.
Step 402, the predictive mode combination of adjacent picture elements is obtained;
In this step, first, according to the pre- of the adjacent picture elements of the judged result of step 401 acquisition present image unit Survey mode combinations;Then, it is adjacent included by the predictive mode combination in the predictive mode list index table prestored The number of elementary area, obtain the predictive mode combination of adjacent picture elements;Wherein, the combination of predictive mode can be a phase Combination that combination that the predictive mode of adjacent elementary area is carried out, the predictive mode of two adjacent picture elements are carried out, three it is adjacent The combination that the predictive mode of elementary area is carried out or the combination that the predictive mode of four adjacent picture elements is carried out;
Predictive mode list index table is the concordance list for indexing predictive mode list, it include predictive mode combination and Predictive mode list index corresponding to the combination;Predictive mode puts in order in the predictive mode list prestored Predictive mode combination according to corresponding to predictive mode list index is ranked up.
Further, since in actual video standard, predictive mode further comprise it is a variety of, it is for convenience of description, only right here The predictive mode of adjacent picture elements carries out skip mode (Skip Mode), inter-frame mode (Inter Mode), frame mode Differentiation in the big classification such as (Intra Mode), it is interframe 16 × 16 without further distinguishing, or interframe 16 × 8 etc. tool The interframe partition mode of body, in this way, working as predictive mode includes skip mode, inter-frame mode, frame mode, each predictive mode When combination includes the predictive mode of 3 adjacent picture elements, according to permutation and combination, then need to prestore 33=27 prediction moulds Formula list;When the combination of each predictive mode includes the predictive mode of 2 adjacent picture elements, then need to prestore 32=9 predictive mode lists;By that analogy, repeat no more.
Step 403, the predictive mode combination of the adjacent picture elements of the present image unit obtained according to step 402 and pre- The predictive mode list index table first stored, obtain the predictive mode list Lp of present image unit;
Specifically, predictive mode list index table is inquired about, is found and step 402 in the predictive mode list index table The predictive mode combination identical predictive mode combination of obtained adjacent picture elements, and then obtain prediction mould corresponding to the combination Formula list index, by the index, the predictive mode list prestored corresponding with the index is further obtained, as current The predictive mode list Lp of elementary area.
Step 404, when for coding side when, present image unit is encoded, obtains actual predictive mode P;
Step 405, the actual prediction pattern P according to the predictive mode list Lp of present image unit to present image unit Carry out entropy code;
Step 406, when for decoding end when, according to the predictive mode list Lp of present image unit, to currently scheming in code stream As the predictive mode progress entropy decoding of unit, the actual predictive mode P of present image unit is obtained.
With reference to the predictive mode list index table shown in Fig. 5 and table 1, have to the method for above-mentioned coding or decoding Body illustrates, 3 adjacent picture elements that the predictive mode combination in the predictive mode list index table wherein shown in table 1 includes Predictive mode, meanwhile, for convenience of description, the predictive mode that predictive mode combination includes is respectively:Skip mode (represents For 0), inter-frame mode (being expressed as 1), frame mode (being expressed as 2).
Table 1
Fig. 5 shows the implementation process of the coding of predictive mode of the present invention or the specific embodiment of coding/decoding method, such as Fig. 5 institutes Show, the specific embodiment comprises the steps:
Step 501, the availability of the adjacent picture elements of present image unit is judged;
Specifically, in this step, by judging whether the actual prediction pattern of adjacent picture elements has obtained, if so, Then the adjacent picture elements are available, otherwise to be unavailable.
Step 502, the predictive mode of available adjacent picture elements is obtained;
In this step, when present image unit has 3 or 4 available adjacent picture elements, then what is obtained is available Adjacent picture elements predictive mode be 3 or 4, now perform step 503;When the available adjacent picture elements of acquisition Predictive mode be 2 when, perform step 504;When the predictive mode of the available adjacent picture elements of acquisition is 1, hold Row step 505;When present image unit does not have available adjacent picture elements, the available adjacent picture elements of acquisition it is pre- Survey pattern is 0, then performs step 506;
Step 503, three predictive modes are chosen from four obtained or three available predictive modes as phase The predictive mode combination of adjacent elementary area, performs step 507;
Step 504, the predictive mode of any disabled adjacent picture elements of present image unit is configured to described One of predictive mode of available adjacent picture elements, obtain the pre- of predictive mode for including 3 adjacent picture elements Mode combinations are surveyed, perform step 507;
Step 505, the predictive mode of wantonly two disabled adjacent picture elements of present image unit is configured to institute The predictive mode of an available adjacent picture elements is stated, obtains predictive mode for including 3 adjacent picture elements Predictive mode combines, and performs step 507;
Step 506, the predictive mode of wantonly three disabled adjacent picture elements of present image unit is respectively configured For one kind of predictive mode in predictive mode list index table, a predictive mode for including 3 adjacent picture elements is obtained Predictive mode combination, perform step 507;
Wherein in this step, the predictive modes of selected three disabled adjacent picture elements is configurable to identical It is or different.
Step 507, the predictive mode list combined and prestored according to the predictive mode of obtained adjacent picture elements Concordance list, obtain the predictive mode list Lp of present image unit;
Here, predictive mode list index table is inquired about, the phase with obtaining is found in the predictive mode list index table The predictive mode combination identical predictive mode combination of adjacent elementary area, and then obtain predictive mode list rope corresponding to the combination Draw, by the index, the predictive mode list prestored corresponding with the index is further obtained, as present image unit Predictive mode list Lp;
Such as when obtained predictive mode is combined as (0,0,0), its corresponding predictive mode list rope is learnt by table 1 0 is cited as, then index can be further searched in the predictive mode list prestored as 0 predictive mode list, the present invention In embodiment, specifically by taking P frames in Baseline in H.264 standard as an example, indexing can use for 0 predictive mode list H.264 the predictive mode list in standard, as shown in table 2:
Prediction mode number Predictive mode
0 P_Skip
1 P_L0_16x16
2 P_L0_L0_16x8
3 P_L0_L0_8x16
4 P_8x8
5 P_8x8ref0
6 Intra_4x4
7 I_16x16_0_0_0
8 I_16x16_1_0_0
9 I_16x16_2_0_0
10 I_16x16_3_0_0
11 I_16x16_0_1_0
12 I_16x16_1_1_0
13 I_16x16_2_1_0
14 I_16x16_3_1_0
15 I_16x16_0_2_0
16 I_16x16_1_2_0
17 I_16x16_2_2_0
18 I_16x16_3_2_0
19 I_16x16_0_0_1
20 I_16x16_1_0_1
21 I_16x16_2_0_1
22 I_16x16_3_0_1
23 I_16x16_0_1_1
24 I_16x16_1_1_1
25 I_16x16_2_1_1
26 I_16x16_3_1_1
27 I_16x16_0_2_1
28 I_16x16_1_2_1
29 I_16x16_2_2_1
30 I_16x16_3_2_1
31 I_PCM
Table 2
Meanwhile in predictive mode list each predictive mode sequence, i.e., the prediction mode number corresponding to each predictive mode, It is the sequence that the predictive mode combination according to corresponding to the predictive mode list index is carried out, for example, prediction mould of the index for 13 Formula list is as shown in table 3, and the predictive mode corresponding in table 1 of index 13 is combined as (1,1,1), i.e. the phase of present image unit The predictive mode of adjacent elementary area is inter-frame mode, thus the predictive mode of present image unit for inter-frame mode possibility most Greatly, therefore the prediction mode number 1~5 for belonging to inter-frame mode in table 2 is promoted to 0~4, obtains table 3, this kind sequence can be fine Ground has been effectively combined the motion category of present image unit by adjacent picture elements and the movement relation of present image unit Property, texture information etc., are predicted the selection of mode coding method.
Prediction mode number Predictive mode
0 P_L0_16x16
1 P_L0_L0_16x8
2 P_L0_L0_8x16
3 P_8x8
4 P_8x8ref0
5 P_Skip
6 Intra_4x4
7 I_16x16_0_0_0
8 I_16x16_1_0_0
9 I_16x16_2_0_0
10 I_16x16_3_0_0
11 I_16x16_0_1_0
12 I_16x16_1_1_0
13 I_16x16_2_1_0
14 I_16x16_3_1_0
15 I_16x16_0_2_0
16 I_16x16_1_2_0
17 I_16x16_2_2_0
18 I_16x16_3_2_0
19 I_16x16_0_0_1
20 I_16x16_1_0_1
21 I_16x16_2_0_1
22 I_16x16_3_0_1
23 I_16x16_0_1_1
24 I_16x16_1_1_1
25 I_16x16_2_1_1
26 I_16x16_3_1_1
27 I_16x16_0_2_1
28 I_16x16_1_2_1
29 I_16x16_2_2_1
30 I_16x16_3_2_1
31 I_PCM
Table 3
Step 508, when for coding side when, present image unit is encoded, obtains actual predictive mode P, perform Step 509;
Step 509, the actual prediction pattern P according to the predictive mode list Lp of present image unit to present image unit Carry out entropy code;
Specifically, when the predictive mode of present image unit is combined as (2,2,2), then the prediction mould of present image unit Formula list Lp is the predictive mode list that index is 26;It is specific as shown in table 4;
The actual prediction pattern P of present image unit is frame mode again, reference table 2, will belong to frame mode in table 2 Prediction mode number is promoted to 0~4 for 6~10, index shown in table 4 is obtained as 26 predictive mode list, in this way, present image The priority of the actual prediction pattern of unit significantly improves.For example, when the actual prediction pattern of present image unit is Intra_4 When × 4, now, when carrying out entropy code to predictive mode Intra_4 × 4 using table 4, by predictive mode Intra_4 × 4 institutes are right The numbering answered is 0, and the entropy code to 0 can be completed using 1 bit, therefore now only needs 1 bit to complete to prediction The entropy code of pattern Intra_4 × 4;And the predictive mode list (as shown in table 2) in H.264 standard is used, due to predicting mould Numbering corresponding to Formulas I ntra_4 × 4 is 6, it is therefore desirable to can just complete the entropy code to 6 using 5 bits, so when need 5 bits could complete the entropy code to predictive mode Intra_4 × 4, it can thus be seen that the present invention utilizes less code word The purpose of the entropy code to actual prediction pattern P can be completed.
Prediction mode number Predictive mode
0 Intra_4x4
1 I_16x16_0_0_0
2 I_16x16_1_0_0
3 I_16x16_2_0_0
4 I_16x16_3_0_0
5 P_L0_16x16
6 P_L0_L0_16x8
7 P_L0_L0_8x16
8 P_8x8
9 P_8x8ref0
10 P_Skip
11 I_16x16_0_1_0
12 I_16x16_1_1_0
13 I_16x16_2_1_0
14 I_16x16_3_1_0
15 I_16x16_0_2_0
16 I_16x16_1_2_0
17 I_16x16_2_2_0
18 I_16x16_3_2_0
19 I_16x16_0_0_1
20 I_16x16_1_0_1
21 I_16x16_2_0_1
22 I_16x16_3_0_1
23 I_16x16_0_1_1
24 I_16x16_1_1_1
25 I_16x16_2_1_1
26 I_16x16_3_1_1
27 I_16x16_0_2_1
28 I_16x16_1_2_1
29 I_16x16_2_2_1
30 I_16x16_3_2_1
31 I_PCM
Table 4
Step 510, when for decoding end when, according to the predictive mode list Lp of present image unit, to currently scheming in code stream As the predictive mode progress entropy decoding of unit, the actual predictive mode P of present image unit is obtained.
Fig. 6 shows the structural representation of the code device of predictive mode provided by the invention, as shown in fig. 6, the coding Device includes:Predictive mode acquisition module 61, predictive mode list query module 62, coding module 63;Wherein,
Predictive mode acquisition module 61, the availability of the adjacent picture elements for judging present image unit, and according to Judged result obtains the predictive mode combination of adjacent picture elements;First, the available adjacent image list of present image unit is obtained The predictive mode of member;Then, the phase included by the predictive mode combination in the predictive mode list index table prestored The number of adjacent elementary area, obtain the predictive mode combination of adjacent picture elements;Wherein, the combination of predictive mode can be one Combination that combination that the predictive modes of adjacent picture elements is carried out, the predictive mode of two adjacent picture elements are carried out, three phases The combination that the predictive mode of adjacent elementary area is carried out or the combination that the predictive mode of four adjacent picture elements is carried out;
Predictive mode list index table is the concordance list for indexing predictive mode list, it include predictive mode combination and Predictive mode list index corresponding to the combination;Predictive mode puts in order in the predictive mode list prestored Predictive mode combination according to corresponding to predictive mode list index is ranked up.
Predictive mode list query module 62, for the predictive mode group obtained according to the predictive mode acquisition module 61 The predictive mode list index table for closing and prestoring, obtains the predictive mode list of present image unit;Specifically, inquiry is pre- Mode list concordance list is surveyed, finds what is obtained with the predictive mode acquisition module 61 in the predictive mode list index table Predictive mode combination identical predictive mode combination, and then predictive mode list index corresponding to the combination is obtained, pass through the rope Draw, further obtain the predictive mode list prestored corresponding with the index, the predictive mode as present image unit List.
Coding module 63, for the prediction of the present image unit obtained according to the predictive mode list query module 62 Mode list, entropy code is carried out to the actual prediction pattern of the present image unit.
Wherein, the prediction mould in the predictive mode list index table that the predictive mode list query module 62 prestores Formula is combined as the combination of the predictive mode progress of an adjacent picture elements, the predictive mode of two adjacent picture elements is carried out What the predictive mode of combination, the combination that the predictive mode of three adjacent picture elements is carried out or four adjacent picture elements was carried out Combination;For convenience of description, skip mode, inter-frame mode can be carried out to the predictive modes of adjacent picture elements here, in frame Differentiation in the big classification such as pattern, it is interframe 16 × 16 without further distinguishing, or the specific interframe of interframe 16 × 8 etc. Partition mode, in this way, when predictive mode includes skip mode, inter-frame mode, frame mode, the combination of each predictive mode includes During the predictive mode of 3 adjacent picture elements, then need to prestore 33=27 predictive mode lists;When each prediction When the combination of pattern includes the predictive mode of 2 adjacent picture elements, then need to prestore 32=9 predictive mode lists are Can;By that analogy, repeat no more.
Further, the predictive mode in the predictive mode list index table prestored is combined as three prediction moulds During the combination that formula is carried out, the predictive mode acquisition module 61 can use specifically for obtaining four or three of present image unit Adjacent picture elements predictive mode;Three predictive mode conducts are chosen from described four or three available predictive modes The predictive mode combination of adjacent picture elements.
Further, the predictive mode in the predictive mode list index table prestored is combined as three prediction moulds During the combination that formula is carried out, the predictive mode acquisition module 61 is specifically used for obtaining present image two available neighbor maps of unit As the predictive mode of unit;The predictive mode of any disabled adjacent picture elements of current coded unit is configured to described One of predictive mode of two available adjacent picture elements.
Further, the predictive mode in the predictive mode list index table prestored is combined as three prediction moulds During the combination that formula is carried out, the predictive mode acquisition module 61 is specifically used for obtaining present image one available neighbor map of unit As the predictive mode of unit;The predictive mode of wantonly two disabled adjacent picture elements of present image unit is configured to institute State the predictive mode of an available adjacent picture elements.
Further, the predictive mode in the predictive mode list index table prestored is combined as three prediction moulds During the combination that formula is carried out, the predictive mode acquisition module 61 is specifically used for wantonly three disabled phases of present image unit The predictive mode of adjacent elementary area is respectively configured as predicting in the combination of predictive mode and the corresponding table of predictive mode list index One kind of pattern, obtain the predictive mode combination of a predictive mode for including 3 adjacent picture elements;Selected in it The predictive mode of three disabled adjacent picture elements is configurable to identical or different.
Here, when the predictive mode of the adjacent picture elements is interframe partition mode, the predictive mode obtains mould Block 61, combined specifically for the interframe partition mode that adjacent picture elements are obtained according to judged result;
The predictive mode list query module 62, specifically for the frame obtained according to the predictive mode acquisition module 61 Between partition mode combination and the interframe partition mode list index table that prestores, obtain the interframe division mould of present image unit Formula list;
Coding module 63, for the interframe of the present image unit obtained according to the predictive mode list query module 62 Partition mode list, entropy code is carried out to the actual interframe partition mode of the present image unit.
Correspondingly, the interframe partition mode in the interframe partition mode list index table prestored is combined as three During the combination that the interframe partition mode of adjacent picture elements is carried out, the predictive mode acquisition module 61, work as specifically for obtaining The interframe partition mode of four of preceding elementary area or three available adjacent picture elements;It is available from described four or three The interframe partition mode that three interframe partition modes are chosen in interframe partition mode as adjacent picture elements combines;Or obtain Take the interframe partition mode of two available adjacent picture elements of present image unit;By present image unit any one not The interframe partition mode of available adjacent picture elements is configured to the interframe division mould of described two available adjacent picture elements One of formula;Or obtain the interframe partition mode of present image one available adjacent picture elements of unit;By present image list The interframe partition mode of the disabled adjacent picture elements of any two of member is configured to one available adjacent image list The interframe partition mode of member;Or the interframe of any three disabled adjacent picture elements of present image unit is divided Pattern is respectively configured as one kind of interframe partition mode in interframe partition mode list index table.
Fig. 7 shows the structural representation of the decoding apparatus of predictive mode provided by the invention, as shown in fig. 7, the decoding Device includes:Predictive mode acquisition module 71, predictive mode list query module 72, decoder module 73;Wherein,
Predictive mode acquisition module 71, the availability of the adjacent picture elements for judging present image unit, and according to Judged result obtains the predictive mode combination of adjacent picture elements;First, the available adjacent image list of present image unit is obtained The predictive mode of member;Then, the phase included by the predictive mode combination in the predictive mode list index table prestored The number of adjacent elementary area, obtain the predictive mode combination of adjacent picture elements;Wherein, the combination of predictive mode can be one Combination that combination that the predictive modes of adjacent picture elements is carried out, the predictive mode of two adjacent picture elements are carried out, three phases The combination that the predictive mode of adjacent elementary area is carried out or the combination that the predictive mode of four adjacent picture elements is carried out;
Predictive mode list index table is the concordance list for indexing predictive mode list, it include predictive mode combination and Predictive mode list index corresponding to the combination;Predictive mode puts in order in the predictive mode list prestored Predictive mode combination according to corresponding to predictive mode list index is ranked up.
Predictive mode list query module 72, for the predictive mode group obtained according to the predictive mode acquisition module 71 The predictive mode list index table for closing and prestoring, obtains the predictive mode list of present image unit;Specifically, inquiry is pre- Mode list concordance list is surveyed, finds what is obtained with the predictive mode acquisition module 71 in the predictive mode list index table Predictive mode combination identical predictive mode combination, and then predictive mode list index corresponding to the combination is obtained, pass through the rope Draw, further obtain the predictive mode list prestored corresponding with the index, the predictive mode as present image unit List.
Decoder module 73, for the predictive mode list according to the present image unit, to the pre- of present image unit Survey pattern carries out entropy decoding, obtains the actual predictive mode of present image unit.
Wherein, the prediction mould in the predictive mode list index table that the predictive mode list query module 72 prestores Formula is combined as the combination of the predictive mode progress of an adjacent picture elements, the predictive mode of two adjacent picture elements is carried out What the predictive mode of combination, the combination that the predictive mode of three adjacent picture elements is carried out or four adjacent picture elements was carried out Combination;For convenience of description, skip mode, interframe mould can be carried out to the predictive mode of available adjacent picture elements here Differentiation in the big classification such as formula, frame mode, it is interframe 16 × 16 without further distinguishing, or interframe 16 × 8 etc. tool The interframe partition mode of body, in this way, working as predictive mode includes skip mode, inter-frame mode, frame mode, each predictive mode When combination includes the predictive mode of 3 adjacent picture elements, then need to prestore 33=27 predictive mode lists;When When the combination of each predictive mode includes the predictive mode of 2 adjacent picture elements, then need to prestore 32=9 prediction moulds Formula list;By that analogy, repeat no more.
Predictive mode puts in order according to the predictive mode list rope in the predictive mode list prestored Draw the predictive mode combination in table corresponding to predictive mode list index to be ranked up.
Here, when the predictive mode of the adjacent picture elements is interframe partition mode, the predictive mode obtains mould Block 71, combined specifically for the interframe partition mode that adjacent picture elements are obtained according to judged result;
The predictive mode list query module 72, specifically for the frame obtained according to the predictive mode acquisition module 72 Between partition mode combination and the interframe partition mode list index table that prestores, obtain the interframe division mould of present image unit Formula list;
Decoder module 73, specifically for the interframe partition mode list according to the present image unit, to present image The interframe partition mode of unit carries out entropy decoding, obtains the actual interframe partition mode of present image unit.
Correspondingly, the interframe partition mode in the interframe partition mode list index table prestored is combined as three During the combination that the interframe partition mode of adjacent picture elements is carried out, the predictive mode acquisition module 71, work as specifically for obtaining The interframe partition mode of four of preceding elementary area or three available adjacent picture elements;It is available from described four or three The interframe partition mode that three interframe partition modes are chosen in interframe partition mode as adjacent picture elements combines;Or obtain Take the interframe partition mode of two available adjacent picture elements of present image unit;By present image unit any one not The interframe partition mode of available adjacent picture elements is configured to the interframe division mould of described two available adjacent picture elements One of formula;Or obtain the interframe partition mode of present image one available adjacent picture elements of unit;By present image list The interframe partition mode of the disabled adjacent picture elements of any two of member is configured to one available adjacent image list The interframe partition mode of member;Or the interframe of any three disabled adjacent picture elements of present image unit is divided Pattern is respectively configured as one kind of interframe partition mode in interframe partition mode list index table.
It should be appreciated that above-mentioned encoding apparatus and decoding apparatus can also be incorporated in same device, with reference to obtained volume Decoding apparatus includes predictive mode acquisition module, predictive mode list query module, coding module and decoder module;It is wherein each The function of module is same as described above, repeats no more.
Fig. 8 shows predictive mode provided by the invention when being inter-frame mode, the volume on specific interframe partition mode The implementation process of code or coding/decoding method, as shown in figure 8, methods described comprises the steps:
Step 801, the availability of the adjacent picture elements of present image unit is judged;
Specifically, in this step, by judging whether the actual interframe partition mode of adjacent picture elements has obtained, if It is that then the adjacent picture elements are available, otherwise to be unavailable.
Step 802, the interframe partition mode combination of adjacent picture elements is obtained;
In this step, first, the frame of the adjacent picture elements of present image unit is obtained according to the judged result of step 801 Between partition mode combine;Then, the interframe partition mode combination in the interframe partition mode list index table prestored The number of included adjacent picture elements, obtain the interframe partition mode combination of adjacent picture elements;Wherein, interframe division mould The combination of formula can be the interframe partition mode of adjacent picture elements carry out combination, the interframe of two adjacent picture elements The combination or four adjacent image lists that the combination of partition mode progress, the interframe partition mode of three adjacent picture elements are carried out The combination that the interframe partition mode of member is carried out;
Interframe partition mode list index table is the concordance list for indexing interframe partition mode list, and it includes interframe and drawn Interframe partition mode list index corresponding to merotype combination and the combination;The interframe partition mode list prestored The interframe partition mode to put in order according to corresponding to interframe partition mode list index the combination of middle interframe partition mode is carried out Sequence.
In addition, in the actual video standard, interframe partition mode include PART_2N × 2N, PART_2N × N, PART_N × When 2N, PART_N × tetra- kinds of interframe partition modes of N, and when the combination of each interframe partition mode includes 3 adjacent picture elements Interframe partition mode when, according to permutation and combination, then need to prestore 43=64 interframe partition mode lists;When every When the combination of individual interframe partition mode includes the interframe partition mode of 2 adjacent picture elements, then need to prestore 42=16 Individual interframe partition mode list;By that analogy, repeat no more.
Step 803, the interframe partition mode combination of the adjacent picture elements of the present image unit obtained according to step 802 With the interframe partition mode list index table prestored, the interframe partition mode list Lp ' of present image unit is obtained;
Specifically, interframe partition mode list index table is inquired about, is found in the interframe partition mode list index table The interframe partition mode of the adjacent picture elements obtained with step 802 combines the combination of identical interframe partition mode, and then obtains Interframe partition mode list index corresponding to the combination, by the index, further obtain prestore corresponding with the index Interframe partition mode list, the interframe partition mode list Lp ' as present image unit.
Step 804, when for coding side when, present image unit is encoded, obtains actual interframe partition mode P ';
Step 805, the actual interframe according to the interframe partition mode list Lp ' of present image unit to present image unit Partition mode P carries out entropy code;
Step 806, when for decoding end when, according to the interframe partition mode list Lp ' of present image unit, in code stream when The interframe partition mode of preceding elementary area carries out entropy decoding, obtains the actual interframe partition mode P ' of present image unit.
With reference to the interframe partition mode list index table shown in Fig. 9 and table 5, the method for above-mentioned coding or decoding is entered Row illustrates, 3 phases that the interframe partition mode combination in the interframe partition mode list index table wherein shown in table 5 includes The interframe partition mode of adjacent elementary area, meanwhile, for convenience of description, the interframe division that interframe partition mode combination includes Pattern is respectively:PART_2N × 2N (being expressed as 0), PART_2N × N (being expressed as 1), PART_N × 2N (being expressed as 2), PART_ N × N (is expressed as 3);Wherein, N herein can be the Pixel Dimensions such as 4,8 or 16.
Table 5
Fig. 9 shows predictive mode provided by the invention when being inter-frame mode, the volume on specific interframe partition mode The implementation process of the specific embodiment of code or coding/decoding method, as shown in figure 9, the specific embodiment comprises the steps:
Step 901, the availability of the adjacent picture elements of present image unit is judged;
Specifically, in this step, by judging whether the actual interframe partition mode of adjacent picture elements has obtained, if It is that then the adjacent picture elements are available, otherwise to be unavailable.
Step 902, the interframe partition mode of available adjacent picture elements is obtained;
In this step, when present image unit has 3 or 4 available adjacent picture elements, then what is obtained is available Adjacent picture elements interframe partition mode be 3 or 4, now perform step 903;When the available adjacent image of acquisition When the interframe partition mode of unit is 2, step 904 is performed;When the interframe of the available adjacent picture elements of acquisition divides mould When formula is 1, step 905 is performed;When present image unit does not have available adjacent picture elements, the available neighbor map of acquisition As unit interframe partition mode be 0 when, then perform step 906;
Step 903, three interframe division moulds are chosen from four obtained or three available interframe partition modes Formula combines as the interframe partition mode of adjacent picture elements, performs step 907;
Step 904, the interframe partition mode of any disabled adjacent picture elements of present image unit is configured to One of interframe partition mode of the available adjacent picture elements, obtain the interframe for including 3 adjacent picture elements The interframe partition mode combination of partition mode, performs step 907;
Step 905, the interframe partition mode of wantonly two disabled adjacent picture elements of present image unit is configured For the interframe partition mode of one available adjacent picture elements, a frame for including 3 adjacent picture elements is obtained Between partition mode interframe partition mode combination, perform step 907;
Step 906, the interframe partition mode of wantonly three disabled adjacent picture elements of present image unit is distinguished One kind of interframe partition mode in interframe partition mode list index table is configured to, one is obtained and includes 3 adjacent image lists The interframe partition mode combination of the interframe partition mode of member, performs step 907;
Wherein in this step, the interframe partition mode of selected three disabled adjacent picture elements is configurable to It is identical or different.
Step 907, the interframe for combining and prestoring according to the interframe partition mode of obtained adjacent picture elements divides Mode list concordance list, obtain the interframe partition mode list Lp ' of present image unit;
Here, inquire about interframe partition mode list index table, found in the interframe partition mode list index table with The interframe partition mode combination identical interframe partition mode combination of obtained adjacent picture elements, and then it is corresponding to obtain the combination Interframe partition mode list index, by the index, further obtain the interframe division prestored corresponding with the index Mode list, the interframe partition mode list Lp ' as present image unit;
Such as when obtained interframe partition mode is combined as (0,0,0), learn that its corresponding interframe divides mould by table 5 Formula list index is 0, then index can be further searched in the interframe partition mode list prestored and is divided for 0 interframe Mode list, in the embodiment of the present invention, by taking HEVC standard as an example, index specific such as the institute of table 6 for 0 interframe partition mode list Show:
Interframe partition mode is numbered Interframe partition mode
0 PART_2Nx2N
1 PART_2NxN
2 PART_Nx2N
3 PART_NxN
Table 6
Meanwhile in interframe partition mode list each interframe partition mode sequence, i.e., corresponding to each interframe partition mode Interframe partition mode is numbered, and is the row that the interframe partition mode combination according to corresponding to the interframe partition mode list index is carried out Sequence, for example, index is as shown in table 7 for 21 interframe partition mode list, the interframe partition mode corresponding in table 5 of index 21 Being combined as (1,1,1), i.e. the interframe partition mode of the adjacent picture elements of present image unit is PART_2N × N, therefore currently The possibility that the interframe partition mode of elementary area is PART_2N × N is maximum, is PART_2N × 2N or PART_N × N possibility Property take second place, be that PART_N × 2N possibility is minimum;Therefore the interframe partition mode numbering 1 of PART_2N × N in table 6 is promoted to The interframe partition mode numbering 3 that 0, PART_2N × 2N interframe partition mode numbering 0 is changed into 1, PART_N × N is promoted to 2, PART_N × 2N interframe partition mode numbering 2 is changed into 3, obtains table 7, and this kind sequence can pass through adjacent picture elements well With the movement relation of present image unit, movement properties, texture information of present image unit etc. have been effectively combined, has carried out frame Between partition mode coding method selection.
Interframe partition mode is numbered Interframe partition mode
0 PART_2NxN
1 PART_2Nx2N
2 PART_NxN
3 PART_Nx2N
Table 7
Step 908, when for coding side when, present image unit is encoded, obtains actual interframe partition mode P ', Perform step 909;
Step 909, the actual interframe according to the interframe partition mode list Lp ' of present image unit to present image unit Partition mode P ' carries out entropy code;
Specifically, when the interframe partition mode of present image unit is combined as (2,2,2), then the interframe of present image unit Partition mode list Lp ' is the interframe partition mode list that index is 42;It is specific as shown in table 8;
The actual interframe partition mode P ' of present image unit is PART_N × 2N again, reference table 6, interframe in table 6 is drawn Merotype is that PART_N × 2N prediction mode number 2 is promoted to 0, obtains index shown in table 8 and is arranged for 42 interframe partition mode Table, in this way, actual interframe partition mode PART_N × 2N of present image unit priority significantly improves.For example, when current When the actual prediction pattern of elementary area is PART_N × 2N, now, interframe partition mode PART_N × 2N is carried out using table 8 During entropy code, because the numbering corresponding to interframe partition mode PART_N × 2N is 0, the entropy to 0 can be completed using 1 bit Coding, therefore now only need 1 bit to complete the entropy code to interframe partition mode PART_N × 2N;And HEVC is used to mark Interframe partition mode list (as shown in table 6) in standard, because the numbering corresponding to interframe partition mode PART_N × 2N is 3, Therefore need just complete the entropy code to 3 using multiple bits, it can thus be seen that the present invention can utilize less code word The purpose of the entropy code to actual interframe partition mode P ' can be completed.
Interframe partition mode is numbered Interframe partition mode
0 PART_Nx2N
1 PART_2Nx2N
2 PART_NxN
3 PART_2NxN
Table 8
Step 910, when for decoding end when, according to the interframe partition mode list Lp ' of present image unit, in code stream when The interframe partition mode of preceding elementary area carries out entropy decoding, obtains the actual interframe partition mode P ' of present image unit.
Figure 10 shows the structural representation of the code device of interframe partition mode provided by the invention, as shown in Figure 10, institute Stating code device includes:Interframe partition mode acquisition module 101, interframe partition mode list query module 102, coding module 103;Wherein,
Interframe partition mode acquisition module 101, the availability of the adjacent picture elements for judging present image unit, and The interframe partition mode that adjacent picture elements are obtained according to judged result combines;First, the available phase of present image unit is obtained The interframe partition mode of adjacent elementary area;Then, the interframe in the interframe partition mode list index table prestored is drawn The number of the included adjacent picture elements of merotype combination, obtain the interframe partition mode combination of adjacent picture elements;Wherein, The combination of interframe partition mode can be the combination of the interframe partition mode progress of an adjacent picture elements, two adjacent images Combination that combination that the interframe partition mode of unit is carried out, the interframe partition mode of three adjacent picture elements are carried out or four The combination that the interframe partition mode of adjacent picture elements is carried out;
Interframe partition mode list index table is the concordance list for indexing interframe partition mode list, and it includes interframe and drawn Interframe partition mode list index corresponding to merotype combination and the combination;The interframe partition mode list prestored The interframe partition mode to put in order according to corresponding to interframe partition mode list index the combination of middle interframe partition mode is carried out Sequence.
Interframe partition mode list query module 102, for what is obtained according to the interframe partition mode acquisition module 101 The interframe partition mode list index table that interframe partition mode is combined and prestored, obtain the interframe division of present image unit Mode list;Specifically, interframe partition mode list index table is inquired about, is found in the interframe partition mode list index table The interframe partition mode obtained with the interframe partition mode acquisition module 101 combines the combination of identical interframe partition mode, enters And interframe partition mode list index corresponding to the combination is obtained, by the index, further obtain corresponding with the index pre- The interframe partition mode list first stored, the interframe partition mode list as present image unit.
Coding module 103, for the present image unit obtained according to the interframe partition mode list query module 102 Interframe partition mode list, entropy code is carried out to the actual interframe partition mode of the present image unit.
Wherein, the interframe partition mode list index table that the interframe partition mode list query module 102 prestores In interframe partition mode be combined as combination, the two adjacent image lists that the interframe partition mode of adjacent picture elements is carried out The combination or four phases that the combination of the interframe partition mode progress of member, the interframe partition mode of three adjacent picture elements are carried out The combination that the interframe partition mode of adjacent elementary area is carried out;In addition, when in actual video standard, interframe partition mode includes When tetra- kinds of PART_2N × 2N, PART_2N × N, PART_N × 2N, PART_N × N interframe partition modes, and when each interframe is drawn When the combination of merotype includes the interframe partition mode of 3 adjacent picture elements, according to permutation and combination, then need to prestore 43 =64 interframe partition mode lists;When the combination of each interframe partition mode includes the interframe of 2 adjacent picture elements During partition mode, then need to prestore 42=16 interframe partition mode lists;By that analogy, repeat no more.
Further, the interframe partition mode in the interframe partition mode list index table prestored is combined as three During the combination that individual interframe partition mode is carried out, the interframe partition mode acquisition module 101 is specifically used for obtaining present image list The interframe partition mode of four or three available adjacent picture elements of member;From described four or three available interframe divisions The interframe partition mode that three interframe partition modes are chosen in pattern as adjacent picture elements combines.
Further, the interframe partition mode in the interframe partition mode list index table prestored is combined as three During the combination that individual interframe partition mode is carried out, the interframe partition mode acquisition module 101 is specifically used for obtaining present image list The interframe partition mode of first two available adjacent picture elements;By any disabled adjacent image list of current coded unit The interframe partition mode of member is configured to one of interframe partition mode of two available adjacent picture elements.
Further, the interframe partition mode in the interframe partition mode list index table prestored is combined as three During the combination that individual interframe partition mode is carried out, the interframe partition mode acquisition module 101 is specifically used for obtaining present image list The interframe partition mode of first available adjacent picture elements;By wantonly two disabled adjacent images of present image unit The interframe partition mode of unit is configured to the interframe partition mode of one available adjacent picture elements.
Further, the interframe partition mode in the interframe partition mode list index table prestored is combined as three During the combination that individual interframe partition mode is carried out, the interframe partition mode acquisition module 101 is specifically used for present image unit The interframe partition modes of wantonly three disabled adjacent picture elements be respectively configured as combination and the interframe of interframe partition mode One kind of interframe partition mode in the corresponding table of partition mode list index, obtain one and include 3 adjacent picture elements The interframe partition mode combination of interframe partition mode;The interframe division of three disabled adjacent picture elements selected in it Pattern is configurable to identical or different.
Figure 11 shows the structural representation of the decoding apparatus of interframe partition mode provided by the invention, as shown in figure 11, institute Stating decoding apparatus includes:Interframe partition mode acquisition module 111, interframe partition mode list query module 112, decoder module 113;Wherein,
Interframe partition mode acquisition module 111, the availability of the adjacent picture elements for judging present image unit, and The interframe partition mode that adjacent picture elements are obtained according to judged result combines;First, the available phase of present image unit is obtained The interframe partition mode of adjacent elementary area;Then, the interframe in the interframe partition mode list index table prestored is drawn The number of the included adjacent picture elements of merotype combination, obtain the interframe partition mode combination of adjacent picture elements;Wherein, The combination of interframe partition mode can be the combination of the interframe partition mode progress of an adjacent picture elements, two adjacent images Combination that combination that the interframe partition mode of unit is carried out, the interframe partition mode of three adjacent picture elements are carried out or four The combination that the interframe partition mode of adjacent picture elements is carried out;
Interframe partition mode list index table is the concordance list for indexing interframe partition mode list, and it includes interframe and drawn Interframe partition mode list index corresponding to merotype combination and the combination;The interframe partition mode list prestored The interframe partition mode to put in order according to corresponding to interframe partition mode list index the combination of middle interframe partition mode is carried out Sequence.
Interframe partition mode list query module 112, for what is obtained according to the interframe partition mode acquisition module 111 The interframe partition mode list index table that interframe partition mode is combined and prestored, obtain the interframe division of present image unit Mode list;Specifically, interframe partition mode list index table is inquired about, is found in the interframe partition mode list index table The interframe partition mode obtained with the interframe partition mode acquisition module 111 combines the combination of identical interframe partition mode, enters And interframe partition mode list index corresponding to the combination is obtained, by the index, further obtain corresponding with the index pre- The interframe partition mode list first stored, the interframe partition mode list as present image unit.
Decoder module 113, for the interframe partition mode list according to the present image unit, to present image unit Interframe partition mode carry out entropy decoding, obtain the actual interframe partition mode of present image unit.
Wherein, the interframe partition mode list index table that the interframe partition mode list query module 112 prestores In interframe partition mode be combined as combination, the two adjacent image lists that the interframe partition mode of adjacent picture elements is carried out The combination or four phases that the combination of the interframe partition mode progress of member, the interframe partition mode of three adjacent picture elements are carried out The combination that the interframe partition mode of adjacent elementary area is carried out;In addition, when in actual video standard, interframe partition mode includes When tetra- kinds of PART_2N × 2N, PART_2N × N, PART_N × 2N, PART_N × N interframe partition modes, and when each interframe is drawn When the combination of merotype includes the interframe partition mode of 3 adjacent picture elements, according to permutation and combination, then need to prestore 43 =64 interframe partition mode lists;When the combination of each interframe partition mode includes the interframe of 2 adjacent picture elements During partition mode, then need to prestore 42=16 interframe partition mode lists;By that analogy, repeat no more.
Putting in order for interframe partition mode is drawn according to the interframe in the interframe partition mode list prestored Interframe partition mode combination in merotype list index table corresponding to interframe partition mode list index is ranked up.
Further, the interframe partition mode in the interframe partition mode list index table prestored is combined as three During the combination that individual interframe partition mode is carried out, the interframe partition mode acquisition module 111 is specifically used for obtaining present image list The interframe partition mode of four or three available adjacent picture elements of member;From described four or three available interframe divisions The interframe partition mode that three interframe partition modes are chosen in pattern as adjacent picture elements combines.
Further, the interframe partition mode in the interframe partition mode list index table prestored is combined as three During the combination that individual interframe partition mode is carried out, the interframe partition mode acquisition module 111 is specifically used for obtaining present image list The interframe partition mode of first two available adjacent picture elements;By any disabled adjacent image list of current coded unit The interframe partition mode of member is configured to one of interframe partition mode of two available adjacent picture elements.
Further, the interframe partition mode in the interframe partition mode list index table prestored is combined as three During the combination that individual interframe partition mode is carried out, the interframe partition mode acquisition module 111 is specifically used for obtaining present image list The interframe partition mode of first available adjacent picture elements;By wantonly two disabled adjacent images of present image unit The interframe partition mode of unit is configured to the interframe partition mode of one available adjacent picture elements.
Further, the interframe partition mode in the interframe partition mode list index table prestored is combined as three During the combination that individual interframe partition mode is carried out, the interframe partition mode acquisition module 111 is specifically used for present image unit The interframe partition modes of wantonly three disabled adjacent picture elements be respectively configured as combination and the interframe of interframe partition mode One kind of interframe partition mode in the corresponding table of partition mode list index, obtain one and include 3 adjacent picture elements The interframe partition mode combination of interframe partition mode;The interframe division of three disabled adjacent picture elements selected in it Pattern is configurable to identical or different.
It should be appreciated that above-mentioned encoding apparatus and decoding apparatus can also be incorporated in same device, with reference to obtained volume Decoding apparatus includes interframe partition mode acquisition module, interframe partition mode list query module, coding module and decoding mould Block;The function of wherein each module is same as described above, repeats no more.
The foregoing is only a preferred embodiment of the present invention, is not intended to limit the scope of the present invention.

Claims (35)

1. a kind of coding method of predictive mode, it is characterised in that methods described includes:
Judge the availability of the adjacent picture elements of present image unit, and the pre- of adjacent picture elements is obtained according to judged result Survey mode combinations;
The predictive mode list index table for combining and prestoring according to the predictive mode of acquisition, obtains the pre- of present image unit Survey mode list;Predictive mode list of the predictive mode list index table corresponding to including predictive mode combination and the combination Index;Predictive mode puts in order according to corresponding to predictive mode list index in the predictive mode list prestored Predictive mode combination be ranked up;
According to the predictive mode list of the present image unit, entropy is carried out to the actual prediction pattern of the present image unit Coding.
2. according to the method for claim 1, it is characterised in that institute in the predictive mode list index table prestored Including predictive mode be combined as:Combination that the predictive mode of one adjacent picture elements is carried out, two adjacent picture elements Combination that combination that predictive mode is carried out, the predictive mode of three adjacent picture elements are carried out or four adjacent picture elements The combination that predictive mode is carried out;
In the predictive mode list prestored, predictive mode puts in order according to the predictive mode list index table Predictive mode combination corresponding to middle predictive mode list index is ranked up.
3. according to the method for claim 1, it is characterised in that in the predictive mode list index table prestored It is described to obtain the pre- of adjacent picture elements during the combination that the predictive mode that predictive mode is combined as three adjacent picture elements is carried out Surveying mode combinations is:
Obtain the predictive mode of four or three available adjacent picture elements of present image unit;
Prediction mould of three predictive modes as adjacent picture elements is chosen from described four or three available predictive modes Formula combines.
4. according to the method for claim 1, it is characterised in that in the predictive mode list index table prestored It is described to obtain the pre- of adjacent picture elements during the combination that the predictive mode that predictive mode is combined as three adjacent picture elements is carried out Surveying mode combinations is:
Obtain the predictive mode of present image two available adjacent picture elements of unit;
The predictive mode of any one disabled adjacent picture elements of present image unit is configured to described two available One of the predictive mode of adjacent picture elements.
5. according to the method for claim 1, it is characterised in that in the predictive mode list index table prestored It is described to obtain the pre- of adjacent picture elements during the combination that the predictive mode that predictive mode is combined as three adjacent picture elements is carried out Surveying mode combinations is:
Obtain the predictive mode of present image one available adjacent picture elements of unit;
The predictive mode of the disabled adjacent picture elements of any two of present image unit is configured to one available Adjacent picture elements predictive mode.
6. according to the method for claim 1, it is characterised in that in the predictive mode list index table prestored It is described to obtain the pre- of adjacent picture elements during the combination that the predictive mode that predictive mode is combined as three adjacent picture elements is carried out Surveying mode combinations is:
The predictive mode of any three disabled adjacent picture elements of present image unit is respectively configured as predictive mode One kind of predictive mode in list index table.
7. according to the method for claim 1, it is characterised in that when the predictive mode of the adjacent picture elements is interframe mould During formula, the predictive mode that adjacent picture elements are obtained according to judged result is combined as:
Obtain the interframe partition mode combination of adjacent picture elements;
Correspondingly, the predictive mode list index table for combining and prestoring according to the predictive mode of acquisition, obtain current The predictive mode list of elementary area is:The interframe partition mode for combining and prestoring according to the interframe partition mode of acquisition arranges Table index table, obtain the interframe partition mode list of present image unit;
The actual prediction pattern to the present image unit carries out entropy code:According to the frame of the present image unit Between partition mode list, entropy code is carried out to the actual interframe partition mode of the present image unit.
8. according to the method for claim 7, it is characterised in that the interframe partition mode list index table prestored In interframe partition mode when being combined as the combination that the interframe partition modes of three adjacent picture elements is carried out, it is described obtain it is adjacent The interframe partition mode of elementary area is combined as:
Obtain the interframe partition mode of four or three available adjacent picture elements of present image unit;
Three interframe partition modes are chosen from described four or three available interframe partition modes as adjacent picture elements Interframe partition mode combination;Or
Obtain the interframe partition mode of present image two available adjacent picture elements of unit;
The interframe partition mode of any one disabled adjacent picture elements of present image unit is configured to described two One of interframe partition mode of available adjacent picture elements;Or
Obtain the interframe partition mode of present image one available adjacent picture elements of unit;
The interframe partition mode of the disabled adjacent picture elements of any two of present image unit is configured to one The interframe partition mode of available adjacent picture elements;Or
The interframe partition mode of any three disabled adjacent picture elements of present image unit is respectively configured as interframe One kind of interframe partition mode in partition mode list index table.
9. a kind of coding/decoding method of predictive mode, it is characterised in that methods described includes:
Judge the availability of the adjacent picture elements of present image unit, and the pre- of adjacent picture elements is obtained according to judged result Survey mode combinations;
The predictive mode list index table for combining and prestoring according to the predictive mode of acquisition, obtains the pre- of present image unit Survey mode list;Predictive mode list of the predictive mode list index table corresponding to including predictive mode combination and the combination Index;Predictive mode puts in order according to corresponding to predictive mode list index in the predictive mode list prestored Predictive mode combination be ranked up;
According to the predictive mode list of the present image unit, entropy decoding is carried out to the predictive mode of present image unit, obtained To the actual predictive mode of present image unit.
10. according to the method for claim 9, it is characterised in that in the predictive mode list index table prestored Included predictive mode is combined as:The combination of the predictive mode progress of one adjacent picture elements, two adjacent picture elements The combination that carries out of predictive mode, the combination that carries out of the predictive mode of three adjacent picture elements or four adjacent picture elements Predictive mode carry out combination;
In the predictive mode list prestored, predictive mode puts in order according to the predictive mode list index table Predictive mode combination corresponding to middle predictive mode list index is ranked up.
11. according to the method for claim 9, it is characterised in that in the predictive mode list index table prestored Predictive mode when being combined as the combination that the predictive modes of three adjacent picture elements is carried out, the adjacent picture elements that obtain Predictive mode is combined as:
Obtain the predictive mode of four or three available adjacent picture elements of present image unit;
Prediction mould of three predictive modes as adjacent picture elements is chosen from described four or three available predictive modes Formula combines.
12. according to the method for claim 9, it is characterised in that in the predictive mode list index table prestored Predictive mode when being combined as the combination that the predictive modes of three adjacent picture elements is carried out, the adjacent picture elements that obtain Predictive mode is combined as:
Obtain the predictive mode of present image two available adjacent picture elements of unit;
The predictive mode of any one disabled adjacent picture elements of present image unit is configured to described two available One of the predictive mode of adjacent picture elements.
13. according to the method for claim 9, it is characterised in that in the predictive mode list index table prestored Predictive mode when being combined as the combination that the predictive modes of three adjacent picture elements is carried out, the adjacent picture elements that obtain Predictive mode is combined as:
Obtain the predictive mode of present image one available adjacent picture elements of unit;
The predictive mode of the disabled adjacent picture elements of any two of present image unit is configured to one available Adjacent picture elements predictive mode.
14. according to the method for claim 9, it is characterised in that in the predictive mode list index table prestored Predictive mode when being combined as the combination that the predictive modes of three adjacent picture elements is carried out, the adjacent picture elements that obtain Predictive mode is combined as:
The predictive mode of any three disabled adjacent picture elements of present image unit is respectively configured as predictive mode One kind of predictive mode in list index table.
15. according to the method for claim 9, it is characterised in that when the predictive mode of the adjacent picture elements is interframe During pattern, the predictive mode that adjacent picture elements are obtained according to judged result is combined as:
Obtain the interframe partition mode combination of adjacent picture elements;
Correspondingly, the predictive mode list index table for combining and prestoring according to the predictive mode of acquisition, obtain current The predictive mode list of elementary area is:The interframe partition mode for combining and prestoring according to the interframe partition mode of acquisition arranges Table index table, obtain the interframe partition mode list of present image unit;
The predictive mode to present image unit carries out entropy decoding:Mould is divided according to the interframe of the present image unit Formula list, entropy decoding is carried out to the interframe partition mode of present image unit, the actual interframe for obtaining present image unit is drawn Merotype.
16. according to the method for claim 15, it is characterised in that the interframe partition mode list index prestored During the combination that the interframe partition mode that the interframe partition mode in table is combined as three adjacent picture elements is carried out, the acquisition phase The interframe partition mode of adjacent elementary area is combined as:
Obtain the interframe partition mode of four or three available adjacent picture elements of present image unit;
Three interframe partition modes are chosen from described four or three available interframe partition modes as adjacent picture elements Interframe partition mode combination;Or
Obtain the interframe partition mode of present image two available adjacent picture elements of unit;
The interframe partition mode of any one disabled adjacent picture elements of present image unit is configured to described two One of interframe partition mode of available adjacent picture elements;Or
Obtain the interframe partition mode of present image one available adjacent picture elements of unit;
The interframe partition mode of the disabled adjacent picture elements of any two of present image unit is configured to one The interframe partition mode of available adjacent picture elements;Or
The interframe partition mode of any three disabled adjacent picture elements of present image unit is respectively configured as interframe One kind of interframe partition mode in partition mode list index table.
17. a kind of code device of predictive mode, it is characterised in that described device includes:Predictive mode acquisition module, prediction mould Formula list query module, coding module;Wherein,
Predictive mode acquisition module, the availability of the adjacent picture elements for judging present image unit, and tied according to judgement Fruit obtains the predictive mode combination of adjacent picture elements;
Predictive mode list query module, for obtained according to the predictive mode acquisition module predictive mode combination and in advance The predictive mode list index table of storage, obtains the predictive mode list of present image unit;The predictive mode list index Predictive mode list index of the table corresponding to including predictive mode combination and the combination;The predictive mode list prestored The predictive mode to put in order according to corresponding to predictive mode list index the combination of middle predictive mode is ranked up;
Coding module, for the predictive mode row of the present image unit obtained according to the predictive mode list query module Table, entropy code is carried out to the actual prediction pattern of the present image unit.
18. device according to claim 17, it is characterised in that what the predictive mode list query module prestored Predictive mode in predictive mode list index table is combined as:The combination of the predictive mode progress of one adjacent picture elements, two The combination or four that the combination of the predictive mode progress of individual adjacent picture elements, the predictive mode of three adjacent picture elements are carried out The combination that the predictive mode of individual adjacent picture elements is carried out;
In the predictive mode list prestored, predictive mode puts in order according to the predictive mode list index table Predictive mode combination corresponding to middle predictive mode list index is ranked up.
19. code device according to claim 17, it is characterised in that the predictive mode list index prestored During the combination that the predictive mode that the predictive mode in table is combined as three adjacent picture elements is carried out, the predictive mode obtains mould Block, the predictive mode of the four or three available adjacent picture elements specifically for obtaining present image unit;From described four The predictive mode that three predictive modes are chosen in individual or three available predictive modes as adjacent picture elements combines.
20. code device according to claim 17, it is characterised in that the predictive mode list index prestored During the combination that the predictive mode that the predictive mode in table is combined as three adjacent picture elements is carried out, the predictive mode obtains mould Block, the predictive mode specifically for obtaining two available adjacent picture elements of present image unit;By present image unit The predictive mode of any one disabled adjacent picture elements is configured to the prediction of described two available adjacent picture elements One of pattern.
21. code device according to claim 17, it is characterised in that the predictive mode list index prestored During the combination that the predictive mode that the predictive mode in table is combined as three adjacent picture elements is carried out, the predictive mode obtains mould Block, the predictive mode specifically for obtaining one available adjacent picture elements of present image unit;By present image unit The predictive mode of the disabled adjacent picture elements of any two is configured to the prediction of one available adjacent picture elements Pattern.
22. code device according to claim 17, it is characterised in that the predictive mode list index prestored During the combination that the predictive mode that the predictive mode in table is combined as three adjacent picture elements is carried out, the predictive mode obtains mould Block, it is pre- specifically for the predictive mode of any three disabled adjacent picture elements of present image unit is respectively configured as Survey one kind of predictive mode in mode list concordance list.
23. code device according to claim 17, it is characterised in that when the predictive mode of the adjacent picture elements is During inter-frame mode, the predictive mode acquisition module, drawn specifically for the interframe that adjacent picture elements are obtained according to judged result Merotype combines;
The predictive mode list query module, mould is divided specifically for the interframe obtained according to the predictive mode acquisition module The interframe partition mode list index table that formula is combined and prestored, obtains the interframe partition mode list of present image unit;
Coding module, for the interframe partition mode of the present image unit obtained according to the predictive mode list query module List, entropy code is carried out to the actual interframe partition mode of the present image unit.
24. code device according to claim 23, it is characterised in that the interframe partition mode list prestored It is described pre- during the combination that the interframe partition mode that the interframe partition mode in concordance list is combined as three adjacent picture elements is carried out Pattern acquiring module is surveyed, is drawn specifically for obtaining the interframe of four or three available adjacent picture elements of present image unit Merotype;Three interframe partition modes are chosen from described four or three available interframe partition modes as adjacent image list The interframe partition mode combination of member;Or obtain the interframe division mould of present image two available adjacent picture elements of unit Formula;By the interframe partition mode of any one disabled adjacent picture elements of present image unit be configured to it is described two can One of interframe partition mode of adjacent picture elements;Or obtain present image one available adjacent image list of unit The interframe partition mode of member;The interframe partition mode of the disabled adjacent picture elements of any two of present image unit is matched somebody with somebody It is set to the interframe partition mode of one available adjacent picture elements;Or by any three of present image unit not The interframe partition mode of available adjacent picture elements is respectively configured as interframe in interframe partition mode list index table and divides mould One kind of formula.
25. a kind of decoding apparatus of predictive mode, it is characterised in that described device includes:Predictive mode acquisition module, prediction mould Formula list query module, decoder module;Wherein,
Predictive mode acquisition module, the availability of the adjacent picture elements for judging present image unit, and tied according to judgement Fruit obtains the predictive mode combination of adjacent picture elements;
Predictive mode list query module, for obtained according to the predictive mode acquisition module predictive mode combination and in advance The predictive mode list index table of storage, obtains the predictive mode list of present image unit;The predictive mode list index Predictive mode list index of the table corresponding to including predictive mode combination and the combination;The predictive mode list prestored The predictive mode to put in order according to corresponding to predictive mode list index the combination of middle predictive mode is ranked up;
Decoder module, for the predictive mode row of the present image unit obtained according to the predictive mode list query module Table, entropy decoding is carried out to the predictive mode of present image unit, obtains the actual predictive mode of present image unit.
26. decoding apparatus according to claim 25, it is characterised in that the predictive mode list query module is deposited in advance Predictive mode in the predictive mode list index table of storage is combined as;The group that the predictive mode of one adjacent picture elements is carried out Close, the combination that the combination that the predictive mode of two adjacent picture elements is carried out, the predictive mode of three adjacent picture elements are carried out, Or the combination that the predictive mode of four adjacent picture elements is carried out;
In the predictive mode list prestored, predictive mode puts in order according to the predictive mode list index table Predictive mode combination corresponding to middle predictive mode list index is ranked up.
27. decoding apparatus according to claim 25, it is characterised in that when the predictive mode of the adjacent picture elements is During inter-frame mode, the predictive mode acquisition module, drawn specifically for the interframe that adjacent picture elements are obtained according to judged result Merotype combines;
The predictive mode list query module, mould is divided specifically for the interframe obtained according to the predictive mode acquisition module The interframe partition mode list index table that formula is combined and prestored, obtains the interframe partition mode list of present image unit;
Decoder module, specifically for the interframe partition mode list according to the present image unit, to present image unit Interframe partition mode carries out entropy decoding, obtains the actual interframe partition mode of present image unit.
28. a kind of coding method of interframe partition mode, it is characterised in that methods described includes:
Judge the availability of the adjacent picture elements of present image unit, and the frame of adjacent picture elements is obtained according to judged result Between partition mode combine;
The interframe partition mode list index table for combining and prestoring according to the interframe partition mode of acquisition, obtains present image The interframe partition mode list of unit;The interframe partition mode list index table includes the combination of interframe partition mode and the combination Corresponding interframe partition mode list index;In the interframe partition mode list prestored, interframe partition mode The interframe division to put in order according to corresponding to interframe partition mode list index in the interframe partition mode list index table Mode combinations are ranked up;
According to the interframe partition mode list of the present image unit, mould is divided to the actual interframe of the present image unit Formula carries out entropy code.
29. according to the method for claim 28, it is characterised in that the interframe partition mode list index prestored Included interframe partition mode is combined as in table:Combination that the interframe partition mode of one adjacent picture elements is carried out, two The group that the combination of the interframe partition mode progress of adjacent picture elements, the interframe partition mode of three adjacent picture elements are carried out The combination that the interframe partition mode of conjunction or four adjacent picture elements is carried out;
In the interframe partition mode list prestored, putting in order for interframe partition mode divides mould according to the interframe Interframe partition mode combination in formula list index table corresponding to interframe partition mode list index is ranked up.
30. according to the method for claim 28, it is characterised in that the interframe partition mode list index prestored During the combination that the interframe partition mode that the interframe partition mode in table is combined as three adjacent picture elements is carried out, the acquisition phase The interframe partition mode of adjacent elementary area is combined as:
Obtain the interframe partition mode of four or three available adjacent picture elements of present image unit;
Three interframe partition modes are chosen from described four or three available interframe partition modes as adjacent picture elements Interframe partition mode combination;Or
Obtain the interframe partition mode of present image two available adjacent picture elements of unit;
The interframe partition mode of any one disabled adjacent picture elements of present image unit is configured to described two One of interframe partition mode of available adjacent picture elements;Or
Obtain the interframe partition mode of present image one available adjacent picture elements of unit;
The interframe partition mode of the disabled adjacent picture elements of any two of present image unit is configured to one The interframe partition mode of available adjacent picture elements;Or
The interframe partition mode of any three disabled adjacent picture elements of present image unit is respectively configured as interframe One kind of interframe partition mode in partition mode list index table.
31. a kind of coding/decoding method of interframe partition mode, it is characterised in that methods described includes:
Judge the availability of the adjacent picture elements of present image unit, and the frame of adjacent picture elements is obtained according to judged result Between partition mode combine;
The interframe partition mode list index table for combining and prestoring according to the interframe partition mode of acquisition, obtains present image The interframe partition mode list of unit;The interframe partition mode list index table includes the combination of interframe partition mode and the combination Corresponding interframe partition mode list index;In the interframe partition mode list prestored, interframe partition mode The interframe division to put in order according to corresponding to interframe partition mode list index in the interframe partition mode list index table Mode combinations are ranked up;
According to the interframe partition mode list of the present image unit, entropy is carried out to the interframe partition mode of present image unit Decoding, obtains the actual interframe partition mode of present image unit.
32. according to the method for claim 31, it is characterised in that the interframe partition mode list index prestored Included interframe partition mode is combined as in table:Combination that the interframe partition mode of one adjacent picture elements is carried out, two The group that the combination of the interframe partition mode progress of adjacent picture elements, the interframe partition mode of three adjacent picture elements are carried out The combination that the interframe partition mode of conjunction or four adjacent picture elements is carried out;
In the interframe partition mode list prestored, putting in order for interframe partition mode divides mould according to the interframe Interframe partition mode combination in formula list index table corresponding to interframe partition mode list index is ranked up.
33. according to the method for claim 31, it is characterised in that the interframe partition mode list index prestored During the combination that the interframe partition mode that the interframe partition mode in table is combined as three adjacent picture elements is carried out, the acquisition phase The interframe partition mode of adjacent elementary area is combined as:
Obtain the interframe partition mode of four or three available adjacent picture elements of present image unit;
Three interframe partition modes are chosen from described four or three available interframe partition modes as adjacent picture elements Interframe partition mode combination;Or
Obtain the interframe partition mode of present image two available adjacent picture elements of unit;
The interframe partition mode of any one disabled adjacent picture elements of present image unit is configured to described two One of interframe partition mode of available adjacent picture elements;Or
Obtain the interframe partition mode of present image one available adjacent picture elements of unit;
The interframe partition mode of the disabled adjacent picture elements of any two of present image unit is configured to one The interframe partition mode of available adjacent picture elements;Or
The interframe partition mode of any three disabled adjacent picture elements of present image unit is respectively configured as interframe One kind of interframe partition mode in partition mode list index table.
34. a kind of code device of interframe partition mode, it is characterised in that described device includes:Interframe partition mode obtains mould Block, interframe partition mode list query module, coding module;Wherein,
Interframe partition mode acquisition module, the availability of the adjacent picture elements for judging present image unit, and according to sentencing Disconnected result obtains the interframe partition mode combination of adjacent picture elements;
Interframe partition mode list query module, the interframe for being obtained according to the interframe partition mode acquisition module divide mould The interframe partition mode list index table that formula is combined and prestored, obtains the interframe partition mode list of present image unit; Interframe partition mode row of the interframe partition mode list index table corresponding to including the combination of interframe partition mode and the combination Table index;In the interframe partition mode list prestored, putting in order for interframe partition mode is drawn according to the interframe Interframe partition mode combination in merotype list index table corresponding to interframe partition mode list index is ranked up;
Coding module, for the interframe division of the present image unit obtained according to the interframe partition mode list query module Mode list, entropy code is carried out to the actual interframe partition mode of the present image unit.
35. a kind of decoding apparatus of interframe partition mode, it is characterised in that described device includes:Interframe partition mode obtains mould Block, interframe partition mode list query module, decoder module;Wherein,
Interframe partition mode acquisition module, the availability of the adjacent picture elements for judging present image unit, and according to sentencing Disconnected result obtains the interframe partition mode combination of adjacent picture elements;
Interframe partition mode list query module, the interframe for being obtained according to the interframe partition mode acquisition module divide mould The interframe partition mode list index table that formula is combined and prestored, obtains the interframe partition mode list of present image unit;
Decoder module, for the interframe partition mode list according to the present image unit, to the interframe of present image unit Partition mode carries out entropy decoding, obtains the actual interframe partition mode of present image unit.
CN201110237865.6A 2011-02-24 2011-08-18 The coding or coding/decoding method and device of a kind of predictive mode Expired - Fee Related CN102355579B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201110237865.6A CN102355579B (en) 2011-02-24 2011-08-18 The coding or coding/decoding method and device of a kind of predictive mode

Applications Claiming Priority (4)

Application Number Priority Date Filing Date Title
CN201110045874 2011-02-24
CN201110045874.5 2011-02-24
CN2011100458745 2011-02-24
CN201110237865.6A CN102355579B (en) 2011-02-24 2011-08-18 The coding or coding/decoding method and device of a kind of predictive mode

Publications (2)

Publication Number Publication Date
CN102355579A CN102355579A (en) 2012-02-15
CN102355579B true CN102355579B (en) 2018-03-16

Family

ID=45579067

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201110237865.6A Expired - Fee Related CN102355579B (en) 2011-02-24 2011-08-18 The coding or coding/decoding method and device of a kind of predictive mode

Country Status (2)

Country Link
CN (1) CN102355579B (en)
WO (1) WO2012113197A1 (en)

Families Citing this family (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
GB2501535A (en) 2012-04-26 2013-10-30 Sony Corp Chrominance Processing in High Efficiency Video Codecs
CN102984521B (en) * 2012-12-12 2015-04-08 四川大学 High-efficiency video coding inter-frame mode judging method based on temporal relativity
CN103024383B (en) * 2012-12-14 2016-02-10 北京工业大学 A kind of based on lossless compression-encoding method in the frame of HEVC framework
US10609423B2 (en) * 2016-09-07 2020-03-31 Qualcomm Incorporated Tree-type coding for video coding
CN110278435B (en) * 2018-03-16 2021-11-19 华为技术有限公司 Intra-frame prediction method and device for image block
CN110620926B (en) * 2018-06-20 2022-01-04 浙江大学 Intra-frame prediction mode coding and decoding method and device

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2004128749A (en) * 2002-09-30 2004-04-22 Toshiba Corp Moving image coding method and decoding method
CN1659580A (en) * 2002-06-11 2005-08-24 诺基亚有限公司 Spatial prediction based intra coding
CN1674680A (en) * 2005-03-31 2005-09-28 华中科技大学 An enhanced in-frame predictive mode coding method
CN101605255A (en) * 2008-06-12 2009-12-16 华为技术有限公司 A kind of method of coding and decoding video and device
WO2010047099A1 (en) * 2008-10-22 2010-04-29 日本電信電話株式会社 Scalable moving image encoding method, scalable moving image encoding apparatus, scalable moving image encoding program, and computer readable recording medium where that program has been recorded

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1659580A (en) * 2002-06-11 2005-08-24 诺基亚有限公司 Spatial prediction based intra coding
JP2004128749A (en) * 2002-09-30 2004-04-22 Toshiba Corp Moving image coding method and decoding method
CN1674680A (en) * 2005-03-31 2005-09-28 华中科技大学 An enhanced in-frame predictive mode coding method
CN101605255A (en) * 2008-06-12 2009-12-16 华为技术有限公司 A kind of method of coding and decoding video and device
WO2010047099A1 (en) * 2008-10-22 2010-04-29 日本電信電話株式会社 Scalable moving image encoding method, scalable moving image encoding apparatus, scalable moving image encoding program, and computer readable recording medium where that program has been recorded

Also Published As

Publication number Publication date
WO2012113197A1 (en) 2012-08-30
CN102355579A (en) 2012-02-15

Similar Documents

Publication Publication Date Title
CN102355579B (en) The coding or coding/decoding method and device of a kind of predictive mode
CN103096066B (en) The decoding device of video data
CN103096067B (en) The method for producing reconstructed blocks
CN104272736B (en) For the method and apparatus and its processor readable medium encoded/decoded to video
CN104754352B (en) The method and apparatus that video is decoded
CN102970526B (en) A kind of method obtaining transform block size and module
CN103220522B (en) To the method and apparatus of Video coding and the method and apparatus to video decoding
CN109792516A (en) Method and device in image and coding and decoding video for coloration encoding and decoding in frame
CN104041052B (en) It is determined that for conversion coefficient rank entropy code and the method and apparatus of the context model of entropy decoding
CN109479141A (en) Image coding/decoding method and recording medium for the method
CN109863749A (en) For carrying out coding or decoded device and method to image
CN106851304A (en) For the equipment of decoding moving pictures
CN107105236A (en) Video decoding apparatus
CN107105303A (en) Block is supported to merge the Image Coding with skip mode
CN106878747A (en) For the equipment of encoded motion picture
CN106067972A (en) Produce the method quantifying block
CN104079937B (en) It is a kind of based on motion vector analysis by H.264 to the quick interframe code-transferring method and transcoding device of HEVC
CN107810637A (en) Method and apparatus for handling vision signal
CN104539970A (en) 3D-HEVC interframe coding merge mode fast decision making method
CN104954787B (en) HEVC inter-frame forecast mode selection methods and device
CN107295336A (en) Adaptive fast coding dividing elements method and device based on image correlation
CN107343199A (en) Quick self-adapted compensation method for sampling point in HEVC
CN109510997A (en) Image encoding method and equipment
EP2526696A1 (en) Method and device for encoding an image block of an image and corresponding decoding method and device

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant
CF01 Termination of patent right due to non-payment of annual fee
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20180316

Termination date: 20200818