CN102595123B - Stripe coding method and device thereof as well as stripe decoding method and device thereof - Google Patents

Stripe coding method and device thereof as well as stripe decoding method and device thereof Download PDF

Info

Publication number
CN102595123B
CN102595123B CN201110008180.4A CN201110008180A CN102595123B CN 102595123 B CN102595123 B CN 102595123B CN 201110008180 A CN201110008180 A CN 201110008180A CN 102595123 B CN102595123 B CN 102595123B
Authority
CN
China
Prior art keywords
band
location information
information field
unit
position information
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Expired - Fee Related
Application number
CN201110008180.4A
Other languages
Chinese (zh)
Other versions
CN102595123A (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.)
Huawei Technologies Co Ltd
Original Assignee
Huawei Technologies Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Huawei Technologies Co Ltd filed Critical Huawei Technologies Co Ltd
Priority to CN201110008180.4A priority Critical patent/CN102595123B/en
Priority to PCT/CN2012/070383 priority patent/WO2012095030A1/en
Publication of CN102595123A publication Critical patent/CN102595123A/en
Application granted granted Critical
Publication of CN102595123B publication Critical patent/CN102595123B/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N19/00Methods or arrangements for coding, decoding, compressing or decompressing digital video signals
    • H04N19/10Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding
    • H04N19/169Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding characterised by the coding unit, i.e. the structural portion or semantic portion of the video signal being the object or the subject of the adaptive coding
    • H04N19/17Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding characterised by the coding unit, i.e. the structural portion or semantic portion of the video signal being the object or the subject of the adaptive coding the unit being an image region, e.g. an object
    • H04N19/174Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding characterised by the coding unit, i.e. the structural portion or semantic portion of the video signal being the object or the subject of the adaptive coding the unit being an image region, e.g. an object the region being a slice, e.g. a line of blocks or a group of blocks
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N19/00Methods or arrangements for coding, decoding, compressing or decompressing digital video signals
    • H04N19/10Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding
    • H04N19/102Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding characterised by the element, parameter or selection affected or controlled by the adaptive coding
    • H04N19/119Adaptive subdivision aspects, e.g. subdivision of a picture into rectangular or non-rectangular coding blocks
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N19/00Methods or arrangements for coding, decoding, compressing or decompressing digital video signals
    • H04N19/10Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding
    • H04N19/134Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding characterised by the element, parameter or criterion affecting or controlling the adaptive coding
    • H04N19/146Data rate or code amount at the encoder output

Landscapes

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

Abstract

The invention relates to coding and decoding technology, and discloses a stripe coding method and a device thereof as well as a stripe decoding method and a device thereof. The stripe coding method comprises the following steps of: confirming a stripe division type of a current division object according to judgment information, and dividing the current division object into stripes according to the stripe division type; writing initial position information of a current stripe into an initial position information field, and coding the current stripe written with the initial position information and outputting a coded stream. Due to the utilization of the invention, the data volume of the stripes can be controlled, and thus the network compatibility is enhanced.

Description

Band coding method and device, band coding/decoding method and device
Technical field
The present invention relates to encoding and decoding technique, be specifically related to band coding method and device, band coding/decoding method and device in video encoding standard of new generation (HEVC, HighEfficiency Video Coding).
Background technology
Along with improving constantly of network technology and terminal processing capacity, people are to the series 2 (MPEG-2 of now widely used Motion Picture Experts Group, Moving Pictures Experts Group-2), Motion Picture Experts Group's series 4 (MPEG-4), H.264 wait video coding and decoding technology to propose new requirement, for example wish to meet high definition, the requirement of 3D, thereby meet new home theater, remote monitoring, digital broadcasting, mobile flow medium, mobile imaging, the application of the frontiers such as medical imaging, in order to meet these application, video encoding standard (the HEVC of a new generation, High Efficiency Video Coding) arise at the historic moment.
HEVC, in order to improve compression efficiency, has used a kind of new coding structure, particularly, a video image is divided into by an integer coding unit (CU, Coding Unit) composition, and CU is square, and the size of CU is variable.The production process of CU is summarized as follows, first, a video image is divided into nonoverlapping integer maximum coding unit (LCU, Largest Coding Unit); Further, LCU can be able to be split into the CU of four same sizes; Further, these four CU can be split into the CU of less four same sizes; Fission process can carry out always, until the size of the CU that division obtains reaches the minimum value of regulation, this minimum value is minimum code unit (SCU, Smallest CodingUnit).There is division and do not divide two kinds of possibilities in each CU, whether CU continues division or do not divide and can identify by an identifier, and therefore, in actual cataloged procedure, CU may be of different sizes size.
Introduced the concept of band (Slice) in order to limit the diffusion of error code and transmission, it is independently that the application of band can make the coding between band, the prediction of a band can not be taking the image in alternative in vitro test as reference picture, and therefore the predicated error in a band can not propagate into alternative in vitro test yet.
Band division methods in existing a kind of HEVC is to carry out the division of band by LCU, a band comprises an integer LCU, particularly, a band can only include a LCU, also can comprise all LCU of whole video image, thereby make a video image can be encoded into one or more bands.
Because the size of LCU in HEVC is larger, if carry out the division of band by LCU, can cause the data volume size of band to be difficult to control, because every increase or the data volume that reduces a LCU band all can have greatly changed, thereby increased the cost of Web-compatible, network compatibility is not strong.
Summary of the invention
The embodiment of the present invention provides band coding method and device, band coding/decoding method and device, can control the data volume size of band, thereby strengthens network compatibility.
On the one hand, one embodiment of the invention provides a kind of band coding method, comprising:
Determine the band classified types of current division object according to discriminative information, according to described band classified types, current division object is divided into band;
Write the start position information of current band in start position information field;
The current band that has write described start position information is encoded, output encoder code stream.
On the other hand, another embodiment of the present invention provides a kind of band coding/decoding method, comprising:
Resolve the start position information of current band from start position information field;
Start the decoding to described current band according to described start position information, and determined the decoding to described current band according to preset processing mode;
The reconstruction image of the current band that output decoding obtains.
On the other hand, another embodiment of the present invention provides a kind of band code device, comprising:
Determining unit, for determining the band classified types of current division object according to discriminative information;
Division unit, for being divided into band according to the definite band classified types of described determining unit by current division object;
Writing unit, for writing the start position information of the current band that described division unit divides in start position information field;
Coding processing unit, encodes for the current band that said write unit is obtained, output encoder code stream.
On the other hand, another embodiment of the present invention provides a kind of band decoding device, comprising:
Resolution unit, for resolving the start position information of current band from start position information field;
Decoding unit, starts the decoding to described current band for resolving according to described resolution unit the start position information obtaining, and has determined the decoding to described current band according to preset processing mode;
Output unit, for exporting the reconstruction image of the band that described decoding unit obtains.
The above technical scheme providing from the embodiment of the present invention can be found out, because the embodiment of the present invention can be determined according to discriminative information the band classified types of current division object, according to definite band classified types, current division object is divided into band, make the data volume size of the band being divided into can adapt to network, and can adopt different band dividing mode at different networks, thereby strengthen network compatibility.
Brief description of the drawings
In order to be illustrated more clearly in the technical scheme in the embodiment of the present invention, below the accompanying drawing of required use during embodiment is described is briefly described, apparently, accompanying drawing in the following describes is only some embodiments of the present invention, for those of ordinary skill in the art, do not paying under the prerequisite of creative work, can also obtain according to these accompanying drawings other accompanying drawing.
The flow chart of the band coding method that Fig. 1 provides for one embodiment of the invention;
The flow chart of the band coding method that Fig. 2 provides for another embodiment of the present invention;
The flow chart of the band coding method that Fig. 3 provides for another embodiment of the present invention;
The flow chart of the band coding/decoding method that Fig. 4 provides for one embodiment of the invention;
The flow chart of the band coding/decoding method that Fig. 5 provides for another embodiment of the present invention;
The flow chart of the band coding/decoding method that Fig. 6 provides for another embodiment of the present invention;
The structure chart of the band code device that Fig. 7 provides for one embodiment of the invention;
The structure chart of the band decoding device that Fig. 8 provides for another embodiment of the present invention;
The structure chart of the band code device that Fig. 9 provides for another embodiment of the present invention;
The structure chart of the band decoding device that Figure 10 provides for one embodiment of the invention.
Embodiment
Below in conjunction with the accompanying drawing in the embodiment of the present invention, the technical scheme in the embodiment of the present invention is clearly and completely described, obviously, described embodiment is only the present invention's part embodiment, instead of whole embodiment.Based on the embodiment in the present invention, those of ordinary skill in the art, not making the every other embodiment obtaining under creative work prerequisite, belong to the scope of protection of the invention.
In embodiments of the present invention, the absolute location information of initial LCU can be order absolute location information or the inverted order absolute location information of initial LCU in image; Wherein, the absolute location information of the initial LCU of current band in image can be specifically the sequence number of initial LCU in image, for example an image comprises 10 LCU, sequence number is respectively 0~9, the initial LCU of current band is the 4th LCU in image, the order absolute location information of this initial LCU is 3, and the inverted order absolute location information of this initial LCU is 5.
The relative position information of initial SCU can be order relative position information or the inverted order relative position information of initial SCU in initial LCU; Wherein, the order relative position information of initial SCU in initial LCU can be specifically, the initial SCU of current band is with respect to the positional information of first SCU in initial LCU, the sequence number of first SCU of for example initial LCU in image is 1000, but the sequence number of the initial SCU of current band in image is 1010, and the relative position information of initial SCU in initial LCU is 1010-1000=10; The inverted order relative position information of initial SCU in initial LCU can be specifically, the initial SCU of current band is with respect to the positional information of last SCU in initial LCU, the sequence number of last SCU of for example initial LCU in image is 1010, but the sequence number of the initial SCU of current band in image is 1000, the inverted order relative position information of initial SCU in initial LCU is 1010-1000=10.
Do not limit in an embodiment of the present invention and specifically when use the order absolute location information of initial LCU in image or the inverted order absolute location information absolute location information as initial LCU; Do not limit and when use the order relative position information of initial SCU in initial LCU or the inverted order relative position information relative position information as initial SCU yet.
Same, in an embodiment of the present invention, the absolute location information that finishes LCU can be for finishing order absolute location information or the inverted order absolute location information of LCU in image; The relative position information that finishes SCU can be for finishing SCU at the order relative position information or the inverted order relative position information that finish in LCU.
Do not limit in an embodiment of the present invention specifically when to use and finish the order absolute location information of LCU in image or inverted order absolute location information as the absolute location information that finishes LCU yet; Do not limit when to use and finish SCU finishing order relative position information in LCU or inverted order relative position information as the relative position information that finishes SCU yet.
First introduce the band coding method that the embodiment of the present invention provides, Fig. 1 has described the flow process of the band coding method that one embodiment of the invention provides, and this embodiment comprises:
101, determine the band classified types of current division object according to discriminative information, according to definite band classified types, current division object is divided into band.
Wherein, in one embodiment of the invention, discriminative information can be at least one in input configuration and input parameter and video source, and different input configurations and/or input parameter and/or video source can adopt different band classified types.In one embodiment of the invention, band classified types can be divide or divide by CU by LCU.
Current division object can be specifically present image sequence or current video image or present image band etc.
102, write the start position information of current band in start position information field.
Wherein, start position information field can be positioned at the slice header of current band, also can be positioned at the head of sequence parameter set, also can be positioned at the first-class of picture parameter set.
In one embodiment of the invention, start position information field only includes a field, can directly the start position information of current band be write to this field, now the start position information of current band can be the absolute location information of initial SCU in image.
In another embodiment of the present invention, start position information field comprises initial LCU location information field and initial SCU location information field; Now, the start position information that writes current band in start position information field is specially: the absolute location information of the initial LCU that writes current band in initial LCU location information field in image, writes the relative position information of initial SCU in initial LCU in initial SCU location information field.Wherein, in the time current division object being divided by LCU, the initial SCU of current band is the initial SCU of initial LCU, and the relative position information of initial SCU in initial LCU is exactly 0.
103, the current band that has write start position information is encoded, output encoder code stream.
Wherein, specifically can adopt VLC coded system or non-VLC coded system to encode to current band.
In one embodiment of the invention, if adopt non-VLC coded system to encode to current band, before being encoded, current band may further include step: the end position information that writes current band at end position information field.Be understandable that, in the time adopting VLC coded system to encode to current band, also can before current band is encoded, comprise this step.End position information field can be positioned at the slice header of current band, also can be positioned at the head of sequence parameter set, also can be positioned at the first-class of picture parameter set.
In one embodiment of the invention, end position information field only includes a field, can directly the end position information of current band be write to this field, the length information that the end position information of for example current band is current band, now, the end position of current band can be determined jointly by the start position information of current band and the length information of current band; The length information of current band is specially in one embodiment of the invention: the quantity of the LCU that current band comprises and end CU are at the order relative position or the inverted order relative position that finish in LCU; Or the quantity of the CU that comprises of current band; Or the quantity of the SCU that comprises of current band.In another embodiment of the present invention, the end position information of current band also can be for finishing the absolute location information of SCU in image.
In another embodiment of the present invention, end position information field comprises end LCU location information field and finishes SCU location information field; Now, the end position information that writes current band at end position information field is specially: finishing end LCU that LCU location information field the writes current band absolute location information in image, writing and finish SCU and finishing the relative position information in LCU finishing SCU location information field.Wherein, in the time current division object being divided by LCU, the end SCU of current band is the end SCU that finishes LCU, finishes the relative position information of SCU in end LCU and is the positional information of this SCU with respect to initial SCU in end LCU.
In another embodiment of the present invention, if adopting non-VLC coded system encodes to current band, before being encoded, current band may further include step: the bar end of tape marker position assignment of all CU in for current band, this end of tape marker position is positioned at last position that the data of last SCU of each CU that current band comprises are carried only, wherein finishes bar end of tape marker position assignment in CU for effectively.Be understandable that, in the time adopting VLC coded system to encode to current band, also can before current band is encoded, comprise this step.
From the above, the present embodiment can be determined according to discriminative information the band classified types of current division object, according to definite band classified types, current division object is divided into band, make the data volume size of the band being divided into can adapt to network, and can adopt different band dividing mode at different networks, thereby strengthen network compatibility.
Further, in another embodiment of the present invention, the start position information field using comprises initial LCU location information field and initial SCU location information field, make decoding device can directly resolve the positional information in initial LCU location information field and initial SCU location information field in the time of decoding, the positional information obtaining according to parsing is again directly targeted to the original position of band, thereby improves decoding efficiency.
Further, in another embodiment of the present invention, can write at end position information field the end position information of current band, make decoding device can be directly determine and decode according to this end position information, thereby improve decoding efficiency in guaranteeing to be correctly decoded.
Further, in another embodiment of the present invention, it can be the bar end of tape marker position assignment of all CU in current band, and be effective by the bar end of tape marker position assignment finishing in CU, make the value of the bar end of tape marker position that decoding device can obtain according to decoding in when decoding whether effectively determine whether decoding completes, thereby improve decoding efficiency in guaranteeing to be correctly decoded.
Fig. 2 has described the flow process of the band coding method that another embodiment of the present invention provides, and this embodiment comprises:
201, determine the band classified types of current division object according to discriminative information, according to definite band classified types, current division object is divided into band.
202, write the start position information of current band in start position information field, the band classified types information of current division object is write to classified types information field; It is first-class that this classified types information field can be positioned at the band of the head of sequence parameter set or the head of picture parameter set or band.
In one embodiment of the invention, start position information field only includes a field, can directly the start position information of current band be write to this field, now the start position information of current band can be for finishing the absolute location information of SCU in image.
In another embodiment of the present invention, start position information field comprises initial LCU location information field and initial SCU location information field; Now, the start position information that writes current band in start position information field is specially: if band classified types for by LCU division, the absolute location information of the initial LCU that only writes current band in initial LCU location information field in image; If band classified types is divided for pressing CU, write the absolute location information of initial LCU in image in initial LCU location information field, write the relative position information of initial SCU in initial LCU in initial SCU location information field.
203, the current band that has write start position information and band classified types information is encoded, output encoder code stream.
Wherein, specifically can adopt VLC coded system or non-VLC coded system to encode to current band.
In one embodiment of the invention, if adopt non-VLC coded system to encode to current band, before being encoded, current band may further include step: the end position information that writes current band at end position information field.Be understandable that, in the time adopting VLC coded system to encode to current band, also can before current band is encoded, comprise this step.End position information field can be positioned at the slice header of current band, also can be positioned at the head of sequence parameter set, also can be positioned at the first-class of picture parameter set.
In one embodiment of the invention, end position information field only includes a field, can directly the end position information of current band be write to this field, the length information that the end position information of for example current band is current band, now, the end position of current band can be determined jointly by the start position information of current band and the length information of current band; The length information of current band is specially in one embodiment of the invention: the quantity of the LCU that current band comprises and end CU are at the order relative position or the inverted order relative position that finish in LCU; Or the quantity of the CU that comprises of current band; Or the quantity of the SCU that comprises of current band.In another embodiment of the present invention, the end position information of current band also can be for finishing the absolute location information of SCU in image.
In another embodiment of the present invention, end position information field comprises end LCU location information field and finishes SCU location information field; Now, the end position information that writes current band at end position information field is specially: if band classified types for dividing by LCU, the absolute location information of the end LCU that only writes current band in end LCU location information field in image; If band classified types is for pressing CU division, write and finish the absolute location information of LCU in image in end LCU location information field, write and finish the relative position information of SCU in end LCU in end SCU location information field.
In another embodiment of the present invention, if adopting non-VLC coded system encodes to current band, in the time that band classified types is divided for pressing LCU, current band is encoded to take a step forward and comprise: be the bar end of tape marker position assignment of all LCU in current band, bar end of tape marker position is positioned at last position that the data of last SCU of each LCU that current band comprises are carried only, wherein finishes bar end of tape marker position assignment in LCU for effectively.In the time that band classified types is divided for pressing CU, current band is encoded to take a step forward and comprise: be the bar end of tape marker position assignment of all CU in current band, bar end of tape marker position is positioned at last position that the data of last SCU of each CU that current band comprises are carried only, wherein finishes bar end of tape marker position assignment in CU for effectively.Be understandable that, in the time adopting VLC coded system to encode to current band, also can before current band is encoded, comprise this step.
From the above, the present embodiment can be determined according to discriminative information the band classified types of current division object, according to definite band classified types, current division object is divided into band, make the data volume size of the band being divided into can adapt to network, and can adopt different band dividing mode at different networks, thereby strengthen network compatibility; Simultaneously, the present embodiment can also write classified types information field by the band classified types information of current division object, make decoding device can know the classified types of current band, thereby determine according to this classified types information whether decoding completes, in guaranteeing to be correctly decoded, improve decoding efficiency.
Further, in another embodiment of the present invention, the start position information field using comprises initial LCU location information field and/or initial SCU location information field, make decoding device can directly resolve the positional information in initial LCU location information field and/or initial SCU location information field in the time of decoding, the positional information obtaining according to parsing is again directly targeted to the original position of band, thereby improves decoding efficiency.Because decoding device can be known the classified types of current band, in the time that current band is pressed LCU and is divided, can be only to initial LCU location information field data writing, and do not need to initial SCU location information field data writing, thereby can reduce the data volume that need to write, improve code efficiency; Also can make decoding device not need to resolve initial SCU location information field, further improve decoding efficiency.
Further, in another embodiment of the present invention, can write at end position information field the end position information of current band, make decoding device can be directly determine and decode according to this end position information, thereby improve decoding efficiency in guaranteeing to be correctly decoded.In another embodiment of the present invention, the end position information field using comprises end LCU location information field and/or finishes SCU location information field, decoding device can directly be resolved in the time of decoding to be finished LCU location information field and/or finishes the positional information in SCU location information field, the positional information obtaining according to parsing is again directly targeted to the end position of band, thereby improves decoding efficiency.If decoding device can be known the classified types of current band, in the time that current band is pressed LCU and is divided, can be only to finishing LCU location information field data writing, and do not need to finishing SCU location information field data writing, thereby can reduce the data volume that need to write, improve code efficiency; Also can make decoding device not need to resolve and finish SCU location information field, further improve decoding efficiency.
Further, in another embodiment of the present invention, it can be the bar end of tape marker position assignment of all CU in current band, and be effective by the bar end of tape marker position assignment finishing in CU, make the value of the bar end of tape marker position that decoding device can obtain according to decoding in when decoding whether effectively determine whether decoding completes, thereby improve decoding efficiency in guaranteeing to be correctly decoded.If decoding device can be known the classified types of current band, therefore decoding device can, in the time that current band is pressed LCU division, only be resolved the end mark position of current last CU of band and just can determine whether decoding completes, and further improves decoding efficiency.
Fig. 3 has described the flow process of the band coding method that another embodiment of the present invention provides, and comprising:
301, by CU, current division object is divided into band.
302, write the start position information of current band in start position information field.
Wherein, start position information field can be positioned at the slice header of current band, also can be positioned at the head of sequence parameter set, also can be positioned at the first-class of picture parameter set.
The start position information of current band comprises: the relative position information of initial SCU in initial LCU in the absolute location information of initial LCU in image and current band in current band.
303, current band is encoded, output encoder code stream.
Wherein, specifically can adopt VLC coded system or non-VLC coded system to encode to current band.
In one embodiment of the invention, if adopt non-VLC coded system to encode to current band, before being encoded, current band may further include step: the end position information that writes current band at end position information field.Be understandable that, in the time adopting VLC coded system to encode to current band, also can before current band is encoded, comprise this step.End position information field can be positioned at the slice header of current band, also can be positioned at the head of sequence parameter set, also can be positioned at the first-class of picture parameter set.
In one embodiment of the invention, end position information field only includes a field, can directly the end position information of current band be write to this field, the length information that the end position information of for example current band is current band, now, the end position of current band can be determined jointly by the start position information of current band and the length information of current band; The length information of current band is specially in one embodiment of the invention: the quantity of the LCU that current band comprises and end CU are at the order relative position or the inverted order relative position that finish in LCU; Or the quantity of the CU that comprises of current band; Or the quantity of the SCU that comprises of current band.In another embodiment of the present invention, the end position information of current band also can be for finishing the absolute location information of SCU in image.
In another embodiment of the present invention, end position information field comprises end LCU location information field and finishes SCU location information field; Now, the end position information that writes current band at end position information field is specially: finishing end LCU that LCU location information field the writes current band absolute location information in image, writing and finish SCU and finishing the relative position information in LCU finishing SCU location information field.
In another embodiment of the present invention, if adopting non-VLC coded system encodes to current band, before being encoded, current band may further include step: the bar end of tape marker position assignment of all CU in for current band, this end of tape marker position is positioned at last position that the data of last SCU of each CU that current band comprises are carried only, wherein finishes bar end of tape marker position assignment in CU for effectively.Be understandable that, in the time adopting VLC coded system to encode to current band, also can before current band is encoded, comprise this step.
From the above, the operable start position information field of the present embodiment comprises initial LCU location information field and initial SCU location information field, make decoding device can directly resolve the positional information in initial LCU location information field and initial SCU location information field in the time of decoding, the positional information obtaining according to parsing is again directly targeted to the original position of band, thereby improves decoding efficiency.
Further, in another embodiment of the present invention, can write at end position information field the end position information of current band, make decoding device can be directly determine and decode according to this end position information, thereby improve decoding efficiency in guaranteeing to be correctly decoded.
Further, in another embodiment of the present invention, it can be the bar end of tape marker position assignment of all CU in current band, and be effective by the bar end of tape marker position assignment finishing in CU, make the value of the bar end of tape marker position that decoding device can obtain according to decoding in when decoding whether effectively determine whether decoding completes, thereby improve decoding efficiency in guaranteeing to be correctly decoded.
In the band coding method providing in the embodiment of the present invention, in the time that first LCU of current band is encoded, can further according to current C U, the positional information in first LCU determines whether, for current C U, division flag is set.Particularly, if current C U not in current division object range or current C U be of a size of the size of SCU, can not encode to the division flag of current C U.At current C U in current division object range and the size of current C U be greater than the size of SCU, and current C U end position is while being more than or equal to the position of the initial CU of current band, just the division flag of current C U is encoded.As can be seen here, the present embodiment can not encoded to the division flag of some CU, does not therefore need to transmit the data of these division flags, thereby can reduce taking of network, improves the utilization ratio of network.
Following introduce the band coding/decoding method that the embodiment of the present invention provides, Fig. 4 has described the flow process of the band coding/decoding method that one embodiment of the invention provides, and comprising again:
401, resolve the start position information of current band from start position information field.
In one embodiment of the invention, start position information field comprises initial LCU location information field and initial SCU location information field; In this situation, the start position information of resolving current band from start position information field is specially: resolve the absolute location information of the initial LCU of current band from initial LCU location information field, resolve the relative position information of the initial SCU of current band from initial SCU location information field.
402, start the decoding to current band according to start position information, and determined the decoding to current band according to preset processing mode.
In one embodiment of the invention, determined the decoding of current band has been specially according to preset processing mode: the end position information of resolving current band from end position information field; Determine the decoding to current band according to end position information.In one embodiment of the invention, end position information field comprises end LCU location information field and finishes SCU location information field; In this situation, the end position information of resolving current band from end position information field is specially: resolve the absolute location information of the end LCU of current band from finishing LCU location information field, resolve the relative position information of the end SCU of current band from finishing SCU location information field.In another embodiment of the present invention, the end position information of resolving the current band obtaining is the length information of current band, can determine whether the decoding to current band according to the start position information of this length information and current band; In another embodiment of the present invention, the end position information of resolving the current band obtaining is to finish the absolute location information of SCU, can directly determine whether decoding according to the absolute location information that finishes SCU.
In another embodiment of the present invention, determine the decoding of current band has been specially according to preset processing mode: whether the value of bar end of tape marker position that judges current C U is effective, if effectively, determined the decoding to current band, this end of tape marker position is positioned at clean last position of carrying of data of last SCU of current C U.
In another embodiment of the present invention, current band is to adopt VLC coded system coding to obtain, therefore determined according to preset processing mode and to the decoding of current band can be specifically: judged whether current C U also has data only to carry, if current C U does not have data only to carry, can confirm the decoding to current band.
The reconstruction image of the current band that 403, output decoding obtains.
From the above, in the present embodiment, current band is divided and is obtained according to band classified types, and band classified types is determined according to discriminative information, the size of the band being therefore divided into can adapt to network, and can adopt different band dividing mode at different networks, thereby strengthen network compatibility.
Further, in another embodiment of the present invention, the start position information field using comprises initial LCU location information field and initial SCU location information field, therefore can directly resolve the positional information in initial LCU location information field and initial SCU location information field, the positional information obtaining according to parsing is again directly targeted to the original position of band, thereby improves decoding efficiency.
Further, in another embodiment of the present invention, can be directly determine and decode according to end position information, thereby improve decoding efficiency in guaranteeing to be correctly decoded.
Further, in another embodiment of the present invention, whether the value of the bar end of tape marker position that can obtain according to decoding effectively determines whether decoding completes, thereby improves decoding efficiency in guaranteeing to be correctly decoded.
Fig. 5 has described the flow process of the band coding/decoding method that another embodiment of the present invention provides, and comprising:
501, from header, resolve the band classified types information that obtains current band.
502, resolve the start position information of current band from start position information field according to band classified types information.
In one embodiment of the invention, band classified types information is divided for pressing LCU, in this situation, the start position information of resolving current band from start position information field according to band classified types information is specially: resolve the absolute location information of the initial LCU of current band from initial LCU location information field, this start position information field only comprises described initial LCU location information field.In another embodiment of the present invention, band classified types information is divided for pressing CU, the start position information of resolving current band from start position information field according to band classified types information is specially: the absolute location information of resolving the initial LCU of current band from initial LCU location information field, resolve the relative position information of the initial SCU of current band from initial SCU location information field, start position information field comprises initial LCU location information field and initial SCU location information field.In another embodiment of the present invention, band classified types information is divided for pressing CU, the start position information of resolving current band from start position information field according to band classified types information is specially: resolve the absolute location information of the initial SCU of current band from initial SCU location information field, start position information field only comprises initial SCU location information field.
503, start the decoding to current band according to start position information, and determined the decoding to current band according to preset processing mode.
In one embodiment of the invention, determined the decoding of current band has been specially according to preset processing mode: the end position information of resolving current band from end position information field; Determine the decoding to current band according to end position information.In one embodiment of the invention, the end position information of resolving the current band obtaining is the length information of current band, can determine whether the decoding to current band according to the start position information of this length information and current band.In the time that current band is pressed LCU division, the quantity of the LCU that the length information of current band can comprise for current band; In the time that current band is pressed CU division, the quantity of the LCU that the length information of current band can comprise for current band and end CU are at the order relative position or the inverted order relative position that finish in LCU; Or the quantity of the CU that comprises of current band; Or the quantity of the SCU that comprises of current band.
In another embodiment of the present invention, determined the decoding of described current band has been specially according to preset processing mode: the end position information of resolving current band according to band classified types information from end position information field; Determine the decoding to current band according to end position information.In one embodiment of the invention, the end position information of resolving current band according to band classified types information from end position information field, particularly: in one embodiment of the invention, band classified types information is divided for pressing LCU, the end position information of resolving current band from end position information field according to band classified types information is specially: resolve the absolute location information of the end LCU of current band from finishing LCU location information field, end position information field only comprises end LCU location information field.In another embodiment of the present invention, band classified types information is divided for pressing CU, the end position information of resolving current band from end position information field according to band classified types information is specially: the absolute location information of resolving the end LCU of current band from finishing LCU location information field, resolve the relative position information of the end SCU of current band from finishing SCU location information field, end position information field comprises end LCU location information field and finishes SCU location information field; In another embodiment of the present invention, band classified types information is divided for pressing CU, the end position information of resolving current band from end position information field according to band classified types information is specially: resolve the absolute location information of the end SCU of current band from finishing SCU location information field, end position information field only comprises end SCU location information field.
In another embodiment of the present invention, determine the decoding of current band has been specially according to preset processing mode: if band classified types information is for to divide by LCU, whether the value of bar end of tape marker position that judges current LCU is effective, if effectively, determined the decoding to current band, bar end of tape marker position is positioned at clean last position of carrying of data of last SCU of current LCU.If band classified types information is divided for pressing CU, whether the value of bar end of tape marker position that judges current C U is effective, if effectively, determined the decoding to current band, bar end of tape marker position is positioned at clean last position of carrying of data of last SCU of current C U.
In another embodiment of the present invention, current band is to adopt VLC coded system coding to obtain, therefore determined according to preset processing mode and to the decoding of current band can be specifically: judged whether current C U also has data only to carry, if current C U does not have data only to carry, can confirm the decoding to current band.
The reconstruction image of the current band that 504, output decoding obtains.
From the above, in the present embodiment, current band is divided and is obtained according to band classified types, and band classified types is determined according to discriminative information, the size of the band being therefore divided into can adapt to network, and can adopt different band dividing mode at different networks, thereby strengthen network compatibility; Meanwhile, the present embodiment can also be known the classified types of current band according to the band classified types information that is resolved to, thereby determines according to this classified types information whether decoding completes, and in guaranteeing to be correctly decoded, improves decoding efficiency.
Further, in another embodiment of the present invention, the start position information field using comprises initial LCU location information field and initial SCU location information field, therefore can directly resolve the positional information in initial LCU location information field and initial SCU location information field, the positional information obtaining according to parsing is again directly targeted to the original position of band, thereby improves decoding efficiency.Owing to can knowing the classified types of current band, in the time that current band is pressed LCU and is divided, can be only to initial LCU location information field data writing, and do not need to initial SCU location information field data writing, thereby can reduce the data volume that need to write, improve code efficiency; Do not need to resolve initial SCU location information field, further improve decoding efficiency yet.
Further, in another embodiment of the present invention, can be directly determine and decode according to end position information, thereby improve decoding efficiency in guaranteeing to be correctly decoded.In another embodiment of the present invention, the end position information field using comprises end LCU location information field and finishes SCU location information field, therefore can directly resolve and finish LCU location information field and finish the positional information in SCU location information field, the positional information obtaining according to parsing is again directly targeted to the end position of band, thereby improves decoding efficiency.Owing to can knowing the classified types of current band, therefore do not need to resolve and finish SCU location information field, further improve decoding efficiency.
Further, in another embodiment of the present invention, whether the value of the bar end of tape marker position that can obtain according to decoding effectively determines whether decoding completes, thereby improves decoding efficiency in guaranteeing to be correctly decoded.Owing to can knowing the classified types of current band, therefore can, in the time that current band is pressed LCU division, only resolve the end mark position of current last CU of band and just can determine whether decoding completes, and further improves decoding efficiency.
Fig. 6 has described the flow process of the band coding/decoding method that another embodiment of the present invention provides, and comprising:
601, resolve the start position information of current band from start position information field.
Wherein, the start position information of current band comprises: the relative position information of initial SCU in initial LCU in the absolute location information of initial LCU in image and current band in current band.
In one embodiment of the invention, start position information field comprises initial LCU location information field and initial SCU location information field; In this situation, the start position information of resolving current band from start position information field is specially: resolve the absolute location information of the initial LCU of current band from initial LCU location information field, resolve the relative position information of the initial SCU of current band from initial SCU location information field.
602, start the decoding to current band according to start position information, and determined the decoding to current band according to preset processing mode.
In one embodiment of the invention, determined the decoding of current band has been specially according to preset processing mode: the end position information of resolving current band from end position information field; Determine the decoding to current band according to end position information.Wherein, end position information field comprises end LCU location information field and finishes SCU location information field; In this situation, the end position information of resolving current band from end position information field is specially: resolve the absolute location information of the end LCU of current band from finishing LCU location information field, resolve the relative position information of the end SCU of current band from finishing SCU location information field.In another embodiment of the present invention, the end position information of resolving the current band obtaining is the length information of current band, can determine whether the decoding to current band according to the start position information of this length information and current band.Wherein, the quantity of the LCU that the length information of current band can comprise for current band and end CU are at the order relative position or the inverted order relative position that finish in LCU; Or the quantity of the CU that comprises of current band; Or the quantity of the SCU that comprises of current band.In another embodiment of the present invention, the end position information of resolving the current band obtaining is to finish the absolute location information of SCU, can directly determine whether decoding according to the absolute location information that finishes SCU.
The reconstruction image of the current band that 603, output decoding obtains.
From the above, the operable start position information field of the present embodiment comprises initial LCU location information field and initial SCU location information field, therefore can directly resolve the positional information in initial LCU location information field and initial SCU location information field, the positional information obtaining according to parsing is again directly targeted to the original position of band, thereby improves decoding efficiency.
Further, in another embodiment of the present invention, can be directly determine and decode according to this end position information, thereby improve decoding efficiency in guaranteeing to be correctly decoded.
Further, in another embodiment of the present invention, whether the value of the bar end of tape marker position that can obtain according to decoding effectively determines whether decoding completes, thereby improves decoding efficiency in guaranteeing to be correctly decoded.
In the band coding/decoding method providing in the embodiment of the present invention, the process that starts the decoding to current band according to start position information can comprise: if current C U not in described current division object range or current C U be of a size of the size of SCU, the not division flag decoding to current C U; If current C U in current division object range and the size of current C U be greater than the size of SCU, and the original position of current C U is more than or equal to the position of the initial CU of band, just the division flag of current C U decoded.As can be seen here, the present embodiment can not encoded to the division flag of some CU, does not therefore need to transmit the data of these division flags, thereby can reduce taking of network, improves the utilization ratio of network.
Introduce again as follows the HEVC syntactic structure that the embodiment of the present invention provides.
In table, C field represents the classification of this syntactic element; Descripter formulates the descriptor of corresponding grammer.
1), in the time that start position information field comprises initial LCU location information field and initial SCU location information field, the syntactic structure of the HEVC slice header original position that one embodiment of the invention provides as shown in Table 1.
Table 1
slice_header(){ C Descriptor
first_lcu_is_zero_flag 2 u(1)
if(first_lcu_is_zero_flag==0){
first_lcu_in_slice_minus_1 2 u(v)
}
first_scu_is_zero_flag 2 u(1)
if(first_scu_is_zero_flag==0){
first_scu_in_slice_minus_1 2 u(v)
}
}
In table 1, first_lcu_is_zero_flag is first LCU in image for the LCU of designation strip band original position, if first_lcu_is_zero_flag equals 1, the initial LCU position of band is made as 0, and band decoding starts certain CU from first LCU of image.
First_lcu_in_slice_minus_1 is used for the position (SliceStartLCUAddress) of first LCU that indicates band, and band decoding starts certain CU from this LCU.The calculating of SliceStartLCUAddress is as shown in formula one.
SliceStartLCUAddress=first_lcu_in_slice_minus_1+1 (formula one)
First_scu_is_zero_flag is first CU of initial LCU for the CU of designation strip band original position, if first_scu_is_zero_flag equals 1, the initial CU position of band is made as 0, and band is decoded from first CU of initial LCU.
First_scu_in_slice_minus_1 is for indicating first CU of band at the particular location (SliceStartSCUAddress) of initial LCU, it is the upper left corner SCU of first CU of the band relative position skew in affiliated LCU, band is decoded from this CU, and the calculating of SliceStartSCUAddress is as shown in formula two.
SliceStartSCUAddress=first_scu_in_slice_minus_1+1 (formula two)
When decoding, in the process of resolving slice header, obtain in two steps start position information:
The first step: first obtain the LCU under band original position according to the information of the first order: first resolve first_lcu_is_zero_flag and determine whether the initial LCU of band is first LCU of image, if not the particular location that needs further to resolve first_lcu_in_slice_minus_1 and calculate the initial LCU of band, concrete computational process is as shown in above-mentioned formula one.
Second step: resolve again first_scu_is_zero_flag and determine whether the initial CU of band is first CU in LCU.In the band based on LCU is divided, the value of first_scu_is_zero_flag must be 1, does not need further to resolve the information of the second level, and band is decoded from first CU of the initial LCU of band; In the band based on CU is divided, first_scu_is_zero_flag may be 0, need the information of further resolving the second level to locate accurately the original position (SliceStartSCUAddress) that band is decoded, concrete computational process is as shown in above-mentioned formula two, and the band CU that relative position is SliceStartSCUAddress from the initial LCU of band that decodes starts.
2) in the time that end position information field comprises end LCU location information field and finishes SCU location information field, be that to finish the order absolute position of LCU in image and finish SCU positional information be when finishing SCU and finishing the order relative position in LCU finishing LCU positional information, the syntactic structure of the HEVC slice header end position that one embodiment of the invention provides is as shown in table 2.
Table 2
slice_header(){ C Descriptor
last_lcu_is_zero_flag 2 u(1)
if(last_lcu_is_zero_flag==0){
last_lcu_in_slice_minus_1 2 u(v)
}
last_scu_is_end_flag 2 u(1)
if(last_scu_is_end_flag==0){
last_scu_in_slice_minus_1 2 u(v)
}
}
In table 2, last_lcu_is_zero_flag is first LCU in image for the LCU of designation strip end of tape position, if last_lcu_is_zero_flag equals 1, the LCU position of the bar end of tape is made as 0, and band is decoded certain CU ending in first LCU.
Last_lcu_in_slice_minus_1 is used for the position (SliceEndLCUAddress) of last LCU that indicates band, and band is decoded certain CU ending in this LCU, and SliceEndLCUAddress calculates as shown in formula three.
SliceEndLCUAddress=last_lcu_in_slice_minus_1+1 (formula three)
Whether last_scu_is_end_flag finishes last CU of LCU for the CU of designation strip end of tape position, if last_scu_is_end_flag equals 1, the CU position of the bar end of tape is made as last CU of LCU, and band decodes to last the CU cut-off that finishes LCU.
Last_scu_in_slice_minus_1 is for indicating last CU of band at the particular location (SliceEndSCUAddress) of end LCU, be the lower right corner SCU of last CU of the band relative position skew in affiliated LCU, band decodes to this CU cut-off.SliceEndSCUAddress calculates as shown in formula four.
SliceEndSCUAddress=NumSCUsInLCU-2-last_scu_in_slice_minus_1
(formula four)
Wherein, total number of the SCU that in formula four, NumSCUsInLCU comprises for a LCU.
When decoding, in the process of resolving slice header, obtain in two steps end position information:
The first step: first obtain the LCU under band end position according to the information of the first order: first resolve last_lcu_is_zero_flag and determine whether bar end of tape LCU is first LCU of image, if not the particular location that needs further to resolve last_lcu_in_slice_minus_1 and calculate the initial LCU of band, concrete computational process is as shown in above-mentioned formula four.
Second step: resolve again last_scu_is_end_flag and determine whether bar end of tape CU is last CU in LCU.In the band based on LCU is divided, the value of last_scu_is_end_flag must be 1, does not need further to resolve the information of the second level, and band decodes to that last CU of bar end of tape LCU finishes; In the band based on CU is divided, last_scu_is_end_flag may be 0, need the information of further resolving the second level to locate accurately the end position (SliceEndSCUAddress) that band is decoded, concrete computational process is as shown in above-mentioned formula four, and band decodes to that the CU that in bar end of tape LCU, relative position is SliceEndSCUAddress finishes.
3) in the time that end position information field comprises end LCU location information field and finishes SCU location information field, be that to finish the inverted order absolute position of LCU in image and finish SCU positional information be when finishing SCU and finishing the inverted order relative position in LCU finishing LCU positional information, the syntactic structure of the HEVC slice header end position that one embodiment of the invention provides is as shown in table 3.
Table 3
slice_header(){ C Descriptor
last_lcu_is_end_flag 2 u(1)
if(last_lcu_is_end_flag==0){
last_lcu_in_slice_minus_1 2 u(v)
}
}
In table 3, last_lcu_is_end_flag is last LCU in image for the LCU of designation strip end of tape position, if last_lcu_is_end_flag equals 1, the LCU position of the bar end of tape is made as NumLCUsInPicture-1, total number of the LCU that wherein NumLCUsInPicture comprises for a video image.Band is decoded certain CU ending in last LCU of image.
Last_lcu_in_slice_minus_1 is used for the position (SliceEndLCUAddress) of last LCU that indicates band, and band is decoded certain CU ending in this LCU.SliceEndLCUAddress calculates as shown in formula five.
SliceEndLCUAddress=NumLCUsInPicture-2-last_lcu_in_slice_minus_1
(formula five)
4), in the time that CU has bar end of tape marker position, the syntactic structure of the HEVC coding unit end mark position that one embodiment of the invention provides is as shown in table 4.
Table 4
coding_unit(...,&moreDataFlag){ C Descriptor
if(split_coding_unit_flag){
}else{
if(!entropy_coding_mode_flag) 2 u(v)
moreDataFlag=more_rbsp_data()
else{
end_of_slice_flag
moreDataFlag=!end_of_slice_flag
}
}
}
In table 4, whether split_coding_unit_flag will further divide for indicating current CU.Split_coding_unit_flag equals 1, and current C U will continue to be split into the CU of the darker one-level that four grades are large; Split_coding_unit_flag equals 0, and current C U no longer divides, and is the CU of the afterbody of encoding.
MoreDataFlag is for indicating the follow-up data that whether also have current band.MoreDataFlag equals 1, and current band also has more data etc. to be decoded, and band decoding will continue; MoreDataFlag equals 0, and the data of current band have all been decoded completely, and band decoding will finish.
More_rbsp_data is used for judging whether clean the carrying of data finishes.If current band does not have more data only to carry, this operation returns to 0, otherwise returns to 1.
Entropy_coding_mode_flag is for choosing the entropy coded system of syntactic element.Entropy_coding_mode_flag equals 0, represents that this kind of coding method can, by judging that bit stream data finishes to infer the end of band, not need to write bar end of tape marker position; Entropy_coding_mode_flag equals 1, represents that this kind of coding method can not, by judging that bit stream data finishes to infer the end of band, need a little bar end of tape markers position.
End_of_slice_flag is band end-marker bit.End_of_slice_flag equals 1, represents that current C U is last CU in band, and band decoding finishes; End_of_slice_flag equals 0, represents that current C U is not last CU in band, and current band need continue the next CU that decodes.
When decoding, can first judge whether to continue division according to split_coding_unit_flag to each CU, if split_coding_unit_flag equals 1, current C U is split into four less CU, and each CU is carried out to identical CU parse operation; Until the split_coding_unit_flag of certain CU equals 0, current C U is actual unit of decoding, and enters decoding and rebuilding process, and after current decoding and rebuilding finishes, resolves bar end of tape marker position.Its process is that the first entropy type of coding that judges current band according to entropy_coding_mode_flag, if entropy_coding_mode_flag equals 0, carrys out the assignment to moreDataFlag according to operation more_rbsp_data (); If entropy_coding_mode_flag equals 1, need to resolve flag bit end_of_slice_flag, and equal 1 to moreDataFlag assignment moreDataFlag, band decoding will continue; MoreDataFlag equals 0, and band decoding will finish.
5), in the time that start position information field comprises initial LCU location information field and/or initial SCU location information field, the syntactic structure of the HEVC slice header original position that one embodiment of the invention provides is as shown in table 5 or table 6.
Table 5
slice_header(){ C Descriptor
first_lcu_is_zero_flag 2 u(1)
if(first_lcu_is_zero_flag==0){
first_lcu_in_slice_minus_1 2 u(v)
}
if(lcu_slice_flag==0){
first_scu_is_zero_flag 2 u(1)
if(first_scu_is_zero_flag==0){
first_scu_in_slice_minus_1 2 u(v)
}
}
}
Table 6
slice_header(){ C Descriptor
if(lcu_slice_flag==1){
first_lcu_is_zero_flag 2 u(1)
if(first_lcu_is_zero_flag==0){
first_lcu_in_slice_minus_1 2 u(v)
}
}else{
first_scu_is_zero_flag 2 u(1)
if(first_scu_is_zero_flag==0){
first_scu_in_slice_minus_1 2 u(v)
}
}
}
In table 5 and table 6, first_lcu_is_zero_flag is first LCU in image for the LCU of designation strip band original position, if first_lcu_is_zero_flag equals 1, the initial LCU position of band is made as 0, and band decoding starts certain CU from first LCU of image.
First_lcu_in_slice_minus_1 is used for the position (SliceStartLCUAddress) of first LCU that indicates band, and band decoding starts certain CU from this LCU.SliceStartLCUAddress calculates as shown in formula six.
SliceStartLCUAddress=first_lcu_in_slice_minus_1+1 (formula six)
Lcu_slice_flag is for indicating the classified types of current band, and lcu_slice_flag equals the current band of 1 expression and divides based on LCU, does not need further to write exactly the position of the initial CU of band; Lcu_slice_flag equals the current band of 0 expression and divides based on CU, needs further to write exactly the position of the initial CU of band.The value of this identifier is generally resolved and is obtained by method as shown in embodiment mono-, also may arrange by default value.
In table 5, first_scu_is_zero_flag is first CU of initial LCU for the CU of designation strip band original position, if first_scu_is_zero_flag equals 1, the initial CU position of band is made as 0, and band is decoded from first CU of initial LCU.In table 6, first_scu_is_zero_flag is first CU of image for the CU of designation strip band original position, if first_scu_is_zero_flag equals 1, the initial CU position of band is made as 0, and band is decoded from first CU of image.
In table 5, first_scu_in_slice_minus_1 is for indicating first CU of band at the particular location (SliceStartSCUAddress) of initial LCU, be the upper left corner SCU of first CU of the band relative position skew in affiliated LCU, band is decoded from this CU.SliceStartSCUAddress calculates as shown in formula seven.
SliceStartSCUAddress=first_scu_in_slice_minus_1+1 (formula seven)
In table 6, first_scu_in_slice_minus_1 is for indicating first CU of band at the particular location (SliceStartSCUAddress) of image, be the upper left corner SCU of first CU of the band absolute position shifted in affiliated image, band is decoded from this CU.SliceStartSCUAddress calculates also as shown in formula seven.
When decoding, in the process of resolving slice header, obtain in two steps start position information:
The first step: first obtain the LCU under band original position according to the information of the first order: first resolve first_lcu_is_zero_flag and determine whether the initial LCU of band is first LCU of image, if not the particular location that needs further to resolve first_lcu_in_slice_minus_1 and calculate the initial LCU of band, concrete computational process is as shown in above-mentioned formula six.
Second step: judge band classified types according to lcu_slice_flag again.Lcu_slice_flag equals 1, and the band being shown to be based on LCU is divided, and does not need further to resolve the information of the second level, and band is decoded from first CU of the initial LCU of band; Lcu_slice_flag equals 0, and the band being shown to be based on CU is divided, and needs the information of further resolving the second level to locate accurately the original position (SliceStartSCUAddress) that band is decoded.First resolve first_scu_is_zero_flag and determine whether the initial CU of band is first CU of affiliated LCU, if not the particular location that needs further to resolve first_scu_in_slice_minus_1 and calculate the initial CU of band, concrete computational process is as shown in above-mentioned formula seven, and the band CU that relative position is SliceStartSCUAddress from the initial LCU of band that decodes starts.
Or
The first step: judge band classified types according to lcu_slice_flag.
Second step: if lcu_slice_flag equals 1, the band being shown to be based on LCU is divided, and only needs to resolve the position of the initial LCU of band.First resolve first_lcu_is_zero_flag and determine whether the initial LCU of band is first LCU of image, if not the particular location that needs further to resolve first_lcu_in_slice_minus_1 and calculate the initial LCU of band, concrete computational process is as shown in above-mentioned formula six; If lcu_slice_flag equals 0, the band being shown to be based on CU is divided, and needs to resolve the position of the initial SCU of band.First resolve first_scu_is_zero_flag and determine whether the initial CU of band is first CU of affiliated LCU, if not the particular location that needs further to resolve first_scu_in_slice_minus_1 and calculate the initial CU of band, concrete computational process is as shown in above-mentioned formula seven, and the band CU that relative position is SliceStartSCUAddress from the initial LCU of band that decodes starts.
6) in the time that end position information field comprises end LCU location information field and finishes SCU location information field, be that to finish the order absolute position of LCU in image and finish SCU positional information be when finishing SCU and finishing the order relative position in LCU finishing LCU positional information, the syntactic structure of the HEVC slice header end position that one embodiment of the invention provides is as shown in table 7 or table 8.
Table 7
slice_header(){ C Descriptor
last_lcu_is_zero_flag 2 u(1)
if(last_lcu_is_zero_flag==0){
last_lcu_in_slice_minus_1 2 u(v)
}
if(lcu_slice_flag==0){
last_scu_is_zero_flag 2 u(1)
if(last_scu_is_zero_flag==0){
last_scu_in_slice_minus_1 2 u(v)
}
}
}
Table 8
slice_header(){ C Descriptor
if(lcu_slice_flag==0){
last_lcu_is_zero_flag 2 u(1)
if(last_lcu_is_zero_flag==0){
last_lcu_in_slice_minus_1 2 u(v)
}
}else{
last_scu_is_zero_flag 2 u(1)
if(last_scu_is_zero_flag==0){
last_scu_in_slice_minus_1 2 u(v)
}
}
}
In table 7 and table 8, last_lcu_is_zero_flag is first LCU in image for the LCU of designation strip end of tape position, if last_lcu_is_zero_flag equals 1, the LCU position of the bar end of tape is made as 0, and band is decoded certain CU ending in first LCU.
Last_lcu_in_slice_minus_1 is used for the position (SliceEndLCUAddress) of last LCU that indicates band, and band is decoded certain CU ending in this LCU.SliceEndLCUAddress calculates as shown in formula eight.
SliceEndLCUAddress=last_lcu_in_slice_minus_1+1 (formula eight)
Lcu_slice_flag is for indicating the classified types of current band, and lcu_slice_flag equals the current band of 1 expression and divides based on LCU, does not need further to write exactly the position of bar end of tape CU; Lcu_slice_flag equals the current band of 0 expression and divides based on CU, needs further to write exactly the position of bar end of tape CU.The value of this identifier is generally resolved and is obtained by method as shown in embodiment mono-, also may arrange by default value.
In table 7, whether last_scu_is_zero_flag finishes first CU of LCU for the CU of designation strip end of tape position, if last_scu_is_zero_flag equals 1, the CU position of the bar end of tape is made as 0, and band decodes to first CU cut-off that finishes LCU.In table 8, last_scu_is_zero_flag is first CU of image for the CU of designation strip end of tape position, if last_scu_is_zero_flag equals 1, the CU position of the bar end of tape is made as 0, and band decodes to first CU cut-off of image.
In table 7, last_scu_in_slice_minus_1 is for indicating last CU of band at the particular location (SliceEndSCUAddress) of end LCU, be the lower right corner SCU of last CU of the band relative position skew in affiliated LCU, band decodes to this CU cut-off.SliceEndSCUAddress calculates as shown in formula nine.
SliceEndSCUAddress=last_scu_in_slice_minus_1+1 (formula nine)
In table 8, last_scu_in_slice_minus_1 is for indicating last CU of band at the particular location (SliceEndSCUAddress) of image, be the lower right corner SCU of last CU of the band absolute position in affiliated image, band decodes to this CU cut-off.SliceEndSCUAddress calculates as shown in formula nine.
When decoding, in the process of resolving slice header, obtain in two steps end position information:
The first step: first obtain the LCU under band end position according to the information of the first order: first resolve last_lcu_is_zero_flag and determine whether bar end of tape LCU is first LCU of image, if not the particular location that needs further to resolve last_lcu_in_slice_minus_1 and calculate the initial LCU of band, concrete computational process is as shown in above-mentioned formula eight.
Second step: judge band classified types according to lcu_slice_flag again.Lcu_slice_flag equals 1, and the band being shown to be based on LCU is divided, and does not need further to resolve the information of the second level, and band decodes to that last CU of bar end of tape LCU finishes, lcu_slice_flag equals 0, the band being shown to be based on CU is divided, need the information of further resolving the second level to locate accurately the end position (SliceEndSCUAddress) that band is decoded, first resolve last_scu_is_zero_flag and determine whether bar end of tape CU is first CU of affiliated LCU, if not the particular location that needs further to resolve last_scu_in_slice_minus_1 and calculate bar end of tape CU, concrete computational process is as shown in above-mentioned formula nine, band decodes to that the CU that in bar end of tape LCU, relative position is SliceEndSCUAddress finishes.
Or
The first step: judge band classified types according to lcu_slice_flag.
Second step: if lcu_slice_flag equals 1, the band being shown to be based on LCU is divided, and only needs to resolve the position of bar end of tape LCU.First resolve first_lcu_is_zero_flag and determine whether bar end of tape LCU is first LCU of image, if not the particular location that needs further to resolve first_lcu_in_slice_minus_1 and calculate bar end of tape LCU, concrete computational process is as shown in above-mentioned formula eight; If lcu_slice_flag equals 0, the band being shown to be based on CU is divided, and needs to resolve the position of bar end of tape SCU.First resolve first_scu_is_zero_flag and determine whether bar end of tape CU is first CU of affiliated LCU, if not the particular location that needs further to resolve first_scu_in_slice_minus_1 and calculate bar end of tape CU, concrete computational process is as shown in above-mentioned formula nine, and the band CU that relative position is SliceStartSCUAddress from bar end of tape LCU that decodes starts.
7) in the time that end position information field comprises end LCU location information field and/or finishes SCU location information field, be that to finish the inverted order absolute position of LCU in image and finish SCU positional information be when finishing SCU and finishing the inverted order relative position in LCU finishing LCU positional information, the syntactic structure of the HEVC slice header end position that one embodiment of the invention provides is as shown in table 9.
Table 9
slice_header(){ C Descriptor
if(lcu_slice_flag==0){
last_scu_is_end_flag 2 u(1)
if(last_scu_is_end_flag==0){
last_scu_in_slice_minus_1 2 u(v)
}
}
}
In table 9, lcu_slice_flag is for indicating the classified types of current band, and lcu_slice_flag equals the current band of 1 expression and divides based on LCU, does not need further to write exactly the position of bar end of tape CU; Lcu_slice_flag equals the current band of 0 expression and divides based on CU, needs further to write exactly the position of bar end of tape CU.The value of this identifier is generally resolved and is obtained by method as shown in embodiment mono-, also may arrange by default value.
Whether last_scu_is_end_flag finishes last CU of LCU for the CU of designation strip end of tape position, if last_scu_is_end_flag equals 1, the CU position of the bar end of tape is made as last CU of LCU, and band decodes to last the CU cut-off that finishes LCU.
Last_scu_in_slice_minus_1 is for indicating last CU of band at the particular location (SliceEndSCUAddress) of end LCU, be the lower right corner SCU of last CU of the band relative position skew in affiliated LCU, band decodes to this CU cut-off.SliceEndSCUAddress calculates as formula ten.
SliceEndSCUAddress=NumSCUsInLCU-2-last_scu_in_slice_minus_1
(formula ten)
In formula ten, total number of the SCU that NumSCUsInLCU comprises for a LCU.
8) have bar end of tape marker position constantly at CU, the syntactic structure of the HEVC coding unit end mark position that one embodiment of the invention provides is as shown in table 10 or table 11.
Table 10
coding_unit(...,&moreDataFlag){ C Descriptor
if(split_coding_unit_flag){
}else{
if(last_lcu_is_end_flag==0){
if(!entropy_coding_mode_flag) 2 u(v)
moreDataFlag=more_rbsp_data()
else{
end_of_slice_flag
moreDataFlag=!end_of_slice_flag
}
}
}
}
Table 11
slice_data(){ C Descriptor
moreDataFlag=1
do{
coding_unit(...,moreDataFlag) 2|3|4
if(last_lcu_is_end_flag==1){
if(!entropy_coding_mode_flag)
moreDataFlag=more_rbsp_data()
else{
end_of_slice_flag 2 ae(v)
moreDataFlag=!end_of_slice_flag
}
}
}while(moreDataFlag)
}
In table 10 and table 11, lcu_slice_flag is for indicating the classified types of current band, and lcu_slice_flag equals the current band of 1 expression and divides based on LCU, does not need further to write exactly the position of bar end of tape CU; Lcu_slice_flag equals the current band of 0 expression and divides based on CU, needs further to write exactly the position of bar end of tape CU.The value of this identifier is generally resolved and is obtained by method as shown in embodiment mono-, also may arrange by default value.
Whether split_coding_unit_flag will further divide for indicating current CU.Split_coding_unit_flag equals 1, and current C U will continue to be split into the CU of the darker one-level that four grades are large; Split_coding_unit_flag equals 0, and current C U no longer divides, and is the CU of the afterbody of encoding.
MoreDataFlag is for indicating the follow-up data that whether also have current band.MoreDataFlag equals 1, and current band also has more data etc. to be decoded, and band decoding will continue; MoreDataFlag equals 0, and the data of current band have all been decoded completely, and band decoding will finish.
More_rbsp_data is used for judging whether clean the carrying of data finishes.If current band does not have more data only to carry, this operation returns to 0, otherwise returns to 1.
Entropy_coding_mode_flag is for choosing the entropy coded system of syntactic element.Entropy_coding_mode_flag equals 0, represents that this kind of coding method can, by judging that bit stream data finishes to infer the end of band, not need to write bar end of tape marker position; Entropy_coding_mode_flag equals 1, represents that this kind of coding method can not, by judging that bit stream data finishes to infer the end of band, need a little bar end of tape markers position.
End_of_slice_flag is band end-marker bit.End_of_slice_flag equals 1, represents that current C U is last CU in band, and band decoding finishes; End_of_slice_flag equals 0, represents that current C U is not last CU in band, and current band need continue the next CU that decodes.
When decoding, can first judge whether to continue division according to split_coding_unit_flag to each CU, if split_coding_unit_flag equals 1, current C U is split into four less CU, and each CU is carried out to identical CU parse operation; Until the split_coding_unit_flag of certain CU equals 0, current C U is actual unit of decoding, and enters decoding and rebuilding process, and finishes to judge whether to be the band division based on CU at current decoding and rebuilding, if resolve bar end of tape marker, otherwise do not resolve.
Bar end of tape marker resolving is, first judge the entropy type of coding of current band according to entropy_coding_mode_flag, if entropy_coding_mode_flag equals 0, carry out the assignment to moreDataFlag according to operation more_rbsp_data (); If entropy_coding_mode_flag equals 1, need to resolve flag bit end_of_slice_flag, and equal 1 to moreDataFlag assignment moreDataFlag, band decoding will continue; MoreDataFlag equals 0, and band decoding will finish.
In strip data decoding grammer, each LCU is circulated, the end of each circulation also can judge whether it is to divide based on CU band, if not resolve bar end of tape marker, if do not resolve.Resolving is the same.
9) when the length information that is band in the end position information of band, if band is to divide by LCU, can in slice header, increase the LCU length information of band, the band length syntactic structure that one embodiment of the invention provides is as shown in table 12.
Table 12
slice_header(){ C Descriptor
slice_length_lcu 2 u(v)
}
Slice_length_lcu is for indicating the total number of LCU that current band comprises.The position (SliceEndLCUAddress) of bar end of tape LCU can be calculated according to formula 11 according to the position of this value and initial LCU (SliceStartLCUAddress), and band decoding ends at the LCU that SliceEndLCUAddress is corresponding.
SliceEndLCUAddress=SliceStartLCUAddress+slice_length_lcu
(formula 11)
10) when the length information that is band in the end position information of band, if band is to divide by CU, can in slice header, increase the LCU length information of band and finish SCU at the relative position information finishing in LCU, the band length syntactic structure that one embodiment of the invention provides is as shown in table 13, in this embodiment, finishing SCU is order relative position information at the relative position information finishing in LCU.
Table 13
slice_header(){ C Descriptor
slice_length_lcu 2 u(v)
last_scu_in_slice_minus_1 2 u(v)
}
Slice_length_lcu is for indicating the total number of LCU that current band comprises.The position (SliceEndLCUAddress) of bar end of tape LCU can be calculated according to formula 12 according to the position of this value and initial LCU (SliceStartLCUAddress), and band decoding is by certain CU ending in LCU that SliceEndLCUAddress is corresponding.
SliceEndLCUAddress=SliceStartLCUAddress+slice_length_lcu (formula 12)
Last_scu_in_slice_minus_1 is for indicating last CU of band at the particular location (SliceEndSCUAddress) of end LCU, be the lower right corner SCU of last CU of the band relative position in affiliated LCU, band decodes to the CU cut-off that SliceEndSCUAddress is corresponding.SliceEndSCUAddress calculates can be as shown in formula 13.
SliceEndSCUAddress=last_scu_in_slice_minus_1+1 (formula 13)
11) when the length information that is band in the end position information of band, if band is to divide by CU, can in slice header, increase the CU length information of band, the band length syntactic structure that one embodiment of the invention provides is as shown in table 14.
Table 14
slice_header(){ C Descriptor
slice_length_cu_minus1 2 u(v)
}
Slice_length_cu_minusl is for indicating the total number of CU (NumCUInSlice) that current band comprises, and the calculating of NumCUInSlice can be as shown in formula 14.When decoding, record the CU number of having decoded, when decoding CU number reaches the total number of band CU, finish band decoding.
NumCUInSlice=slice_length_cu_minus1+1 (formula 14)
12) when the length information that is band in the end position information of band, if band is to divide by CU, can in slice header, increase the SCU length information of band, the band length syntactic structure that one embodiment of the invention provides is as shown in Table 15.
Table 15
slice_header(){ C Descriptor
slice_length_scu_minus1 2 u(v)
}
Slice_length_scu_minus1 is for indicating the total number of SCU that current band comprises, and can be according to the position (SliceStartLCUAddress) of this value and the initial LCU of band, the sum (NumSCUInLCU) that the relative position (SliceStartSCUAddress) of the initial CU of band in affiliated LCU and LCU comprise SCU calculates the particular location of bar end of tape CU, can represent with position (SliceEndLCUAddress) and the position (SliceEndSCUAddress) of this CU in LCU of this CU place LCU respectively, the calculating of SliceEndLCUAddress can be as shown in formula 15, the calculating of SliceEndSCUAddress can be as shown in formula 16.
SliceEndLCUAddress=SliceStartLCUAddress+(SliceStartSCUAddress+slice_length_scu_minus1+1)/NumSCUInLCU
(formula 15)
SliceEndSCUAddress=(SliceStartSCUAddress+slice_length_scu_minus1+1)%NumSCUInLCU
(formula 16)
13) can be according to CU the relative position in LCU while inferring the division situation of the every one deck CU of LCU, the division flag syntactic structure that one embodiment of the invention provides is shown in table 16.
Table 16
Figure BDA0000043927720000351
Figure BDA0000043927720000361
CurrentCUInPicRange is used for representing that current C U is whether in video image region, and CurrentCUInPicRange equals all pixels of 1 expression current C U in video image region; CurrentCUInPicRange equals 0 expression current C U has partial pixel outside video image region.
The size of CurrCodingUnitSize mark current C U.
MinCodingUnitSize represents the minimum dimension of CU.
LCUAddress for LCU described in mark current C U in image position.
SliceStartLCUAddress is the position at image for the initial LCU of slug band.
Whether split_coding_unit_flag mark current C U further divides.Split_coding_unit_flag equals 1, and current C U will be split into four CU that grade is large; Split_coding_unit_flag equals 0, and current C U no longer divides, and is the CU of an actual decoding of final need.
StartSCUAddress is the original position at LCU for mark current C U.
SliceStartSCUAddress is the position at LCU for the initial SCU of slug band.
Therefore, in decode procedure, first confirm that current C U is within the scope of video image and is greater than minimum CU size, then resolve division flag bit; Otherwise, do not need to resolve division flag.
Judging that current C U is in first LCU in band, if not directly resolving division flag; Otherwise entering following steps judges.
In decode procedure, first confirm that current C U is within the scope of video image and is greater than minimum CU size, then resolve division flag bit; Otherwise, do not need to resolve division flag.
Further judge the relation of the original position of current C U and the position of the initial CU of band.If the original position of current C U is more than or equal to the position of the initial CU of band, need further to resolve division flag bit; If current C U end position is less than the position of the initial CU of band, do not need further to resolve division flag, its value is 0; Other situations, do not need further to resolve division flag yet, and its value is 1.
If division flag bit is 0, current C U no longer divides, and is the CU of the actual decoding of final need, enters decoding and rebuilding process; If division flag bit is 1, current C U is split into four dark one deck CU that grade is large, and each dark one deck CU is carried out to complete processing procedure, judges whether further divide or directly decode.
Describe positional information in above each embodiment time, comprise the relative position of the relative position of the absolute position of initial LCU, initial SCU, the absolute position of finishing LCU, end SCU etc., can directly encode to the numerical value of each position.Wherein, do not limit the coded system of numerical value.
It should be noted that, for aforesaid each embodiment of the method, for simple description, therefore it is all expressed as to a series of combination of actions, but those skilled in the art should know, the present invention is not subject to the restriction of described sequence of movement, because according to the present invention, some step can adopt other orders or carry out simultaneously.Secondly, those skilled in the art also should know, the embodiment described in specification all belongs to preferred embodiment, and related action and module might not be that the present invention is necessary.
Following introduce the device that the embodiment of the present invention provides, Fig. 7 has described the structure of the band code device that one embodiment of the invention provides, and comprising again:
Determining unit 701, for determining the band classified types of current division object according to discriminative information.
Division unit 702, for being divided into band according to the definite band classified types of determining unit 701 by current division object.
Writing unit 703, for writing the start position information of the current band that division unit 702 divides in start position information field.
Coding processing unit 704, encodes for the current band that writing unit 703 is obtained, output encoder code stream.
In another embodiment of the present invention, writing unit 703, the band classified types information that can also be used for the current division object that 702 determining units are determined writes classified types information field.
In another embodiment of the present invention, writing unit 703, specifically in the time that band classified types is divided for pressing LCU, the absolute location information of the initial LCU that writes current band in initial LCU location information field in image, start position information field only comprises initial LCU location information field; In the time that band classified types is divided for pressing CU, write the absolute location information of initial LCU in image in initial LCU location information field, write the relative position information of initial SCU in initial LCU in initial SCU location information field, start position information field comprises initial LCU location information field and initial SCU location information field; Or in the time that band classified types is divided for pressing CU, writing the absolute location information of initial SCU in initial LCU in initial SCU location information field, start position information field only comprises initial SCU location information field.
In another embodiment of the present invention, writing unit 703 is also for writing the end position information of current band at end position information field.
In another embodiment of the present invention, writing unit 703, specifically in the time that band classified types is divided for pressing LCU, finishing end LCU that LCU location information field the writes current band absolute location information in image, end position information field only comprises and finishes LCU location information field; In the time that band classified types is divided for pressing CU, write and finish the absolute location information of LCU in image in end LCU location information field, write the relative position information of described end SCU in described end LCU in end SCU location information field, end position information field comprises end LCU location information field and end SCU location information field; Or be while pressing CU division at band classified types, writing and finish the absolute location information of SCU in described end LCU in end SCU location information field, end position information field only comprises end SCU location information field.
In another embodiment of the present invention, writing unit 703, also in the time that the definite band classified types of determining unit 702 is divided for pressing LCU, for the bar end of tape marker position assignment of all LCU in current band, bar end of tape marker position is positioned at last position that the data of last SCU of each LCU that current band comprises are carried only, wherein finishes bar end of tape marker position assignment in LCU for effectively; In the time that the definite band classified types of determining unit 702 is divided for pressing CU, for the bar end of tape marker position assignment of all CU in current band, bar end of tape marker position is positioned at last position that the data of last SCU of each CU that current band comprises are carried only, wherein finishes bar end of tape marker position assignment in CU for effectively.
In another embodiment of the present invention, coding processing unit 704, also, in the time that first LCU of current band is encoded, the positional information according to current C U in first LCU determines whether the division flag of current C U to encode.
From the above, the present embodiment can be determined according to discriminative information the band classified types of current division object, according to definite band classified types, current division object is divided into band, make the data volume size of the band being divided into can adapt to network, and can adopt different band dividing mode at different networks, thereby strengthen network compatibility.
Further, in another embodiment of the present invention, the band classified types information of current division object can also be write to classified types information field, make decoding device can know the classified types of current band, thereby determine according to this classified types information whether decoding completes, in guaranteeing to be correctly decoded, improve decoding efficiency.
Further, in another embodiment of the present invention, the start position information field using comprises initial LCU location information field and initial SCU location information field, make decoding device can directly resolve the positional information in initial LCU location information field and initial SCU location information field in the time of decoding, the positional information obtaining according to parsing is again directly targeted to the original position of band, thereby improves decoding efficiency.Because decoding device can be known the classified types of current band, in the time that current band is pressed LCU and is divided, can be only to initial LCU location information field data writing, and do not need to initial SCU location information field data writing, thereby can reduce the data volume that need to write, improve code efficiency; Also can make decoding device not need to resolve initial SCU location information field, further improve decoding efficiency.
Further, in another embodiment of the present invention, can write at end position information field the end position information of current band, make decoding device can be directly determine and decode according to this end position information, thereby improve decoding efficiency in guaranteeing to be correctly decoded.In another embodiment of the present invention, the end position information field using comprises end LCU location information field and finishes SCU location information field, decoding device can directly be resolved in the time of decoding to be finished LCU location information field and finishes the positional information in SCU location information field, the positional information obtaining according to parsing is again directly targeted to the end position of band, thereby improves decoding efficiency.Because decoding device can be known the classified types of current band, in the time that current band is pressed LCU and is divided, can be only to finishing LCU location information field data writing, and do not need to finishing SCU location information field data writing, thereby can reduce the data volume that need to write, improve code efficiency; Also can make decoding device not need to resolve and finish SCU location information field, further improve decoding efficiency.
Further, in another embodiment of the present invention, it can be the bar end of tape marker position assignment of all CU in current band, and be effective by the bar end of tape marker position assignment finishing in CU, make the value of the bar end of tape marker position that decoding device can obtain according to decoding in when decoding whether effectively determine whether decoding completes, thereby improve decoding efficiency in guaranteeing to be correctly decoded.Because decoding device can be known the classified types of current band, therefore decoding device can, in the time that current band is pressed LCU and divided, only be resolved the end mark position of current last CU of band and just can determine whether decoding completes, and further improves decoding efficiency.
Fig. 8 has described the structure of the band decoding device that another embodiment of the present invention provides, and comprising:
Resolution unit 801, for resolving the start position information of current band from start position information field.
Decoding unit 802, starts the decoding to current band for resolving according to resolution unit 801 start position information obtaining, and has determined the decoding to current band according to preset processing mode.
Output unit 803, for exporting the reconstruction image of the band that decoding unit 802 obtains.
In another embodiment of the present invention, start position information field comprises initial LCU location information field and initial SCU location information field; Resolution unit 801, specifically for resolve the absolute location information of the initial LCU of current band from initial LCU location information field, resolves the relative position information of the initial SCU of current band from initial SCU location information field.
In another embodiment of the present invention, resolution unit 801 is also for resolving the end position information of current band from end position information field; Decoding unit 802, has determined the decoding to current band for the end position information obtaining according to resolution unit 801.
In another embodiment of the present invention, end position information field comprises end LCU location information field and finishes SCU location information field; Resolution unit 801, specifically for resolve the absolute location information of the end LCU of current band from finishing LCU location information field, resolves the relative position information of the end SCU of current band from finishing SCU location information field.
In another embodiment of the present invention, resolution unit 801, also for resolving the band classified types information that obtains current band from header; Resolution unit 801, specifically in the time that the band classified types of current band is divided for pressing LCU, resolves the absolute location information of the initial LCU of current band from initial LCU location information field, start position information field only comprises initial LCU location information field; In the time that the band classified types of current band is divided for pressing CU, resolve the absolute location information of the initial LCU of current band from initial LCU location information field, resolve the relative position information of the initial SCU of current band from initial SCU location information field, start position information field comprises initial LCU location information field and initial SCU location information field; Or in the time that the band classified types of current band is divided for pressing CU, resolve the absolute location information of the initial SCU of current band from initial SCU location information field, start position information field only comprises initial SCU location information field.
In another embodiment of the present invention, resolution unit 801, also for resolving the end position information of current band from end position information field according to the band classified types information of resolving acquisition; Decoding unit 802, has determined the decoding to current band for the end position information obtaining according to resolution unit 801.
In another embodiment of the present invention, resolution unit 801, specifically in the time that the band classified types of current band is divided for pressing LCU, resolve the absolute location information of the absolute LCU of current band from absolute LCU location information field, absolute location information field only comprises absolute LCU location information field; In the time that the band classified types of current band is divided for pressing CU, resolve the absolute location information of the absolute LCU of current band from absolute LCU location information field, resolve the relative position information of the absolute SCU of current band from absolute SCU location information field, absolute location information field comprises absolute LCU location information field and absolute SCU location information field; Or in the time that the band classified types of current band is divided for pressing CU, resolve the absolute location information of the absolute SCU of current band from absolute SCU location information field, absolute location information field only comprises absolute SCU location information field.
From the above, in the present embodiment, current band is divided and is obtained according to band classified types, and band classified types is determined according to discriminative information, the data volume size of the band being therefore divided into can adapt to network, and can adopt different band dividing mode at different networks, thereby strengthen network compatibility.
Further, in another embodiment of the present invention, can also know the classified types of current band according to the band classified types information that is resolved to, thereby determine according to this classified types information whether decoding completes, in guaranteeing to be correctly decoded, improve decoding efficiency.
Further, in another embodiment of the present invention, the start position information field using comprises initial LCU location information field and initial SCU location information field, therefore can directly resolve the positional information in initial LCU location information field and initial SCU location information field, the positional information obtaining according to parsing is again directly targeted to the original position of band, thereby improves decoding efficiency.Owing to can knowing the classified types of current band, in the time that current band is pressed LCU and is divided, can be only to initial LCU location information field data writing, and do not need to initial SCU location information field data writing, thereby can reduce the data volume that need to write, improve code efficiency; Do not need to resolve initial SCU location information field, further improve decoding efficiency yet.
Further, in another embodiment of the present invention, can be directly determine and decode according to end position information, thereby improve decoding efficiency in guaranteeing to be correctly decoded.In another embodiment of the present invention, the end position information field using comprises end LCU location information field and finishes SCU location information field, therefore can directly resolve and finish LCU location information field and finish the positional information in SCU location information field, the positional information obtaining according to parsing is again directly targeted to the end position of band, thereby improves decoding efficiency.Owing to can knowing the classified types of current band, therefore do not need to resolve and finish SCU location information field, further improve decoding efficiency.
Further, in another embodiment of the present invention, whether the value of the bar end of tape marker position that can obtain according to decoding effectively determines whether decoding completes, thereby improves decoding efficiency in guaranteeing to be correctly decoded.Owing to can knowing the classified types of current band, therefore can, in the time that current band is pressed LCU division, only resolve the end mark position of current last CU of band and just can determine whether decoding completes, and further improves decoding efficiency.
Fig. 9 has described the structure of the band code device that another embodiment of the present invention provides, and comprising:
Division unit 901, for being divided into band by CU by current division object.
Writing unit 902, for writing the start position information of the current band that division unit 901 obtains in start position information field; The start position information of current band comprises: the relative position information of initial SCU in initial LCU in the absolute location information of initial LCU in image and current band in current band.
Coding processing unit 903, encodes for the current band that writing unit 902 is obtained, output encoder code stream.
In another embodiment of the present invention, writing unit 902 is also for writing the end position information of current band at end position information field.
In another embodiment of the present invention, writing unit 902, also be used to the bar end of tape marker position assignment of all CU in current band, bar end of tape marker position is positioned at last position that the data of last SCU of each CU that current band comprises are carried only, wherein finishes bar end of tape marker position assignment in CU for effectively.
In another embodiment of the present invention, coding processing unit 903, also, in the time that first LCU of current band is encoded, the positional information according to current C U in first LCU determines whether the division flag of current C U to encode.The present embodiment can not encoded to the division flag of some CU, does not therefore need to transmit the data of these division flags, thereby can reduce taking of network, improves the utilization ratio of network.
From the above, the operable start position information field of the present embodiment comprises initial LCU location information field and initial SCU location information field, make decoding device can directly resolve the positional information in initial LCU location information field and initial SCU location information field in the time of decoding, the positional information obtaining according to parsing is again directly targeted to the original position of band, thereby improves decoding efficiency.
Further, in another embodiment of the present invention, can write at end position information field the end position information of current band, make decoding device can be directly determine and decode according to this end position information, thereby improve decoding efficiency in guaranteeing to be correctly decoded.
Further, in another embodiment of the present invention, it can be the bar end of tape marker position assignment of all CU in current band, and be effective by the bar end of tape marker position assignment finishing in CU, make the value of the bar end of tape marker position that decoding device can obtain according to decoding in when decoding whether effectively determine whether decoding completes, thereby improve decoding efficiency in guaranteeing to be correctly decoded.
Figure 10 has described the structure of the band decoding device that another embodiment of the present invention provides, and comprising:
Resolution unit 1001, for resolving the start position information of current band from start position information field, the start position information of current band comprises: the relative position information of initial SCU in initial LCU in the absolute location information of initial LCU in image and current band in current band.
Decoding unit 1002, starts the decoding to current band for the start position information obtaining according to resolution unit 1001, and has determined the decoding to current band according to preset processing mode.
Output unit 1003, for exporting the reconstruction image of the band that decoding unit 1002 obtains.
In another embodiment of the present invention, resolution unit 1001, also for resolving the end position information of current band from end position information field; Decoding unit 1002, has determined the decoding to current band for the end position information obtaining according to resolution unit 1001.
From the above, the operable start position information field of the present embodiment comprises initial LCU location information field and initial SCU location information field, therefore can directly resolve the positional information in initial LCU location information field and initial SCU location information field, the positional information obtaining according to parsing is again directly targeted to the original position of band, thereby improves decoding efficiency.
Further, in another embodiment of the present invention, can be directly determine and decode according to this end position information, thereby improve decoding efficiency in guaranteeing to be correctly decoded.
Further, in another embodiment of the present invention, whether the value of the bar end of tape marker position that can obtain according to decoding effectively determines whether decoding completes, thereby improves decoding efficiency in guaranteeing to be correctly decoded.
The content such as information interaction, implementation between said apparatus and intrasystem each module, due to the inventive method embodiment based on same design, particular content can, referring to the narration in the inventive method embodiment, repeat no more herein.
One of ordinary skill in the art will appreciate that all or part of flow process realizing in above-described embodiment method, can carry out the hardware that instruction is relevant by computer program to complete, above-mentioned program can be stored in a computer read/write memory medium, this program, in the time carrying out, can comprise as the flow process of the embodiment of above-mentioned each side method.Wherein, above-mentioned storage medium can be magnetic disc, CD, read-only store-memory body (ROM:Read-Only Memory) or random store-memory body (RAM:Random Access Memory) etc.
Applied specific case herein principle of the present invention and execution mode are set forth, the explanation of above embodiment is just for helping to understand method of the present invention and thought thereof; , for one of ordinary skill in the art, according to thought of the present invention, all will change in specific embodiments and applications, in sum, this description should not be construed as limitation of the present invention meanwhile.

Claims (41)

1. a band coding method, is characterized in that, comprising:
Determine the band classified types of current division object according to discriminative information, according to described band classified types, current division object is divided into band;
Write the start position information of current band in start position information field;
Described start position information field comprises initial maximum coding unit location information field and initial minimum code unit location information field;
The described start position information that writes current band in start position information field is specially: the absolute location information of the initial maximum coding unit that writes current band in described initial maximum coding unit location information field in image, writes the relative position information of described initial minimum code unit in described initial maximum coding unit in described initial minimum code unit location information field;
The current band that has write described start position information is encoded, output encoder code stream.
2. band coding method as claimed in claim 1, is characterized in that, before described current band is encoded, further comprises:
Write the end position information of current band at end position information field.
3. band coding method as claimed in claim 2, is characterized in that, described end position information field comprises the maximum coding unit location information field of end and finishes minimum code unit location information field;
The described end position information that writes current band at end position information field is specially: the absolute location information of the maximum coding unit of end that writes current band in the maximum coding unit location information field of described end in image, writes the relative position information of described end minimum code unit in the maximum coding unit of described end in described end minimum code unit location information field.
4. band coding method as claimed in claim 1, is characterized in that, described current band is encoded to take a step forward to be comprised:
The band classified types information of described current division object is write to classified types information field.
5. band coding method as claimed in claim 4, is characterized in that,
If described band classified types for dividing by maximum coding unit, the described start position information that writes current band in start position information field is specially:
The absolute location information of the initial maximum coding unit that writes current band in initial maximum coding unit location information field in image, described start position information field only comprises described initial maximum coding unit location information field;
If described band classified types for press coding unit division, the described start position information that writes current band in start position information field is specially:
Write the absolute location information of initial maximum coding unit in image in initial maximum coding unit location information field, write the relative position information of described initial minimum code unit in described initial maximum coding unit in initial minimum code unit location information field, described start position information field comprises described initial maximum coding unit location information field and described initial minimum code unit location information field;
Or
Write the absolute location information of described initial minimum code unit in image in initial minimum code unit location information field, described start position information field only comprises described initial minimum code unit location information field.
6. band coding method as claimed in claim 5, is characterized in that, before described current band is encoded, further comprises:
Write the end position information of current band at end position information field.
7. band coding method as claimed in claim 6, is characterized in that, if described band classified types for dividing by maximum coding unit, the described end position information that writes current band at end position information field is specially:
Finishing the maximum coding unit of end that maximum coding unit location information field the writes current band absolute location information in image, described end position information field only comprises the maximum coding unit location information field of described end;
If described band classified types for press coding unit division, the described end position information that writes current band at end position information field is specially:
Write and finish the absolute location information of maximum coding unit in image in the maximum coding unit location information field of end, write the relative position information of described end minimum code unit in the maximum coding unit of described end in end minimum code unit location information field, described end position information field comprises the maximum coding unit location information field of described end and described end minimum code unit location information field;
Or
Write the absolute location information of described end minimum code unit in image in end minimum code unit location information field, described end position information field only comprises described end minimum code unit location information field.
8. the band coding method as described in claim 1 or 5, it is characterized in that, the absolute location information of described initial maximum coding unit in image is specially: order absolute location information or the inverted order absolute location information of described initial maximum coding unit in image;
The relative position information of described initial minimum code unit in described initial maximum coding unit is: order relative position information or the inverted order relative position information of described initial minimum code unit in described initial maximum coding unit.
9. the band coding method as described in claim 3 or 7, it is characterized in that, the absolute location information of the maximum coding unit of described end in image is specially: order absolute location information or the inverted order absolute location information of the maximum coding unit of described end in image;
The relative position information of described end minimum code unit in the maximum coding unit of described end is: order relative position information or the inverted order relative position information of described end minimum code unit in the maximum coding unit of described end.
10. the band coding method as described in claim 2 or 6, is characterized in that, the length information that the end position information of described current band is described current band, and the length information of described current band is specially:
The quantity of the maximum coding unit that described current band comprises and end coding unit are at the order relative position or the inverted order relative position that finish in maximum coding unit;
Or
The quantity of the coding unit that described current band comprises;
Or
The quantity of the minimum code unit that described current band comprises.
11. band coding methods as claimed in claim 4, is characterized in that, if described band classified types is divided for pressing maximum coding unit, described current band is encoded to take a step forward to be comprised:
For the bar end of tape marker position assignment of all maximum coding units in described current band, described end of tape marker position is positioned at last position that the data of last minimum code unit of each maximum coding unit that described current band comprises are carried only, and the bar end of tape marker position assignment in the maximum coding unit of wherein said end is effective;
If described band classified types is divided for pressing coding unit, described current band is encoded to take a step forward to be comprised:
For the bar end of tape marker position assignment of all coding units in described current band, described end of tape marker position is positioned at last position that the data of last minimum code unit of each coding unit that described current band comprises are carried only, and the bar end of tape marker position assignment in wherein said end coding unit is effective.
12. band coding methods as claimed in claim 1, is characterized in that, before described current band is encoded, further comprise:
For the bar end of tape marker position assignment of all coding units in described current band, described end of tape marker position is positioned at last position that the data of last minimum code unit of each coding unit that described current band comprises are carried only, and the bar end of tape marker position assignment in wherein said end coding unit is effective.
13. band coding methods as described in claim 1 or 4 or 5, it is characterized in that, in the time that first maximum coding unit of current band is encoded, the positional information according to present encoding unit in described first maximum coding unit determines whether the division flag of present encoding unit to encode.
14. band coding methods as claimed in claim 13, is characterized in that, described according to present encoding unit, the positional information in described first maximum coding unit determines whether the division flag coding of present encoding unit to be specially:
If present encoding unit not in current division object range or described present encoding unit be of a size of the size of minimum code unit, the division flag of present encoding unit is not encoded;
If described present encoding unit in described current division object range and the size of described present encoding unit be greater than the size of minimum code unit, and the original position of described present encoding unit is more than or equal to the position of band start code unit, just the division flag of described present encoding unit is encoded.
15. 1 kinds of band coding/decoding methods, is characterized in that, comprising:
Resolve the start position information of current band from start position information field;
Described start position information field comprises initial maximum coding unit location information field and initial minimum code unit location information field;
Described start position information of resolving current band from start position information field is specially:
Resolve the absolute location information of the initial maximum coding unit of current band from described initial maximum coding unit location information field, resolve the relative position information of the initial minimum code unit of current band from described initial minimum code unit location information field;
Start the decoding to described current band according to described start position information, and determined the decoding to described current band according to preset processing mode;
The reconstruction image of the current band that output decoding obtains.
16. band coding/decoding methods as claimed in claim 15, is characterized in that, describedly determined the decoding of described current band is specially according to preset processing mode:
Resolve the end position information of described current band from end position information field;
Determine the decoding to described current band according to described end position information.
17. band coding/decoding methods as claimed in claim 16, is characterized in that, described end position information field comprises the maximum coding unit location information field of end and finishes minimum code unit location information field;
Described end position information of resolving current band from end position information field is specially:
Resolve the absolute location information of the maximum coding unit of end of current band from the maximum coding unit location information field of described end, resolve the relative position information of the end minimum code unit of current band from described end minimum code unit location information field.
18. band coding/decoding methods as described in as arbitrary in claim 15 to 17, is characterized in that, describedly determined the decoding of described current band is specially according to preset processing mode:
Whether the value of bar end of tape marker position that judges present encoding unit is effective, if effectively, determined the decoding to described current band, described end of tape marker position is positioned at clean last position of carrying of data of last minimum code unit of described present encoding unit.
19. band coding/decoding methods as claimed in claim 15, is characterized in that, the start position information of resolving current band from start position information field takes a step forward and comprises:
From header, resolve the band classified types information that obtains described current band;
Described start position information of resolving current band from start position information field is specially:
Resolve the start position information of current band from start position information field according to described band classified types information.
20. band coding/decoding methods as claimed in claim 19, is characterized in that,
If described band classified types information is for dividing by maximum coding unit, described start position information of resolving current band from start position information field according to described band classified types information is specially:
Resolve the absolute location information of the initial maximum coding unit of current band from initial maximum coding unit location information field, described start position information field only comprises described initial maximum coding unit location information field;
If described band classified types information is divided for pressing coding unit, described start position information of resolving current band from start position information field according to described band classified types information is specially:
Resolve the absolute location information of the initial maximum coding unit of current band from initial maximum coding unit location information field, resolve the relative position information of the initial minimum code unit of current band from initial minimum code unit location information field, described start position information field comprises initial described maximum coding unit location information field and described initial minimum code unit location information field;
Or
Resolve the absolute location information of the initial minimum code unit of current band from initial minimum code unit location information field, described start position information field only comprises described initial minimum code unit location information field.
21. band coding/decoding methods as claimed in claim 19, is characterized in that, describedly determined the decoding of described current band is specially according to preset processing mode:
Resolve the end position information of described current band from end position information field according to described band classified types information;
Determine the decoding to described current band according to described end position information.
22. band coding/decoding methods as claimed in claim 21, is characterized in that,
If described band classified types information is for dividing by maximum coding unit, described end position information of resolving current band from end position information field according to described band classified types information is specially:
The absolute location information of resolving the maximum coding unit of end of current band from finishing maximum coding unit location information field, described end position information field only comprises the maximum coding unit location information field of described end;
If described band classified types information is divided for pressing coding unit, described end position information of resolving current band from end position information field according to described band classified types information is specially:
Resolve the absolute location information of the maximum coding unit of end of current band from finishing maximum coding unit location information field, the relative position information of resolving the end minimum code unit of current band from finishing minimum code unit location information field, described end position information field comprises the described maximum coding unit location information field of end and described end minimum code unit location information field;
Or
The absolute location information of resolving the end minimum code unit of current band from finishing minimum code unit location information field, described end position information field only comprises described end minimum code unit location information field.
23. band coding/decoding methods as described in as arbitrary in claim 19 to 22, is characterized in that, describedly determined the decoding of described current band is specially according to preset processing mode:
If described band classified types information is for dividing by maximum coding unit, whether the value of bar end of tape marker position that judges current maximum coding unit is effective, if effectively, determined the decoding to described current band, described end of tape marker position is positioned at clean last position of carrying of data of last minimum code unit of described current maximum coding unit;
If described band classified types information is divided for pressing coding unit, whether the value of bar end of tape marker position that judges present encoding unit is effective, if effectively, determined the decoding to described current band, described end of tape marker position is positioned at clean last position of carrying of data of last minimum code unit of described present encoding unit.
24. band coding/decoding methods as described in claim 15 or 20, it is characterized in that, the absolute location information of described initial maximum coding unit is order absolute location information or the inverted order absolute location information of initial maximum coding unit in image in described current band;
The relative position information of described initial minimum code unit is order relative position information or the inverted order relative position information of described initial minimum code unit in described initial maximum coding unit.
25. band coding/decoding methods as described in claim 17 or 22, is characterized in that, the absolute location information of the maximum coding unit of described end is order absolute location information or the inverted order absolute location information of the maximum coding unit of described end in image;
The relative position information of described end minimum code unit is order relative position information or the inverted order relative position information of described end minimum code unit in the maximum coding unit of described end.
26. band coding/decoding methods as described in claim 16 or 21, is characterized in that, the end position information of described current band is specially: the length information of described current band.
27. band coding/decoding methods as claimed in claim 26, is characterized in that, in the time that described current band is divided by maximum coding unit, the length information of described current band is the quantity of the maximum coding unit that comprises of described current band;
In the time that described current band is pressed coding unit division, the length information of described current band is specially:
The quantity of the maximum coding unit that described current band comprises and end coding unit are at the order relative position or the inverted order relative position that finish in maximum coding unit;
Or
The quantity of the coding unit that described current band comprises;
Or
The quantity of the minimum code unit that described current band comprises.
28. band coding/decoding methods as described in claim 15 or 19, it is characterized in that, in the time that first maximum coding unit of current band is decoded, the positional information according to present encoding unit in described first maximum coding unit determines whether the division flag decoding to present encoding unit.
29. band coding/decoding methods as claimed in claim 28, is characterized in that, described according to present encoding unit, the positional information in described first maximum coding unit determines whether the division flag decoding of present encoding unit to be specially:
If present encoding unit not in current division object range or described present encoding unit be of a size of the size of minimum code unit, the division flag of present encoding unit is not decoded;
If described present encoding unit in described current division object range and the size of described present encoding unit be greater than the size of minimum code unit, and the original position of described present encoding unit is more than or equal to the position of band start code unit, just the division flag of described present encoding unit is decoded.
30. 1 kinds of band code devices, is characterized in that, comprising:
Determining unit, for determining the band classified types of current division object according to discriminative information;
Division unit, for being divided into band according to the definite band classified types of described determining unit by current division object;
Writing unit, for writing the start position information of the current band that described division unit divides in start position information field;
Said write unit, specifically in the time that described band classified types is divided for pressing maximum coding unit, the absolute location information of the initial maximum coding unit that writes current band in initial maximum coding unit location information field in image, described start position information field only comprises described initial maximum coding unit location information field; In the time that described band classified types is divided for pressing coding unit, write the absolute location information of initial maximum coding unit in image in initial maximum coding unit location information field, write the relative position information of described initial minimum code unit in described initial maximum coding unit in initial minimum code unit location information field, described start position information field comprises initial maximum coding unit location information field and initial minimum code unit location information field; Or in the time that described band classified types is divided for pressing coding unit, write the absolute location information of described initial minimum code unit in described initial maximum coding unit in initial minimum code unit location information field, described start position information field only comprises initial minimum code unit location information field;
Coding processing unit, encodes for the current band that said write unit is obtained, output encoder code stream.
31. band code devices as claimed in claim 30, is characterized in that, said write unit, also for writing classified types information field by the band classified types information of current division object definite described determining unit.
32. band code devices as claimed in claim 30, is characterized in that, said write unit, also for writing the end position information of current band at end position information field.
33. band code devices as claimed in claim 32, it is characterized in that, said write unit, specifically in the time that described band classified types is divided for pressing maximum coding unit, finishing the maximum coding unit of end that maximum coding unit location information field the writes current band absolute location information in image, described end position information field only comprises and finishes maximum coding unit location information field; In the time that described band classified types is divided for pressing coding unit, write and finish the absolute location information of maximum coding unit in image in the maximum coding unit location information field of end, write the relative position information of described end minimum code unit in the maximum coding unit of described end in end minimum code unit location information field, described end position information field comprises the maximum coding unit location information field of end and finishes minimum code unit location information field; Or in the time that described band classified types is divided for pressing coding unit, write the absolute location information of described end minimum code unit in the maximum coding unit of described end in end minimum code unit location information field, described end position information field only comprises end minimum code unit location information field.
34. band code devices as described in claim 30 or 31, it is characterized in that, said write unit, also in the time that the definite band classified types of described determining unit is divided for pressing maximum coding unit, for the bar end of tape marker position assignment of all maximum coding units in described current band, described end of tape marker position is positioned at last position that the data of last minimum code unit of each maximum coding unit that described current band comprises are carried only, and the bar end of tape marker position assignment in the maximum coding unit of wherein said end is effective; In the time that the definite band classified types of described determining unit is divided for pressing coding unit, for the bar end of tape marker position assignment of all coding units in described current band, described end of tape marker position is positioned at last position that the data of last minimum code unit of each coding unit that described current band comprises are carried only, and the bar end of tape marker position assignment in wherein said end coding unit is effective.
35. band code devices as described in claim 30 or 31, it is characterized in that, described coding processing unit, also, in the time that first maximum coding unit of current band is encoded, the positional information according to present encoding unit in described first maximum coding unit determines whether the division flag of present encoding unit to encode.
36. 1 kinds of band decoding devices, is characterized in that, comprising:
Resolution unit, for resolving the start position information of current band from start position information field;
Described start position information field comprises initial maximum coding unit location information field and initial minimum code unit location information field;
Described resolution unit, specifically for resolve the absolute location information of the initial maximum coding unit of current band from described initial maximum coding unit location information field, resolve the relative position information of the initial minimum code unit of current band from described initial minimum code unit location information field;
Decoding unit, starts the decoding to described current band for resolving according to described resolution unit the start position information obtaining, and has determined the decoding to described current band according to preset processing mode;
Output unit, for exporting the reconstruction image of the band that described decoding unit obtains.
37. band decoding devices as claimed in claim 36, is characterized in that, described resolution unit, also for resolving the end position information of described current band from end position information field;
Described decoding unit, has determined the decoding to described current band for the end position information obtaining according to described resolution unit.
38. band decoding devices as claimed in claim 37, is characterized in that, described end position information field comprises the maximum coding unit location information field of end and finishes minimum code unit location information field;
Described resolution unit, specifically for resolve the absolute location information of the maximum coding unit of end of current band from the maximum coding unit location information field of described end, resolve the relative position information of the end minimum code unit of current band from described end minimum code unit location information field.
39. band decoding devices as claimed in claim 36, is characterized in that, described resolution unit, also for resolving the band classified types information that obtains described current band from header;
Described resolution unit, specifically in the time that the band classified types of described current band is divided for pressing maximum coding unit, resolve the absolute location information of the initial maximum coding unit of current band from initial maximum coding unit location information field, described start position information field only comprises initial maximum coding unit location information field; In the time that the band classified types of described current band is divided for pressing coding unit, resolve the absolute location information of the initial maximum coding unit of current band from initial maximum coding unit location information field, resolve the relative position information of the initial minimum code unit of current band from initial minimum code unit location information field, described start position information field comprises initial maximum coding unit location information field and initial minimum code unit location information field; Or in the time that the band classified types of described current band is divided for pressing coding unit, resolve the absolute location information of the initial minimum code unit of current band from initial minimum code unit location information field, described start position information field only comprises initial minimum code unit location information field.
40. band decoding devices as claimed in claim 39, is characterized in that, described resolution unit, also for resolving the end position information of described current band from end position information field according to described band classified types information;
Described decoding unit, has determined the decoding to described current band for the end position information obtaining according to described resolution unit.
41. band decoding devices as claimed in claim 40, it is characterized in that, described resolution unit, specifically in the time that the band classified types of described current band is divided for pressing maximum coding unit, resolve the absolute location information of the absolute maximum coding unit of current band from absolute maximum coding unit location information field, described absolute location information field only comprises absolute maximum coding unit location information field; In the time that the band classified types of described current band is divided for pressing coding unit, resolve the absolute location information of the absolute maximum coding unit of current band from absolute maximum coding unit location information field, resolve the relative position information of the absolute minimum code unit of current band from absolute minimum code unit location information field, described absolute location information field comprises absolute maximum coding unit location information field and absolute minimum code unit location information field; Or in the time that the band classified types of described current band is divided for pressing coding unit, resolve the absolute location information of the absolute minimum code unit of current band from absolute minimum code unit location information field, described absolute location information field only comprises absolute minimum code unit location information field.
CN201110008180.4A 2011-01-14 2011-01-14 Stripe coding method and device thereof as well as stripe decoding method and device thereof Expired - Fee Related CN102595123B (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN201110008180.4A CN102595123B (en) 2011-01-14 2011-01-14 Stripe coding method and device thereof as well as stripe decoding method and device thereof
PCT/CN2012/070383 WO2012095030A1 (en) 2011-01-14 2012-01-16 Slice encoding method and device and slice decoding method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201110008180.4A CN102595123B (en) 2011-01-14 2011-01-14 Stripe coding method and device thereof as well as stripe decoding method and device thereof

Publications (2)

Publication Number Publication Date
CN102595123A CN102595123A (en) 2012-07-18
CN102595123B true CN102595123B (en) 2014-06-04

Family

ID=46483280

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201110008180.4A Expired - Fee Related CN102595123B (en) 2011-01-14 2011-01-14 Stripe coding method and device thereof as well as stripe decoding method and device thereof

Country Status (2)

Country Link
CN (1) CN102595123B (en)
WO (1) WO2012095030A1 (en)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20140029670A1 (en) * 2012-07-27 2014-01-30 Motorola Mobility Llc Devices and methods for processing of partition mode in high efficiency video coding
CN107637077B (en) * 2015-05-12 2021-11-12 三星电子株式会社 Video encoding method, video decoding method, and computer-readable medium
CN107517385B (en) * 2016-06-16 2020-02-21 华为技术有限公司 Video image coding and decoding method and device

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1980392A (en) * 2005-11-29 2007-06-13 同济大学 Decoding method using video code flow to judge picture poundary and reading in advance picture data, and apparatus therefor
CN101222636A (en) * 2008-01-24 2008-07-16 杭州华三通信技术有限公司 Method and arrangement for encoding and decoding images
CN101389021A (en) * 2007-09-14 2009-03-18 华为技术有限公司 Video encoding/decoding method and apparatus
JP2009535881A (en) * 2006-04-27 2009-10-01 コーニンクレッカ フィリップス エレクトロニクス エヌ ヴィ Method and apparatus for encoding / transcoding and decoding
CN101742295A (en) * 2008-11-14 2010-06-16 北京中星微电子有限公司 Image adaptive strip division-based adaptive frame/field encoding method and device

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2009104850A1 (en) * 2008-02-20 2009-08-27 Lg Electronics Inc. Method for encoding and decoding image, and apparatus for encoding and decoding image

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1980392A (en) * 2005-11-29 2007-06-13 同济大学 Decoding method using video code flow to judge picture poundary and reading in advance picture data, and apparatus therefor
JP2009535881A (en) * 2006-04-27 2009-10-01 コーニンクレッカ フィリップス エレクトロニクス エヌ ヴィ Method and apparatus for encoding / transcoding and decoding
CN101389021A (en) * 2007-09-14 2009-03-18 华为技术有限公司 Video encoding/decoding method and apparatus
CN101222636A (en) * 2008-01-24 2008-07-16 杭州华三通信技术有限公司 Method and arrangement for encoding and decoding images
CN101742295A (en) * 2008-11-14 2010-06-16 北京中星微电子有限公司 Image adaptive strip division-based adaptive frame/field encoding method and device

Also Published As

Publication number Publication date
WO2012095030A1 (en) 2012-07-19
CN102595123A (en) 2012-07-18

Similar Documents

Publication Publication Date Title
US11659184B2 (en) Method and device for video coding and decoding
JP7237874B2 (en) Image prediction method and apparatus
CN110933424B (en) Multiple prediction blocks for an intra-coded block
CN102595119B (en) Stripe coding method and device thereof as well as stripe decoding method and device thereof
AU2018315106B2 (en) Video image encoding and decoding method, apparatus, and device
CN113498522A (en) Adaptive parameter set types in video coding
US20160373767A1 (en) Encoding and Decoding Methods and Apparatuses
BR112019021593A2 (en) METHOD AND DEVICE FOR ENTHROPIC VIDEO SIGNALS ENCODING AND DECODING
TW201242374A (en) Multi-metric filtering
US9326011B2 (en) Method and apparatus for generating bitstream based on syntax element
CN102857746A (en) Method and device for coding and decoding loop filters
WO2014166338A1 (en) Method and apparatus for prediction value derivation in intra coding
CN102595123B (en) Stripe coding method and device thereof as well as stripe decoding method and device thereof
CN109005412B (en) Method and apparatus for motion vector acquisition
CN115134629A (en) Video transmission method, system, device and storage medium
CN115665412A (en) Block group allocation for raster scan block groups and rectangular block groups in video coding
CN108600755B (en) Image frame coding method and device
US11315289B2 (en) Adaptive depth guard band
US20170164003A1 (en) Multiview video signal processing method and apparatus
CN102685483A (en) Coding method and device, and decoding method and device
CN105163124A (en) Image coding method, image decoding method, image coding device and image decoding device
KR20150135495A (en) Methods and devices for coding and decoding depth information, and video processing and playing device
CN117044208A (en) Image compiling method and device
CN105338363A (en) Method and device for encoding and decoding video frames
CN114270839B (en) Method and apparatus for encoding image based on transformation

Legal Events

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

Granted publication date: 20140604

Termination date: 20220114