CN102055963A - Video coding and decoding methods and video coding and decoding devices - Google Patents

Video coding and decoding methods and video coding and decoding devices Download PDF

Info

Publication number
CN102055963A
CN102055963A CN 201010135799 CN201010135799A CN102055963A CN 102055963 A CN102055963 A CN 102055963A CN 201010135799 CN201010135799 CN 201010135799 CN 201010135799 A CN201010135799 A CN 201010135799A CN 102055963 A CN102055963 A CN 102055963A
Authority
CN
China
Prior art keywords
band
decoding
code stream
tape
identifier symbol
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.)
Pending
Application number
CN 201010135799
Other languages
Chinese (zh)
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.)
Tsinghua University
Huawei Technologies Co Ltd
Original Assignee
Tsinghua University
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 Tsinghua University, Huawei Technologies Co Ltd filed Critical Tsinghua University
Priority to CN 201010135799 priority Critical patent/CN102055963A/en
Publication of CN102055963A publication Critical patent/CN102055963A/en
Pending legal-status Critical Current

Links

Images

Abstract

The invention discloses video coding and decoding methods and video coding and decoding devices. The video decoding method comprises a step of resolving the end parameter information of a band of an obtained code stream in a decoding process of the band, wherein the end parameter information comprises the number of bits generated at the end of the band or the number of the macro blocks of the band; and determining if the decoding of the band is finished according to the end parameter information. When the methods and the devices are used, the corresponding data are packed or unpacked according to the ending judging conditions of the processed data.

Description

A kind of video coding, coding/decoding method and coding, decoding device
Technical field
The present invention relates to the video communication technology field, relate in particular to a kind of video coding, coding/decoding method and coding, decoding device.
Background technology
In video coding and decoding system, image division can be become some image blocks or macro block, and be that unit carries out estimation, the residual error after the estimation is carried out conversion, quantification with piece or macro block, at last quantization parameter is carried out entropy coding, the information that obtains behind the entropy coding is write in the code stream.
In code stream, comprise the consecutive image coded message, and can be called video flowing.For described video flowing is sent to decoding end, then also need resulting video flowing is divided into some packets that contain coded data through packings such as packet, classification processing, so that through particular network corresponding video flowing is transferred to decoding end by packet at coding side.Wherein, the purpose of packing processing is video flowing is cut apart so that it can be adapted at transmitting in the corresponding network.
In video coding and decoding system, decoding end can combine the content in the packet in a certain way with certain rule after the packet that receives the video flowing correspondence that coding side sends, and obtains reconstructed image after inverse quantization, inverse transformation, motion compensation process.
In video coding process, after image segmentation is become macro block, macro block can also be combined with certain organizational form and be referred to as slice (band), and corresponding band can be combined as corresponding band collection.At this moment, if can then will effectively handle the phenomenon of Network Packet Loss and error diffusion at corresponding band or reasonably packing processing mode of band centralized procurement.
At present, in standard H.264, the packing manner of using at band and band centralized procurement comprises: the code stream that the encoding strip thereof data are obtained will be encapsulated in a NAL (network abstraction layer) unit, and single NAL unit is broken into a packet.In the AVS standard, the packing manner of employing comprises: at first the data between per two adjacent start code prefix (0x000001) in the code stream are converted to a NAL unit, then, more single NAL unit are broken into a packet.
In realizing process of the present invention, the inventor finds that there are the following problems at least in the prior art:
In above-mentioned packing manner at video flowing, do not consider the factors such as syntagmatic of band in the dividing mode of band and the image, the ability that makes corresponding packing manner handle Network Packet Loss and anti-error reduces greatly, and then causes the video transmission decreased performance.
Summary of the invention
Embodiments of the invention provide a kind of method and device of video flowing transmission, with the ability of anti-Network Packet Loss of effective raising and anti-error, and decoding performance, improve the video transmission effect.
The embodiment of the invention provides a kind of packaging method of video data, comprising:
Obtain band collection to be sent, described band collection comprises one or more bands;
Coded system between each band of concentrating according to band is concentrated the one or more bands that the comprise operation of packing to band.
The embodiment of the invention provides a kind of packing apparatus of video data, comprising:
Band collection acquiring unit is used to obtain band collection to be sent, and described band collection comprises one or more bands;
The packing operating unit, the coded system that is used between each band that the band that obtains according to described band collection acquiring unit concentrates is concentrated the one or more bands that the comprise operation of packing to band.
A kind of method of video coding comprises:
In the encoding strip thereof process, the bit number that produces when obtaining the encoding strip thereof process discal patch end of tape, and the bit number that produces during with described the end of tape writes in the code stream;
Perhaps,
In the encoding strip thereof process, obtain the macroblock number that encoding strip thereof comprises, and described macroblock number is write in the code stream.
A kind of video coding apparatus comprises:
The band coding unit is used for current band is carried out encoding operation;
Finish the parameter writing unit, be used for carrying out the encoding strip thereof process at described band coding unit, write the end parameter information of band in encoding code stream, described end parameter information comprises: the bit number that produces during the bar end of tape, perhaps, the macroblock number that comprises of band.
A kind of video frequency decoding method comprises:
In decoding band process, resolve the end parameter information that obtains the band in the code stream, described end parameter information comprises: the bit number that produces during the bar end of tape, perhaps, the macroblock number that band comprises;
Determine according to described end parameter information whether the decoding of band is finished.
A kind of video decoder comprises:
Finish parameter acquiring unit, be used for resolving the end parameter information that obtains the band in the encoding code stream in decoding band process, described end parameter information comprises: the bit number that produces during the bar end of tape; Perhaps, the macroblock number that comprises of band;
The band decoding unit, the end parameter information that is used for obtaining according to described end parameter acquiring unit determines whether finish at the decoding of current band, to realize the decode operation at band.
The technical scheme that is provided by the embodiment of the invention described above as can be seen, the embodiment of the invention is owing to adopted the implementation of video flowing being packed and handling according to the coded system between the band, thereby can guarantee by the packet after the packing being carried out in the process of video flowing transmission, can effectively handle the phenomenon of Network Packet Loss and error diffusion, improve the performance of video coding and decoding system.In the embodiment of the invention, because in the encoding strip thereof process, in code stream, write corresponding end parameter information, thereby made and fast, accurately to identify the band end point in decoding end, thereby improve the accuracy of decoding, further improved the performance of video coding and decoding system.
Description of drawings
Fig. 1 is that the band collection in the embodiment of the invention is divided schematic diagram;
The structural representation of the device that Fig. 2 provides for the embodiment of the invention;
The structural representation of the code device that Fig. 3 provides for the embodiment of the invention;
The structural representation of the decoding device that Fig. 4 provides for the embodiment of the invention.
Embodiment
In the embodiment of the invention, after obtaining the band collection that comprises one or more bands to be sent, the coded system between each band that can concentrate according to band is concentrated the one or more bands that the comprise operation of packing to band.Wherein, described coded system can but be not limited to comprise absolute coding mode or non-independent numbering etc.
In the embodiment of the invention, specifically can be according to the situation that is provided with of band collection parameter and Network Transmission condition etc., the several strips of concentrating with band collection or band is that unit packs, described band is concentrated and is comprised one or more bands, described band can comprise according to the continuous macro block of scanning sequency, for example, according to the continuous macro block of raster scan order.Wherein, corresponding band collection parameter can include but are not limited to: be used to identify the parameter whether current band belongs to current band collection, perhaps, being used for identifying current band concentrates band whether to have the parameter (i.e. the parameter that whether has adopted the absolute coding mode to encode to the band cataloged procedure) of encoding and decoding independence, and other and the relevant parameter of current band collection packing, or the like.
In the embodiment of the invention, specifically can comprise the pack process of operation of band collection according to band collection parameter: be the band that adopts the absolute coding mode to encode if band is concentrated, then each band that band is concentrated respectively separately individual packages in a packet; Comprise the band that at least one adopts non-independent coded system coding if band is concentrated, promptly band is concentrated and is comprised the band that does not adopt the absolute coding mode to encode, and each band combination of then band being concentrated is packaged in the packet.
In above-mentioned packing processing procedure, in the time need in a packet, encapsulating a plurality of band that a band concentrates, then can also be according to the processing of packing of current network bandwidth situation, be specifically as follows: at first, can determine the band number that can encapsulate in the packet according to the current network bandwidth, afterwards, according to the described band number that can encapsulate, the band that band is concentrated is packaged in one or more meeting in the packet that the current network bandwidth for transmission requires.
Further, in the embodiment of the invention, the packing manner that can adopt comprises:
When the network bandwidth can guarantee to concentrate all bands to pack transmission together the band, then, all bands that band is concentrated can be done as a whole the packing according to the setting of current band collection parameter.When the network bandwidth can not guarantee to concentrate all bands to pack together the band, perhaps, when determining to be not suitable for whole band collection packed together according to current band collection parameter, then can suitably divide into groups to the band collection according to the situation of the network bandwidth, the several strips that band is concentrated is separately packed, and promptly several bands of concentrating with band are that unit packs.
Wherein, can guarantee when the network bandwidth under the situation that concentrated all bands of band are packed together, (promptly do not adopt the absolute coding mode to encode if do not have encoding and decoding independence between at least one band that current band is concentrated and other bands, but the coded system that relies on the data of other bands between the employing band is encoded), then all bands that current band is concentrated can be done as a whole the packing.Otherwise, be to have coding independence between concentrated all bands of current band, each band that band is concentrated can be packed separately, promptly when losing single bag, also not influence the decoding of concentrating other packet at band, to guarantee corresponding error-resilient performance.
In the embodiment of the invention, pack together more than a number purpose band if need concentrate to band, then, need on original basis, operate accordingly, to adapt to the demand of new packetized form based on single band packing pattern with respect to the packing processing mode of available technology adopting; For example, for code stream (as AVS video flowing etc.) based on start code prefix, can no longer the initial code between the band be cut apart and remove, only remove the preceding initial code of first band, be packaged in other bands that this band in the same packet is concentrated for needs, then keep corresponding band initial code, afterwards, a plurality of bands are mapped to a NAL unit; Perhaps, for code stream, no longer single band is mapped to a NAL unit, but a plurality of bands that will need are combined into a NAL unit together based on the NAL unit.
Need to prove, one of ordinary skill in the art will appreciate that all or part of step that realizes in the foregoing description method is to instruct relevant hardware to finish by program, described program can be stored in the computer read/write memory medium, this program is when carrying out, comprise all or part of treatment step of describing in the embodiment of the invention, wherein, described storage medium can but be not limited to: ROM/RAM, magnetic disc or CD etc.
For ease of understanding, will be in conjunction with the accompanying drawings the embodiment of the embodiment of the invention be elaborated down to the embodiment of the invention.
Suppose, adopt following two relevant parameters sign band collection:
(1) slice_set_index parameter: i.e. band collection sequence number, be used for the different band collection in the identification image, the band with identical slice_set_index value belongs to same band collection;
(2) slice_independency parameter: i.e. band independence sign, be used to identify whether each band has encoding and decoding independence in the current band collection, for example, can adopt the slice_independency value is the data that can only use when representing macro block encoding and decoding in the current band at 1 o'clock in this band, the slice_independency value is can use the strip data that has identical slice_set_index in this width of cloth image, the data of other band correspondences that promptly same band is concentrated when representing in the current band macro block encoding and decoding at 0 o'clock.
The mode that corresponding band collection is divided can be with reference to shown in Figure 1, wherein, A, B0, C, B1, D, B2, E are each band; Row 0~Row 7 is 8 macro-block line in the image, and 0~7 is the upright position of macro-block line in image; Col 0~Clo 7 is 8 macro blocks row in the image, and 0~7 is listed in horizontal level in the image for macro block.
Suppose A, C, D belong to a band collection together, B0, and B1, B2 belong to the alternative in vitro test collection, and band E belongs to the 3rd band collection; Then can make A, C, three band slice_set_index of D are 0, B0, B1, B2 three band slice_set_index are 1; The slice_set_index of E is 2;
The slice_independency value of each band correspondence can be set to: A, and C, the slice_independency value of three bands of D is set to 1,1,1 respectively, B0, B1, the slice_independency value of three bands of B2 is set to respectively: 0,0,0; Band E belongs to a band collection alone, so its slice_independency value can be set to 1.
According to the setting of above-mentioned slice_independency value as can be known: A, C, in three bands of D in arbitrary band the decoding processing of macro block can not use the data of other two bands; B0, B1, the decoding processing of the interior macro block of arbitrary band can be used the data of other two bands in three bands of B2; The decoding processing of macro block can not be used the data of other band in the E band.
At image shown in Figure 1, when the network bandwidth can guarantee that band concentrates all bands to pack together, specifically can adopt following packing processing mode that each band is packed:
(1) at strips A, C, the packing manner of D
Since three strips A in the band collection 1, C, the D encoding and decoding have independence, therefore can be with A, and C, three band combination in any of D are packed; If guarantee certain error-resilient performance, then can be with A, C, D divide to open and pack, like this, if wherein any one packet loss will can not influence decode operation at other bag;
(2) at band B0, B1, the packing manner of B2
Since three band B0 in the band collection 2, B1, the B2 encoding and decoding do not have independence, therefore can be with B0, and B1, three band integral body of B2 are packed; For example,, only need the start code prefix before the B0 band code stream is removed, till the ED of B2 band, be mapped to a NAL unit for the code stream of AVS; For being in the H.264 standard of unit with NAL, then can be with band B0, B1, the data set of B2 synthesizes a NAL unit;
(3) at the packing manner of band E
Because band E becomes a band collection alone, and its coding has independence, so can pack separately to it.
The embodiment of the invention also provides a kind of packing apparatus of video data, and its specific implementation structure can comprise following processing unit as shown in Figure 2:
(1) band collection acquiring unit is used to obtain band collection to be sent, and described band collection comprises one or more bands, and wherein, described band can be for according to the continuous macro block of scanning sequency, as according to continuous macro block of raster scan order etc.;
(2) packing operating unit, the coded system that is used between each band that the band that obtains according to described band collection acquiring unit concentrates is concentrated the one or more bands that the comprise operation of packing to band;
This packing operating unit specifically can comprise following at least one unit:
The first packing processing unit is used for concentrating at band being when adopting the band that the absolute coding mode encodes, each band that band is concentrated respectively separately individual packages in a packet;
The second packing processing unit, be used for concentrating when comprising at least one band that adopts non-independent coded system coding (be band concentrate comprise the band that does not adopt the absolute coding mode to encode) at band, each band combination that band is concentrated is packaged in the packet.
Alternatively, be the requirement of the flexible adaptation network bandwidth to transfer of data, the corresponding second packing processing unit specifically can comprise with lower unit:
Band number determining unit is used for determining the band number that a packet can encapsulate according to the current network bandwidth, so that according to the size of this band number specified data bag;
The packing performance element, be used for the band number that can encapsulate according to described strip data determining unit established data bag, the band that band is concentrated is packaged in one or more packets, is the encapsulation operation that unit carries out packet with a described band number band promptly.
Alternatively, at different code streams, this second packing processing unit can comprise:
Based on the code stream packaged unit of start code prefix, be used for the start code prefix of first band of a plurality of bands is removed, the start code prefix of other bands keeps, and more a plurality of bands mappings is called a NAL unit;
Perhaps,
Based on the code stream packaged unit of NAL unit, be used for several strip data of needs combination packing are combined into a NAL unit.
In addition, in some video coding and decoding technologies, in cataloged procedure, the bit length that writes the strip data in the code stream has uncertain characteristic, thereby make decoding end can't accurately know the length of strip data in the code stream, make decode procedure can't carry out decode operation reliably
For making in the video data processing procedure, can pack to corresponding data or unpack processing according to the end Rule of judgment of processing data.Rule of judgment and corresponding data handling procedure that the embodiment of the invention also provides the encoding and decoding of corresponding band collection and independent band correspondence to finish, wherein, the independent band that produces in cataloged procedure is the band of traditional sense, it does not contain band collection parameter, and the band that each band that produces in cataloged procedure is concentrated then has common band collection parameter.
At coding side, can in the encoding strip thereof process, in encoding code stream, write the end parameter information of band accordingly, judge whether the decoding at current band finishes so that decoding end can finish parameter information according to this.
Wherein, according to different end parameter informations, the process that writes the end parameter information of band accordingly is specifically as follows following arbitrary process:
The bit number that produces when (1) obtaining the encoding strip thereof process discal patch end of tape (during the bar end of tape, writing the bit number of code stream), and the bit number that produces during with described the end of tape writes in the code stream as described end parameter information;
Alternatively, the process that the bit number that produces during with the bar end of tape writes in the code stream specifically can comprise: write special identifier symbol (as 000000000000000000000011 or 000000000000000000000000 etc.) after the bit stream of the strip data correspondence in code stream, the parameter of the bit number that this special identifier symbol produces when being used for indicating code stream to comprise the bar end of tape; Afterwards, the parameter of the bit number that produces during with the bar end of tape behind special identifier symbol writes in the code stream again, and the bit number that produces during this end of tape can but be not limited to adopt the variable length code mode to write in the code stream.
(2) obtain the macroblock number that encoding strip thereof comprises, and described macroblock number is write in the code stream as described end parameter information;
For the band cataloged procedure, coding side can write the macroblock number that current band comprises in slice header; Corresponding, in decoding end, just can judge whether the decode procedure at current band finishes according to the macroblock number that current band in the slice header comprises, even the decoded macroblock number equals the then decode procedure end of macroblock number that current band comprises, otherwise continues the decode operation at the macro block of current band.
In the embodiment of the invention, for the band collection, coding side is after the end-of-encode of band collection, can in code stream, write the end identifier of band collection, be used to indicate the end-of-encode of current band collection, for example, in bit stream, write a bit information as end identifier of band collection etc.; Corresponding, in decoding end, just can judge the end of whether having decoded of current band collection, to realize accurate decoding according to this end mark.
In the embodiment of the invention, corresponding band concentrates the band that comprises to have common band collection parameter; Corresponding band does not then contain band collection parameter, and corresponding band can also can be the independent strips band for the concentrated band of band.
The embodiment of the invention also provides the implementation of corresponding video decoding, and it resolves the end parameter information that obtains the band in the encoding code stream in decoding band process; And determine whether finish at the decoding of current band according to finishing parameter information, to realize decode operation at band.
Corresponding with coding side, finishing parameter information accordingly can comprise: the bit number that produces during the bar end of tape; Perhaps, the macroblock number that comprises of band.
Further, if the bit number that the end parameter information produces when being the bar end of tape, then resolve in the process of the end parameter information that obtains the band in the encoding code stream, at first the special identifier after the bit stream of the strip data correspondence in the decoding acquisition code stream accords with, the parameter of the bit number that this special identifier symbol produces when being used for indicating code stream to comprise the bar end of tape; Behind the special identifier symbol, can resolve the bit number that produces when obtaining the bar end of tape.
In decoding end, if the bit number that the end parameter information produced when being the bar end of tape then determines that according to finishing parameter information the process of whether finishing at the decoding of current band can comprise:
(1) after a macro block or a macro-block line data decode finish, with current bit stream pointer forward, the bit number that produces during the bar end of tape that the reach figure place obtains for corresponding decoding;
(2) judge whether the bit stream current location is the byte-aligned position, if not, judge then whether the position that the next byte of current location begins is the special identifier symbol; Otherwise, judge whether current location is the special identifier symbol afterwards;
(3), judge and determine that the relevant position is the special identifier symbol that then the band decoding finishes if in said process (2), otherwise, behind the bit number that produces when behind the bit stream pointer, moving the corresponding bar end of tape, continue next macro block of decoding or macro-block line data, finish until current band decoding.
In decoding end, if finishing parameter information is the macroblock number that band comprises, then determine that according to finishing parameter information the process of whether finishing at the decoding of current band can comprise: resolve the macroblock number that the band that obtains code stream comprises, in decoding band process, if the decoded macroblock number equals the macroblock number that corresponding band comprises, then the band decoding finishes, otherwise, continue next macro block of decoding or macro-block line data, finish until current band decoding.
Encoding and decoding termination condition below in conjunction with band collection and independent band, with based on contextual self adaptation binary arithmetic coding (Context-based Adaptive Binary Arithmatic Coding, CABAC) mode is an example, and coding side is described at the packing processing procedure of video data and the decoding end processing procedure that unpacks at video data.
In the CABAC technology, the read-write of Bit data has unpredictability, usually required bit number that writes of syntactic element of coding need depend on contextual syntactic element, the data that make decoding end to know to read how many bits from bit stream are as the data of a band, thereby have brought difficulty for the judgement of the bar end of tape.That is to say, if hypothesis CABAC encoding operation process is terminate_slice (), CABAC decode operation process is decode_terminate (), then since the encoding characteristics terminate_slice () of CABAC coding side write as bit number can not know in advance, thereby make decoding end also can't know the required bit number that reads of band decoding end decode_terminate () process in advance.
Based on the above-mentioned feature of corresponding C ABAC technology, in the embodiment of the invention, can adopt following processing mode respectively, to solve corresponding problem at coding side and decoding end.
(1) coding side
At coding side, the bit number that produces during record terminate_slice () the process institute bar end of tape, and can but be not limited to adopt the variable length code mode that this parameter (bit number that produces when being the bar end of tape) is write in the code stream.
Further, for can being located fast, decoding end obtains this parameter, can in code stream, at first write special identifier symbol, this special identifier symbol is current only to be existed when terminate_slice () process produces bit number when writing, the i.e. parameter of the bit number that produces when comprising the bar end of tape in this special identifier symbol indication code stream, for example, this special identifier symbol can but be not limited to: 000000000000000000000011, promptly 22 ' 0 ' add ' 11 ' again.The process that this parameter (bit number that produces when being the bar end of tape) is write in the code stream can comprise accordingly: after strip data coding was finished, ' 1 ' that writes a filling bit earlier write filling bit ' 0 ' afterwards again until byte-aligned; After the byte-aligned, in code stream, write this special identifier symbol again, and the bit number that produces when writing terminate_slice () the process institute bar end of tape; Write a filling bit ' 1 ' at last again, and write filling bit ' 0 ' successively again until byte-aligned.
(2) decoding end
In decoding end, resolve this strip data before, at first in strip data, find the described special identifier symbol that presets, suppose that in this embodiment this special identifier symbol is: 000000000000000000000011, promptly 22 ' 0 ' add ' 11 ' again; After finding described special identifier symbol, then behind this identifier, read the required bit number that reads of decoding end decode_terminate () process, i.e. the bit number that produces during coding side terminate_slice () the process institute bar end of tape in the variable length code mode; After the parameter of the bit number that produces when obtaining the corresponding bar end of tape, the code stream pointer is relocated to strip data begins the place, and the decoding strip data.
In decoding band data procedures, after decoding finishes a macro block or a macro-block line or some macro block datas that specifies number, with the code stream pointer forward, the number of bits of reach is the required bit number that reads of described decode_terminate () process (bit number that produces during the bar end of tape that obtains of promptly decoding); Afterwards, corresponding processing procedure comprises following two kinds of situations:
(1) if bit stream current location (being code stream pointer position pointed) is not the position of byte-aligned, whether 24 bits then judging next byte (the being the byte-aligned position) beginning of bit stream current location are that described special identifier symbol (supposes that in this embodiment this special identifier symbol is: 000000000000000000000011, promptly 22 ' 0 ' add ' 11 ' again), if, then decode procedure finishes, also the bit stream pointer is moved to after the parameter of the required bit number that reads of expression described decode_terminate () process in the code stream, if not, then the required bit number that reads of described decode_terminate () process will be moved behind the bit stream pointer, and continue next macro block data of decoding, finish until the band decoding;
(2) if bit stream current location (being code stream pointer position pointed) is the position of byte-aligned, whether 24 bits then judging next byte-aligned place again of the position that current pointer position pointed begins or current pointer is pointed are that described special identifier symbol (supposes that in this embodiment this special identifier symbol is: 000000000000000000000011, promptly 22 ' 0 ' add ' 11 ' again), if, then the band decoding finishes, also the bit stream pointer is moved to after the parameter of the required bit number that reads of expression described decode_terminate () process in the code stream, if not, then will move described decode behind the bit stream pointer
The required bit number that reads of terminate () process, and continue next macro block data of decoding, finish until the band decoding.
Below again with a concrete example, said process is described: suppose, at coding side, carry out terminate_slice () process after the current band end-of-encode and write the bit number (bit number of encoding strip thereof in the code stream, the bit number that produces when being described the end of tape) be 5, the then concrete mode that writes code stream can add for writing 22 0 in alignment place of terminate_slice () postbyte ' 11 ', write 00110 (bit number that produces when promptly representing the bar end of tape is 5) with joint Columbus coding mode again.Corresponding, in decoding end, at first between two band initial codes, obtain 22 0 to add ' 11 ' the position, the bit number 5 that when reading the bar end of tape thereafter, produces then, suppose that current macro decoding end bit flow index points to 19 position, then with the position of bit stream pointer to 5 bits to 24 of reach, be the position that byte-aligned is continued to seek in 24 position from this bit stream pointer again, and begin to judge whether to be described special identifier symbol from the position of this byte-aligned, if then the band decoding finishes, otherwise continue the next macro block of decoding, go round and begin again, finish up to the band decoding.
The embodiment of the invention also provides a kind of video coding apparatus, and its specific implementation structure can comprise as shown in Figure 3:
Band coding unit 301 is used for current band is carried out encoding operation;
Finish parameter writing unit 302, be used for carrying out the encoding strip thereof process, in encoding code stream, write the end parameter information of band at band coding unit 301; This end parameter information can comprise: the bit number that produces during the bar end of tape; Perhaps, the macroblock number that comprises of band.
In this device,, then finish parameter writing unit 302 and specifically can comprise if corresponding end parameter information is the Bit data that writes code stream:
Special identifier symbol writing unit 3021, be used for after the bit stream of the strip data correspondence of the code stream that band coding unit 301 obtains, writing the special identifier symbol, the parameter of the bit number that this special identifier symbol produces when being used for indicating code stream to comprise described the end of tape;
Bit number writing unit 3022, the parameter of the bit number that produces when being used for behind the special identifier symbol that special identifier symbol writing unit 3021 writes described the end of tape writes code stream.
The concrete cataloged procedure that adopts of above-mentioned video coding apparatus is described among the method embodiment in front, so describe in detail no longer one by one at this.
The embodiment of the invention also provides a kind of video decoder, and its specific implementation structure can comprise as shown in Figure 4:
Finish parameter acquiring unit 401, be used for resolving the end parameter information that obtains the band in the encoding code stream in decoding band process; Equally, this end parameter information can but be not limited to comprise: the bit number that produces during the bar end of tape; Perhaps, the macroblock number that comprises of band.
Band decoding unit 402 is used for determining whether finish at the decoding of current band according to the end parameter information that end parameter acquiring unit 401 is obtained, to realize the decode operation at band.
In this device, if the bit number that the end parameter information produced when being the bar end of tape, then above-mentioned end parameter acquiring unit 401 specifically can comprise:
Special identifier symbol acquiring unit 4011, the special identifier symbol after the bit stream of the strip data correspondence that obtains code stream of being used for decoding, the parameter of the bit number that this special identifier symbol produces when being used for indicating code stream to comprise described the end of tape;
Bit number acquiring unit 4012 is used for resolving the bit number that produces when obtaining described the end of tape behind the special identifier symbol that special identifier symbol acquiring unit 4011 obtains.
In this device, if the bit number that the end parameter information produced when being the bar end of tape, then above-mentioned band decoding unit 402 specifically can comprise:
Pointer shifting processing unit 4021 is used for after a macro block or macro-block line data decode end, with current bit stream pointer forward, and the bit number that the reach figure place produces when being described the end of tape;
First judging unit 4022 is used to judge whether the bit stream current location is the byte-aligned position;
Second judging unit 4023 is used for when corresponding first judging unit 4022 determines that current locations are not the byte-aligned position, judges then whether the position that the next byte of current location begins is described special identifier symbol; If determine that current location is the byte-aligned position, judge then whether current location is described special identifier symbol afterwards;
Judged result processing unit 4024, be used for determining that at second judging unit 4023 relevant position is described special identifier symbol, judge that then the band decoding finishes, otherwise, behind the bit number that produces when behind the bit stream pointer, moving the bar end of tape, continue next macro block of decoding or macro-block line data, finish until current band decoding.
The concrete decode procedure that adopts of above-mentioned video decoder is described among the method embodiment in front, so describe in detail no longer one by one at this.
The embodiment of the invention also provides coding/decoding system, is made up of video coding apparatus and corresponding video decoding device that the various embodiments described above provide.
One of ordinary skill in the art will appreciate that all or part of flow process that realizes in the foregoing description method, be to instruct relevant hardware to finish by computer program, described program can be stored in the computer read/write memory medium, this program can comprise the flow process as the embodiment of above-mentioned each side method when carrying out.Wherein, described storage medium can be magnetic disc, CD, read-only storage memory body (Read-Only Memory, ROM) or at random store memory body (Random AccessMemory, RAM) etc.
In sum, owing to adopted according to band collection parameter (being band collection coded system), thereby can improve the ability of anti-Network Packet Loss and anti-error, improve the video transmission effect the band collection that the comprises one or more bands processing of packing; For example, when adopting the absolute coding mode to encode between each band that band is concentrated, then each band that band is concentrated can be bundled to respectively in the different packets, thereby can improve the ability of the anti-packet loss in the video transmission process.Further, in the process that a plurality of bands is bundled to a packet, can also pack, thereby make the packet after the packing can adapt to the Network Transmission environment well according to the network bandwidth.
The above; only for the preferable embodiment of the present invention, but protection scope of the present invention is not limited thereto, and anyly is familiar with those skilled in the art in the technical scope that the present invention discloses; the variation that can expect easily or replacement all should be encompassed within protection scope of the present invention.Therefore, protection scope of the present invention should be as the criterion with the protection range of claim.

Claims (15)

1. the method for a video coding is characterized in that, comprising:
In the encoding strip thereof process, the bit number that produces when obtaining the encoding strip thereof process discal patch end of tape, and the bit number that produces during with described the end of tape writes in the code stream;
Perhaps,
In the encoding strip thereof process, obtain the macroblock number that encoding strip thereof comprises, and described macroblock number is write in the code stream.
2. method according to claim 1 is characterized in that, the process that the bit number that produces during with described the end of tape writes in the code stream comprises:
Write the special identifier symbol after the bit stream of the strip data correspondence in code stream, the parameter of the bit number that this special identifier symbol produces when being used for indicating code stream to comprise described the end of tape;
The parameter of the bit number that produces during with described the end of tape behind described special identifier symbol writes in the code stream.
3. method according to claim 2 is characterized in that, described special identifier symbol comprises: 000000000000000000000011 or 000000000000000000000000.
4. method according to claim 2 is characterized in that, the bit number that produces during described the end of tape adopts the variable length code mode to write in the code stream.
5. according to each described method of claim 1 to 4, it is characterized in that in the cataloged procedure at the band collection, this method also comprises:
Write the end identifier of band collection in code stream, be used to indicate the end-of-encode of current band collection, described band collection comprises one or more bands.
6. a video coding apparatus is characterized in that, comprising:
The band coding unit is used for current band is carried out encoding operation;
Finish the parameter writing unit, be used for carrying out the encoding strip thereof process at described band coding unit, write the end parameter information of band in encoding code stream, described end parameter information comprises: the macroblock number that bit number that produces during the bar end of tape or band comprise.
7. device according to claim 6 is characterized in that, when described end parameter information is when writing the Bit data of code stream, described end parameter writing unit comprises:
Special identifier symbol writing unit, be used for after the bit stream of the strip data correspondence of the code stream that described band coding unit obtains, writing the special identifier symbol, the parameter of the bit number that this special identifier symbol produces when being used for indicating code stream to comprise described the end of tape;
The bit number writing unit, the parameter of the bit number that produces when being used for behind the special identifier symbol that described special identifier symbol writing unit writes described the end of tape writes code stream.
8. a video frequency decoding method is characterized in that, comprising:
In decoding band process, resolve the end parameter information that obtains the band in the code stream, described end parameter information comprises: the bit number that produces during the bar end of tape, perhaps, the macroblock number that band comprises;
Determine according to described end parameter information whether the decoding of band is finished.
9. method according to claim 8 is characterized in that, the process that described parsing obtains the end parameter information of the band in the encoding code stream comprises:
Special identifier symbol after the bit stream of the strip data correspondence in the decoding acquisition code stream, the position of the parameter of the bit number that this special identifier symbol produces when being used for indicating code stream to comprise described the end of tape;
Behind described special identifier symbol, resolve the bit number that produces when obtaining described the end of tape.
10. method according to claim 9 is characterized in that, described special identifier symbol comprises: 000000000000000000000011 or 000000000000000000000000.
11. according to Claim 8,9 or 10 described methods, it is characterized in that, describedly determine that according to described end parameter information the process of whether finishing at the decoding of current band comprises:
After a macro block or macro-block line data decode end, with current bit stream pointer forward, the bit number that the reach figure place produces when being described the end of tape;
Judge whether the bit stream current location is the byte-aligned position, if not whether the next byte of then judging bit stream pointed bit stream position begins the place is described special identifier symbol; Otherwise, judge whether bit stream pointed bit stream position is described special identifier symbol afterwards, judge perhaps whether next byte after the bit stream pointed bit stream position is described special identifier symbol.
If judge to be defined as described special identifier symbol, then the band decoding finishes, and the bit stream pointer moves to after the parameter of the described bit number that reads code stream; Otherwise, after moving the described bit number that reads code stream behind the bit stream pointer, continue next macro block of decoding or macro-block line data.
12. method according to claim 8 is characterized in that, describedly determines that according to described end parameter information the process whether finish at the decoding of current band comprises:
The macroblock number that the band of acquisition code stream comprises, if the decoded macroblock number equals the macroblock number that described band comprises, then the band decoding finishes.
13. a video decoder is characterized in that, comprising:
Finish parameter acquiring unit, be used for resolving the end parameter information that obtains the band in the encoding code stream in decoding band process, described end parameter information comprises: the bit number that produces during the bar end of tape, perhaps, the macroblock number that band comprises;
The band decoding unit, the end parameter information that is used for obtaining according to described end parameter acquiring unit determines whether finish at the decoding of current band, to realize the decode operation at band.
14. device according to claim 13 is characterized in that, if the bit number that described end parameter information produced when being the bar end of tape, then described end parameter acquiring unit comprises:
Special identifier symbol acquiring unit, the special identifier symbol after the bit stream of the strip data correspondence that obtains code stream of being used for decoding, the parameter of the bit number that this special identifier symbol produces when being used for indicating code stream to comprise described the end of tape;
The bit number acquiring unit is used for resolving the bit number that produces when obtaining described the end of tape behind the special identifier symbol that described special identifier symbol acquiring unit obtains.
15., it is characterized in that described band decoding unit comprises according to claim 13 or 14 described devices:
Pointer shifting processing unit is used for after a macro block or macro-block line data decode end, with current bit stream pointer forward, and the bit number that the reach figure place produces when being described the end of tape;
First judging unit is used to judge whether the bit stream current location is the byte-aligned position;
Second judging unit is used for determining that at described first judging unit current location is not the byte-aligned position, judges then whether the position that the next byte of current location begins is described special identifier symbol; If determine that current location is the byte-aligned position, judge then whether current location is described special identifier symbol afterwards;
The judged result processing unit, be used for determining that at described second judging unit relevant position is described special identifier symbol, judge that then the band decoding finishes, otherwise, behind the bit number that produces when behind the bit stream pointer, moving described the end of tape, continue next macro block of decoding or macro-block line data.
CN 201010135799 2008-06-13 2008-06-13 Video coding and decoding methods and video coding and decoding devices Pending CN102055963A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN 201010135799 CN102055963A (en) 2008-06-13 2008-06-13 Video coding and decoding methods and video coding and decoding devices

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN 201010135799 CN102055963A (en) 2008-06-13 2008-06-13 Video coding and decoding methods and video coding and decoding devices

Related Parent Applications (1)

Application Number Title Priority Date Filing Date
CN 200810110177 Division CN101394550B (en) 2007-09-17 2008-06-13 Packing method and device for video data

Publications (1)

Publication Number Publication Date
CN102055963A true CN102055963A (en) 2011-05-11

Family

ID=43959832

Family Applications (1)

Application Number Title Priority Date Filing Date
CN 201010135799 Pending CN102055963A (en) 2008-06-13 2008-06-13 Video coding and decoding methods and video coding and decoding devices

Country Status (1)

Country Link
CN (1) CN102055963A (en)

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103139528A (en) * 2013-01-17 2013-06-05 华为技术有限公司 Disposing method of audio data and video data and device
CN103718557A (en) * 2011-07-29 2014-04-09 夏普株式会社 Method for decoding video
CN104461938A (en) * 2014-12-11 2015-03-25 北京国双科技有限公司 Method and device for reading data
US9398307B2 (en) 2011-07-11 2016-07-19 Sharp Kabushiki Kaisha Video decoder for tiles
US9525877B2 (en) 2011-07-11 2016-12-20 Sharp Kabushiki Kaisha Video decoder parallelization for tiles
CN107409214A (en) * 2015-01-21 2017-11-28 三星电子株式会社 Method and apparatus for the method and apparatus decoded to cross-layer video and for being encoded to cross-layer video

Cited By (15)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US9667971B2 (en) 2011-03-10 2017-05-30 Sharp Kabushiki Kaisha Video decoder for slices
US9398307B2 (en) 2011-07-11 2016-07-19 Sharp Kabushiki Kaisha Video decoder for tiles
US10812799B2 (en) 2011-07-11 2020-10-20 Velos Media, Llc Method for encoding video
US11805253B2 (en) 2011-07-11 2023-10-31 Velos Media, Llc Processing a video frame having slices and tiles
US11451776B2 (en) 2011-07-11 2022-09-20 Velos Media, Llc Processing a video frame having slices and tiles
US9525877B2 (en) 2011-07-11 2016-12-20 Sharp Kabushiki Kaisha Video decoder parallelization for tiles
US10390013B2 (en) 2011-07-11 2019-08-20 Velos Media, Llc Method for encoding video
CN103718557B (en) * 2011-07-29 2017-07-28 夏普株式会社 Method for decoding video
CN107277530A (en) * 2011-07-29 2017-10-20 夏普株式会社 Method For Decoding Video
CN103718557A (en) * 2011-07-29 2014-04-09 夏普株式会社 Method for decoding video
CN103139528B (en) * 2013-01-17 2016-07-27 华为技术有限公司 The processing method of a kind of audio, video data and device
CN103139528A (en) * 2013-01-17 2013-06-05 华为技术有限公司 Disposing method of audio data and video data and device
CN104461938A (en) * 2014-12-11 2015-03-25 北京国双科技有限公司 Method and device for reading data
CN107409214A (en) * 2015-01-21 2017-11-28 三星电子株式会社 Method and apparatus for the method and apparatus decoded to cross-layer video and for being encoded to cross-layer video
US10820007B2 (en) 2015-01-21 2020-10-27 Samsung Electronics Co., Ltd. Method and apparatus for decoding inter-layer video, and method and apparatus for encoding inter-layer video

Similar Documents

Publication Publication Date Title
CN101394550B (en) Packing method and device for video data
US10587286B1 (en) Methods and devices for handling equiprobable symbols in entropy coding
FI104777B (en) Digital Signal Processing System
KR100942860B1 (en) Apparatus and method for generating and interpreting a data stream with segments having specified entry points, and computer readable medium storing a program thereof
CN103096047B (en) A kind of fragment layer parameter set decoding and coding method and device
CN102055963A (en) Video coding and decoding methods and video coding and decoding devices
KR100667739B1 (en) Apparatus for transmitting/receiving wireless data and method thereof
CN1787641B (en) Picture information decoding method and picture information encoding method
US7305036B2 (en) System and method for entropy code preprocessing
CN102160378A (en) Method and apparatus for synchronizing highly compressed enhancement layer data
CN105191248A (en) Method and apparatus for packet header compression
CN101500160B (en) Code stream identification method, apparatus and encoding, decoding system
KR970701984A (en) Buffer management in variable bit-rate compression systems
US7107111B2 (en) Trick play for MP3
CN104253996A (en) Video data sending and receiving methods, video data sending and receiving devices and video data transmission system
KR20020064776A (en) MPEG-4 encoder and output coded signal of such an encoder
JP4907039B2 (en) Signal encoding method
EP0576131B1 (en) Serial data decoding
CN101998141B (en) Method, device and system for packaging, encoding and decoding video data
CN1147157C (en) Decoding device and method
CN1294759C (en) Video code method
CN101540899B (en) I frame resolution method and I frame resolver in streaming media system
CN101296166B (en) Method for measuring multimedia data based on index
CN103139528B (en) The processing method of a kind of audio, video data and device
CN105657448A (en) Method, device and system for forwarding encoded video streams

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C12 Rejection of a patent application after its publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20110511