CN103379331A - Video code stream coding and decoding method and video code stream coding and decoding device - Google Patents

Video code stream coding and decoding method and video code stream coding and decoding device Download PDF

Info

Publication number
CN103379331A
CN103379331A CN201210133025XA CN201210133025A CN103379331A CN 103379331 A CN103379331 A CN 103379331A CN 201210133025X A CN201210133025X A CN 201210133025XA CN 201210133025 A CN201210133025 A CN 201210133025A CN 103379331 A CN103379331 A CN 103379331A
Authority
CN
China
Prior art keywords
unit
entropy
coding
coding unit
decoding
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
CN201210133025XA
Other languages
Chinese (zh)
Other versions
CN103379331B (en
Inventor
梁立伟
刘强
李明
林聚财
杨巨前
王宁
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
ZTE Corp
Original Assignee
ZTE Corp
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by ZTE Corp filed Critical ZTE Corp
Priority to CN201210133025.XA priority Critical patent/CN103379331B/en
Publication of CN103379331A publication Critical patent/CN103379331A/en
Application granted granted Critical
Publication of CN103379331B publication Critical patent/CN103379331B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Compression Or Coding Systems Of Tv Signals (AREA)

Abstract

The invention discloses a video code stream coding and decoding method and a video code stream coding and decoding device. The video code stream coding and decoding method and the video code stream coding and decoding device can improve performances of a coder and reduce expenditure of hardware of the coder. The coding method includes the following steps. An entropy coding function module carries out entropy coding on information generated when other functional modules process coding units and needing to undergo entropy coding based on the sequence according to which the functional modules process the coding units. In the process of entropy coding, after entropy coding of information of each coding unit is finished, judgment is carried out and if limitation on a preset unit is reached, the entropy coding functional module is reset after entropy coding is performed on filtering information corresponding to the maximum coding unit where the current coding unit exists. The coder comprises the entropy coding functional module. The entropy coding functional module comprises a first entropy coding unit, a judgment unit, a second entropy coding unit and a reset unit. The video streaming coding method and the video streaming coding device can facilitate improvement of performances of the coder and reduce expenditure of hardware.

Description

A kind of video code flow decoding method and device
Technical field
The present invention relates to the coding and decoding video field, be specifically related to a kind of decoding method and device of video code flow.
Background technology
Syntactic structure is to be organized according to the described order of video encoding and decoding standard by several syntactic elements, generate the video code flow (syntax structure:Zero or more syntax elements present together in the bitstream in a specified order) of appointment, wherein syntactic element represents the various coded messages (syntax element:An element of data represented in the bitstream) in the code stream.Sheet (Slice) is a kind of division of coded image, it has comprised several coding units by coding unit (this coding unit can be CU (Coding Unit) or the LCU (Large Coding Unit) that H.264 waits in MB (MacroBlock) in the standard or HEVC (High efficiency video coding, the high efficiency video coding) standard) scanning sequency.The syntactic structure of sheet is syntactic structure the most basic in the video encoding and decoding standard, is divided into the two large divisions, is respectively head (Slice Header) and sheet data (Slice Data).The syntactic structure of head has been stipulated the public information of required use in interior all the coding unit encoding-decoding process of sheet, such as position and the analytic method of the syntactic elements such as flag bit (flags), sheet type, sheet address.The syntactic structure of sheet data has been stipulated tissue and the analytic method of all coding unit coded messages in the sheet.
The tissue of the coded message that each functional module produces in the syntactic structure regulation video encoding and decoding standard of coding unit and the method for coding.Simultaneously, the syntactic structure of coding unit also has influence on the design of video algorithm application-specific integrated circuit (ASIC) (ASIC, Application Specific Integrated Circuit), thereby the performance of video algorithm ASIC is had a huge impact.
Application-specific integrated circuit (ASIC) (ASIC) is realized video encoder, all is the pile line operation that functional modules different in the encoder walks abreast to a plurality of coding units generally, carries out real time codec by coding unit.Which rank of streamline is functional module be divided in, generally with functional module between dependence and complexity relevant, the time of pipeline processes coding unit data at different levels is suitable generally speaking.Structure chart of encoder H.264 as shown in Figure 1, this encoder are comprised of 4 functional modules and are divided into 3 grades of (stage) pipeline organizations.Comprise among the figure that prediction (Prediction) module, residual error reconstruction module (comprising residual computations Diff, conversion, quantification and reconstruction (Recon)), filtration module are (such as block-eliminating effect filtering (DF, Deblock Filter)), entropy coding module (CABAC), residual error reconstruction module are with residual information (mb infos) input entropy coding module, with reconstruction information (rcn) input block-eliminating effect filtering module.
Tradition entropy encoding function module is in the afterbody streamline of encoder, the information (for example mb infos among Fig. 1) of the coding unit to be encoded that reception front functional module passes over, and encode.In the standard that has the inside because certain functional module and entropy encoding function module do not have data dependence relation (for example H.264 in DF module), so can with the entropy coding module streamline afterbody that exists together, the carrying out that both can walk abreast.But in the video standard that has, the input of entropy encoding function module not only has from its previous stage functional module transmits information to be encoded, also have from the pipeline function module at the same level with it simultaneously to pass over information to be encoded, at this moment the processing sequence of entropy coding module has determined that can this functional module be in the same one-level of streamline with entropy encoding function module.
When having multiple-stage filtering to process, for example filtration module comprises: DF submodule, SAO (Sample Adaptive Offset, the sample point adaptive-filtering) submodule and ALF (Adaptive loop filter, adaptive loop filter) submodule, as shown in Figure 2, in need to the encode information of several functional modules of the entropy encoding function module CABAC of HEVC standard, comprise the filtered sao info of coding_tree infos, SAO behind the change quantization, may also comprise the filtered alf info of ALF etc.The filtered information if entropy encoding function module need at first be encoded, entropy encoding function module and filtration module just can only be serials so, after entropy encoding function module need to wait for that filtration module is finished dealing with, entropy encoding function module could be worked.This moment can only with entropy encoding function module independent be placed on afterbody, will increase corresponding buffering before the entropy encoding function module, the coding unit information that need to encode with the buffering previous stage, as shown in Figure 3.Therefore in this case, how to design a kind of rational syntactic structure, improving the performance of encoder, and the expense that reduces internal memory on its sheet is exactly the problem that will solve.
Summary of the invention
Technical problem to be solved by this invention provides a kind of video code flow decoding method and device, can improve the performance of codec.
For solving the problems of the technologies described above, the invention provides a kind of coded video bit stream method, comprising:
Entropy encoding function module is processed the sequencing of coding unit according to other functional modules in the encoder, other functional modules are processed the information that needs the entropy coding of coding unit generation and carried out the entropy coding, in the process of carrying out the entropy coding, after every entropy coding is finished the information of a coding unit, if judge the restriction that reaches default unit, after then place, present encoding unit filtering information corresponding to maximum coding unit being carried out the entropy coding, this entropy encoding function module of resetting.
Further, described method also comprises, after every entropy coding is finished the information of a coding unit, if judge the restriction that does not reach default unit, then according to the maximum coding unit in place, present encoding unit complete entropy filtering information corresponding to described maximum coding unit of encoding that determine whether of entropy coding whether, continue the encode information of next coding unit of entropy.
Further, if described judgement reaches the restriction of default unit, then place, present encoding unit filtering information corresponding to maximum coding unit carried out the entropy coding after, this entropy encoding function module of resetting comprises:
If judge that the present encoding unit is for presetting last in the unit, then in code stream, write the first status indication, after place, present encoding unit filtering information corresponding to maximum coding unit carried out the entropy coding, based on described status indication replacement entropy encoding function module.
Further, if described judgement does not reach the restriction of default unit, then according to the maximum coding unit in place, present encoding unit complete entropy filtering information corresponding to described maximum coding unit of encoding that determine whether of entropy coding whether, continue the encode information of next coding unit of entropy, comprising:
If judge that the present encoding unit is not for presetting last in the unit, whether the entropy coding is complete then to judge the maximum coding unit in place, present encoding unit, if the entropy coding is complete, after then filtering information corresponding to described maximum coding unit being carried out the entropy coding, carry out the entropy coding of the information of each coding unit in next maximum coding unit, if entropy coding is not complete, then continue the encode information of other coding units in the current maximum coding unit of entropy.
Further, judge whether in the following ways to reach the restriction of default unit: judge whether coding unit quantity or the size of entropy coding reach a default unit.
Further, described default unit is sheet.
For solving the problems of the technologies described above, the present invention also provides a kind of video code flow coding/decoding method, comprising:
In the process of carrying out the entropy decoding, after the information of a coding unit is finished in every entropy decoding, if judge the restriction reach default unit, then place, present encoding unit filtering information corresponding to maximum coding unit carried out the entropy decoding after, this entropy decoding function of resetting module.
Further, described method also comprises, after the information of a coding unit is finished in every entropy decoding, if judge the restriction that does not reach default unit, then according to the maximum coding unit in place, present encoding unit complete entropy filtering information corresponding to described maximum coding unit of decoding that determine whether of entropy decoding whether, continue the decode information of next coding unit of entropy.
Further, if described judgement reaches the restriction of default unit, then place, present encoding unit filtering information corresponding to maximum coding unit carried out the entropy decoding after, this entropy decoding function of resetting module comprises:
Judge that according to the first status indication in the code stream present encoding unit is in the default unit last, place, present encoding unit filtering information corresponding to maximum coding unit carried out the entropy decoding after, based on described status indication replacement entropy decoding function module.
Further, if described judgement does not reach the restriction of default unit, then according to the maximum coding unit in place, present encoding unit complete entropy filtering information corresponding to described maximum coding unit of decoding that determine whether of entropy decoding whether, continue the decode information of next coding unit of entropy, comprising:
If judge that according to the first status indication in the code stream present encoding unit is not for presetting last in the unit, whether the entropy decoding is complete then to judge the maximum coding unit in place, present encoding unit, if the entropy decoding is complete, after then filtering information corresponding to described maximum coding unit being carried out the entropy decoding, carry out the entropy decoding of the information of each coding unit in next maximum coding unit, if entropy decoding is not complete, then continue the decode information of other coding units in the current maximum coding unit of entropy.
Further, described default unit is sheet.
For solving the problems of the technologies described above, the present invention also provides a kind of coded video bit stream device, comprises entropy encoding function module, it is characterized in that, described entropy encoding function module comprises the first entropy coding unit, judging unit, the second entropy coding unit, reset cell, wherein:
Described the first entropy coding unit is used for the sequencing according to other functional modules processing coding units of encoder, other functional modules is processed the information that needs the entropy coding of coding units generation and is carried out the entropy coding;
Described judging unit is used for carrying out the process that entropy is encoded at described the first entropy coding unit, after the every entropy coding of the first entropy coding unit is finished the information of a coding unit, judges whether to reach the restriction of default unit;
Described the second entropy coding unit is used for when described judgment unit judges reaches the restriction of default unit, and place, present encoding unit filtering information corresponding to maximum coding unit carried out the entropy coding;
Described reset cell is used for described the second entropy coding unit carries out the entropy coding to described filtering information after the described entropy encoding function module of resetting.
Further, described the second entropy coding unit also is used for when described judgment unit judges does not reach the restriction of default unit, according to the maximum coding unit in place, present encoding unit complete entropy filtering information corresponding to described maximum coding unit of encoding that determine whether of entropy coding whether.
Further, described judging unit is for the restriction that judges whether in the following ways to reach default unit: judge that whether the present encoding unit is to preset last of unit, if so, then writes the first status indication in code stream;
Described reset cell is for based on described the first status indication replacement entropy encoding function module.
Further, described the second entropy coding unit is in the following ways according to the maximum coding unit in place, present encoding unit complete entropy filtering information corresponding to described maximum coding unit of encoding that determine whether of entropy coding whether: described the second entropy coding unit carries out the entropy coding to filtering information corresponding to described maximum coding unit after the maximum coding unit entropy coding in place, present encoding unit is complete.
Further, described judging unit is for the restriction that judges whether in the following ways to reach default unit: judge whether coding unit quantity or the size of entropy coding reach a default unit.
Further, described default unit is sheet.
For solving the problems of the technologies described above, the present invention also provides a kind of video code flow entropy decoder, comprises entropy decoding function module, it is characterized in that, described entropy decoding function module comprises the first entropy decoding unit, judging unit, the second entropy decoding unit and reset cell, wherein:
Described the first entropy decoding unit is for the information of entropy decoding and coding unit;
Described judging unit after the information for the coding unit of having decoded at the every entropy of described the first entropy decoding unit, judges whether to reach the restriction of default unit;
Described the second entropy decoding unit is used for when described judgment unit judges reaches the restriction of default unit, and place, present encoding unit filtering information corresponding to maximum coding unit carried out the entropy decoding;
Described reset cell, after place, present encoding unit filtering information corresponding to maximum coding unit carried out the entropy decoding, this entropy decoding function of resetting module.
Further, described the second entropy decoding unit also is used for when described judgment unit judges does not reach the restriction of default unit, according to the maximum coding unit in place, present encoding unit complete entropy filtering information corresponding to described maximum coding unit of decoding that determine whether of entropy decoding whether.
Further, described judging unit is for the restriction that judges whether in the following ways to reach default unit: judge according to the first status indication of code stream whether the present encoding unit is last that preset in the unit;
Described the second entropy decoding unit is used for, and when in described judgment unit judges present encoding unit being last in the default unit, place, present encoding unit filtering information corresponding to maximum coding unit is carried out the entropy decoding;
Described reset cell is for based on described the first status indication replacement entropy decoding function module.
Further, described the second entropy decoding unit is in the following ways according to the maximum coding unit in place, present encoding unit complete entropy filtering information corresponding to described maximum coding unit of decoding that determine whether of entropy decoding whether:
Described the second entropy decoding unit carries out the entropy decoding to filtering information corresponding to described maximum coding unit after the maximum coding unit entropy decoding in place, present encoding unit is complete.
The video stream encoding and decoding method and the device that adopt the embodiment of the invention to propose, by the first entropy coded residual information filtering information of encoding again, it is parallel to be conducive to the encoder functionality module, reduce pipeline series, reduce buffering, thereby reduce chip area, can also reduce time-delay in addition, improve the performance of codec, reduce the expense of hardware.
Description of drawings
Fig. 1 is a kind of schematic diagram of H.264 encoder functionality Module Division;
Fig. 2 is a kind of schematic diagram of HEVC encoder functionality Module Division;
Fig. 3 is the schematic diagram that filtering information causes that pipeline series and buffering increase of encoding first;
Fig. 4 is the embodiment of the invention 3 code device structural representations;
Fig. 5 is the embodiment of the invention 4 decoding device structural representations;
Fig. 6 uses coding method flow chart in the example 1;
Fig. 7 uses coding/decoding method flow chart in the example 2.
Embodiment
For making the purpose, technical solutions and advantages of the present invention clearer, hereinafter in connection with accompanying drawing embodiments of the invention are elaborated.Need to prove that in the situation of not conflicting, the embodiment among the application and the feature among the embodiment be combination in any mutually.
Embodiment 1
Present embodiment illustrates a kind of coding method, comprising:
Entropy encoding function module is processed the sequencing of coding unit according to other functional modules in the encoder, other functional modules are processed the information that needs the entropy coding of coding unit generation and carried out the entropy coding, in the process of carrying out the entropy coding, after every entropy coding is finished the information of a coding unit, if judge the restriction that reaches default unit, after then place, present encoding unit filtering information corresponding to maximum coding unit being carried out the entropy coding, this entropy encoding function module of resetting.
After every entropy coding is finished the information of a coding unit, if when judging the restriction that does not reach default unit, then according to the maximum coding unit in place, present encoding unit complete entropy filtering information corresponding to described maximum coding unit of encoding that determine whether of entropy coding whether, continue the encode information of next coding unit of entropy.
Particularly, above-mentioned flow process can realize in the following ways when judgement reaches the restriction of default unit: if judge that the present encoding unit is for presetting last in the unit, then in code stream, write the first status indication, after place, present encoding unit filtering information corresponding to maximum coding unit carried out the entropy coding, based on this status indication replacement entropy encoding function module.Refer to based on this status indication replacement entropy encoding function unit, represent that the present encoding unit is for presetting last in the unit, the entropy encoding function module of then resetting if judge this first status indication.
Particularly, above-mentioned flow process can realize in the following ways when judging the restriction that does not reach default unit: if judge that according to the first status indication in the code stream present encoding unit is not for presetting last in the unit, whether the entropy coding is complete then further to judge the maximum coding unit in place, present encoding unit, if the entropy coding is complete, after then filtering information corresponding to described maximum coding unit being carried out the entropy coding, carry out the entropy coding of the information of each coding unit in next maximum coding unit, if entropy coding is not complete, then continue the encode information of other coding units in the current maximum coding unit of entropy.
Whether reach the restriction setting of default unit: whether coding unit quantity or the size of entropy coding reach a default unit.Preferably, this default unit is sheet.
Embodiment 2
Present embodiment illustrates a kind of coding/decoding method, comprising:
In the process of carrying out the entropy decoding, after the information of a coding unit is finished in every entropy decoding, if judge the restriction reach default unit, then place, present encoding unit filtering information corresponding to maximum coding unit carried out the entropy decoding after, this entropy decoding function of resetting module.
After the information of a coding unit is finished in every entropy decoding, if when judging the restriction that does not reach default unit, then according to the maximum coding unit in place, present encoding unit complete entropy filtering information corresponding to described maximum coding unit of decoding that determine whether of entropy decoding whether, then continue the decode information of next coding unit of entropy.
Particularly, above-mentioned flow process can realize in the following ways when judgement reaches the restriction of default unit: judge that according to the first status indication in the code stream present encoding unit is for presetting last in the unit, after place, present encoding unit filtering information corresponding to maximum coding unit carried out the entropy decoding, based on described status indication replacement entropy decoding function module.
Particularly, above-mentioned flow process can realize in the following ways when judging the restriction that does not reach default unit: if judge that according to the first status indication in the code stream present encoding unit is not for presetting last in the unit, whether the entropy decoding is complete then to judge the maximum coding unit in place, present encoding unit, if the entropy decoding is complete, after then filtering information corresponding to described maximum coding unit being carried out the entropy decoding, carry out the entropy decoding of the information of each coding unit in next maximum coding unit, if entropy decoding is not complete, then continue the decode information of other coding units in the current maximum coding unit of entropy.
Embodiment 3
The present embodiment introduction realizes the code device of embodiment 1 coding method, this code device comprises entropy encoding function module, as shown in Figure 4, entropy encoding function module comprises the first entropy coding unit, the first judging unit, the second entropy coding unit, the first reset cell, wherein:
This first entropy coding unit is used for the sequencing according to other functional modules processing coding units of encoder, other functional modules is processed the information that needs the entropy coding of coding units generation and is carried out the entropy coding;
This first judging unit is used for carrying out the process that entropy is encoded at described the first entropy coding unit, after the every entropy coding of the first entropy coding unit is finished the information of a coding unit, judges whether to reach the restriction of default unit;
This second entropy coding unit is used for when described the first judgment unit judges reaches the restriction of default unit, and place, present encoding unit filtering information corresponding to maximum coding unit carried out the entropy coding;
This first reset cell is used for described the second entropy coding unit carries out the entropy coding to described filtering information after the described entropy encoding function module of resetting.
Preferably, this the second entropy coding unit also is used for when described the first judgment unit judges does not reach the restriction of default unit, according to the maximum coding unit in place, present encoding unit complete entropy filtering information corresponding to described maximum coding unit of encoding that determine whether of entropy coding whether.Particularly, the second entropy coding unit just carries out the entropy coding to filtering information corresponding to described maximum coding unit after the maximum coding unit entropy coding in place, present encoding unit is complete.
Particularly, this first judging unit is for the restriction that judges whether in the following ways to reach default unit: judge that whether the present encoding unit is to preset last of unit, if so, then writes the first status indication in code stream; This first reset cell is based on this first status indication replacement entropy encoding function module.
Embodiment 4
The present embodiment introduction realizes the decoding device of embodiment 2 coding/decoding methods, this decoding device comprises entropy decoding function module, as shown in Figure 5, entropy decoding function module comprises the first entropy decoding unit, the second judging unit, the second entropy decoding unit and the second reset cell, wherein:
This first entropy decoding unit is for the information of entropy decoding and coding unit;
This second judging unit after the information for the coding unit of having decoded at the every entropy of described the first entropy decoding unit, judges whether to reach the restriction of default unit;
This second entropy decoding unit is used for when described the second judgment unit judges reaches the restriction of default unit, and place, present encoding unit filtering information corresponding to maximum coding unit carried out the entropy decoding;
This second reset cell, after place, present encoding unit filtering information corresponding to maximum coding unit carried out the entropy decoding, this entropy decoding function of resetting module.
Preferably, the second entropy decoding unit also is used for when described the second judgment unit judges does not reach the restriction of default unit, according to the maximum coding unit in place, present encoding unit complete entropy filtering information corresponding to described maximum coding unit of decoding that determine whether of entropy decoding whether.Particularly, the second entropy decoding unit just carries out the entropy decoding to filtering information corresponding to described maximum coding unit after the maximum coding unit entropy decoding in place, present encoding unit is complete.
Particularly, above-mentioned the second judging unit is for the restriction that judges whether in the following ways to reach default unit: judge according to the first status indication of code stream whether the present encoding unit is last that preset in the unit; Described the second entropy decoding unit is used for, and when in described judgment unit judges present encoding unit being last in the default unit, place, present encoding unit filtering information corresponding to maximum coding unit is carried out the entropy decoding; This second reset cell is for based on described the first status indication replacement entropy decoding function module.
Provide the application example below in conjunction with accompanying drawing, above-described embodiment is described in further detail.
Fig. 2 is a kind of HEVC (High efficiency video coding) advanced video encoding and decoding standard coder structure schematic diagram, wherein prediction module (Prediction) comprises infra-frame prediction, the functional modules such as inter prediction, residual error is rebuild module (Diff/Recon) and is comprised residual computations, the functional module such as change quantization and reconstruction, CABAC is entropy encoding function module, DF (Deblock Filter), SAO (Sample Adaptive Offset), ALF (Adaptive Loop Filter) is respectively block-eliminating effect filtering, filter function module in sample point adaptive-filtering and the self adaptation ring.
Use example 1
The processing procedure of coding side comprises as shown in Figure 6:
Step 1: each functional module of encoder is processed coding unit successively according to the HEVC video encoding and decoding standard, wherein, entropy encoding function module is processed the information that needs the entropy coding of coding units generation and is carried out the entropy coding according to the sequencing of other functional modules processing coding units in the encoder to other functional modules;
Step 2: judge when whether the present encoding unit reaches the restriction of a sheet (take default unit as a sheet as example), if so, execution in step three, otherwise, execution in step five;
Step 3, in code stream, write the enabled state (for example being 1) of coding unit end mark (last_CU_in_slice_flag), the entropy end-of-encode of coding unit that expression comprises in anter, the present encoding unit is last, execution in step four;
Step 4, filtering information corresponding to the maximum coding unit in entropy coding place, present encoding unit, such as the SAO in the table 1 and/or ALF information, replacement entropy encoding function module finishes;
Particularly, after entropy has been encoded filtering information, directly or indirectly obtain the value of sheet end-of-data mark (end_of_slice_flag) according to the value of coding unit end mark, as shown in table 1, should the expression of (end_of_slice_flag) sign work as the anter ED, the entropy coding module of can resetting this moment;
Step 5 writes the not enabled state (for example being 0) of coding unit end mark (last_CU_in_slice_flag), and the coding unit that expression comprises in anter not yet finishes;
Step 6, the entropy coding is complete to judge the maximum coding unit at place, present encoding unit, if complete, execution in step seven, otherwise execution in step eight;
Step 7 is carried out the entropy coding to place, present encoding unit filtering information (such as the SAO in the table 1 and/or ALF information) corresponding to maximum coding unit, and entropy encoding function module is carried out the entropy coding of the information of each coding unit in next maximum coding unit;
Step 8, entropy encoding function module continue the encode information of other coding units in the current maximum coding unit of entropy;
The sheet data syntax structure of encoder is as shown in table 1.
In this example, the coding unit end mark is that status indication all is labeled when reaching sheet when restriction in the present encoding unit and not reaching the sheet restriction, in other embodiments, also can be only carry out mark when sheet limits reaching.
Use example 2
The decoding end processing procedure comprises as shown in Figure 7:
The first step: each functional module of decoder according to the HEVC video encoding and decoding standard to the coding unit processing of decoding successively;
Second step: carry out the entropy decoding according to the sheet data syntax structure shown in the table 1, first entropy decoding present encoding unit information coding_tree;
The 3rd step: decoding obtains coding unit end mark (last_CU_in_slice_flag);
The 4th step: judge that according to the enabled state of done state whether the present encoding unit reaches a sheet, if carried out for the 5th step, otherwise carries out for the 6th step;
The 5th step: the coding unit end mark is enabled state (for example being 1), the coding unit that expression comprises in anter finishes, the present encoding unit is last, filtering information corresponding to the maximum coding unit in entropy decoding place, present encoding unit then, such as the SAO in the table 1 and/or ALF information, replacement entropy decoding function module;
The value of the coding unit end mark last_CU_in_slice_flag that obtains according to decoding in the step 3 directly or indirectly obtains the value as anter end-of-data mark end_of_slice_flag, this end_of_slice_flag sign expression is when the anter ED, the entropy decoder module of can resetting, the next coding unit or carry out image output of decoding again afterwards.
In the 6th step, the coding unit end mark is enabler flags (for example being 0) not, and expression is worked as the coding unit that comprises in the anter and not yet finished, as shown in table 2, the entropy decoding is complete to judge the maximum coding unit at place, present encoding unit, if carried out for the 7th step, otherwise carries out for the 8th step;
The 7th step: place, present encoding unit filtering information corresponding to maximum coding unit carried out the entropy decoding, and entropy decoding function module is carried out the entropy decoding of the information of each coding unit in next maximum coding unit;
The 8th step: entropy decoding function module continues the decode information of other coding units in the current maximum coding unit of entropy.
Remaining syntactic structure generates according to the HEVC video encoding and decoding standard in the decoder.
The syntactic structure of table 1 data (Slice Data)
Figure BDA0000159181580000141
The syntactic structure of table 2 CU layer (Coding_tree)
Figure BDA0000159181580000151
The present invention has utilized the characteristics of encoder inner function module parallel processing in the ASIC design, a kind of new coded video bit stream and coding/decoding method have been proposed, the method can be in the situation that does not affect the Video coding compression ratio, improved the degree of parallelism of encoder, and reduce the upper encoder of ASIC for the demand of buffer memory, thereby efficient and the performance of encoder have been promoted.
One of ordinary skill in the art will appreciate that all or part of step in the said method can come the instruction related hardware to finish by program, described program can be stored in the computer-readable recording medium, such as read-only memory, disk or CD etc.Alternatively, all or part of step of above-described embodiment also can realize with one or more integrated circuits.Correspondingly, each the module/unit in above-described embodiment can adopt the form of hardware to realize, also can adopt the form of software function module to realize.The present invention is not restricted to the combination of the hardware and software of any particular form.
Certainly; the present invention also can have other various embodiments; in the situation that does not deviate from spirit of the present invention and essence thereof; those of ordinary skill in the art work as can make according to the present invention various corresponding changes and distortion, but these corresponding changes and distortion all should belong to the protection range of the appended claim of the present invention.

Claims (22)

1. coded video bit stream method comprises:
Entropy encoding function module is processed the sequencing of coding unit according to other functional modules in the encoder, other functional modules are processed the information that needs the entropy coding of coding unit generation and carried out the entropy coding, in the process of carrying out the entropy coding, after every entropy coding is finished the information of a coding unit, if judge the restriction that reaches default unit, after then place, present encoding unit filtering information corresponding to maximum coding unit being carried out the entropy coding, this entropy encoding function module of resetting.
2. the method for claim 1 is characterized in that,
Described method also comprises, after every entropy coding is finished the information of a coding unit, if judge the restriction that does not reach default unit, then according to the maximum coding unit in place, present encoding unit complete entropy filtering information corresponding to described maximum coding unit of encoding that determine whether of entropy coding whether, continue the encode information of next coding unit of entropy.
3. the method for claim 1 is characterized in that,
If described judgement reaches the restriction of default unit, then place, present encoding unit filtering information corresponding to maximum coding unit carried out the entropy coding after, this entropy encoding function module of resetting comprises:
If judge that the present encoding unit is for presetting last in the unit, then in code stream, write the first status indication, after place, present encoding unit filtering information corresponding to maximum coding unit carried out the entropy coding, based on described status indication replacement entropy encoding function module.
4. method as claimed in claim 2 is characterized in that,
If described judgement does not reach the restriction of default unit, then according to the maximum coding unit in place, present encoding unit complete entropy filtering information corresponding to described maximum coding unit of encoding that determine whether of entropy coding whether, continue the encode information of next coding unit of entropy, comprising:
If judge that the present encoding unit is not for presetting last in the unit, whether the entropy coding is complete then to judge the maximum coding unit in place, present encoding unit, if the entropy coding is complete, after then filtering information corresponding to described maximum coding unit being carried out the entropy coding, carry out the entropy coding of the information of each coding unit in next maximum coding unit, if entropy coding is not complete, then continue the encode information of other coding units in the current maximum coding unit of entropy.
5. such as the described method of arbitrary claim among the claim 1-4, it is characterized in that,
Judge whether in the following ways to reach the restriction of default unit: judge whether coding unit quantity or the size of entropy coding reach a default unit.
6. method as claimed in claim 5 is characterized in that,
Described default unit is sheet.
7. video code flow coding/decoding method comprises:
In the process of carrying out the entropy decoding, after the information of a coding unit is finished in every entropy decoding, if judge the restriction reach default unit, then place, present encoding unit filtering information corresponding to maximum coding unit carried out the entropy decoding after, this entropy decoding function of resetting module.
8. method as claimed in claim 7 is characterized in that,
Described method also comprises, after the information of a coding unit is finished in every entropy decoding, if judge the restriction that does not reach default unit, then according to the maximum coding unit in place, present encoding unit complete entropy filtering information corresponding to described maximum coding unit of decoding that determine whether of entropy decoding whether, continue the decode information of next coding unit of entropy.
9. method as claimed in claim 7 is characterized in that,
If described judgement reaches the restriction of default unit, then place, present encoding unit filtering information corresponding to maximum coding unit carried out the entropy decoding after, this entropy decoding function of resetting module comprises:
Judge that according to the first status indication in the code stream present encoding unit is in the default unit last, place, present encoding unit filtering information corresponding to maximum coding unit carried out the entropy decoding after, based on described status indication replacement entropy decoding function module.
10. method as claimed in claim 8 is characterized in that,
If described judgement does not reach the restriction of default unit, then according to the maximum coding unit in place, present encoding unit complete entropy filtering information corresponding to described maximum coding unit of decoding that determine whether of entropy decoding whether, continue the decode information of next coding unit of entropy, comprising:
If judge that according to the first status indication in the code stream present encoding unit is not for presetting last in the unit, whether the entropy decoding is complete then to judge the maximum coding unit in place, present encoding unit, if the entropy decoding is complete, after then filtering information corresponding to described maximum coding unit being carried out the entropy decoding, carry out the entropy decoding of the information of each coding unit in next maximum coding unit, if entropy decoding is not complete, then continue the decode information of other coding units in the current maximum coding unit of entropy.
11. such as the described method of arbitrary claim among the claim 7-10, it is characterized in that,
Described default unit is sheet.
12. a coded video bit stream device comprises entropy encoding function module, it is characterized in that, described entropy encoding function module comprises the first entropy coding unit, judging unit, the second entropy coding unit, reset cell, wherein:
Described the first entropy coding unit is used for the sequencing according to other functional modules processing coding units of encoder, other functional modules is processed the information that needs the entropy coding of coding units generation and is carried out the entropy coding;
Described judging unit is used for carrying out the process that entropy is encoded at described the first entropy coding unit, after the every entropy coding of the first entropy coding unit is finished the information of a coding unit, judges whether to reach the restriction of default unit;
Described the second entropy coding unit is used for when described judgment unit judges reaches the restriction of default unit, and place, present encoding unit filtering information corresponding to maximum coding unit carried out the entropy coding;
Described reset cell is used for described the second entropy coding unit carries out the entropy coding to described filtering information after the described entropy encoding function module of resetting.
13. encoder as claimed in claim 12 is characterized in that,
Described the second entropy coding unit also is used for when described judgment unit judges does not reach the restriction of default unit, according to the maximum coding unit in place, present encoding unit complete entropy filtering information corresponding to described maximum coding unit of encoding that determine whether of entropy coding whether.
14. encoder as claimed in claim 12 is characterized in that,
Described judging unit is for the restriction that judges whether in the following ways to reach default unit: judge that whether the present encoding unit is to preset last of unit, if so, then writes the first status indication in code stream;
Described reset cell is for based on described the first status indication replacement entropy encoding function module.
15. encoder as claimed in claim 13 is characterized in that,
Described the second entropy coding unit is in the following ways according to the maximum coding unit in place, present encoding unit complete entropy filtering information corresponding to described maximum coding unit of encoding that determine whether of entropy coding whether: described the second entropy coding unit carries out the entropy coding to filtering information corresponding to described maximum coding unit after the maximum coding unit entropy coding in place, present encoding unit is complete.
16. such as the described encoder of arbitrary claim among the claim 12-15, it is characterized in that,
Described judging unit is for the restriction that judges whether in the following ways to reach default unit: judge whether coding unit quantity or the size of entropy coding reach a default unit.
17. encoder as claimed in claim 16 is characterized in that,
Described default unit is sheet.
18. a video code flow entropy decoder comprises entropy decoding function module, it is characterized in that, described entropy decoding function module comprises the first entropy decoding unit, judging unit, the second entropy decoding unit and reset cell, wherein:
Described the first entropy decoding unit is for the information of entropy decoding and coding unit;
Described judging unit after the information for the coding unit of having decoded at the every entropy of described the first entropy decoding unit, judges whether to reach the restriction of default unit;
Described the second entropy decoding unit is used for when described judgment unit judges reaches the restriction of default unit, and place, present encoding unit filtering information corresponding to maximum coding unit carried out the entropy decoding;
Described reset cell, after place, present encoding unit filtering information corresponding to maximum coding unit carried out the entropy decoding, this entropy decoding function of resetting module.
19. decoder as claimed in claim 18 is characterized in that,
Described the second entropy decoding unit also is used for when described judgment unit judges does not reach the restriction of default unit, according to the maximum coding unit in place, present encoding unit complete entropy filtering information corresponding to described maximum coding unit of decoding that determine whether of entropy decoding whether.
20. decoder as claimed in claim 18 is characterized in that,
Described judging unit is for the restriction that judges whether in the following ways to reach default unit: judge according to the first status indication of code stream whether the present encoding unit is last that preset in the unit;
Described the second entropy decoding unit is used for, and when in described judgment unit judges present encoding unit being last in the default unit, place, present encoding unit filtering information corresponding to maximum coding unit is carried out the entropy decoding;
Described reset cell is for based on described the first status indication replacement entropy decoding function module.
21. decoder as claimed in claim 19 is characterized in that,
Described the second entropy decoding unit is in the following ways according to the maximum coding unit in place, present encoding unit complete entropy filtering information corresponding to described maximum coding unit of decoding that determine whether of entropy decoding whether:
Described the second entropy decoding unit carries out the entropy decoding to filtering information corresponding to described maximum coding unit after the maximum coding unit entropy decoding in place, present encoding unit is complete.
22. such as the described decoder of arbitrary claim among the claim 18-21, it is characterized in that,
Described default unit is sheet.
CN201210133025.XA 2012-04-28 2012-04-28 A kind of video code flow decoding method and device Active CN103379331B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201210133025.XA CN103379331B (en) 2012-04-28 2012-04-28 A kind of video code flow decoding method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201210133025.XA CN103379331B (en) 2012-04-28 2012-04-28 A kind of video code flow decoding method and device

Publications (2)

Publication Number Publication Date
CN103379331A true CN103379331A (en) 2013-10-30
CN103379331B CN103379331B (en) 2018-10-23

Family

ID=49463826

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201210133025.XA Active CN103379331B (en) 2012-04-28 2012-04-28 A kind of video code flow decoding method and device

Country Status (1)

Country Link
CN (1) CN103379331B (en)

Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101198051A (en) * 2006-12-07 2008-06-11 深圳艾科创新微电子有限公司 Method and device for implementing entropy decoder based on H.264
CN101309405A (en) * 2007-05-14 2008-11-19 华为技术有限公司 Reference data loading method and device
CN101309420A (en) * 2007-05-17 2008-11-19 索尼株式会社 Information processing device and method, and information processing system
US20090245349A1 (en) * 2008-03-28 2009-10-01 Jie Zhao Methods and Systems for Parallel Video Encoding and Decoding
CN101707716A (en) * 2009-11-19 2010-05-12 清华大学 Video coder and coding method
WO2011140211A2 (en) * 2010-05-04 2011-11-10 Texas Instruments Incorporated Coding unit quantization parameters in video coding
CN102342101A (en) * 2008-12-22 2012-02-01 高通股份有限公司 Combined scheme for interpolation filtering, in-loop filtering and post-loop filtering in video coding
CN102388610A (en) * 2009-02-09 2012-03-21 三星电子株式会社 Video encoding method and apparatus using low-complexity frequency transformation, and video decoding method and apparatus
CN102577383A (en) * 2009-10-23 2012-07-11 三星电子株式会社 Method and apparatus for encoding video and method and apparatus for decoding video, based on hierarchical structure of coding unit

Patent Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101198051A (en) * 2006-12-07 2008-06-11 深圳艾科创新微电子有限公司 Method and device for implementing entropy decoder based on H.264
CN101309405A (en) * 2007-05-14 2008-11-19 华为技术有限公司 Reference data loading method and device
CN101309420A (en) * 2007-05-17 2008-11-19 索尼株式会社 Information processing device and method, and information processing system
US20090245349A1 (en) * 2008-03-28 2009-10-01 Jie Zhao Methods and Systems for Parallel Video Encoding and Decoding
CN102342101A (en) * 2008-12-22 2012-02-01 高通股份有限公司 Combined scheme for interpolation filtering, in-loop filtering and post-loop filtering in video coding
CN102388610A (en) * 2009-02-09 2012-03-21 三星电子株式会社 Video encoding method and apparatus using low-complexity frequency transformation, and video decoding method and apparatus
CN102577383A (en) * 2009-10-23 2012-07-11 三星电子株式会社 Method and apparatus for encoding video and method and apparatus for decoding video, based on hierarchical structure of coding unit
CN101707716A (en) * 2009-11-19 2010-05-12 清华大学 Video coder and coding method
WO2011140211A2 (en) * 2010-05-04 2011-11-10 Texas Instruments Incorporated Coding unit quantization parameters in video coding

Also Published As

Publication number Publication date
CN103379331B (en) 2018-10-23

Similar Documents

Publication Publication Date Title
US9906789B2 (en) Encoding or decoding method and apparatus
CN112272298B (en) Method and device for coding and decoding conversion coefficient
CN105556962B (en) The method for sending the signal of the lossless mode for video system
CN108419084B (en) Method, apparatus and storage medium for improved entropy coding and decoding
CN1695168A (en) Video-information encoding method and video-information decoding method
CN1968418A (en) System and method for image data processing using hybrid type
WO2011002914A1 (en) System and method for providing high throughput entropy coding using syntax element partitioning
KR20130114734A (en) Dynamic video switching
KR101870594B1 (en) Coding and decoding of spectral peak positions
CN102595121A (en) Intra-frame prediction mode binarization method, device and system as well as decoding method
EP2533427A1 (en) Method and apparatus for coding and decoding
CN103379318A (en) Video bitstream coding method and apparatus
CN103379331A (en) Video code stream coding and decoding method and video code stream coding and decoding device
CN105592316A (en) Digital video signal decoder
AU2014277750B2 (en) Encoding or decoding method and apparatus
CN117939148A (en) Dynamic queuing of entropy encoded data for transmission in a bitstream
CN103384329A (en) CAVLC decoding method based on no code table lookup

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
TA01 Transfer of patent application right
TA01 Transfer of patent application right

Effective date of registration: 20180718

Address after: 210012 No. 68 Bauhinia Road, Yuhuatai District, Jiangsu, Nanjing

Applicant after: Nanjing Zhongxing New Software Co., Ltd.

Address before: 518057 Nanshan District high tech Industrial Park, Shenzhen, Guangdong, Ministry of justice, Zhongxing Road, South China road.

Applicant before: ZTE Corporation

GR01 Patent grant
GR01 Patent grant
TR01 Transfer of patent right
TR01 Transfer of patent right

Effective date of registration: 20191112

Address after: 518057 Nanshan District science and Technology Industrial Park, Guangdong high tech Industrial Park, ZTE building

Patentee after: ZTE Communications Co., Ltd.

Address before: Yuhuatai District of Nanjing City, Jiangsu province 210012 Bauhinia Road No. 68

Patentee before: Nanjing Zhongxing New Software Co., Ltd.