CN110166777A - Coding method, device and video data encoding device - Google Patents

Coding method, device and video data encoding device Download PDF

Info

Publication number
CN110166777A
CN110166777A CN201810725133.3A CN201810725133A CN110166777A CN 110166777 A CN110166777 A CN 110166777A CN 201810725133 A CN201810725133 A CN 201810725133A CN 110166777 A CN110166777 A CN 110166777A
Authority
CN
China
Prior art keywords
intra prediction
mode
prediction mode
target
father
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.)
Granted
Application number
CN201810725133.3A
Other languages
Chinese (zh)
Other versions
CN110166777B (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.)
Tencent Technology Shenzhen Co Ltd
Original Assignee
Tencent Technology Shenzhen Co Ltd
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 Tencent Technology Shenzhen Co Ltd filed Critical Tencent Technology Shenzhen Co Ltd
Priority to CN201810725133.3A priority Critical patent/CN110166777B/en
Publication of CN110166777A publication Critical patent/CN110166777A/en
Application granted granted Critical
Publication of CN110166777B publication Critical patent/CN110166777B/en
Active 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/10Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding
    • H04N19/102Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding characterised by the element, parameter or selection affected or controlled by the adaptive coding
    • H04N19/103Selection of coding mode or of prediction mode
    • H04N19/107Selection of coding mode or of prediction mode between spatial and temporal predictive coding, e.g. picture refresh
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N19/00Methods or arrangements for coding, decoding, compressing or decompressing digital video signals
    • H04N19/10Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding
    • H04N19/134Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding characterised by the element, parameter or criterion affecting or controlling the adaptive coding
    • H04N19/157Assigned coding mode, i.e. the coding mode being predefined or preselected to be further used for selection of another element or parameter
    • H04N19/159Prediction type, e.g. intra-frame, inter-frame or bidirectional frame prediction
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N19/00Methods or arrangements for coding, decoding, compressing or decompressing digital video signals
    • H04N19/10Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding
    • H04N19/169Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding characterised by the coding unit, i.e. the structural portion or semantic portion of the video signal being the object or the subject of the adaptive coding
    • H04N19/186Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding characterised by the coding unit, i.e. the structural portion or semantic portion of the video signal being the object or the subject of the adaptive coding the unit being a colour or a chrominance component

Landscapes

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

Abstract

The invention discloses a kind of coding method, device and video data encoding devices, belong to field of video encoding.The present invention, which has broken intra prediction in existing standard, can only refer to the thought in airspace, introduce the luma intra prediction modes for the father's layer PU having determined, to reconstruct intra prediction mode candidate list, so that considering time domain and airspace simultaneously during carrying out intra prediction, the compression ratio of video data can be further improved.

Description

Coding method, device and video data encoding device
Technical field
The present invention relates to field of video encoding, in particular to a kind of coding method, device and video data encoding device.
Background technique
The original data volume of video data is larger, before storage or transmission, needs to compress video data, pressure Contracting is referred to as encoding.In H.265/HEVC (High Efficiency Video Coding, efficient video coding) standard In, when carrying out intra prediction to the CU (Coding Unit, coding unit) in image, firstly, it is necessary to corresponding to CU each PU (Prediction Unit, predicting unit) traverses all intra prediction modes, determines the target intra prediction mould of each PU Then formula carries out intra prediction according to the target intra prediction mode under determining.
For the intra prediction of luminance component, 35 luma intra prediction modes are H.265/HEVC provided in standard, it can be with Texture complicated in video is preferably matched, better prediction effect is obtained, more efficiently removes spatial redundancy.To one When the luma intra prediction modes of PU are encoded, bit number needed for reducing coding in existing standard, with reference to airspace structure Make an intra prediction mode candidate list, namely the object brightness intra prediction of a left side adjacent PU and upper adjacent PU according to the PU Mode, establishes intra prediction mode candidate list (candModeList), and the positional relationship of the PU and adjacent PU are as shown in Figure 1. It in general, include 3 possible luma intra prediction modes in intra prediction mode candidate list, if the brightness of the PU Intra prediction mode is present in intra prediction mode candidate list, then can use 2bit (bit, information unit) to compile Its index in intra prediction mode candidate list of code is needed using 5bit if be not belonging to come the luminance frame to the PU The MODE NUMBER of inner estimation mode is encoded.
Bit number needed for coded luminance intra prediction mode can be reduced using intra prediction mode candidate list improves The compression ratio of video data.But it refers in the intra prediction mode candidate list in airspace only comprising referring to the adjacent PU in a left side and upper phase 3 luma intra prediction modes that adjacent PU is obtained, so that choosing the general of the coding mode based on intra prediction mode candidate list Rate has certain limitation, brings limitation to compression ratio is further increased.
Summary of the invention
The embodiment of the invention provides a kind of coding method, device and video data encoding devices, in construction intra prediction The luma intra prediction modes that father's layer PU is introduced when mode candidate list, so that considering simultaneously during carrying out intra prediction Time domain and airspace, can be further improved the compression ratio of video data.Technical solution provided in an embodiment of the present invention can solve Certainly choosing the probability of the coding mode based on intra prediction mode candidate list in the prior art has asking for certain limitation Topic, the technical solution is as follows:
On the one hand, a kind of coding method is provided, this method comprises:
When the luminance component to target prediction unit PU carries out intra prediction, obtain pre- in the luminance frame of the target PU Survey mode;
The object brightness intra prediction mode of father's layer PU and adjacent PU based on the target PU, determines intra prediction mode Candidate list;
Luma intra prediction modes based on the intra prediction mode candidate list and the target PU, to the target The luma intra prediction modes of PU are encoded.
On the one hand, a kind of code device is provided, which includes:
Module is obtained, for obtaining the target when the luminance component to target prediction unit PU carries out intra prediction The luma intra prediction modes of PU;
Determining module, for the object brightness intra prediction mode of father's layer PU and adjacent PU based on the target PU, really Framing inner estimation mode candidate list;
Coding module, for the luma intra prediction mould based on the intra prediction mode candidate list and the target PU Formula encodes the luma intra prediction modes of the target PU.
On the one hand, a kind of video data encoding device is provided, the video data encoding device includes processor and deposits Reservoir, is stored at least one instruction, at least a Duan Chengxu, code set or instruction set in the memory, and described at least one Instruction, an at least Duan Chengxu, the code set or instruction set are loaded by the processor and are executed to realize such as first party Coding method described in face.
On the one hand, provide a kind of computer readable storage medium, be stored in the storage medium at least one instruction, At least a Duan Chengxu, code set or instruction set, at least one instruction, an at least Duan Chengxu, the code set or refer to Collection is enabled to be loaded by the processor and executed to realize coding method as described in relation to the first aspect.
Technical solution provided in an embodiment of the present invention has the benefit that
In the embodiment of the present invention, in the cataloged procedure of luma intra prediction modes, video data encoding device is in determination When intra prediction mode candidate list, while considering time domain and airspace, utilizes the luminance frame of father's layer PU and adjacent PU of target PU Inner estimation mode as reference, increase target PU intra prediction mode be present in intra prediction mode candidate list can Energy property, bit number needed for being further reduced coded luminance intra prediction mode can be further improved the compression of video data Rate.
Detailed description of the invention
To describe the technical solutions in the embodiments of the present invention more clearly, make required in being described below to embodiment Attached drawing is briefly described, it should be apparent that, drawings in the following description are only some embodiments of the invention, for For those of ordinary skill in the art, without creative efforts, it can also be obtained according to these attached drawings other Attached drawing.
Fig. 1 is the positional diagram of a kind of target PU and adjacent PU provided in an embodiment of the present invention;
Fig. 2 is a kind of implementation environment schematic diagram provided in an embodiment of the present invention;
Fig. 3 is a kind of CU quad-tree partition schematic diagram provided in an embodiment of the present invention;
Fig. 4 is a kind of HEVC coding framework schematic diagram provided in an embodiment of the present invention;
Fig. 5 is a kind of coding method flow chart of luma intra prediction modes provided in an embodiment of the present invention;
Fig. 6 is that a kind of intra prediction PU provided in an embodiment of the present invention divides schematic diagram;
Fig. 7 is a kind of acquisition object brightness intra prediction mode flow diagram provided in an embodiment of the present invention;
Fig. 8 is a kind of flow diagram for establishing intra prediction mode candidate list provided in an embodiment of the present invention;
Fig. 9 is a kind of flow diagram for establishing intra prediction mode candidate list provided in an embodiment of the present invention;
Figure 10 is a kind of flow diagram for establishing intra prediction mode candidate list provided in an embodiment of the present invention;
Figure 11 is a kind of flow diagram for establishing intra prediction mode candidate list provided in an embodiment of the present invention;
Figure 12 is a kind of apparatus structure schematic diagram of coded luminance intra prediction mode provided in an embodiment of the present invention;
Figure 13 is a kind of structural schematic diagram of video data encoding device provided in an embodiment of the present invention.
Specific embodiment
To make the object, technical solutions and advantages of the present invention clearer, below in conjunction with attached drawing to embodiment party of the present invention Formula is described in further detail.
The embodiment of the invention provides a kind of coding method, this method can be realized by video data encoding device.
Video data encoding device may include the components such as processor, memory, transceiver.Processor can be CPU (Central Processing Unit, central processing unit) etc., is determined for the luma intra prediction mould of target PU Formula determines intra prediction mode candidate list, carries out the processing such as encoding to the luma intra prediction modes of target PU.Memory, It can be RAM (Random Access Memory, random access memory) that Flash (flash memory) etc. can be used for storing reception To data, the data generated in data, treatment process needed for treatment process etc., such as luma intra prediction mould of each PU Formula, intra prediction mode candidate list, coding of luma intra prediction modes etc..Transceiver, can be used for other equipment into The transmission of row data.
Implementation environment schematic diagram as shown in Figure 2, this method can be applied to front-end video acquisition device, video data is compiled In the system that decoding apparatus, video display apparatus and video storaging equipment are constituted.Front-end video acquisition device can acquire video figure As data, then, video data encoding device can will acquire above-mentioned video image data, and can be to video image data It is encoded, the code stream after obtaining video image data compression, compressed code stream is sent to video display apparatus.Video is aobvious Show that equipment can be decoded compressed code stream based on the corresponding coding/decoding method of coding method, and obtained based on decoding Video image data shows video image.Above-mentioned front-end video acquisition device and video data encoding device can be installed respectively In different electronic equipments herein, naturally it is also possible to be mounted in same electronic equipment, be not construed as limiting.Video data encoding is set It is standby above-mentioned compressed code stream to be sent to video storaging equipment, so that video storaging equipment is based on compressed code stream It is stored.
H.265/HEVC the image partition mode based on quaternary tree is provided in standard, video image can successively be divided For each unit, including CU, PU and TU (Transform Unit, converter unit).
CU is to be predicted, converted, quantified and the basic unit of the processing such as entropy coding, can carry out multi-level four to CU Fork tree divides, the CU depth having the same on same level, and the depth of first floor CU is 0, and depth is successively incremented by 1.As shown in Figure 3 CU quad-tree partition schematic diagram, CU2CU is obtained after carrying out quad-tree partition3-CU6, CU2As CU3-CU6Father layer CU.
PU is the basic unit of inter-prediction, intra prediction, can be its determine prediction mode, and PU also define with Related information is predicted, for example, the partitioning scheme of intra prediction mode, inter-prediction, motion vector and inter prediction reference figure As call number etc..PU can be obtained according to CU, and PU corresponds to the size of CU no more than it.
TU is the basic unit for carrying out transform and quantization, can divide to obtain by CU.
HEVC coding framework schematic diagram as shown in Figure 4 can be to every when one frame video image data are input to encoder A CU carries out intra prediction or inter-prediction, the video image data after being predicted.Video data encoding device can will be defeated Video image data after the video image data and prediction that enter subtracts each other to obtain residual values, and then residual values are changed and are measured Change obtains residual error coefficient, carries out entropy coding to residual error coefficient, the code stream after obtaining video image data compression.Meanwhile residual error system Number may also pass through inverse quantization and inversion obtains the residual values of reconstructed image, is then added with the video image data after prediction Reconstructed image data is obtained, reconstructed image data is adaptively mended by deblocking filtering (deblocking filter) and sampling point Repay (Sample Adaptive Offset, SAO).Filtered reconstructed image data can be added to reference image queue, make For the reference image data of next frame video image data, to encode backward one by one.
For inter-prediction, the video image data of input can carry out estimation (Motion with reference image data Estimation, ME), extract the motion information of video image data, such as motion vector (Motion Vector, MV).Then Obtained motion information and reference image data are subjected to motion compensation (Motion Compensation, MC), it is corresponding to obtain CU Inter-prediction after video image data.
For intra prediction, CU that size is 2N*2N can with there are mainly two types of corresponding PU, respectively 2N*2N and The PU of N*N.After the video image of input carries out image division, available multiple CU and corresponding PU, then, video data Encoding device successively can traverse 35 intra prediction modes to each PU, can be using the Rate-distortion optimization method of Lagrange Determine that the target intra prediction mode of PU, target intra prediction mode can be the smallest mode of rate distortion costs.Then root then, Intra prediction is carried out according to the target intra prediction mode under determining, the video image after obtaining the corresponding intra prediction of CU.
In one video image may all CU only carry out intra prediction or inter-prediction, it is also possible to part CU carry out frame in Prediction, part CU carries out inter-prediction, but a CU can only carry out intra prediction or inter-prediction.For example, video image I frame (a kind of independently to carry out coding or decoded picture frame without reference to other images) in each CU only carry out in frame Prediction.
Intra prediction includes the intra prediction to luminance component and the intra prediction to chromatic component, master of the embodiment of the present invention It is related to the intra prediction to luminance component.The coding method flow chart of luma intra prediction modes as shown in Figure 5, this method Process flow may include following step:
501, video data encoding device obtains mesh when the luminance component to target prediction unit PU carries out intra prediction Mark the luma intra prediction modes of PU.
In a kind of possible embodiment, when video data encoding device gets frame video image to be processed When, coded treatment as shown in Figure 4 can be carried out.In the intra-prediction process to luminance component, video data encoding device Successively CU can be handled.Intra prediction PU as shown in FIG. 6 divides schematic diagram, and each CU can correspond to 1 or 4 PU.Video data encoding device can traverse 35 luma intra prediction modes to each PU, determine object brightness intra prediction Mode, also, after a PU determines lower object brightness intra prediction mode, it just will continue to the object brightness for determining next PU Intra prediction mode.Currently it needs to be determined that the PU of object brightness intra prediction mode is target PU.
Determining that the sequence of the object brightness intra prediction mode of each PU can be such that can determine that depth is CU pair of 0 The object brightness intra prediction mode of the PU answered, in the case that 1 CU corresponds to 4 PU, the sequence of PU is as shown in fig. 6,0-3's is suitable Sequence can be sequence in a zigzag;If there are the sublayer CU of quad-tree partition by CU, the corresponding PU of sublayer CU can be then determined Object brightness intra prediction mode;If the sublayer CU of quad-tree partition is not present in CU, same level can be then determined The object brightness intra prediction mode of the corresponding PU of CU, same level CU can also be handled according to above-mentioned zigzag sequence. Circulation carries out above-mentioned processing, obtains the object brightness intra prediction mode of each PU.
For example, determining that if treatment process when object brightness intra prediction mode includes: to lose using the rate of Lagrange True optimization method determines the target intra prediction mode of PU, then for every kind of luma intra prediction modes, video data encoding is set It is standby to determine the luma intra prediction modes according to the being distorted when luma intra prediction modes and required bit number is used Rate distortion costs, finally from 35 luma intra prediction modes select the smallest object brightness intra prediction of rate distortion costs Mode.The coding method of luma intra prediction modes provided in this embodiment can be applied to determine using luma intra prediction When mode among required bit number.
During the luma intra prediction modes to target PU encode, video data encoding device is available Target PU current luma intra prediction modes, the luma intra prediction modes can be its of 35 luma intra prediction modes One of.For example, above-mentioned 35 luma intra prediction modes may include Planar mode, DC mode and 33 angle modes, Wherein, Planar mode is mode 0, and DC mode is that 1,33 angle modes of mode are respectively mode 2-34.33 angle modes In, mode 10 indicates that horizontal direction, mode 26 indicate vertical direction.Mode 0, mode 1, mode 10 and mode 26 are typical bright Spend intra prediction mode.
502, the object brightness frame of the video data encoding device father based on target PU layer PU, Zuo Xianglin PU and upper adjacent PU Inner estimation mode determines intra prediction mode candidate list.
On the basis of H.265/HEVC standard, the embodiment of the present invention includes 4 bright with intra prediction mode candidate list It spends for intra prediction mode.Certainly, new luma intra prediction modes, intra prediction mould may be will increase in subsequent standard The luma intra prediction modes for including in formula candidate list can also accordingly increase, still can based on the embodiment of the present invention come The object brightness intra prediction mode that father's layer PU has had determined that is introduced, to construct intra prediction mode candidate list, so that coding The probability of Shi Xuanzhong intra prediction mode candidate list is promoted, to achieve the purpose that save bit number.The embodiment of the present invention pair The number of luma intra prediction modes is not construed as limiting in intra prediction mode candidate list.
In order to break the process of intra prediction in existing standard only with reference to the thought in airspace, the ginseng of the application introducing time domain It examines, on the basis of the left adjacent PU and upper adjacent PU of existing canonical reference is to construct intra prediction mode candidate list, introduces father Layer PU.Optionally, before determining intra prediction mode candidate list, the father of the available target PU of video data encoding device The object brightness intra prediction mode of layer PU, Zuo Xianglin PU and upper adjacent PU, specific processing can be such that father's layer of target PU The object brightness intra prediction mode of PU, Zuo Xianglin PU and upper adjacent PU are set as original intensity intra prediction mode;If father Layer PU exists, then updates the object brightness intra prediction mode of father's layer PU;If left adjacent PU exists, update left adjacent PU's Object brightness intra prediction mode;If upper adjacent PU exists, the object brightness intra prediction mode of adjacent PU in update.
Acquisition object brightness intra prediction mode flow diagram as shown in Figure 7, it is pre- in the object brightness frame of father's layer PU Survey mode can be expressed as mode_father, and the object brightness intra prediction mode of Zuo Xianglin PU can be expressed as mode_A, on The object brightness intra prediction mode of adjacent PU can be expressed as mode_B, mode_father, mode_A and mode_B tri- ginsengs Several assignment can be corresponding MODE NUMBER.Video data encoding device can be to mode_father, mode_A and mode_B It is initialized, such as can be set to " 1 " namely original intensity intra prediction mode as mode 1.Then, video data is compiled Decoding apparatus can successively judge father's layer PU, Zuo Xianglin PU or upper of target PU it is adjacent PU whether there is, if it is present respectively will Above three parameter is updated to the object brightness intra prediction mode under determining.
In time domain, the corresponding CU of target PU is if there is father layer CU, then the PU on father layer CU corresponding region, as target Father's layer PU of PU.Processing sequence when from above-mentioned determining object brightness intra prediction mode is it is recognised that word due to using Shape sequence is handled, when determining target PU, if father's layer PU, the adjacent PU of Zuo Xianglin PU or upper of target PU exist, and father Layer PU, the adjacent PU of Zuo Xianglin PU or upper object brightness intra prediction mode should be it has been determined that can satisfy the place of the process Reason.In addition, mode_father, mode_A and mode_B are initialized due to before judgement, if target Father's layer PU, Zuo Xianglin PU or upper of PU is adjacent, and PU is not present, and can directly use original intensity intra prediction mode, ensuring method Reasonability.
In video image, often there is stronger correlation, therefore, in the object brightness frame of adjacent PU between adjacent PU The same or similar probability of prediction mode is larger, if independently encoded to each PU, can bring unnecessary redundancy, because This can use the coding mode based on intra prediction mode candidate list.
In addition to left adjacent PU and upper adjacent PU, video data encoding device may be incorporated into the father layer PU of target PU as ginseng It examines, establishes intra prediction mode candidate list.Due to target PU and the possible texture having the same of father's layer PU, namely have relatively strong Correlation, the object brightness intra prediction mode of target PU may be identical as father layer PU, then the object brightness based on father's layer PU Intra prediction mode, establishes intra prediction mode candidate list, and object brightness intra prediction mode possibility with higher is deposited It is in intra prediction mode candidate list, with bit number needed for reducing coded luminance intra prediction mode.Also, it is pre- in frame The index range surveyed in mode candidate list is 0-3, and required bit number is still 2bit, bit needed for not increasing code index Number.With reference to the intra prediction mode candidate list that time domain and airspace construct, an optional luma intra prediction modes are increased, Selected probability is further increased, can be further improved the compression ratio of video, there is marked improvement for existing standard.
In a kind of possible embodiment, video data encoding device can be according to father's layer PU, Zuo Xianglin of target PU It is whether identical between PU and the object brightness intra prediction mode of upper adjacent PU, using different rules, to determine intra prediction Mode candidate list.Really the flow diagram of framing inner estimation mode candidate list as shown in Figure 8, to above three parameter Judgement can be divided into three kinds of situations: situation one, pre- in father's layer PU, Zuo Xianglin PU of target PU and the object brightness frame of upper adjacent PU Survey mode is all the same, at this point, video data encoding device can determine intra prediction mode candidate list according to the first rule;Feelings Condition two, father's layer PU, Zuo Xianglin PU of target PU and the object brightness intra prediction mode of upper adjacent PU are all different, at this point, view Frequency data encoding apparatus can determine intra prediction mode candidate list according to Second Rule;Situation three, father's layer PU of target PU, There are 2 same brightness intra prediction modes and 1 in the object brightness intra prediction mode of left adjacent PU and upper adjacent PU not Same luma intra prediction modes, at this point, video data encoding device can determine intra prediction mode candidate according to third rule List.
It describes in detail below to three kinds of situations:
Situation one: if father's layer PU, Zuo Xianglin PU of target PU and the object brightness intra prediction mode of upper adjacent PU are equal It is identical, and object brightness intra prediction mode is mode 0 or mode 1, then adds mode 0, mode 1, mode 10 and mode 26 Into intra prediction mode candidate list;If in father's layer PU, Zuo Xianglin PU of target PU and the object brightness frame of upper adjacent PU Prediction mode is all the same, and object brightness intra prediction mode is not mode 0 and mode 1, then by object brightness intra prediction mould Formula, the left adjacent brightness intra prediction mode of object brightness intra prediction mode, the right side of object brightness intra prediction mode are adjacent Luma intra prediction modes and mode 1 are added in intra prediction mode candidate list.
The identical situation of above three parameter can be divided into two kinds of situations again, and a kind of situation is all (the Planar mould of mode 0 Formula) or mode 1 (DC mode), a kind of situation, it is all one of angle mode mode, different situations can correspond to difference Intra prediction mode candidate list make.Illustratively, parameter mode is used to indicate the identical MODE NUMBER, CandModeList [0]-[3] are for indicating 4 possible luma intra prediction modes.Fig. 9 can be in Fig. 8 according to the first rule Then determine the expansion of the block diagram of intra prediction mode candidate list, as shown in Figure 9 intra prediction mode candidate list of establishing Mode_father can be assigned to mode if mode_father, mode_A, mode_B are all the same by flow diagram (it is also possible to mode_A or mode_B being assigned to mode, the result is that the same).Video data encoding device can be to mode Judged, if it is judged that mode is equal to 0 or 1, then intra prediction mode candidate list can be such that
CandModeList [0]=1;
CandModeList [1]=0;
CandModeList [2]=10;
CandModeList [3]=26.
May include by above-mentioned processing, in intra prediction mode candidate list and the father of target PU layer PU, Zuo Xianglin PU With the identical luma intra prediction modes of object brightness intra prediction mode (such as mode 0 or mode 1) of upper adjacent PU, Yi Jiqi Its typical luma intra prediction modes (such as mode 10 or mode 26).In practical applications, typical luma intra prediction mould The other luma intra prediction modes of likelihood ratio that formula is targeted luma intra prediction modes are big, therefore, will be typical bright Degree intra prediction mode is added in intra prediction mode candidate list, and selected probability can be improved, improve the pressure of video Shrinkage.
The flow diagram for establishing intra prediction mode candidate list as shown in Figure 9, if it is judged that mode is not equal to 0 Or 1 namely mode belongs to angle mode, then intra prediction mode candidate list can be such that
CandModeList [0]=mode;
CandModeList [1]=2+ ((mode+29) %32);
CandModeList [2]=2+ ((mode-2+1) %32);
CandModeList [3]=1.
Wherein, the left adjacent brightness of the angle mode is calculated in candModeList [1]=2+ ((mode+29) %32) The right adjacent bright of the angle mode is calculated in intra prediction mode, candModeList [2]=2+ ((mode-2+1) %32) Spend intra prediction mode.Only angle mode (i.e. mode 2-34) just has adjacent luma intra prediction modes, for example, mode 4 Left adjacent brightness intra prediction mode be mode 3, right adjacent brightness intra prediction mode be mode 5.It should be noted that mould The left adjacent brightness intra prediction mode of formula 2 is mode 33, right adjacent brightness intra prediction mode is mode 3, a left side for mode 33 Adjacent brightness intra prediction mode is mode 32, right adjacent brightness intra prediction mode is mode 2, the left adjacent brightness of mode 34 Intra prediction mode is mode 33, right adjacent brightness intra prediction mode is mode 3.For angle mode, adjacent luminance frame The probability that inner estimation mode is targeted the object brightness intra prediction mode of PU is bigger, therefore, by father's layer PU, Zuo Xiang The adjacent luma intra prediction modes of the adjacent PU of adjacent PU or upper are added in intra prediction mode candidate list, can also be improved Selected probability improves the compression ratio of video.
For example, father's layer PU, Zuo Xianglin PU of target PU and the object brightness intra prediction mode of upper adjacent PU can be all Mode 4, then the intra prediction mode candidate list constructed can be such that
CandModeList [0]=4;
CandModeList [1]=3;
CandModeList [2]=5;
CandModeList [3]=1.
May include by above-mentioned processing, in intra prediction mode candidate list and the father of target PU layer PU, Zuo Xianglin PU With the identical luma intra prediction modes of object brightness intra prediction mode of upper adjacent PU and adjacent luma intra prediction Mode, other typical luma intra prediction modes (such as mode 1).
Situation two: if father's layer PU, Zuo Xianglin PU of target PU and the object brightness intra prediction mode of upper adjacent PU are equal It is not identical, then by father's layer object brightness intra prediction mode of PU, the object brightness intra prediction mode, upper adjacent of Zuo Xianglin PU The object brightness intra prediction mode of PU is added in intra prediction mode candidate list;If father's layer PU, Zuo Xiang of target PU The object brightness intra prediction mode of adjacent PU and upper adjacent PU are not mode 1, then mode 1 are added to intra prediction mode and waited It selects in list;If father's layer PU, Zuo Xianglin PU of target PU and the object brightness intra prediction mode of upper adjacent PU are not mould Mode 0 is then added in intra prediction mode candidate list by formula 0;If father's layer PU, Zuo Xianglin PU and upper adjacent of target PU The object brightness intra prediction mode of PU is not mode 10, then mode 10 is added in intra prediction mode candidate list; If father's layer PU, Zuo Xianglin PU of target PU and the object brightness intra prediction mode of upper adjacent PU are not mode 26, will Mode 26 is added in intra prediction mode candidate list.
Figure 10 can be the expansion for determining the block diagram of intra prediction mode candidate list in Fig. 8 according to Second Rule, such as scheme The flow diagram of intra prediction mode candidate list is established shown in 10, video data encoding device can be to mode_ Father, mode_A, mode_B are judged, can be by frame if mode_father, mode_A, mode_B are all different Inner estimation mode candidate list first three items assignment is as follows:
CandModeList [0]=mode_father;
CandModeList [1]=mode_A;
CandModeList [2]=mode_B.
If mode_father, mode_A, mode_B are not 1, candModeList [3]=1;
If mode_father, mode_A, mode_B are not 0, candModeList [3]=0;
If mode_father, mode_A, mode_B are not 10, candModeList [3]=10;
If mode_father, mode_A, mode_B are not 26, candModeList [3]=26.
May include by above-mentioned processing, in intra prediction mode candidate list and the father of target PU layer PU, Zuo Xianglin PU In the identical luma intra prediction modes of object brightness intra prediction mode and other typical luminance frames of upper adjacent PU Prediction mode.
Situation three: when above-mentioned two situations are not satisfied, necessarily satisfying for situation three.It is similar with above situation one, Same brightness intra prediction mode can be divided into two kinds of situations, and one kind is is all mode 0 (Planar mode) or (the DC mould of mode 1 Formula), one kind is is all one of angle mode mode.Video data encoding device is specifically handled can be such as following two sections.
If in father's layer PU, Zuo Xianglin PU of target PU and the object brightness intra prediction mode of upper adjacent PU, there are 2 The different luma intra prediction modes of same brightness intra prediction mode and 1, and same brightness intra prediction mode be mode 0 or Mode 0, mode 1 and different luma intra prediction modes are then added in intra prediction mode candidate list by mode 1;If Different luma intra prediction modes are mode 26, then mode 10 are added in intra prediction mode candidate list;If different Luma intra prediction modes are not mode 26, then mode 26 are added in intra prediction mode candidate list.
If in father's layer PU, Zuo Xianglin PU of target PU and the object brightness intra prediction mode of upper adjacent PU, there are 2 Same brightness intra prediction mode and 1 different luma intra prediction modes, and same brightness intra prediction mode is not mode 0 With mode 1, then by same brightness intra prediction mode, the left adjacent brightness intra prediction mode of same brightness intra prediction mode It is added in intra prediction mode candidate list with the right adjacent brightness intra prediction mode of same brightness intra prediction mode;Such as Fruit difference luma intra prediction modes are left adjacent brightness intra prediction mode or right adjacent brightness intra prediction mode, then by mould Formula 1 is added in intra prediction mode candidate list;If different luma intra prediction modes are not pre- in left adjacent brightness frame Different luma intra prediction modes are then added to intra prediction mode candidate by survey mode and right adjacent brightness intra prediction mode In list.
Figure 11 can be the expansion for determining the block diagram of intra prediction mode candidate list in Fig. 8 according to third rule, such as scheme The flow diagram of intra prediction mode candidate list is established shown in 11, mode_same is for indicating above-mentioned same brightness frame Inner estimation mode, for mode_nosame for indicating above-mentioned different luma intra prediction modes, assignment is respectively that corresponding mode is compiled Number.Video data encoding device can judge mode_same, can will be in frame if mode_same is equal to 0 or 1 Prediction mode candidate list first three items assignment is as follows:
CandModeList [0]=0;
CandModeList [1]=1;
CandModeList [2]=mode_nosame.
Then, video data encoding device can judge mode_nosame, if mode_nosame is equal to 26, Then [3]=10 candModeList;
If mode_nosame is not equal to 26, candModeList [3]=26.
May include by above-mentioned processing, in intra prediction mode candidate list and the father of target PU layer PU, Zuo Xianglin PU In the identical luma intra prediction modes of object brightness intra prediction mode and other typical luminance frames of upper adjacent PU Prediction mode.
The flow diagram for establishing intra prediction mode candidate list as shown in figure 11, if mode_same is not equal to 0 Or 1 namely mode_same belongs to angle mode, then it can be as follows by intra prediction mode candidate list first three items assignment:
CandModeList [0]=mode_same;
CandModeList [1]=2+ ((mode_same+29) %32);
CandModeList [2]=2+ ((mode_same-2+1) %32).
Wherein, the left adjacent of mode_same is calculated in candModeList [1]=2+ ((mode_same+29) %32) Luma intra prediction modes, candModeList [2]=2+ ((mode_same-2+1) %32) are calculated mode_same's Right adjacent brightness intra prediction mode.
Then, video data encoding device can judge mode_nosame, if mode_nosame is equal to CandModeList [1] or candModeList [2], then [3]=1 candModeList;
If mode_nosame is not equal to candModeList [1] or candModeList [2], candModeList [3]=mode_nosame.
May include by above-mentioned processing, in intra prediction mode candidate list and the father of target PU layer PU, Zuo Xianglin PU With the identical luma intra prediction modes of object brightness intra prediction mode of upper adjacent PU and adjacent luma intra prediction Mode, other typical luma intra prediction modes (such as mode 1).
The process of above-mentioned determining intra prediction mode candidate list, can be used as the expansion of H.265/HEVC standard, H.266 or AVS3 certainly, with the development of technology, the above method can also be applied in next-generation video compression protocols, such as.
503, luma intra prediction mould of the video data encoding device based on intra prediction mode candidate list and target PU Formula encodes the luma intra prediction modes of target PU.
Video data encoding device is after above-mentioned processing has determined intra prediction mode candidate list, it can be determined that step The luma intra prediction modes of the target PU got in 501 whether there is in intra prediction mode candidate list.
In a kind of possible embodiment, if it is present a marker " 1 " can be encoded, marker " 1 " can be with For indicating to be encoded using intra prediction mode candidate list, then re-encode in intra prediction mode candidate list Index.
In alternatively possible embodiment, if it does not exist, then a marker " 0 " can be encoded, marker " 0 " can For indicating to be encoded using usual manner.CandModeList [0]-in above-mentioned intra prediction mode candidate list CandModeList [2] can be to be arranged according to the sequence of MODE NUMBER from small to large.Video data encoding device can be with Judge whether the luma intra prediction modes of target PU are greater than the corresponding MODE NUMBER of candModeList [0], if it is greater, then The luma intra prediction modes of target PU are subtracted 1, continues MODE NUMBER corresponding with candModeList [1] and compares.Such as Fruit at this time target PU luma intra prediction modes be greater than candModeList [1] corresponding MODE NUMBER, then continue target The luma intra prediction modes of PU subtract 1, continue MODE NUMBER corresponding with candModeList [2] and compare.If at this time The luma intra prediction modes of target PU are greater than candModeList [2] corresponding MODE NUMBER, then continue the bright of target PU Degree intra prediction mode subtract 1, also, video data encoding device can according to target PU at this time luma intra prediction modes into Row coding, for example, if the luma intra prediction modes of the target PU got in step 501 be mode 34, by with After candModeList [0]-candModeList [2] comparison, has carried out 3 times and subtracted 1, then it is pre- in the luminance frame of target PU at this time Survey mode is mode 31, and video data encoding device can use 5bit and encode to " 31 ".In the above process, once The case where being less than in the presence of the luma intra prediction modes of target PU at that time, video data encoding device can be according to target PU at that time Luma intra prediction modes encoded.
For only including the case where 3 luma intra prediction modes in intra prediction mode candidate list, using pre- in frame When survey mode candidate list is encoded, bit number needed for code index is also 2bit;When being encoded using usual manner, compile Bit number needed for code indexes also is 5bit.The coding method of luma intra prediction modes provided by the embodiment of the present invention does not increase Bit number needed for adding code index.
Certainly, in corresponding decoding process, intra prediction mode candidate list can also be constructed based on the above method, really The target intra prediction mode that fixed each PU is used, and then can be decoded according to target intra prediction mode.
The object brightness intra prediction mode of PU is generally determined in existing standard using above-mentioned zigzag sequence, therefore above-mentioned Process is introduced so that adjacent PU is left adjacent PU and upper adjacent PU as an example.Certainly, adjacent PU can also be right adjacent PU under Adjacent PU.At this point, the processing of above-mentioned steps 502 can be with are as follows: father layer PU of the video data encoding device based on target PU, right adjacent The object brightness intra prediction mode of PU adjacent PU under, determines intra prediction mode candidate list.The above-mentioned each PU's of determination The sequence of object brightness intra prediction mode can also be adjusted correspondingly, so as in the object brightness frame for determining target PU When prediction mode, guarantee that right adjacent PU object brightness intra prediction mode of adjacent PU under has determined.Corresponding decoding side Formula can also be adjusted correspondingly.Detailed process is similar with the process of above-mentioned introduction, and Zuo Xianglin PU and upper adjacent PU can be with It is accordingly replaced into right adjacent PU adjacent PU under, details are not described herein again.
In the embodiment of the present invention, in the cataloged procedure of luma intra prediction modes, video data encoding device is in determination When intra prediction mode candidate list, while considering time domain and airspace, utilizes the luminance frame of father's layer PU and adjacent PU of target PU Inner estimation mode as reference, increase target PU intra prediction mode be present in intra prediction mode candidate list can Energy property, bit number needed for being further reduced coded luminance intra prediction mode can be further improved the compression of video data Rate.
Based on the same technical idea, the embodiment of the invention also provides a kind of code device, which can be above-mentioned Video data encoding device.As shown in figure 12, which includes:
Module 1210 is obtained, for when the luminance component to target prediction unit PU carries out intra prediction, described in acquisition The luma intra prediction modes of target PU;
Determining module 1220, the object brightness intra prediction mould for father's layer PU and adjacent PU based on the target PU Formula determines intra prediction mode candidate list;
Coding module 1230, for pre- in the luminance frame based on the intra prediction mode candidate list and the target PU Survey mode encodes the luma intra prediction modes of the target PU.
Optionally, the determining module 1220 is used for:
The object brightness intra prediction mode of father's layer PU, Zuo Xianglin PU and upper adjacent PU based on the target PU, determine Intra prediction mode candidate list.
Optionally, the determining module 1220 is also used to:
It sets the object brightness intra prediction mode of father's layer PU, Zuo Xianglin PU of the target PU and upper adjacent PU to just Beginning luma intra prediction modes;
If father's layer PU exists, the object brightness intra prediction mode of father's layer PU is updated;
If the adjacent PU in the left side exists, the object brightness intra prediction mode of the adjacent PU in the left side is updated;
If the upper adjacent PU exists, the object brightness intra prediction mode of the upper adjacent PU is updated.
Optionally, the determining module 1220 is used for:
If father's layer PU, Zuo Xianglin PU of the target PU and the object brightness intra prediction mode of upper adjacent PU are homogeneous Together, then intra prediction mode candidate list is determined according to the first rule;
If the object brightness intra prediction mode not phase of father's layer PU of the target PU, Zuo Xianglin PU and upper adjacent PU Together, then intra prediction mode candidate list is determined according to Second Rule;
If existed in father's layer PU, Zuo Xianglin PU of the target PU and the object brightness intra prediction mode of upper adjacent PU 2 same brightness intra prediction modes and 1 different luma intra prediction modes, then determine intra prediction mould according to third rule Formula candidate list.
Optionally, the determining module 1220 is used for:
If father's layer PU, Zuo Xianglin PU of the target PU and the object brightness intra prediction mode of upper adjacent PU are homogeneous Together, and the object brightness intra prediction mode is mode 0 or mode 1, then adds mode 0, mode 1, mode 10 and mode 26 It is added in intra prediction mode candidate list;
If father's layer PU, Zuo Xianglin PU of the target PU and the object brightness intra prediction mode of upper adjacent PU are homogeneous Together, and the object brightness intra prediction mode is not mode 0 and mode 1, then by the object brightness intra prediction mode, institute State the left adjacent brightness intra prediction mode of object brightness intra prediction mode, the right phase of the object brightness intra prediction mode Adjacent luma intra prediction modes and mode 1 are added in intra prediction mode candidate list.
Optionally, the determining module 1220 is used for:
If the object brightness intra prediction mode not phase of father's layer PU of the target PU, Zuo Xianglin PU and upper adjacent PU Together, then by father's layer the object brightness intra prediction mode of PU, the object brightness intra prediction mode of the adjacent PU in the left side, institute The object brightness intra prediction mode for stating adjacent PU is added in intra prediction mode candidate list;
If father's layer PU, Zuo Xianglin PU of the target PU and the object brightness intra prediction mode of upper adjacent PU are not Mode 1 is then added in the intra prediction mode candidate list by mode 1;
If father's layer PU, Zuo Xianglin PU of the target PU and the object brightness intra prediction mode of upper adjacent PU are not Mode 0 is then added in the intra prediction mode candidate list by mode 0;
If father's layer PU, Zuo Xianglin PU of the target PU and the object brightness intra prediction mode of upper adjacent PU are not Mode 10 is then added in the intra prediction mode candidate list by mode 10;
If father's layer PU, Zuo Xianglin PU of the target PU and the object brightness intra prediction mode of upper adjacent PU are not Mode 26 is then added in the intra prediction mode candidate list by mode 26.
Optionally, the determining module 1220 is used for:
If existed in father's layer PU, Zuo Xianglin PU of the target PU and the object brightness intra prediction mode of upper adjacent PU 2 same brightness intra prediction modes and 1 different luma intra prediction modes, and the same brightness intra prediction mode is Mode 0, mode 1 and the different luma intra prediction modes are then added to intra prediction mode candidate by mode 0 or mode 1 In list;
If the difference luma intra prediction modes are mode 26, mode 10 is added to the intra prediction mode In candidate list;
If the difference luma intra prediction modes are not mode 26, mode 26 is added to the intra prediction mould In formula candidate list.
Optionally, the determining module 1220 is used for:
If existed in father's layer PU, Zuo Xianglin PU of the target PU and the object brightness intra prediction mode of upper adjacent PU 2 same brightness intra prediction modes and 1 different luma intra prediction modes, and the same brightness intra prediction mode is not It is for mode 0 and mode 1, then a left side for the same brightness intra prediction mode, the same brightness intra prediction mode is adjacent The right adjacent brightness intra prediction mode of luma intra prediction modes and the same brightness intra prediction mode is added in frame In prediction mode candidate list;
If the difference luma intra prediction modes are that the left adjacent brightness intra prediction mode or the right side are adjacent Mode 1 is then added in the intra prediction mode candidate list by luma intra prediction modes;
If the difference luma intra prediction modes are not the left adjacent brightness intra prediction mode and the right phase The different luma intra prediction modes are then added to the intra prediction mode candidate list by adjacent luma intra prediction modes In.
About the device in above-described embodiment, wherein modules execute the concrete mode of operation in related this method Embodiment in be described in detail, no detailed explanation will be given here.
In the embodiment of the present invention, in the cataloged procedure of luma intra prediction modes, video data encoding device is in determination When intra prediction mode candidate list, while considering time domain and airspace, utilizes the luminance frame of father's layer PU and adjacent PU of target PU Inner estimation mode as reference, increase target PU intra prediction mode be present in intra prediction mode candidate list can Energy property, bit number needed for being further reduced coded luminance intra prediction mode can be further improved the compression of video data Rate.
It should be understood that the device of coded luminance intra prediction mode provided by the above embodiment is in coded luminance frame When prediction mode, only the example of the division of the above functional modules, in practical application, can according to need and will be upper It states function distribution to be completed by different functional modules, i.e., the internal structure of video data encoding device is divided into different functions Module, to complete all or part of the functions described above.In addition, coded luminance intra prediction mould provided by the above embodiment The device of formula and the coding method embodiment of luma intra prediction modes belong to same design, and specific implementation process is detailed in method Embodiment, which is not described herein again.
Figure 13 is a kind of structural schematic diagram of video data encoding device provided in an embodiment of the present invention, which compiles Decoding apparatus 1300 can generate bigger difference because configuration or performance are different, may include one or more processors (central processing units, CPU) 1301 and one or more memory 1302, wherein the storage At least one instruction is stored in device 1302, under at least one instruction is loaded and executed to realize by the processor 1301 State the coding method step of luma intra prediction modes:
When the luminance component to target prediction unit PU carries out intra prediction, obtain pre- in the luminance frame of the target PU Survey mode;
The object brightness intra prediction mode of father's layer PU and adjacent PU based on the target PU, determines intra prediction mode Candidate list;
Luma intra prediction modes based on the intra prediction mode candidate list and the target PU, to the target The luma intra prediction modes of PU are encoded.
Optionally, at least one instruction is loaded by the processor 1301 and is executed to realize following methods step:
The object brightness intra prediction mode of father's layer PU, Zuo Xianglin PU and upper adjacent PU based on the target PU, determine Intra prediction mode candidate list.
Optionally, at least one instruction is loaded by the processor 1301 and is executed to realize following methods step:
It sets the object brightness intra prediction mode of father's layer PU, Zuo Xianglin PU of the target PU and upper adjacent PU to just Beginning luma intra prediction modes;
If father's layer PU exists, the object brightness intra prediction mode of father's layer PU is updated;
If the adjacent PU in the left side exists, the object brightness intra prediction mode of the adjacent PU in the left side is updated;
If the upper adjacent PU exists, the object brightness intra prediction mode of the upper adjacent PU is updated.
Optionally, at least one instruction is loaded by the processor 1301 and is executed to realize following methods step:
If father's layer PU, Zuo Xianglin PU of the target PU and the object brightness intra prediction mode of upper adjacent PU are homogeneous Together, then intra prediction mode candidate list is determined according to the first rule;
If the object brightness intra prediction mode not phase of father's layer PU of the target PU, Zuo Xianglin PU and upper adjacent PU Together, then intra prediction mode candidate list is determined according to Second Rule;
If existed in father's layer PU, Zuo Xianglin PU of the target PU and the object brightness intra prediction mode of upper adjacent PU 2 same brightness intra prediction modes and 1 different luma intra prediction modes, then determine intra prediction mould according to third rule Formula candidate list.
Optionally, at least one instruction is loaded by the processor 1301 and is executed to realize following methods step:
If father's layer PU, Zuo Xianglin PU of the target PU and the object brightness intra prediction mode of upper adjacent PU are homogeneous Together, and the object brightness intra prediction mode is mode 0 or mode 1, then adds mode 0, mode 1, mode 10 and mode 26 It is added in intra prediction mode candidate list;
If father's layer PU, Zuo Xianglin PU of the target PU and the object brightness intra prediction mode of upper adjacent PU are homogeneous Together, and the object brightness intra prediction mode is not mode 0 and mode 1, then by the object brightness intra prediction mode, institute State the left adjacent brightness intra prediction mode of object brightness intra prediction mode, the right phase of the object brightness intra prediction mode Adjacent luma intra prediction modes and mode 1 are added in intra prediction mode candidate list.
Optionally, at least one instruction is loaded by the processor 1301 and is executed to realize following methods step:
If the object brightness intra prediction mode not phase of father's layer PU of the target PU, Zuo Xianglin PU and upper adjacent PU Together, then by father's layer the object brightness intra prediction mode of PU, the object brightness intra prediction mode of the adjacent PU in the left side, institute The object brightness intra prediction mode for stating adjacent PU is added in intra prediction mode candidate list;
If father's layer PU, Zuo Xianglin PU of the target PU and the object brightness intra prediction mode of upper adjacent PU are not Mode 1 is then added in the intra prediction mode candidate list by mode 1;
If father's layer PU, Zuo Xianglin PU of the target PU and the object brightness intra prediction mode of upper adjacent PU are not Mode 0 is then added in the intra prediction mode candidate list by mode 0;
If father's layer PU, Zuo Xianglin PU of the target PU and the object brightness intra prediction mode of upper adjacent PU are not Mode 10 is then added in the intra prediction mode candidate list by mode 10;
If father's layer PU, Zuo Xianglin PU of the target PU and the object brightness intra prediction mode of upper adjacent PU are not Mode 26 is then added in the intra prediction mode candidate list by mode 26.
Optionally, at least one instruction is loaded by the processor 1301 and is executed to realize following methods step:
If existed in father's layer PU, Zuo Xianglin PU of the target PU and the object brightness intra prediction mode of upper adjacent PU 2 same brightness intra prediction modes and 1 different luma intra prediction modes, and the same brightness intra prediction mode is Mode 0, mode 1 and the different luma intra prediction modes are then added to intra prediction mode candidate by mode 0 or mode 1 In list;
If the difference luma intra prediction modes are mode 26, mode 10 is added to the intra prediction mode In candidate list;
If the difference luma intra prediction modes are not mode 26, mode 26 is added to the intra prediction mould In formula candidate list.
Optionally, at least one instruction is loaded by the processor 1301 and is executed to realize following methods step:
If existed in father's layer PU, Zuo Xianglin PU of the target PU and the object brightness intra prediction mode of upper adjacent PU 2 same brightness intra prediction modes and 1 different luma intra prediction modes, and the same brightness intra prediction mode is not It is for mode 0 and mode 1, then a left side for the same brightness intra prediction mode, the same brightness intra prediction mode is adjacent The right adjacent brightness intra prediction mode of luma intra prediction modes and the same brightness intra prediction mode is added in frame In prediction mode candidate list;
If the difference luma intra prediction modes are that the left adjacent brightness intra prediction mode or the right side are adjacent Mode 1 is then added in the intra prediction mode candidate list by luma intra prediction modes;
If the difference luma intra prediction modes are not the left adjacent brightness intra prediction mode and the right phase The different luma intra prediction modes are then added to the intra prediction mode candidate list by adjacent luma intra prediction modes In.
In the embodiment of the present invention, in the cataloged procedure of luma intra prediction modes, video data encoding device is in determination When intra prediction mode candidate list, while considering time domain and airspace, utilizes the luminance frame of father's layer PU and adjacent PU of target PU Inner estimation mode as reference, increase target PU intra prediction mode be present in intra prediction mode candidate list can Energy property, bit number needed for being further reduced coded luminance intra prediction mode can be further improved the compression of video data Rate.
Those of ordinary skill in the art will appreciate that realizing that all or part of the steps of above-described embodiment can pass through hardware It completes, relevant hardware can also be instructed to complete by program, the program can store in a kind of computer-readable In storage medium, storage medium mentioned above can be read-only memory, disk or CD etc..
The foregoing is merely possibility embodiments of the invention, are not intended to limit the invention, it is all in spirit of the invention and Within principle, any modification, equivalent replacement, improvement and so on be should all be included in the protection scope of the present invention.

Claims (17)

1. a kind of coding method, which is characterized in that the described method includes:
When the luminance component to target prediction unit PU carries out intra prediction, the luma intra prediction mould of the target PU is obtained Formula;
The object brightness intra prediction mode of father's layer PU and adjacent PU based on the target PU, determines intra prediction mode candidate List;
Luma intra prediction modes based on the intra prediction mode candidate list and the target PU, to the target PU's Luma intra prediction modes are encoded.
2. the method according to claim 1, wherein father's layer PU and adjacent PU based on the target PU Object brightness intra prediction mode determines intra prediction mode candidate list, comprising:
The object brightness intra prediction mode of father's layer PU, Zuo Xianglin PU and upper adjacent PU based on the target PU, determine in frame Prediction mode candidate list.
3. according to the method described in claim 2, it is characterized in that, father's layer PU, Zuo Xianglin PU based on the target PU With the object brightness intra prediction mode of upper adjacent PU, before determining intra prediction mode candidate list, further includes:
Set initial bright for the object brightness intra prediction mode of father's layer PU, Zuo Xianglin PU of the target PU and upper adjacent PU Spend intra prediction mode;
If father's layer PU exists, the object brightness intra prediction mode of father's layer PU is updated;
If the adjacent PU in the left side exists, the object brightness intra prediction mode of the adjacent PU in the left side is updated;
If the upper adjacent PU exists, the object brightness intra prediction mode of the upper adjacent PU is updated.
4. according to the method described in claim 2, it is characterized in that, father's layer PU, Zuo Xianglin PU based on the target PU With the object brightness intra prediction mode of upper adjacent PU, intra prediction mode candidate list is determined, comprising:
If father's layer PU, Zuo Xianglin PU of the target PU and the object brightness intra prediction mode of upper adjacent PU are all the same, Intra prediction mode candidate list is determined according to the first rule;
If father's layer PU, Zuo Xianglin PU of the target PU and the object brightness intra prediction mode of upper adjacent PU are all different, Intra prediction mode candidate list is then determined according to Second Rule;
If in father's layer PU, Zuo Xianglin PU of the target PU and the object brightness intra prediction mode of upper adjacent PU, there are 2 Same brightness intra prediction mode and 1 different luma intra prediction modes, then determine intra prediction mode according to third rule Candidate list.
5. if according to the method described in claim 4, it is characterized in that, father's layer PU, Zuo Xianglin PU of the target PU It is all the same with the object brightness intra prediction mode of upper adjacent PU, then intra prediction mode candidate column are determined according to the first rule Table, comprising:
If father's layer PU, Zuo Xianglin PU of the target PU and the object brightness intra prediction mode of upper adjacent PU are all the same, and The object brightness intra prediction mode is mode 0 or mode 1, then mode 0, mode 1, mode 10 and mode 26 is added to frame In inner estimation mode candidate list;
If father's layer PU, Zuo Xianglin PU of the target PU and the object brightness intra prediction mode of upper adjacent PU are all the same, and The object brightness intra prediction mode is not mode 0 and mode 1, then by the object brightness intra prediction mode, the mesh Mark the left adjacent brightness intra prediction mode of luma intra prediction modes, the right adjacent bright of the object brightness intra prediction mode Degree intra prediction mode and mode 1 are added in intra prediction mode candidate list.
6. if according to the method described in claim 4, it is characterized in that, father's layer PU, Zuo Xianglin PU of the target PU It is all different with the object brightness intra prediction mode of upper adjacent PU, then determines that intra prediction mode candidate arranges according to Second Rule Table, comprising:
If father's layer PU, Zuo Xianglin PU of the target PU and the object brightness intra prediction mode of upper adjacent PU are all different, Then the object brightness intra prediction mode of father layer PU, the adjacent PU in the left side object brightness intra prediction mode, it is described on The object brightness intra prediction mode of adjacent PU is added in intra prediction mode candidate list;
If father's layer PU, Zuo Xianglin PU of the target PU and the object brightness intra prediction mode of upper adjacent PU are not mode 1, then mode 1 is added in the intra prediction mode candidate list;
If father's layer PU, Zuo Xianglin PU of the target PU and the object brightness intra prediction mode of upper adjacent PU are not mode 0, then mode 0 is added in the intra prediction mode candidate list;
If father's layer PU, Zuo Xianglin PU of the target PU and the object brightness intra prediction mode of upper adjacent PU are not mode 10, then mode 10 is added in the intra prediction mode candidate list;
If father's layer PU, Zuo Xianglin PU of the target PU and the object brightness intra prediction mode of upper adjacent PU are not mode 26, then mode 26 is added in the intra prediction mode candidate list.
7. if according to the method described in claim 4, it is characterized in that, father's layer PU, Zuo Xianglin PU of the target PU There are 2 same brightness intra prediction modes and 1 different luminance frame in the object brightness intra prediction mode of upper adjacent PU Inner estimation mode then determines intra prediction mode candidate list according to third rule, comprising:
If in father's layer PU, Zuo Xianglin PU of the target PU and the object brightness intra prediction mode of upper adjacent PU, there are 2 Same brightness intra prediction mode and 1 different luma intra prediction modes, and the same brightness intra prediction mode is mould Mode 0, mode 1 and the different luma intra prediction modes are then added to intra prediction mode candidate column by formula 0 or mode 1 In table;
If the difference luma intra prediction modes are mode 26, it is candidate that mode 10 is added to the intra prediction mode In list;
If the difference luma intra prediction modes are not mode 26, mode 26 is added to the intra prediction mode and is waited It selects in list.
8. if according to the method described in claim 4, it is characterized in that, father's layer PU, Zuo Xianglin PU of the target PU There are 2 same brightness intra prediction modes and 1 different luminance frame in the object brightness intra prediction mode of upper adjacent PU Inner estimation mode then determines intra prediction mode candidate list according to third rule, comprising:
If in father's layer PU, Zuo Xianglin PU of the target PU and the object brightness intra prediction mode of upper adjacent PU, there are 2 Same brightness intra prediction mode and 1 different luma intra prediction modes, and the same brightness intra prediction mode is not Mode 0 and mode 1, then by the left adjacent bright of the same brightness intra prediction mode, the same brightness intra prediction mode The right adjacent brightness intra prediction mode of degree intra prediction mode and the same brightness intra prediction mode is added in frame in advance It surveys in mode candidate list;
If the difference luma intra prediction modes are the left adjacent brightness intra prediction mode or the right adjacent brightness Mode 1 is then added in the intra prediction mode candidate list by intra prediction mode;
If the difference luma intra prediction modes are not the left adjacent brightness intra prediction mode and the right adjacent bright Intra prediction mode is spent, then the different luma intra prediction modes are added in the intra prediction mode candidate list.
9. a kind of code device, which is characterized in that described device includes:
Module is obtained, for obtaining the target PU's when the luminance component to target prediction unit PU carries out intra prediction Luma intra prediction modes;
Determining module determines frame for the object brightness intra prediction mode of father's layer PU and adjacent PU based on the target PU Inner estimation mode candidate list;
Coding module, for the luma intra prediction modes based on the intra prediction mode candidate list and the target PU, The luma intra prediction modes of the target PU are encoded.
10. device according to claim 9, which is characterized in that the determining module is used for:
The object brightness intra prediction mode of father's layer PU, Zuo Xianglin PU and upper adjacent PU based on the target PU, determine in frame Prediction mode candidate list.
11. device according to claim 10, which is characterized in that the determining module is also used to:
Set initial bright for the object brightness intra prediction mode of father's layer PU, Zuo Xianglin PU of the target PU and upper adjacent PU Spend intra prediction mode;
If father's layer PU exists, the object brightness intra prediction mode of father's layer PU is updated;
If the adjacent PU in the left side exists, the object brightness intra prediction mode of the adjacent PU in the left side is updated;
If the upper adjacent PU exists, the object brightness intra prediction mode of the upper adjacent PU is updated.
12. device according to claim 10, which is characterized in that the determining module is used for:
If father's layer PU, Zuo Xianglin PU of the target PU and the object brightness intra prediction mode of upper adjacent PU are all the same, and The object brightness intra prediction mode is mode 0 or mode 1, then mode 0, mode 1, mode 10 and mode 26 is added to frame In inner estimation mode candidate list;
If father's layer PU, Zuo Xianglin PU of the target PU and the object brightness intra prediction mode of upper adjacent PU are all the same, and The object brightness intra prediction mode is not mode 0 and mode 1, then by the object brightness intra prediction mode, the mesh Mark the left adjacent brightness intra prediction mode of luma intra prediction modes, the right adjacent bright of the object brightness intra prediction mode Degree intra prediction mode and mode 1 are added in intra prediction mode candidate list.
13. device according to claim 10, which is characterized in that the determining module is used for:
If father's layer PU, Zuo Xianglin PU of the target PU and the object brightness intra prediction mode of upper adjacent PU are all different, Then by the object brightness intra prediction mode of father layer PU, the object brightness intra prediction mode, described of the adjacent PU in the left side The object brightness intra prediction mode of upper adjacent PU is added in intra prediction mode candidate list;
If father's layer PU, Zuo Xianglin PU of the target PU and the object brightness intra prediction mode of upper adjacent PU are not mode 1, then mode 1 is added in the intra prediction mode candidate list;
If father's layer PU, Zuo Xianglin PU of the target PU and the object brightness intra prediction mode of upper adjacent PU are not mode 0, then mode 0 is added in the intra prediction mode candidate list;
If father's layer PU, Zuo Xianglin PU of the target PU and the object brightness intra prediction mode of upper adjacent PU are not mode 10, then mode 10 is added in the intra prediction mode candidate list;
If father's layer PU, Zuo Xianglin PU of the target PU and the object brightness intra prediction mode of upper adjacent PU are not mode 26, then mode 26 is added in the intra prediction mode candidate list.
14. device according to claim 10, which is characterized in that the determining module is used for:
If in father's layer PU, Zuo Xianglin PU of the target PU and the object brightness intra prediction mode of upper adjacent PU, there are 2 Same brightness intra prediction mode and 1 different luma intra prediction modes, and the same brightness intra prediction mode is mould Mode 0, mode 1 and the different luma intra prediction modes are then added to intra prediction mode candidate column by formula 0 or mode 1 In table;
If the difference luma intra prediction modes are mode 26, it is candidate that mode 10 is added to the intra prediction mode In list;
If the difference luma intra prediction modes are not mode 26, mode 26 is added to the intra prediction mode and is waited It selects in list.
15. device according to claim 10, which is characterized in that the determining module is used for:
If in father's layer PU, Zuo Xianglin PU of the target PU and the object brightness intra prediction mode of upper adjacent PU, there are 2 Same brightness intra prediction mode and 1 different luma intra prediction modes, and the same brightness intra prediction mode is not Mode 0 and mode 1, then by the left adjacent bright of the same brightness intra prediction mode, the same brightness intra prediction mode The right adjacent brightness intra prediction mode of degree intra prediction mode and the same brightness intra prediction mode is added in frame in advance It surveys in mode candidate list;
If the difference luma intra prediction modes are the left adjacent brightness intra prediction mode or the right adjacent brightness Mode 1 is then added in the intra prediction mode candidate list by intra prediction mode;
If the difference luma intra prediction modes are not the left adjacent brightness intra prediction mode and the right adjacent bright Intra prediction mode is spent, then the different luma intra prediction modes are added in the intra prediction mode candidate list.
16. a kind of video data encoding device, which is characterized in that the video data encoding device includes processor and storage Device is stored at least one instruction, at least a Duan Chengxu, code set or instruction set in the memory, and described at least one refers to It enables, an at least Duan Chengxu, the code set or instruction set are loaded by the processor and executed to realize such as claim 1 To 8 any coding methods.
17. a kind of computer readable storage medium, which is characterized in that be stored at least one instruction, extremely in the storage medium A few Duan Chengxu, code set or instruction set, at least one instruction, an at least Duan Chengxu, the code set or instruction Collection is loaded by the processor and is executed to realize coding method as described in any of the claims 1 to 8.
CN201810725133.3A 2018-07-04 2018-07-04 Encoding method, apparatus and video data encoding device Active CN110166777B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810725133.3A CN110166777B (en) 2018-07-04 2018-07-04 Encoding method, apparatus and video data encoding device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810725133.3A CN110166777B (en) 2018-07-04 2018-07-04 Encoding method, apparatus and video data encoding device

Publications (2)

Publication Number Publication Date
CN110166777A true CN110166777A (en) 2019-08-23
CN110166777B CN110166777B (en) 2023-11-17

Family

ID=67645030

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810725133.3A Active CN110166777B (en) 2018-07-04 2018-07-04 Encoding method, apparatus and video data encoding device

Country Status (1)

Country Link
CN (1) CN110166777B (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112291565A (en) * 2020-09-10 2021-01-29 浙江大华技术股份有限公司 Video coding method and related device

Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20120327999A1 (en) * 2011-06-02 2012-12-27 Canon Kabushiki Kaisha Encoding mode values representing prediction modes
WO2013048033A1 (en) * 2011-09-28 2013-04-04 한국전자통신연구원 Method and apparatus for encoding/decoding intra prediction mode
WO2013115568A1 (en) * 2012-01-30 2013-08-08 한국전자통신연구원 Intra prediction mode encoding/decoding method and device
CN103338371A (en) * 2013-06-07 2013-10-02 东华理工大学 Fast and efficient video coding intra mode determining method
US20150036743A1 (en) * 2012-02-02 2015-02-05 Electronics And Telecommunications Research Institute Interlayer prediction method and device for image signal
WO2017113456A1 (en) * 2015-12-30 2017-07-06 邦彦技术股份有限公司 Hevc-oriented fast intra-frame prediction mode decision method and device
CN107071416A (en) * 2017-01-06 2017-08-18 华南理工大学 A kind of HEVC Adaptive Mode Selection Method for Intra-Prediction
JP2017228827A (en) * 2016-06-20 2017-12-28 日本放送協会 Intra-prediction device, image coding device, image decoding device, and program
WO2018026148A1 (en) * 2016-08-01 2018-02-08 한국전자통신연구원 Image encoding/decoding method and device, and recording medium storing bitstream
US20180184082A1 (en) * 2015-06-15 2018-06-28 Lg Electronics Inc. Intra prediction mode based image processing method, and apparatus therefor

Patent Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20120327999A1 (en) * 2011-06-02 2012-12-27 Canon Kabushiki Kaisha Encoding mode values representing prediction modes
WO2013048033A1 (en) * 2011-09-28 2013-04-04 한국전자통신연구원 Method and apparatus for encoding/decoding intra prediction mode
WO2013115568A1 (en) * 2012-01-30 2013-08-08 한국전자통신연구원 Intra prediction mode encoding/decoding method and device
US20150036743A1 (en) * 2012-02-02 2015-02-05 Electronics And Telecommunications Research Institute Interlayer prediction method and device for image signal
CN103338371A (en) * 2013-06-07 2013-10-02 东华理工大学 Fast and efficient video coding intra mode determining method
US20180184082A1 (en) * 2015-06-15 2018-06-28 Lg Electronics Inc. Intra prediction mode based image processing method, and apparatus therefor
WO2017113456A1 (en) * 2015-12-30 2017-07-06 邦彦技术股份有限公司 Hevc-oriented fast intra-frame prediction mode decision method and device
JP2017228827A (en) * 2016-06-20 2017-12-28 日本放送協会 Intra-prediction device, image coding device, image decoding device, and program
WO2018026148A1 (en) * 2016-08-01 2018-02-08 한국전자통신연구원 Image encoding/decoding method and device, and recording medium storing bitstream
CN107071416A (en) * 2017-01-06 2017-08-18 华南理工大学 A kind of HEVC Adaptive Mode Selection Method for Intra-Prediction

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112291565A (en) * 2020-09-10 2021-01-29 浙江大华技术股份有限公司 Video coding method and related device
CN112291565B (en) * 2020-09-10 2021-09-14 浙江大华技术股份有限公司 Video coding method and related device

Also Published As

Publication number Publication date
CN110166777B (en) 2023-11-17

Similar Documents

Publication Publication Date Title
EP3590256B1 (en) Method and apparatus of implicit intra coding tool settings with intra directional prediction modes for video coding
US10979707B2 (en) Method and apparatus of adaptive inter prediction in video coding
AU2012310514B2 (en) Method for inducing a merge candidate block and device using same
KR102131838B1 (en) Enhanced intra prediction mode signaling
EP3761641A1 (en) Method of block-based adaptive loop filtering
US20130287104A1 (en) Method for encoding video information and method for decoding video information, and apparatus using same
IL227925A (en) Hierarchy of motion prediction video blocks
EP3939266A1 (en) Constrained and adjusted applications of combined inter- and intra-prediction mode
KR20210113389A (en) A method of performing coding and decoding, a decoder, a coder and a storage medium
KR20150070849A (en) Method and apparatus for encoding/decoding video
AU2018236769A1 (en) Method for inducing a merge candidate block and device using same
CN110166777A (en) Coding method, device and video data encoding device
Sharabayko et al. Iterative intra prediction search for H. 265/HEVC
WO2007081116A1 (en) Method and apparatus for video data encoding and decoding
CN115604484A (en) Image decoding method and image encoding method
KR101659343B1 (en) Method and apparatus for processing moving image
EP3909241A1 (en) System and method for improving combined inter and intra prediction
US20210258582A1 (en) Method for processing image providing improved arithmetic encoding, method for decoding and encoding image using same, and apparatus for same
RU2777923C1 (en) Encoding and decoding methods, encoder and decoder, and data carrier
Jaja et al. Efficient Motion Estimation Algorithms for HEVC/H. 265 Video Coding
KR20150070845A (en) Method and apparatus for encoding/decoding video
Shi et al. Segmental downsampling intra coding based on spatial locality for HEVC

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant