[go: up one dir, main page]

CN105530518B - A kind of Video coding, coding/decoding method and device - Google Patents

A kind of Video coding, coding/decoding method and device Download PDF

Info

Publication number
CN105530518B
CN105530518B CN201410521077.3A CN201410521077A CN105530518B CN 105530518 B CN105530518 B CN 105530518B CN 201410521077 A CN201410521077 A CN 201410521077A CN 105530518 B CN105530518 B CN 105530518B
Authority
CN
China
Prior art keywords
coding unit
unit
size
coding
mode
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201410521077.3A
Other languages
Chinese (zh)
Other versions
CN105530518A (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.)
Lenovo Beijing Ltd
Original Assignee
Lenovo Beijing 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 Lenovo Beijing Ltd filed Critical Lenovo Beijing Ltd
Priority to CN201410521077.3A priority Critical patent/CN105530518B/en
Publication of CN105530518A publication Critical patent/CN105530518A/en
Application granted granted Critical
Publication of CN105530518B publication Critical patent/CN105530518B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Compression Or Coding Systems Of Tv Signals (AREA)

Abstract

The invention discloses a kind of method for video coding, for improving Video coding compression ratio.The described method includes: the corresponding each maximum coding unit of current video frame is sized to be greater than 64*64: according to quad-tree structure, maximum coding unit being respectively divided into coding unit;To each coding unit, by the predicting unit of division, the corresponding prediction residual under at least one coding mode is at least obtained;To each coding unit, by converter unit, the corresponding transform coefficient matrix of converter unit is calculated according at least one prediction residual;According to maximum coding unit under different demarcation mode corresponding prediction residual and transform coefficient matrix, determine optimum division mode.The invention also discloses corresponding coding/decoding method and devices.

Description

A kind of Video coding, coding/decoding method and device
Technical field
The present invention relates to coding techniques field, in particular to a kind of Video coding, coding/decoding method and device.
Background technique
HEVC (High Efficiency Video Coding, high efficiency Video coding) is a kind of new video compress mark Standard can substitute a kind of H.264/AVC (video encoding standard) coding standard to a certain extent.
HEVC can make the video of 1080P compression efficiency in compression improve 50% or so, this means that the matter of video Amount will rise very much, and can save a large amount of network bandwidth, for consumers, can enjoy higher-quality view Frequency content.
However, in the prior art, many applications such as remote desktop access, remote game, cloud computing are very universal, this One critically important feature of class application is exactly the information such as the image that text and computer generation are mixed in natural video frequency. And certain patterns (such as certain characters, figure often may repeatedly occur in the information such as image that text and computer generate Mark and lines), such as by the PCB (Printed Circuit Board, printed circuit board) of computer drawing, just have big Measure duplicate horizontal line and vertical line.Compared with natural video frequency sequence, the image texture generated by computer is more, in Video coding It is considered as containing a large amount of high-frequency informations, it is encoded using HEVC, effect is not fine.
Because of such video with a large amount of duplicate messages, in space, adjacent area often duplicates information, in time domain Adjacent area also usually occurs continuously being encoded as the region of model identical, it is meant that the space of such video and time correlation Property is stronger.And block partition mode traditional in coding in HEVC can not remove this correlation well, and coding is caused to compress Relatively low, coding quality is poor.
Summary of the invention
The embodiment of the present invention provides a kind of Video coding, coding/decoding method and device, for solving to having a large amount of repeat Compression ratio lower technical problem is encoded when the video of information is encoded.
A kind of method for video coding, comprising:
The corresponding each maximum coding unit of current video frame is handled as follows, wherein the maximum coding unit Size be first size, the first size be greater than 64*64: according to quad-tree structure, the maximum coding unit is distinguished It is divided into coding unit;To each coding unit obtained according to different demarcation mode, pass through what is divided by the coding unit Predicting unit is predicted according at least one coding mode, at least obtains the coding unit respectively at least one volume Corresponding prediction residual under pattern;To each coding unit obtained according to every kind of division mode, by converter unit according to The corresponding prediction residual of the coding unit obtained is calculated, and the corresponding transform coefficient matrix of the coding unit is obtained;Its In, the converter unit is divided to obtain by the coding unit, and the converter unit is to minimize coding rate distortion costs and be Criterion carrys out calculation of transform coefficients matrix;
Minimum coding rate distortion costs be subject to then, according to the maximum coding unit of acquisition in different demarcation mode Under corresponding prediction residual and transform coefficient matrix, determine the optimum division mode of the maximum coding unit, will be described best Coding division mode of the division mode as the maximum coding unit.
Optionally, the full-size of the converter unit is the second size, and second size is greater than 32*32.
Optionally, the full-size of the predicting unit is third size, and the third size is greater than 64*64.
Optionally, the quantity for the high-frequency information for including in the video frame is greater than default high-frequency information threshold value, and/or, institute The resolution ratio for stating video frame is greater than default resolution ratio.
A kind of video encoding/decoding method, comprising:
Code stream to be decoded is received, the code stream is encoded to obtain by maximum coding unit;Wherein, the maximum coding unit Size be first size, the first size be greater than 64*64;
The code stream is decoded according to the code stream corresponding decoding parametric, obtains the maximum coding unit.
Optionally, the code stream is decoded according to the decoding parametric for including in the code stream, obtains the maximum volume Code unit, comprising:
It is obtained according to the corresponding deep cut flag parameter of the code stream and the maximum coding unit is divided into coding list The division mode of member, according to the predicting unit partition mode parameter for each coding unit that the maximum coding unit divides The predicting unit divided by each coding unit is obtained, and, it is obtained according to the division identification parameter of converter unit by every The converter unit that a coding unit divides;
According to the division mode, the predicting unit and the transformation that the maximum coding unit is divided into coding unit Unit is decoded the code stream, obtains the maximum coding unit.
Optionally, the full-size of the converter unit is the second size, and second size is greater than 32*32.
Optionally, the full-size of the predicting unit is third size, and the third size is greater than 64*64.
A kind of video coding apparatus, comprising:
Processing module, for the corresponding each maximum coding unit of current video frame to be handled as follows, wherein described The size of maximum coding unit is first size, and the first size is greater than 64*64: according to quad-tree structure, by the maximum Coding unit is respectively divided into coding unit;To each coding unit obtained according to different demarcation mode, by by the volume The predicting unit of code dividing elements is predicted according at least one coding mode, at least obtains the coding unit respectively in institute State corresponding prediction residual under at least one coding mode;To each coding unit obtained according to every kind of division mode, pass through Converter unit is calculated according to the corresponding prediction residual of the coding unit of acquisition, obtains the corresponding transformation of the coding unit Coefficient matrix;Wherein, the converter unit is divided to obtain by the coding unit, and the converter unit is to minimize encoding rate Distortion cost is that criterion carrys out calculation of transform coefficients matrix;
Determining module, for being subject to minimum coding rate distortion costs then, according to the maximum coding unit of acquisition Corresponding prediction residual and transform coefficient matrix under different demarcation mode, determine the optimum division side of the maximum coding unit Formula, using the optimum division mode as the coding division mode of the maximum coding unit.
Optionally, the full-size of the converter unit is the second size, and second size is greater than 32*32.
Optionally, the full-size of the predicting unit is third size, and the third size is greater than 64*64.
Optionally, the quantity for the high-frequency information for including in the video frame is greater than default high-frequency information threshold value, and/or, institute The resolution ratio for stating video frame is greater than default resolution ratio.
A kind of video decoder, comprising:
Receiving module, for receiving code stream to be decoded, the code stream is encoded to obtain by maximum coding unit;Wherein, institute The size for stating the maximum coding unit is first size, and the first size is greater than 64*64;
Decoder module, for being decoded according to the corresponding decoding parametric of the code stream to the code stream, acquisition is described most Big coding unit.
Optionally, the decoder module is specifically used for:
It is obtained according to the corresponding deep cut flag parameter of the code stream and the maximum coding unit is divided into coding list The division mode of member, according to the predicting unit partition mode parameter for each coding unit that the maximum coding unit divides The predicting unit divided by each coding unit is obtained, and, it is obtained according to the division identification parameter of converter unit by every The converter unit that a coding unit divides;
According to the division mode, the predicting unit and the transformation that the maximum coding unit is divided into coding unit Unit is decoded the code stream, obtains the maximum coding unit.
Optionally, the full-size of the converter unit is the second size, and second size is greater than 32*32.
Optionally, the full-size of the predicting unit is third size, and the third size is greater than 64*64.
The embodiment of the present invention provides a kind of method for video coding, by the size of maximum coding unit by the prior art 64*64 is expanded, and the size of maximum coding unit is enabled to be greater than 64*64, in this way, when being divided the video frame, institute Maximum piece of the size that can be divided is greater than 64*64 in the prior art, carries out to the video with a large amount of duplicate messages When coding, which can be divided into biggish piece to encode, can relatively efficiently remove correlation in this way, as far as possible Repeating part is put into a block disposably coding to complete, is separately encoded without being divided into multiple pieces, improves coding quality. Also, because increasing the size of maximum coding unit, then when dividing video frame, the quantity for the block that may be marked off will subtract It is few, it is reduced then the quantity of used syntactic element is also just corresponding in coding, for example, being encoded to a bulk When, a syntactic element need to be only used, and when being encoded to four fritters, four syntactic element (numbers here need to be used Word is only illustrated, and actual quantity is not represented), then, bit number used in obtained final coding compressed file is bright It is aobvious to reduce, the small volume of compressed file is encoded, to obviously improve compression ratio.
Detailed description of the invention
Fig. 1 is the broad flow diagram of method for video coding in the embodiment of the present invention;
Fig. 2 is the schematic diagram that maximum coding unit is divided into coding unit for the first time in the embodiment of the present invention;
Fig. 3 is the schematic diagram that maximum coding unit is divided into coding unit for the second time in the embodiment of the present invention;
Fig. 4 is the schematic diagram that maximum coding unit third time is divided into coding unit in the embodiment of the present invention;
Fig. 5 is the different demarcation schematic diagram that coding unit is divided into predicting unit in the embodiment of the present invention;
Fig. 6 is the broad flow diagram of coding/decoding method in the embodiment of the present invention;
Fig. 7 is the primary structure block diagram of video coding apparatus in the embodiment of the present invention;
Fig. 8 is the primary structure block diagram of video decoder in the embodiment of the present invention.
Specific embodiment
The embodiment of the present invention provides a kind of method for video coding, comprising: by the corresponding each maximum coding of current video frame Unit is handled as follows, wherein the size of the maximum coding unit is first size, and the first size is greater than 64*64: According to quad-tree structure, the maximum coding unit is respectively divided into coding unit;To what is obtained according to different demarcation mode Each coding unit predicted by the predicting unit divided by the coding unit according at least one coding mode, until The coding unit corresponding prediction residual under at least one coding mode respectively is obtained less;To according to every kind of division side Each coding unit that formula obtains is calculated by converter unit according to the corresponding prediction residual of the coding unit of acquisition, Obtain the corresponding transform coefficient matrix of the coding unit;Wherein, the converter unit is divided to obtain by the coding unit, institute State converter unit be subject to minimum coding rate distortion costs then carry out calculation of transform coefficients matrix;To minimize encoding rate distortion Cost is criterion, according to the maximum coding unit of acquisition under different demarcation mode corresponding prediction residual and transformation coefficient Matrix determines the optimum division mode of the maximum coding unit, and the optimum division mode is single as the maximum coding The coding division mode of member.
The embodiment of the present invention provides a kind of method for video coding, by the size of maximum coding unit by the prior art 64*64 is expanded, and the size of maximum coding unit is enabled to be greater than 64*64, in this way, when being divided the video frame, institute Maximum piece of the size that can be divided is greater than 64*64 in the prior art, carries out to the video with a large amount of duplicate messages When coding, which can be divided into biggish piece to encode, can relatively efficiently remove correlation in this way, as far as possible Repeating part is put into a block disposably coding to complete, is separately encoded without being divided into multiple pieces, improves coding quality. Also, because increasing the size of maximum coding unit, then when dividing video frame, the quantity for the block that may be marked off will subtract It is few, it is reduced then the quantity of used syntactic element is also just corresponding in coding, for example, being encoded to a bulk When, a syntactic element need to be only used, and when being encoded to four fritters, four syntactic element (numbers here need to be used Word is only illustrated, and actual quantity is not represented), then, bit number used in obtained final coding compressed file is bright It is aobvious to reduce, the small volume of compressed file is encoded, to obviously improve compression ratio.
In order to make the object, technical scheme and advantages of the embodiment of the invention clearer, below in conjunction with the embodiment of the present invention In attached drawing, technical scheme in the embodiment of the invention is clearly and completely described, it is clear that described embodiment is A part of the embodiment of the present invention, instead of all the embodiments.Based on the embodiments of the present invention, those of ordinary skill in the art Every other embodiment obtained without making creative work, shall fall within the protection scope of the present invention.
In addition, the terms "and/or", only a kind of incidence relation for describing affiliated partner, indicates may exist Three kinds of relationships, for example, A and/or B, can indicate: individualism A exists simultaneously A and B, these three situations of individualism B.Separately Outside, character "/" herein typicallys represent the relationship that forward-backward correlation object is a kind of "or" unless otherwise specified.
The preferred embodiment of the present invention is described in detail with reference to the accompanying drawing.
Referring to Figure 1, the embodiment of the present invention provides a kind of method for video coding, and the main flow description of the method is such as Under.Each maximum coding unit at least one corresponding maximum coding unit of current video frame is handled as follows, In, the size of the maximum coding unit is first size, and the first size is greater than 64*64:
Step 101: the corresponding each maximum coding unit of current video frame being handled as follows, wherein the maximum The size of coding unit is first size, and the first size is greater than 64*64: according to quad-tree structure, by the maximum coding Unit is respectively divided into coding unit;To each coding unit obtained according to different demarcation mode, by single by the coding Member divide predicting unit predicted according at least one coding mode, at least obtain the coding unit respectively it is described extremely Corresponding prediction residual under a kind of few coding mode;To each coding unit obtained according to every kind of division mode, pass through transformation Unit is calculated according to the corresponding prediction residual of the coding unit of acquisition, obtains the corresponding transformation coefficient of the coding unit Matrix;Wherein, the converter unit is divided to obtain by the coding unit, and the converter unit is to minimize encoding rate distortion Cost is that criterion carrys out calculation of transform coefficients matrix;
Step 102: minimum coding rate distortion costs are subject to then, according to the maximum coding unit of acquisition in difference Corresponding prediction residual and transform coefficient matrix under division mode determine the optimum division mode of the maximum coding unit, will Coding division mode of the optimum division mode as the maximum coding unit.
In the embodiment of the present invention, the quantity for the high-frequency information for including in the video frame is greater than default high-frequency information threshold value, And/or the resolution ratio of the video frame is greater than default resolution ratio.That is, including big in the embodiment of the present invention, in the video frame The high-frequency information of amount, and/or, the resolution ratio of the video frame is higher.The default resolution ratio is, for example, 1080P, or can also To be other resolution ratio.
For including the video of a large amount of high-frequency informations, JCT-VC (Joint Collaborative Team on Video Coding, Video coding integration and cooperation group) tissue propose formulate HEVC SCC (High Efficiency Video for Screen Content Coding, high efficiency Video coding screen content coding) standard plan, to be improved to HEVC To improve the compression ratio of such video.But in HEVC SCC, the division mode of block has still adopted the division mode in HEVC, Obviously it is unfavorable for the processing to this kind of video.
Therefore, for it is this kind of include a large amount of high-frequency informations video and/or the higher video of resolution ratio, the present invention is real It applies in example and proposes, by the size of the maximum coding unit (LCU), and original 64*64, it is increased to the first size, institute It states first size and can be 128*128 greater than 64*64, such as the first size, be also possible to 256*256, or bigger.This The video can be divided into biggish piece and come by sample when to encoding with a large amount of duplicate messages, the simple video of texture It is encoded, can relatively efficiently remove correlation in this way, repeating part is put into a block disposably encoded as far as possible At being separately encoded without being divided into multiple pieces, improve coding quality.Also, because increasing the size of maximum coding unit, Then when dividing video frame, for same width video frame, the quantity for the LCU block that may be marked off will be reduced, that In coding, the quantity of used syntactic element is also just corresponding is reduced, for example, only needing when encoding to a bulk Using a syntactic element, and when encoding to four fritters, need to using four syntactic elements, (number here is only lifted Example, does not represent actual quantity), then, bit number used in obtained final coding compressed file significantly reduces, and compiles The small volume of code compressed file, to obviously improve compression ratio.
Certainly, the technical solution in the embodiment of the present invention can be applied not only in HEVC SCC standard, may be also used in In the now existing or following video encoding and decoding standard that will occur, as long as the targeted video frame of video encoding and decoding standard is The video frame or the targeted video frame of video encoding standard for possessing a large amount of high-frequency informations are that resolution ratio is greater than the default resolution The targeted video frame of the video frame or video encoding standard of rate be possess a large amount of high-frequency informations and resolution ratio be greater than it is described pre- If the video frame of resolution ratio, the technical solution of the embodiment of the present invention can be applied in the video encoding and decoding standard.
In the embodiment of the present invention, when carrying out Video coding, a video frame is divided into one or more maximums first Coding unit is handled for each maximum coding unit therein later.Wherein, each maximum coding unit can correspond to In a coding tree unit (CTU), that is, LCU is divided into coding unit (CU), is to carry out recurrence according to quad-tree partition mode It divides.
For example, Fig. 2 indicates a LCU first time quad-tree partition.It is divided to carry out second, then referring to Fig. 3, such as What is divided is the unit that the number in Fig. 2 is 1 and 2.To carry out third time division, then referring to fig. 4, such as that division is Fig. 3 In number be 5 and 7 unit.
Assuming that not continuing to divide downwards after third time divides, then 0~15 in Fig. 4 indicates each unit, all A referred to as coding unit.
Each coding unit needs to be divided into predicting unit (PU), the division side in division mode and HEVC or HEVC SCC Formula is identical, for no other reason than that the size of maximum coding unit is increased in the embodiment of the present invention, therefore, correspondingly, predicting unit Full-size also increased, such as predicting unit full-size be third size, the third size be greater than 64*64, Wherein, the full-size of PU is 64*64 in the prior art.For example, if the size of maximum coding unit is 128*128, it is described Maximum third is having a size of 128*128.Coding unit is divided into predicting unit, there are eight kinds of division modes, as shown in Figure 5.Root According to different prediction modes, different division modes can be used, wherein the size of predicting unit is less than or equal to corresponding coding The size of unit.The depth of M presentation code unit in Fig. 5, if such as the size of the coding unit is 128*128, M is 128, if the size of the coding unit is 64*64, M 64.L indicates that left, R indicate that right, U indicate that upper, D are indicated down。
Each coding unit also needs to be divided into converter unit (TU).The size of TU, there is 4*4,8*8,16*16 in the prior art With 32*32 these four, and in the embodiment of the present invention, the size of maximum coding unit is increased, therefore, correspondingly, transformation is single The full-size of member also increased, such as the full-size of converter unit is the second size, and second size is greater than 32* 32.For example, described second having a size of 64*64 if the size of maximum coding unit is 128*128.Coding unit is divided into Converter unit, and use quad-tree partition mode, wherein the size of converter unit is less than or equal to the ruler of corresponding coding unit It is very little.
In the embodiment of the present invention, the mistake of the process of Video coding and Video coding in HEVC or HEVC SCC in the prior art Journey be it is similar, only the size of maximum coding unit is increased, divide when had more several division modes.
In the embodiment of the present invention, a maximum coding unit can have different division modes, need to select most Good division mode then just needing respectively to divide a maximum coding unit according to different division modes, and is counted The corresponding prediction residual of the maximum coding unit and transform coefficient matrix under every kind of division mode are calculated, so as to minimize Encode subject to rate distortion costs then, according to the prediction residual and transform coefficient matrix under each division mode of acquisition, determine described in The optimum division mode of maximum coding unit, and divided the optimum division mode as the coding of the maximum coding unit Mode.It should be noted that the quantity of the corresponding prediction residual of the maximum coding unit may be one under a kind of division mode May be it is multiple, the quantity of corresponding transform coefficient matrix is also likely to be one or more.
For example, the first division mode is exactly not divide to it after obtaining a maximum coding unit, it will be described Maximum coding unit is entirely used as a coding unit.Then the coding unit is divided into according to different coding modes respectively Predicting unit, wherein coding mode may include MODE_INTRA mode and MODE_INTER mode, in addition, HEVC SCC is marked A kind of new coding mode, i.e. MODE_INTRABC are also added in standard.One coding unit, can according to different coding modes To be divided into different predicting units.By the predicting unit being respectively divided out according to these three coding modes, respectively according to Coding mode predicts the coding unit accordingly, then, for every kind of coding mode, it can at least obtain the coding At least one corresponding prediction residual of unit.For a kind of coding mode, if the quantity of the prediction residual obtained is greater than 1, then it can be screened under same coding mode first, i.e., therefrom select a best prediction residual, then, three kinds Coding mode can get a preferable prediction residual under every kind of coding mode.Alternatively, for a kind of coding mode, The quantity of the prediction residual no matter obtained is equal to 1 and is also greater than 1, all directly carries out in next step.
In addition, also the maximum as coding unit is encoded under this division mode to maximum coding unit Dividing elements are converter unit.The size of maximum coding unit is the first size in the embodiment of the present invention, such as described the One having a size of 128*128, then, the converter unit which may divide may have 4*4,8*8,16*16,32*32 With this five kinds of 64*64.
Prediction residual under every kind of coding mode is passed through corresponding converter unit to calculate respectively, is obtained corresponding Transform coefficient matrix.For example, for a coding unit, if prediction residual totally three obtained, converter unit is possible There are five types of sizes, then the transform coefficient matrix obtained can have 15 kinds.
Similarly, it is also necessary to be under this division mode using second of division mode to the maximum coding unit The maximum coding unit is divided into four coding units, such as the size of the maximum coding unit is 128*128, then will Four coding units that the maximum coding unit divides, the size of each coding unit are 64*64.So, for every A coding unit carries out as above similar processing.Here each coding unit is in processing, because it is having a size of 64*64, because This not only can also be continued division processing as a disposed of in its entirety as the maximum coding module, Coding module until a block to be divided into 8*8, then can not continue to divide down again.
In this way, be in order to obtain the maximum coding unit under different division modes corresponding prediction residual and Transform coefficient matrix., can be with serial process when handling the coding unit under different demarcation mode, or it can also be simultaneously Row processing.
Obtaining maximum coding unit corresponding prediction residual and transformation coefficient square under different demarcation mode After battle array, minimum coding rate distortion costs can be subject to then, using prediction residual and transform coefficient matrix as combination, calculated Wherein optimal combination out, division mode corresponding to the optimal combination are exactly the optimum division side of the maximum coding unit Formula, can be using the division mode as the coding division mode of the maximum coding unit, maximum coding unit mentioned here Division mode, the division mode including maximum coding unit to be divided into coding unit, each coding unit is respectively divided into The division mode of predicting unit and each coding unit are respectively divided into the division mode of converter unit.Such as Fig. 4 is exactly a kind of The schematic diagram of the coding unit divided under coding division mode by maximum coding unit.
Fig. 6 is referred to, based on the same inventive concept, the embodiment of the present invention provides a kind of video encoding/decoding method, the method It can be used for being decoded the code stream obtained by Fig. 1 process.The main flow of the method is described as follows.
Step 601: receiving code stream to be decoded, the code stream is encoded to obtain by maximum coding unit;Wherein, described The size of maximum coding unit is first size, and the first size is greater than 64*64;
Step 602: the code stream being decoded according to the code stream corresponding decoding parametric, obtains the maximum coding Unit.
The video in video decoding process and HEVC or HEVC SCC in the prior art in the embodiment of the present invention decodes Mode is similar, and only the full-size of the size of maximum coding unit, the full-size of predicting unit and converter unit has been all Increase.
Optionally, in the embodiment of the present invention, the code stream is decoded according to the decoding parametric for including in the code stream, Obtain the maximum coding unit, comprising:
It is obtained according to the corresponding deep cut flag parameter of the code stream and the maximum coding unit is divided into coding list The division mode of member, according to the predicting unit partition mode parameter for each coding unit that the maximum coding unit divides The predicting unit divided by each coding unit is obtained, and, it is obtained according to the division identification parameter of converter unit by every The converter unit that a coding unit divides;
According to the division mode, the predicting unit and the transformation that the maximum coding unit is divided into coding unit Unit is decoded the code stream, obtains the maximum coding unit.
Specifically, in decoding the code stream for corresponding to maximum coding module can be obtained, to each code stream, by from wherein The syntactic element splitFlag (deep cut mark) of reading, is known that how the maximum coding unit is specifically divided into coding Unit is known that therein every by the syntactic element part_mode (partition mode of the predicting unit of coding unit) of reading A coding unit is how to be divided into predicting unit, and by from the syntactic element split_transform_ wherein read Flag (division of converter unit identifies), is known that each coding unit therein is how to be divided into converter unit.Later It is just decoded the inverse process of process, converter unit is first passed through and carries out inverse transformation, obtain prediction residual, then by prediction residual with phase The prediction module answered carries out certain operations, obtains coding module.For a code stream, obtain all coding modules it Afterwards, the corresponding maximum coding module of the code stream has just been obtained.
Optionally, in the embodiment of the present invention, the full-size of the converter unit is the second size, and second size is big In 32*32.
Optionally, in the embodiment of the present invention, the full-size of the predicting unit is third size, and the third size is big In 64*64.
Wherein, the specific video coding process and video decoding process in the embodiment of the present invention can refer to existing The video coding process and video decoding process in HEVC SCC in technology, the present invention in only be briefly described.
Fig. 7 is referred to, based on the same inventive concept, the embodiment of the present invention provides a kind of video coding apparatus, described device It may include processing module 701 and determining module 702.
Processing module 701 is for the corresponding each maximum coding unit of current video frame to be handled as follows, wherein institute The size for stating maximum coding unit is first size, and the first size is greater than 64*64: according to quad-tree structure, by described in most Big coding unit is respectively divided into coding unit;To each coding unit obtained according to different demarcation mode, by by described The predicting unit that coding unit divides is predicted according at least one coding mode, is at least obtained the coding unit and is existed respectively Corresponding prediction residual under at least one coding mode;To each coding unit obtained according to every kind of division mode, lead to It crosses converter unit to be calculated according to the corresponding prediction residual of the coding unit of acquisition, obtains the corresponding change of the coding unit Change coefficient matrix;Wherein, the converter unit is divided to obtain by the coding unit, and the converter unit is to minimize coding Rate distortion costs are that criterion carrys out calculation of transform coefficients matrix;
Determining module 702 is single according to the maximum coding of acquisition for being subject to minimum coding rate distortion costs then Member corresponding prediction residual and transform coefficient matrix under different demarcation mode, determine the optimum division of the maximum coding unit Mode, using the optimum division mode as the coding division mode of the maximum coding unit.
Optionally, in the embodiment of the present invention, the full-size of the converter unit is the second size, and second size is big In 32*32.
Optionally, in the embodiment of the present invention, the full-size of the predicting unit is third size, and the third size is big In 64*64.
Optionally, in the embodiment of the present invention, the quantity for the high-frequency information for including in the video frame is greater than default high frequency letter Threshold value is ceased, and/or, the resolution ratio of the video frame is greater than default resolution ratio.
Fig. 8 is referred to, based on the same inventive concept, the embodiment of the present invention provides a kind of video decoder, described device Including receiving module 801 and decoder module 802.
Receiving module 801 is used for for receiving code stream to be decoded, and the code stream is encoded to obtain by maximum coding unit;Its In, the size of the maximum coding unit is first size, and the first size is greater than 64*64;
Decoder module 802 is for being decoded the code stream according to the corresponding decoding parametric of the code stream, described in acquisition Maximum coding unit.
Optionally, in the embodiment of the present invention, decoder module 802 is specifically used for:
It is obtained according to the corresponding deep cut flag parameter of the code stream and the maximum coding unit is divided into coding list The division mode of member, according to the predicting unit partition mode parameter for each coding unit that the maximum coding unit divides The predicting unit divided by each coding unit is obtained, and, it is obtained according to the division identification parameter of converter unit by every The converter unit that a coding unit divides;
According to the division mode, the predicting unit and the transformation that the maximum coding unit is divided into coding unit Unit is decoded the code stream, obtains the maximum coding unit.
Optionally, in the embodiment of the present invention, the full-size of the converter unit is the second size, and second size is big In 32*32.
Optionally, in the embodiment of the present invention, the full-size of the predicting unit is third size, and the third size is big In 64*64.
The embodiment of the present invention provides a kind of method for video coding, comprising: by the corresponding each maximum coding of current video frame Unit is handled as follows, wherein the size of the maximum coding unit is first size, and the first size is greater than 64*64: According to quad-tree structure, the maximum coding unit is respectively divided into coding unit;To what is obtained according to different demarcation mode Each coding unit predicted by the predicting unit divided by the coding unit according at least one coding mode, until The coding unit corresponding prediction residual under at least one coding mode respectively is obtained less;To according to every kind of division side Each coding unit that formula obtains is calculated by converter unit according to the corresponding prediction residual of the coding unit of acquisition, Obtain the corresponding transform coefficient matrix of the coding unit;Wherein, the converter unit is divided to obtain by the coding unit, institute State converter unit be subject to minimum coding rate distortion costs then carry out calculation of transform coefficients matrix;To minimize encoding rate distortion Cost is criterion, according to the maximum coding unit of acquisition under different demarcation mode corresponding prediction residual and transformation coefficient Matrix determines the optimum division mode of the maximum coding unit, and the optimum division mode is single as the maximum coding The coding division mode of member.
The embodiment of the present invention provides a kind of method for video coding, by the size of maximum coding unit by the prior art 64*64 is expanded, and the size of maximum coding unit is enabled to be greater than 64*64, in this way, when being divided the video frame, institute Maximum piece of the size that can be divided is greater than 64*64 in the prior art, carries out to the video with a large amount of duplicate messages When coding, which can be divided into biggish piece to encode, can relatively efficiently remove correlation in this way, as far as possible Repeating part is put into a block disposably coding to complete, is separately encoded without being divided into multiple pieces, improves coding quality. Also, because increasing the size of maximum coding unit, then when dividing video frame, the quantity for the block that may be marked off will subtract It is few, it is reduced then the quantity of used syntactic element is also just corresponding in coding, for example, being encoded to a bulk When, a syntactic element need to be only used, and when being encoded to four fritters, four syntactic element (numbers here need to be used Word is only illustrated, and actual quantity is not represented), then, bit number used in obtained final coding compressed file is bright It is aobvious to reduce, the small volume of compressed file is encoded, to obviously improve compression ratio.
It is apparent to those skilled in the art that for convenience and simplicity of description, only with above-mentioned each function The division progress of module can according to need and for example, in practical application by above-mentioned function distribution by different function moulds Block is completed, i.e., the internal structure of device is divided into different functional modules, to complete all or part of function described above Energy.The specific work process of the system, apparatus, and unit of foregoing description, can be with reference to corresponding in preceding method embodiment Journey, details are not described herein.
In several embodiments provided herein, it should be understood that disclosed system, device and method can be with It realizes by another way.For example, the apparatus embodiments described above are merely exemplary, for example, the module or The division of unit, only a kind of logical function partition, there may be another division manner in actual implementation, such as multiple units Or component can be combined or can be integrated into another system, or some features can be ignored or not executed.Another point, institute Display or the mutual coupling, direct-coupling or communication connection discussed can be through some interfaces, device or unit Indirect coupling or communication connection can be electrical property, mechanical or other forms.
The unit as illustrated by the separation member may or may not be physically separated, aobvious as unit The component shown may or may not be physical unit, it can and it is in one place, or may be distributed over multiple In network unit.It can select some or all of unit therein according to the actual needs to realize the mesh of this embodiment scheme 's.
It, can also be in addition, each functional unit in each embodiment of the application can integrate in one processing unit It is that each unit physically exists alone, can also be integrated in one unit with two or more units.Above-mentioned integrated list Member both can take the form of hardware realization, can also realize in the form of software functional units.
If the integrated unit is realized in the form of SFU software functional unit and sells or use as independent product When, it can store in a computer readable storage medium.Based on this understanding, the technical solution of the application is substantially The all or part of the part that contributes to existing technology or the technical solution can be in the form of software products in other words It embodies, which is stored in a storage medium, including some instructions are used so that a computer It is each that equipment (can be personal computer, server or the network equipment etc.) or processor (processor) execute the application The all or part of the steps of embodiment the method.And storage medium above-mentioned includes: USB flash disk, mobile hard disk, read-only memory (Read-Only Memory, ROM), random access memory (Random Access Memory, RAM), magnetic or disk Etc. the various media that can store program code.
Specifically, the corresponding computer program instructions of one of the embodiment of the present application method for video coding can be deposited It stores up on CD, hard disk, the storage mediums such as USB flash disk, when the computer journey corresponding with a kind of method for video coding in storage medium Sequence instruction is read or is performed by an electronic equipment, includes the following steps:
The corresponding each maximum coding unit of current video frame is handled as follows, wherein the maximum coding unit Size be first size, the first size be greater than 64*64: according to quad-tree structure, the maximum coding unit is distinguished It is divided into coding unit;To each coding unit obtained according to different demarcation mode, pass through what is divided by the coding unit Predicting unit is predicted according at least one coding mode, at least obtains the coding unit respectively at least one volume Corresponding prediction residual under pattern;To each coding unit obtained according to every kind of division mode, by converter unit according to The corresponding prediction residual of the coding unit obtained is calculated, and the corresponding transform coefficient matrix of the coding unit is obtained;Its In, the converter unit is divided to obtain by the coding unit, and the converter unit is to minimize coding rate distortion costs and be Criterion carrys out calculation of transform coefficients matrix;
Minimum coding rate distortion costs be subject to then, according to the maximum coding unit of acquisition in different demarcation mode Under corresponding prediction residual and transform coefficient matrix, determine the optimum division mode of the maximum coding unit, will be described best Coding division mode of the division mode as the maximum coding unit.
Optionally, the full-size of the converter unit is the second size, and second size is greater than 32*32.
Optionally, the full-size of the predicting unit is third size, and the third size is greater than 64*64.
Optionally, the quantity for the high-frequency information for including in the video frame is greater than default high-frequency information threshold value, and/or, institute The resolution ratio for stating video frame is greater than default resolution ratio.
The corresponding computer program instructions of one of the embodiment of the present application video encoding/decoding method can be stored in CD, Hard disk, on the storage mediums such as USB flash disk, when the computer program instructions corresponding with a kind of video encoding/decoding method in storage medium are by one Electronic equipment reads or is performed, and includes the following steps:
Code stream to be decoded is received, the code stream is encoded to obtain by maximum coding unit;Wherein, the maximum coding unit Size be first size, the first size be greater than 64*64;
The code stream is decoded according to the code stream corresponding decoding parametric, obtains the maximum coding unit.
Optionally, stored in the storage medium with step: according to the corresponding depth information of the code stream to the code Stream is decoded, and obtains the maximum coding unit, and corresponding computer instruction is specific to wrap during being specifically performed It includes:
It is obtained according to the corresponding deep cut flag parameter of the code stream and the maximum coding unit is divided into coding list The division mode of member, according to the predicting unit partition mode parameter for each coding unit that the maximum coding unit divides The predicting unit divided by each coding unit is obtained, and, it is obtained according to the division identification parameter of converter unit by every The converter unit that a coding unit divides;
According to the division mode, the predicting unit and the transformation that the maximum coding unit is divided into coding unit Unit is decoded the code stream, obtains the maximum coding unit.
Optionally, the full-size of the converter unit is the second size, and second size is greater than 32*32.
Optionally, the full-size of the predicting unit is third size, and the third size is greater than 64*64.
The above, above embodiments are only described in detail to the technical solution to the application, but the above implementation The explanation of example is merely used to help understand method and its core concept of the invention, should not be construed as limiting the invention.This In the technical scope disclosed by the present invention, any changes or substitutions that can be easily thought of by those skilled in the art, should all cover Within protection scope of the present invention.

Claims (8)

1. a kind of method for video coding, comprising:
The corresponding each maximum coding unit of current video frame is handled as follows, wherein the ruler of the maximum coding unit Very little is first size, and the first size is greater than 64*64: according to quad-tree structure, the maximum coding unit being respectively divided For coding unit;To each coding unit obtained according to different demarcation mode, pass through the prediction divided by the coding unit Unit is predicted according at least one coding mode, at least obtains the coding unit respectively at least one coding mould Corresponding prediction residual under formula;To each coding unit obtained according to every kind of division mode, by converter unit according to acquisition The corresponding prediction residual of the coding unit calculated, obtain the corresponding transform coefficient matrix of the coding unit;Wherein, institute It states converter unit to divide to obtain by the coding unit, the converter unit is to be subject to minimum coding rate distortion costs then Calculation of transform coefficients matrix;
Minimum coding rate distortion costs be subject to then, it is right under different demarcation mode according to the maximum coding unit of acquisition The prediction residual and transform coefficient matrix answered determine the optimum division mode of the maximum coding unit, by the optimum division Coding division mode of the mode as the maximum coding unit;Wherein, under a kind of division mode, the maximum coding unit pair The quantity for the prediction residual answered is one or more, and the quantity of corresponding transform coefficient matrix is also one or more.
2. the method as described in claim 1, which is characterized in that the full-size of the converter unit is the second size, described Second size is greater than 32*32.
3. method according to claim 2, which is characterized in that the full-size of the predicting unit is third size, described Third size is greater than 64*64.
4. method a method according to any one of claims 1-3, which is characterized in that the quantity for the high-frequency information for including in the video frame Greater than default high-frequency information threshold value, and/or, the resolution ratio of the video frame is greater than default resolution ratio.
5. a kind of video coding apparatus, comprising:
Processing module, for the corresponding each maximum coding unit of current video frame to be handled as follows, wherein the maximum The size of coding unit is first size, and the first size is greater than 64*64: according to quad-tree structure, by the maximum coding Unit is respectively divided into coding unit;To each coding unit obtained according to different demarcation mode, by single by the coding Member divide predicting unit predicted according at least one coding mode, at least obtain the coding unit respectively it is described extremely Corresponding prediction residual under a kind of few coding mode;To each coding unit obtained according to every kind of division mode, pass through transformation Unit is calculated according to the corresponding prediction residual of the coding unit of acquisition, obtains the corresponding transformation coefficient of the coding unit Matrix;Wherein, the converter unit is divided to obtain by the coding unit, and the converter unit is to minimize encoding rate distortion Cost is that criterion carrys out calculation of transform coefficients matrix;
Determining module, for being subject to minimum coding rate distortion costs then, according to the maximum coding unit of acquisition not With prediction residual corresponding under division mode and transform coefficient matrix, the optimum division mode of the maximum coding unit is determined, Using the optimum division mode as the coding division mode of the maximum coding unit;Wherein, described under a kind of division mode The quantity of the corresponding prediction residual of maximum coding unit is one or more, and the quantity of corresponding transform coefficient matrix is also one Or it is multiple.
6. device as claimed in claim 5, which is characterized in that the full-size of the converter unit is the second size, described Second size is greater than 32*32.
7. device as claimed in claim 6, which is characterized in that the full-size of the predicting unit is third size, described Third size is greater than 64*64.
8. the device as described in claim 5-7 is any, which is characterized in that the quantity for the high-frequency information for including in the video frame Greater than default high-frequency information threshold value, and/or, the resolution ratio of the video frame is greater than default resolution ratio.
CN201410521077.3A 2014-09-30 2014-09-30 A kind of Video coding, coding/decoding method and device Active CN105530518B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201410521077.3A CN105530518B (en) 2014-09-30 2014-09-30 A kind of Video coding, coding/decoding method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201410521077.3A CN105530518B (en) 2014-09-30 2014-09-30 A kind of Video coding, coding/decoding method and device

Publications (2)

Publication Number Publication Date
CN105530518A CN105530518A (en) 2016-04-27
CN105530518B true CN105530518B (en) 2019-04-26

Family

ID=55772457

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201410521077.3A Active CN105530518B (en) 2014-09-30 2014-09-30 A kind of Video coding, coding/decoding method and device

Country Status (1)

Country Link
CN (1) CN105530518B (en)

Families Citing this family (15)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115174936B (en) * 2016-05-10 2025-03-28 三星电子株式会社 Method and device for encoding/decoding an image
CN109151477B (en) * 2017-06-28 2020-08-07 华为技术有限公司 Image data encoding and decoding methods and devices
CN107623850B (en) * 2017-09-26 2019-11-22 杭州电子科技大学 A Fast Screen Content Coding Method Based on Spatiotemporal Correlation
WO2019076138A1 (en) * 2017-10-16 2019-04-25 Huawei Technologies Co., Ltd. METHOD AND APPARATUS FOR ENCODING
EP3750310A1 (en) 2018-02-23 2020-12-16 Huawei Technologies Co. Ltd. Position dependent spatial varying transform for video coding
CN110324668B (en) 2018-03-31 2021-01-05 华为技术有限公司 Transformation method in image block coding, inverse transformation method and device in decoding
KR20250022246A (en) 2018-05-31 2025-02-14 후아웨이 테크놀러지 컴퍼니 리미티드 Spatially varying transform with adaptive transform type
CN109561301B (en) * 2018-10-26 2020-08-11 苏州龙盈软件开发有限公司 Prediction method in video compression
CN109587493B (en) * 2018-10-26 2020-08-28 北京宏达一甲教育科技有限公司 A prediction method in video compression
CN111182298B (en) * 2020-03-18 2022-04-12 广州市百果园信息技术有限公司 Method, device, equipment and storage medium for determining coding mode
CN111556319B (en) * 2020-05-14 2021-12-17 电子科技大学 Video coding method based on matrix decomposition
CN112165617B (en) * 2020-10-17 2022-09-06 浙江大华技术股份有限公司 Video coding method and device, electronic equipment and storage medium
CN112153385B (en) * 2020-11-25 2021-03-02 腾讯科技(深圳)有限公司 Encoding processing method, device, equipment and storage medium
CN116112689A (en) * 2021-11-11 2023-05-12 杭州海康威视数字技术股份有限公司 Video encoding and decoding method and device
CN117440157B (en) * 2023-09-26 2024-05-28 书行科技(北京)有限公司 Video coding method, device, equipment and storage medium

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101938657A (en) * 2010-10-07 2011-01-05 西安电子科技大学 Coding Unit Adaptive Partitioning Method in High Efficiency Video Coding
CN103491369A (en) * 2013-09-18 2014-01-01 华为技术有限公司 Inter-frame prediction encoding method and encoder
CN103491371A (en) * 2013-09-04 2014-01-01 华为技术有限公司 Encoding method, device and equipment based on hierarchy
CN103828376A (en) * 2011-06-29 2014-05-28 摩托罗拉移动有限责任公司 Methods and system for using a scan coding pattern during intra coding

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US9094658B2 (en) * 2010-05-10 2015-07-28 Mediatek Inc. Method and apparatus of adaptive loop filtering
CN103533355B (en) * 2013-10-10 2016-08-17 宁波大学 A kind of HEVC fast encoding method
CN103888762B (en) * 2014-02-24 2017-01-11 西南交通大学 Video coding framework based on HEVC standard
CN103873861B (en) * 2014-02-24 2017-01-25 西南交通大学 Coding mode selection method for HEVC (high efficiency video coding)
CN103957414A (en) * 2014-04-16 2014-07-30 安科智慧城市技术(中国)有限公司 HEVC intra-frame prediction coding method and system

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101938657A (en) * 2010-10-07 2011-01-05 西安电子科技大学 Coding Unit Adaptive Partitioning Method in High Efficiency Video Coding
CN103828376A (en) * 2011-06-29 2014-05-28 摩托罗拉移动有限责任公司 Methods and system for using a scan coding pattern during intra coding
CN103491371A (en) * 2013-09-04 2014-01-01 华为技术有限公司 Encoding method, device and equipment based on hierarchy
CN103491369A (en) * 2013-09-18 2014-01-01 华为技术有限公司 Inter-frame prediction encoding method and encoder

Also Published As

Publication number Publication date
CN105530518A (en) 2016-04-27

Similar Documents

Publication Publication Date Title
CN105530518B (en) A kind of Video coding, coding/decoding method and device
US11825119B2 (en) Method and apparatus for configuring transform for video compression
US12273518B2 (en) Video coding method and apparatus
US20200260117A1 (en) Methods and Apparatuses for Coding and Decoding Depth Map
KR101946598B1 (en) Image coding and decoding method and device
JP2016518051A5 (en)
CN103780910A (en) Method and device for determining block segmentation mode and optical prediction mode in video coding
CN104270641A (en) Method for processing transformation coefficients and device
CN105635732B (en) The method and device that adaptive sampling point compensation is encoded, is decoded to video code flow
CN104602018B (en) The acquisition methods and device of the movable information of video data, coding method and device
CN103210399A (en) Context reduction of significance map coding of 4 x 4 and 8 x 8 transform coefficient in hm4.0
CN105578182B (en) A kind of Video coding, coding/decoding method and device
CN105681814B (en) A kind of determination method and device of block-eliminating effect filtering mode
CN103313046B (en) A kind of representation method and entropy coding input unit of residual error
RU2795258C1 (en) Method and device for configuration of conversion for video compression
CN114697666B (en) Screen encoding method, screen decoding method and related devices
CN116233389B (en) Point cloud encoding processing method, point cloud decoding processing method and related equipment
CN118803240A (en) Decoding method, device and electronic equipment
CN108668134A (en) A kind of decoding method, device and electronic equipment

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