The present invention relates to a video information compression technique, and more particularly, to a method of signaling a bitstream including video information and a method of parsing information using the same.
Recently, demands for high-resolution and high-quality images have increased in various fields of applications. As images have higher resolution and higher quality, the amount of information on the images also increases.
Accordingly, if video data is transmitted media such as existing wired and wireless broadband lines, or is stored using conventional storage media, the costs of transmitting and storing data also rise.
High-efficiency video compression techniques may be employed in order to effectively transmit, store, and reproduce information in videos with high resolution and high quality.
In order to improve video compression efficiency, inter prediction and intra prediction can be used. In inter prediction, pixel values within a current picture are predicted by referring to information on another picture. In intra prediction, pixel values within a current picture are predicted using connections between pixels within the same picture.
A processing unit of a predicted picture, for example, a block, may be subjected to various methods so as to render the picture identical to the original picture. Accordingly, a decoding apparatus may decode the picture more exactly to be identical to the original picture, and an encoding apparatus may encode the picture to be reconstructed more exactly.
An aspect of the present invention is to provide a method and apparatus for effectively signaling encoded video information.
Another aspect of the present invention is to provide a method and apparatus for setting an entry point in bytes and signaling the entry point when parallel decoding is used.
Still another aspect of the present invention is to provide a method and apparatus for performing parallel decoding using a byte-aligned decoding unit.
Yet another aspect of the present invention is to provide a method and apparatus for specifying information transmitted and received for performing parallel decoding using a byte-aligned decoding unit and performing encoding and decoding using the information.
An embodiment of the present invention provides a video encoding method including entropy-encoding quantized transform information and transmitting the entropy-encoded information in a bitstream, wherein the bitstream comprises information specifying, in bytes, information to be subjected to parallel decoding.
The bitstream may include, in a slice header, offset information specifying an entry point of a row of coding tree units (CTUs) to be subjected to parallel decoding, and the offset information may indicate a number of bytes between two entry points.
The entropy-encoding may start entropy-encoding at an access point indicated by an entry point of a row of CTUs, in which when a reference CTU of a current row is completely entropy-encoded, entropy-encoding a first CTU in a next row may start based on context of the reference CTU, a number of bytes of the current row being indicated by an offset between entry points transmitted in the bitstream.
Another embodiment of the present invention provides a video decoding method including receiving a bitstream and performing parallel decoding based on the bitstream, wherein the bitstream comprises information specifying, in bytes, information to be subjected to parallel decoding.
The performing of the decoding may include entropy-decoding the bitstream and reconstructing a picture based on entropy-decoded information.
The performing of the decoding may entropy-decode a L-th CTU CTUNL in an N-th row of CTUs and then entropy-decode a first CTU CTUN+11 in an (N+1)-th row of CTUs based on context of the CTUML, N and L being an integer, in which a number of bytes of the N-th row may be indicated by N-th offset information of information on offsets between entry points included in the bitstream.
That is, the bitstream may include offset information specifying an entry point of a row of CTUs to be subjected to parallel decoding, and the offset information may indicate a number of bytes between two entry points. The offset information may be transmitted via a slice header.
The performing of the decoding may starts decoding at an access point indicated by an entry point of a row of CTUs, in which when a reference CTU of a current row is completely entropy-decoded, entropy-decoding a first CTU in a next row may start based on context of the reference CTU, a number of bytes of the current row being indicated by an offset between entry points transmitted in the bitstream.
According to the present invention, encoded video information is effectively signaled, thereby improving coding efficiency.
Further, when parallel decoding is used, an entry point is set in bytes and signaled, thereby effectively utilizing data resources and increasing compression efficiency.
In addition, parallel decoding is carried out using a byte-aligned decoding unit, thereby remarkably enhancing video decoding efficiency.
The present invention may be changed and modified variously and be illustrated with reference to different exemplary embodiments, some of which will be described in detail and shown in the drawings. However, these embodiments are not intended for limiting the invention. The terminology used herein is for the purpose of describing particular embodiments only and is not intended to be limiting the technical idea of the invention. As used herein, the singular forms “a,” “an” and “the” are intended to include the plural forms as well, unless the context clearly indicates otherwise. It will be further understood that the terms “include” and/or “have,” when used in this specification, specify the presence of stated features, integers, steps, operations, elements, components, and/or combinations thereof, but do not preclude the presence or addition of one or more other features, integers, steps, operations, elements, components, and/or combinations thereof.
Although elements illustrated in the drawings are independently shown for convenience of description of different distinctive functions in a video encoding apparatus/decoding apparatus, such a configuration does not indicate that each element is constructed by a separate hardware constituent or software constituent. That is, at least two elements may be combined into a single element, or a single element may be divided into a plurality of elements to perform functions. It is to be noted that embodiments in which some elements are integrated into one combined element and/or an element is divided into multiple separate elements are included in the scope of the present invention without departing from the essence of the present invention.
Hereinafter, exemplary embodiments of the invention will be described in detail with reference to the accompanying drawings. Like reference numerals in the drawings refer to like elements throughout, and redundant descriptions of like elements will be omitted herein.
The picture partition module 105 may partition an input picture into at least one block as a processing unit. Here, the block as the processing unit may be a prediction unit (PU), a transform unit (TU) or a coding unit (CU).
Processing unit blocks partitioned by the picture partition module 105 may have a quadtree structure.
The prediction module 110 may include an inter prediction module to perform inter prediction and an intra prediction module to perform intra prediction, which will be described. The prediction module 110 performs prediction on the processing unit of the picture from the partition module 105 to generate a prediction block. The processing unit of the picture in the prediction module 110 may be a CU, a TU or a PU. Furthermore, the prediction module 110 may determine whether to perform inter prediction or intra prediction for the processing unit, and determine details (for example, a prediction mode) of each prediction method. Here, a processing unit for performing prediction may be different from a processing unit for determining a prediction method and details on the prediction method. For example, a prediction method and a prediction mode may be determined by each PU, while prediction may be performed by each TU.
In inter prediction, a prediction block may be generated by performing prediction based on information on at least one of previous and/or subsequent pictures of a current picture. In intra prediction, a prediction block may be generated by performing prediction based on information on a pixel within the current picture.
A skip mode, a merge mode and motion vector prediction (MVP) may be used as an inter prediction method. In inter prediction, a reference picture may be selected for a PU, and a reference block corresponding to the PU may be selected. The reference block may be selected as a unit of integer pixel. Subsequently, a prediction block that has a minimum residual signal with respect to the current PU and has a minimum-size motion vector is generated.
The prediction block may be generated as an integer sample unit or as a pixel unit smaller than an integer pixel, such as a ½ pixel unit and a ¼ pixel unit. Here, the motion vector may be also represented in a unit smaller than an integer pixel.
Information including an index of the reference pixel selected in inter prediction, the motion vector (e.g., a motion vector predictor) and the residual signal is entropy-encoded and transferred to a decoding apparatus. In the skip mode, since the prediction block may be a reconstructed block without a residual, the residual may not be generated, transformed, quantized and transferred.
In intra prediction, a prediction mode may be determined by a PU, and prediction may be performed by a PU. Alternatively, a prediction mode may be determined by a PU, and intra prediction may be performed by a TU.
Intra prediction may include 33 directional prediction modes and two or more non-directional modes. The non-directional modes may include a DC prediction mode and a planar mode.
In intra prediction, a prediction block may be generated after applying a filter to a reference sample. Here, it may be determined based on an intra prediction mode and/or size of a current block whether to apply the filter to the reference sample.
A PU may be a block of different sizes/forms. For example, in inter prediction, a PU may be a 2N×2N, 2N×N, N×2N or N×N block (N is an integer). In intra prediction, a PU may be a 2N×2N or N×N block (N is an integer). Here, a PU having an N×N size may be set to be applied only to a special case. For example, an N×N PU may be available only for a CU with a minimum size or only for intra prediction. In addition to the PUs with the foregoing sizes, a PU may include N×mN, mN×N, 2N×mN and mN×2N blocks (m<1).
A residual value (residual block or residual signal) between the generated prediction block and an original block is input to the transform module 115. Also, information on a prediction mode and a motion vector used for prediction are encoded along with the residual value by the entropy encoding module 130 and transmitted to the decoding apparatus.
The transform module 115 transforms the residual block by a transform block and generates a transform coefficient.
A transform block is a rectangular block of samples to which the same transformation is applied. The transform block may be a TU and have a quadtree structure.
The transform module 115 may perform transformation based on a prediction mode applied to the residual block and a size of the block.
For example, when intra prediction is applied to the residual block and the block has a 4×4 residual array, the transform module 115 may transform the residual block using discrete sine transform (DST). In other cases, the transform module 115 may transform the residual block using discrete cosine transform (DCT).
The transform module 115 may generate a transform block of transform coefficients by transformation.
The quantization module 120 may quantize residual values transformed by the transform module 115, that is, the transform coefficients, to generate quantized transform coefficients. The coefficients generated by the quantization module 120 are provided to the dequantization module 135 and the rearrangement module 125.
The rearrangement module 125 rearranges the quantized transform coefficients provided from the quantization module 120. Rearranging the quantized transform coefficients may enhance encoding efficiency in the entropy encoding module 130.
The rearrangement module 125 may rearrange a two-dimensional (2D) block of the quantized transform coefficients into a one-dimensional (1D) vector using coefficient scanning.
The entropy encoding module 130 may entropy-encode the quantized transform coefficients rearranged by the rearrangement module 125. Various encoding methods, such as exponential Golomb, context-adaptive variable length coding (CAVLC) and context-adaptive binary arithmetic coding (CABAC), may be used for entropy encoding. The entropy encoding module 130 may encode various types of information, such as quantized transform coefficient information and block type information on a CU, prediction mode information, partition unit information, PU information, transfer unit information, motion vector information, reference picture information, block interpolation information and filtering information, received from the rearrangement module 125 and the prediction module 110.
Further, the entropy coding module 130 may apply a change to a received parameter set or syntax as necessary.
The dequantization module 135 dequantizes the values quantized by the quantization module 120, that is, the quantized transform coefficients, and the inverse transform module 140 inverse-transforms the values dequantized by the dequantization module 135.
The residual values generated through the dequantization module 135 and the inverse transform module 140 are added to the prediction block predicted by the prediction module 110, thereby generating a reconstructed block.
The filter module 145 may apply a deblocking filter, an adaptive loop filter (ALF), and a sample adaptive offset (SAO) to a reconstructed picture.
The deblocking filter may remove block distortion generated on boundaries between blocks in the reconstructed picture. The ALF may perform filtering based on a value resulting from comparing the reconstructed picture obtained by filtering blocks using the deblocking filter with the original picture. The ALF may be employed only for high efficiency. The SAO reconstructs an offset difference between the residual block to which the deblocking filter has been applied and the original picture by a pixel unit, in which a band offset or an edge offset is used.
Meanwhile, the filter module 145 may not apply filtering to a reconstructed block used in inter prediction.
The memory 150 may store the reconstructed block or picture obtained via the filter module 145. The reconstructed block or picture stored in the memory 150 may be provided to the prediction module 110 performing inter prediction.
When a video bitstream is input from the video encoding apparatus, the input bitstream may be decoded according to a procedure by which the video encoding apparatus processes video information.
For example, when the video encoding apparatus uses variable-length coding (VLC), such as CAVLC, to perform entropy encoding, the entropy decoding module 210 may perform entropy decoding using the same VLC table as used in the encoding apparatus. Also, if the video encoding apparatus uses CABAC to perform entropy ending, the entropy decoding module 210 may also perform entropy decoding using CABAC.
Among pieces of information decoded by the entropy decoding module 210, information for generating a prediction block may be provided to the prediction module 230, and a residual value entropy-decoded by the entropy decoding module 210, that is, a quantized transform coefficient, may be input to the rearrangement module 215.
The rearrangement module 215 may rearrange information on the bitstream entropy-decoded by the entropy decoding module 210, that is, the quantized transform coefficients, based on a rearrangement method used in the encoding apparatus.
The rearrangement module 215 may reconstruct and rearrange a 1D vector of coefficients into a 2D block of coefficients. The rearrangement module 215 may scan coefficients based on a prediction mode of a current block (transform block) and a size of the transform block to generate a 2D block of coefficients (quantized transform coefficients).
The dequantization module 220 may perform dequantization based on a quantization parameter provided from the encoding apparatus and the rearranged coefficients of the block.
The inverse transform module 225 may perform inverse DCT and/or inverse DST on a result of quantization performed by the video encoding apparatus in response to DCT and DST performed by the transform module of the encoding apparatus. Inverse transformation may be performed on the basis of a transfer unit or a picture partition unit determined by the encoding apparatus. The transform module of the encoding apparatus may selectively perform DCT and/or DST depending on a plurality of information elements, such as a prediction method, a size of a current block and a prediction direction, and the inverse transform module 225 of the decoding apparatus may perform inverse transformation on the basis of information on transformation performed by the transform module of the encoding apparatus.
The prediction module 230 may generate a prediction block based on information relating to generation of the prediction block provided from the entropy decoding module 210 and information on a previously decoded block and/or picture provided from the memory 240.
If a prediction mode for a current PU is an intra prediction mode, intra prediction may be performed based on information on a pixel in a current picture to generate the prediction block.
If the prediction mode for the current PU is an inter prediction mode, inter prediction for the current PU may be performed based on information on at least one of previous and subsequent pictures of the current picture. Here, motion information necessary for the inter prediction for the current PU provided by the video encoding apparatus, for example, information on a motion vector and a reference picture index, may be derived by checking a skip flag and a merge flag received from the encoding apparatus.
A reconstructed block may be generated using the prediction block generated by the prediction module 230 and a residual block provided by the inverse transform module 225.
When the skip mode is used, the prediction block may be the reconstructed block without transmitting the residual block.
The reconstructed block and/or picture may be provided to the filter module 235. The filter module 235 may apply deblocking filtering, SAO and/or AFL to the reconstructed block and/or picture.
The memory 240 may store the reconstructed picture or block to be used as a reference picture or a reference block and supply the reconstructed picture to an output unit.
Meanwhile, the encoding apparatus and the decoding apparatus may partition a picture into predetermined units to process (encode/decode) the units.
For example, a picture may be partitioned into slices and tiles.
A slice is a sequence of one or more slice segments. A slice sequence includes one independent slice segment and subsequent dependent slice segments that follows the independent slice segment before a next independent slice segment.
A slice segment may be a sequence of coding tree units (CTUs) or coding tree blocks (CTBs). A CTU is CUs of a quadtree, which may be a largest coding unit (LCU). In this specification, a CTU and LCU may be replaced with each other as necessary for better understanding.
A current picture 300 is divided into two slices by a slice boundary 350. A first slice may include an independent slice segment 310 including four CTUs, a first dependent slice segment 320 including 32 CTUs and a second dependent slice segment 340 including 24 CTUs, the first dependent slice segment 320 and the second dependent slice segment being divided by a slice segment boundary 330.
Another independent slice segment 360 includes 28 CTUs.
A tile may be also a sequence of CTUs, CTBs or LCUs. A CTU is CUs of a quadtree, which may be an LCU. As described above, in this specification, a CTU and LCU may be replaced with each other as necessary for better understanding.
In detail, a tile may be an integer number of CTUs or LCUs co-occurring within a region specified by one row or one column.
With respect to each slice and each tile, all or at least one of the following two conditions are satisfied: (1) all CTUs or LCUs in a slice belong to the same tile; and (2) all CTUs or LCUs in a tile belong to the same slice.
Thus, slices including a plurality of tiles and a tile including a plurality of slices may be present within the same picture.
Further, with respect to each slice segment and each tile, all or at least one of the following two conditions are satisfied: (1) all CTUs or LCUs in a slice segment belong to the same tile; and (2) all CTUs or LCUs in a tile belong to the same slice segment.
A current picture 400 includes only a single slice and is divided into two right and left tiles based on a tile boundary 410. The slice in the current picture 400 includes an independent slice segment 420 and four dependent slice segments divided by slice segment boundaries 430, 440 and 450.
A current picture 500 is divided into two right and left tiles based on a tile boundary 510. The left tile on the tile boundary 510 includes two slices based on a slice boundary 550. An upper slice on the slice boundary 550 includes an independent slice segment 520 and a dependent slice segment 540, while a lower slice on the slice boundary 550 includes an independent slice segment 530 and a dependent slice segment 560. A next slice based on a slice boundary 590, that is, a slice in a second tile, includes an independent slice segment 570 and a dependent slice segment 580.
Encoding and decoding may be performed by a tile, a row of CTUs (hereinafter, a row or stream of CTUs or a row or stream of LCTs is referred to as a “substream” for convenience of description). Each sample in a tile or substream may be processed by a CTU or LCU.
Here, decoding may be performed in parallel. For example, decoding may be performed in parallel by tiles. Alternatively, decoding may be performed in parallel by substreams.
For instance, when entropy decoding is carried out by substreams, when entropy-decoding of an nth substream (n is an integer) starts, after a second CTU or LCU of the nth substream is entropy-decoded, then which an n+1th substream may be entropy-decoded.
A substream may be part of a bitstream to be decoded in each decoding process when a plurality of decoding processes are performed in parallel, which may be a row of LCUs or CTUs.
Here, when the second CTU or LCU of the nth substream (an nth row of CTUs or LCUs) is completely entropy-decoded, related context information is stored. A first CTU or LCU of the n+1th substream may be entropy-decoded based on the context information on the second CTU or LCU of the nth substream.
As such, parsing substreams in parallel at an interval of one CTU or LCU is defined as wavefront parallel processing (WPP).
Unlike in WPP, tiles may be simultaneously decoded in a tile structure. Here, a maximum number of tiles to be processed in parallel may be predetermined. For example, at most four tiles may be set to be processed in parallel. When the number of tiles to be processed in parallel is four or fewer, the decoding apparatus may process one to four tiles at once.
The tile structure and WPP enable the encoding apparatus to partition a picture into a plurality of sections. The decoding apparatus may decode the partitioned sections in a parallel manner.
An access point of a bitstream for performing parallel decoding using the tile structure (tile substream) or WPP substream is defined as an entry point. For example, an entry point may be a start point of each WPP substream or each tile of a bitstream to be subjected to parallel processing.
Thus, to allow parallel processing, it is important to signal an entry point of each tile or entry point of a slice header of a WPP substream. Although a tile and WPP may employ different encoding/decoding techniques, an entry point of a tile and an entry point of a substream applied WPP may be signaled in the same manner.
In parallel processing, a tile always starts at a byte aligned location, whereas a substream applied WPP (“WPP substream”) may not start at a byte aligned location. Byte alignment means alignment in bytes.
Since a tile and a WPP substream are different in bit granularity with respect to an entry point, it may be important to know whether a length of a partition, that is, a WPP substream of a tile, is signaled based on a byte, bits or bytes.
In
Each substream is sequentially decoded from a first LCU. Second and subsequent LCUs of each substream may be entropy-decoded based on results of entropy decoding previous LCUs, that is, context.
In WPP, substreams may be decoded in parallel, in which first LCUs of substreams subsequent to a first substream may be entropy-decoded based on values of context variables with respect to second LCUs of previous substreams.
For example, in parallel decoding using WPP, decoding is carried out from a first LCU A1 of a first row 610 in a decoding target region 600. When a second LCU A2 of the first row 610 is completely entropy-decoded, the decoding apparatus stores values of context variables with respect to A2.
A first LCU B1 of a second row 620 is entropy-decoded based on the values of the context variables with respect to the second LCU A2 of the first row 610. When a second LCU B2 of the second row 620 is completely entropy-decoded, the decoding apparatus stores values of context variables with respect to B2.
A first LCU C1 of a third row 630 is entropy-decoded based on the values of the context variables with respect to the second LCU B2 of the second row 620. When a second LCU C2 of the third row 630 is completely entropy-decoded, the decoding apparatus stores values of context variables with respect to C2.
Likewise, fourth and subsequent rows may be subjected to entropy decoding using values of context variables with respect to second LCUs of previous rows.
When WPP is employed, an entry point may indicate a decoding start point (access point) of each substream.
In
In
When the tile structure is employed, the decoding apparatus may decode the tiles in parallel. As illustrated above, when a maximum number of tiles to be decoded in parallel is 4, the decoding apparatus may decode tiles 1 to 4 at the same time.
In decoding the tiles in parallel, substreams are decoded in order from a first substream of each tile, for example, A→B→C→etc., in which LCUs in a substream are decoded in order from a first LCU, for example, Xx1→Xx2→Xx3→, etc.
When the tile structure is applied, entry points may indicate decoding start points (access points) of the respective tiles.
In
Meanwhile, both WPP and tiles may be applied.
When both WPP and tiles are employed, a WPP substream is applied in a tile as illustrated in
In
As shown in
Thus, considering application of tiles and WPP, content indicated by signaled entry points may need to be specified separately when neither a tile nor WPP is used, when a tile is used, when WPP is used and when both a tile and WPP are used. For example, types of entry points may be specified as follows.
(i) If neither a tile nor WPP is used, no entry point is present.
(ii) If a tile is used and WPP is not used, all entry points are entry points of the tile.
(iii) If a tile is not used and WPP is used, all entry points are entry points of a WPP sub stream.
(iv) If both a tile and WPP are used, an i-th entry point is an entry point of both a tile and a WPP sub stream when an i % number of WPP substreams is 0 while the i-th entry point is an entry point of a WPP substream when the i % number of WPP substreams is not 0.
In
As described above, in parallel decoding, a start point (access point) of each parallel processing in indicated by an entry point. Thus, various methods of signaling an entry point for the encoding apparatus and various methods of receiving a signaled entry point and performing parallel decoding for the decoding apparatus may be considered.
Hereinafter, signaling of entry point information will be described in detail with reference to exemplary embodiments.
Table 1 illustrates a syntax element in a slice header used to signal entry points of a WPP sub stream and a tile.
In Table 1, entry point information may be information on an entry point of a WPP sub stream or information on an entry point of a tile.
entry_point_location_flag specifies whether entry point information is present in a bitstream. For example, if the entry point information, for instance, entry point location information, is present in the bitstream, entry_point_location_flag is 1. If the entry point information is absent in the bitstream, entry_point_location_flag is 0.
Table 2 illustrates a syntax structure relating to the entry point location information in Table 1.
In Table 2, the entry point information may be information on an entry point of a WPP substream or information on an entry point of a tile.
num_of_entry_points_minus1 specifies a number of entry points in the bitstream in a slice. Since a number of entry point offsets is smaller by 1 than the number of entry points, num_of_entry_points_minus1 may also specify a number of syntax elements entry_point_offset[i] in the slice header.
entry_point_offset_length_minus2 specifies a number of bits used to signal information on an entry point offset (syntax element entry_point_offset). That is, entry_point_offset_length_minus2 may specify a length of syntax element entry_point_offset[i] in bits or bytes.
entry_point_offset[i] specifies a number of bits between two entry points. Here, when i is 0, entry_point_offset[0] specifies a number of bits between an end of the slice header and a first entry point in a slice. When i is not 0, entry_point_offset[i] specifies a number of bits between an entry point i−1 and an entry point i.
If the length of entry_point_offset[i] is xx, xx may be defined as Equation 1.
xx=(num_substreams_minus1>0)?entry_point_offset_length_minus2+5: entry_point_offset_length_minus2+2 [Equation 1]
In Equation 1, WPP may be employed when a number of substreams is greater than 1, while a tile may be used when the number of substreams is 1 or smaller.
In this case, an entry point type, that is, whether an entry point is about a tile or about a WPP substream, may be inferred as follows.
(1) If tile_info_present_flag is 1 and num_substream_minus1 is 0, that is, tile_info_present_flag_==1 && num_substream_minus1==0, all entry points are entry points of tiles. That is, if tile information is present and the number of substreams is 1, all entry points may be inferred as entry points of tiles.
(2) If tile_info_present_flag is 0 and num_substream_minus1 is greater than 0, that is, tile_info_present_flag==0 && num_substream_minus1>0, all entry points are entry points of WPP substreams. That is, if tile information is absent and a plurality of substreams is present, all entry points may be inferred as entry points of WPP sub streams.
(3) If tile_info_present_flag is 1 and num_substream_minus1 is greater than 0, that is, tile_info_present_flag==1 && num_substream_minus1>0, when i is not 0 (i!=0) and (i+1)%(num_substream1+1)==0, an i-th entry point is an entry point of a tile that is an i-th entry point. Otherwise, entry points are entry points of WPP substreams. That is, if tile information is present and a plurality of substreams is present, entry points may be inferred as entry points of WPP substreams or entry points of tiles and WPP sub streams.
When WPP is employed, a stream (for example, a bitstream) of encoded data in a slice may be partitioned into one or more substreams.
A substream may be a unit of parallel processing (parallel decoding), and each substream is aligned in bits. In this specification, “aligning/aligned in bits” is expressed as “bit-aligning/aligned” for convenience of description.
Thus, a length of each substream may be expressed in bits, and an entry point thereof may be also expressed in bits.
Referring to
In
The region 910 of the picture may be part of the current picture, a slice or tile of the current picture, or an entire region of the current picture. An LCU may be a CTU.
Referring to
In the bitstream 1010, an entry point 1020 of substream A may correspond to a start point of LCU A1, and an entry point 1030 of sub stream B may correspond to a start point of LCU B1.
In
As described above, the substreams of
In this connection, aligning a substream in bytes, not in bits, may be considered. In this specification, “aligning/aligned in bytes” is expressed as “byte-aligning/aligned” for convenience of description.
Thus, WPP substreams are byte-aligned when WPP is employed, while substreams in a tile may be byte-aligned when the tile structure is employed.
Byte-aligned bits may be used to byte-align substreams. A byte-aligned bit is a bit to be added to a bitstream or substream so as to byte-align each substream.
For instance, when each stream (WPP substream or substream of a tile) is not byte-aligned at an end thereof, a byte-aligned bit may be added. Thus, a length of each substream is expressed in bytes, not in bits.
A byte-aligned bit may be added to a predetermined section of a substream to be subjected to byte alignment. For example, a byte-aligned bit may be added to an end of each substream.
In
Referring to
In the bitstream 1110, an entry point 1120 of substream A may correspond to a start point of LCU A1, and an entry point 1130 of sub stream B may correspond to a start point of LCU B1.
In
When a length of substream A is not in bytes, a byte-aligned bit 1140 may be added at an end of substream A, thereby expressing substream A in bytes.
When a length of substream B is not in bytes, a byte-aligned bit 1150 may be added at an end of substream B, thereby expressing substream B in bytes.
When a sub stream is byte-aligned and both a tile and a WPP substream are possibly expressed in a byte level, an entry point may be signaled in a simpler manner with granularities of entry points of the tile and WPP substream being the same.
Table 3 illustrates a syntax element in a slice header used to signal entry points of a WPP substream and a tile.
In Table 3, entry point information may be information on an entry point of a WPP substream or information on an entry point of a tile.
entry_point_location_flag specifies whether entry point information is present in a bitstream. For example, if the entry point information, for instance, entry point location information, is present in the bitstream, entry_point_location_flag is 1. If the entry point information is absent in the bitstream, entry_point_location_flag is 0.
Table 4 illustrates a syntax structure relating to the entry point location information in Table 3.
In Table 4, the entry point information may be information on an entry point of a WPP substream or information on an entry point of a tile.
num_of_entry_points_minus1 specifies a number of entry points in the bitstream in a slice. Since a number of entry point offsets is smaller by 1 than the number of entry points, num_of_entry_points_minus1 may also specify a number of syntax elements entry_point_offset[i] in the slice header.
entry_point_offset_length_minus2 specifies a number of bits used to signal information on an entry point offset (syntax element entry_point_offset). That is, entry_point_offset_length_minus2 may specify a length of syntax element entry_point_offset[i] in bits or bytes.
entry_point_offset[i] specifies a number of bytes between two entry points.
When i is 0, entry_point_offset[i] specifies a number of bytes between an end of the slice header and a first entry point in a slice. Here, to byte-align the end of the slice header, some initial bits of a first tile/WPP substream may be added to the end of the slice header. The added bits serve as byte-aligned bits.
When i is not 0, entry_point_offset[i] specifies a number of bytes between an entry point i−1 and an entry point i.
Here, a length of entry_point_offset[i] is entry_point_offset_length_minus2+2.
An entry point type, that is, whether an entry point is about a tile or about a WPP substream, may be inferred as follows.
(1) If tile_info_present_flag is 1 and num_substream_minus1 is 0, that is, tile_info_present_flag==1 && num_substream_minus1==0, all entry points are entry points of tiles. That is, if tile information is present and the number of substreams is 1, all entry points may be inferred as entry points of tiles.
(2) If tile_info_present_flag is 0 and num_substream_minus1 is greater than 0, that is, tile_info_present_flag==0 && num_substream_minus1>0, all entry points are entry points of WPP substreams. That is, if tile information is absent and a plurality of substreams is present, all entry points may be inferred as entry points of WPP sub streams.
(3) If tile_info_present flag is 1 and num_substream_minus1 is greater than 0, that is, tile_info_present_flag−1 && num_substream_minus1>0, when i is not 0 (i!=0) and (i+1)%(num_substream1+1)==0, an i-th entry point is an entry point of a tile that is an i-th entry point. Otherwise, entry points are entry points of WPP substreams. That is, if tile information is present and a plurality of substreams is present, entry points may be inferred as entry points of WPP substreams or entry points of tiles and WPP sub streams.
When parallel processing is employed, only an entry point of a WPP substream among substreams may be signaled. For example, when only WPP is employed instead of using WPP and the tile structure in combination, an entry point of a WPP substream may be signaled.
Information on the entry point of the WPP sub stream may be also signaled in a slice header.
Table 5 illustrates a syntax in the slice header used to signal the information on the entry point of the WPP substream.
In Table 5, log_max_substream_length_minus2 specifies a number of bits used to signal information on a length of the substream, substream_length[i].
substream_length[i] specifies a number of bits between two entry points. Here, the two entry points may be about the WPP substream.
When i is 0 substream_length[i] specifies a number of bits between an end of the slice header and a first entry point in a slice. When i is not 0, substream_length[i] specifies a number of bits between an entry point i−1 and an entry point i.
Further, as in Embodiment 2, the length of the substream may be expressed in bytes. In this case, substream_length[i] specifies a number of bytes between two WPP-substream entry points.
Although the present embodiment illustrates that the information on the length of the substream is transmitted considering that only the entry point of the WPP substream is transmitted, an entry point offset may be also transmitted as in Embodiments 1 and 2, instead of the length of the substream.
In this case, the slice header in Table 5 transmits entry_point_offset[i] instead of substream_length[i]. entry_point_offset[i] specifies a number of bytes or bits between two entry points, in which a byte-aligned bit for byte-aligning the substream may be used if the number of bytes is specified.
Unlike in the foregoing embodiments, an entry point type, that is, whether an entry point is about a tile or about a WPP sub stream, may be directly signaled, instead of being inferred.
Table 6 illustrates a syntax in a slice header used to signal information on an entry point.
In Table 6, entry_point_location_flag specifies whether entry point information is present in a bitstream. For example, if the entry point information, for instance, entry point location information, is present in the bitstream, entry_point_location_flag is 1. If the entry point information is absent in the bitstream, entry_point_location_flag is 0.
Table 7 illustrates a syntax relating to the entry point location information in Table 6.
num_of_entry_points_minus1 specifies a number of entry points in the bitstream in a slice. Since a number of entry point offsets is smaller by 1 than the number of entry points, num_of_entry_points_minus1 may also specify a number of syntax elements entry_point_offset[i] in the slice header.
entry_point_offset_length_minus2 specifies a number of bits used to signal information on an entry point offset (syntax element entry_point_offset). That is, entry_point_offset_length_minus2 may represent a length of syntax element entry_point_offset[i] in bits or bytes.
entry_point_type[i] specifies an entry point type. For instance, entry_point_type[i] equal to 1 specifies an entry point of a WPP substream, and entry_point_type[i] equal to 0 specifies an entry point of both a tile and a WPP substream.
entry_point_offset[i] specifies a number of bits or bytes between two entry points. When i is 0, entry_point_offset[0] specifies a number of bits or bytes between an end of the slice header and a first entry point in a slice. When i is not 0, entry_point_offset[i] specifies a number of bits or bytes between an entry point i−1 and an entry point i.
When entry_point_offset[i] specifies a number of bytes between two entry points, a byte-aligned bit for byte-alignment may be used.
If the length of entry_point_offset[i] is xx, xx may be defined as Equation 2.
xx=(num_substreams_minus1>0)?entry_point_offset_length_minus2+5: entry_point_offset_length_minus2+2 [Equation 2]
In Equation 2, WPP may be employed when a number of substreams is greater than 1, while a tile may be used when the number of substreams is 1 or smaller.
Information on a length of an entry point offset may be signaled in a different manner from in Embodiment 1.
Table 8 illustrates a syntax element in a slice header used to signal entry points of a WPP substream and a tile.
In Table 8, entry point information may be information on an entry point of a WPP sub stream or information on an entry point of a tile.
entry_point_location_flag specifies whether entry point information is present in a bitstream. For example, if the entry point information, for instance, entry point location information, is present in the bitstream, entry_point_location_flag is 1. If the entry point information is absent in the bitstream, entry_point_location_flag is 0.
Table 9 illustrates a syntax structure relating to the entry point location information in Table 8.
In Table 9, the entry point information may be information on an entry point of a WPP substream or information on an entry point of a tile.
num_of_entry_points_minus1 specifies a number of entry points in the bitstream in a slice. Since a number of entry point offsets is smaller by 1 than the number of entry points, num_of_entry_points_minus1 may also specify a number of syntax elements entry_point_offset[i] in the slice header.
entry_point_offset_length_minus1 specifies a number of bits used to signal information on an entry point offset (syntax element entry_point_offset). That is, entry_point_offset_length_minus1 may specify a length of syntax element entry_point_offset[i] in bits or bytes.
entry_point_type[i] specifies an entry point type. For instance, entry_point_type[i] equal to 1 specifies an entry point of a WPP substream, and entry_point_type[i] equal to 0 specifies an entry point of both a tile and a WPP substream.
entry_point_offset[i] specifies a number of bits or bytes between two entry points. When i is 0, entry_point_offset[0] specifies a number of bits or bytes between an end of the slice header and a first entry point in a slice. When i is not 0, entry_point_offset[i] specifies a number of bits or bytes between an entry point i−1 and an entry point i.
When an entry point is expressed in bytes, that is, a substream is byte-aligned, a byte-aligned bit may be used as described above in Embodiment 2.
When a number of bits used to transmit an entry point offset is specified using entry_point_offset_length_minus1, if the length of entry_point_offset[i] is xx, xx may be defined as Equation 3.
xx=(num_substreams_minus1>0) entry_point_offset_length_minus1+4: entry_point_offset_length_minus1+1 [Equation 3]
In Equation 3, WPP may be employed when a number of substreams is greater than 1, while a tile may be used when the number of substreams is 1 or smaller.
entry_point_location_flag specifying whether entry point information is present in a bitstream may be inferred or derived, instead of being signaled as in the foregoing embodiments.
For example, presence of entry point information may be inferred as follows, without transmitting a syntax element in a slice header which indicates whether entry point information is present in a bitstream.
In detail, when a number of rows in a tile is greater than 1 or a number of columns in the tile is greater than 1 and a number of substreams is greater than 1, it is inferred that entry point information is present in a bitstream. Otherwise, it is inferred that entry point information is absent in a bitstream.
Table 10 illustrates a method of inferring presence of entry point information.
In Table 10, num_tile_columns_minus1+1 specifies a number of tile columns partitioning a picture, and num_tile_columns_minus1 may be signaled from the encoding apparatus. Also, num_tile_row_minus1+1 specifies a number of tile columns partitioning a picture, and num_tile_rows_minus1 may be signaled from the encoding apparatus.
Thus, when a slice includes a plurality of tiles and a plurality of substreams, it may be inferred that entry point information is present in a bitstream.
Table 11 illustrates a syntax in a slice header used to transmit entry point information.
In the foregoing embodiments, entry_point_location_flag specifying presence of entry point information is transmitted through the slice header, in which entry_point_location_flag equal to 1 specifies that entry point information is present in the bitstream.
In Table 11, when a number of rows in a tile is greater than 1 or a number of columns in the tile is greater than 1 and a number of substreams is greater than 1, it is considered that entry point information is present in a bitstream. In this case, the entry point information may be transmitted as in Table 10.
Table 12 illustrates a syntax transmitted when entry point information is present in a bitstream as in Table 11.
In Table 12, num_of_entry_points_minus1 specifies a number of entry points in the bitstream in a slice. Since a number of entry point offsets is smaller by 1 than the number of entry points, num_of_entry_points_minus1 may also specify a number of syntax elements entry_point_offset[i] in the slice header.
entry_point_offset_length_minus1 specifies a number of bits used to signal information on an entry point offset (syntax element entry_point_offset). That is, entry_point_offset_length_minus1 may represent a length of syntax element entry_point_offset[i] in bits or bytes.
entry_point_type[i] specifies an entry point type. For instance, entry_point_type[i] equal to 1 specifies an entry point of a WPP substream, and entry_point_type[i] equal to 0 specifies an entry point of both a tile and a WPP substream.
entry_point_offset[i] specifies a number of bits or bytes between two entry points. When i is 0, entry_point_offset[0] specifies a number of bits or bytes between an end of the slice header and a first entry point in a slice. When i is not 0, entry_point_offset[i] specifies a number of bits or bytes between an entry point i−1 and an entry point i.
When an entry point is expressed in bytes, that is, a substream is byte-aligned, a byte-aligned bit may be used as described above in Embodiment 2.
When length information on an entry point offset is transmitted as in Embodiment 4, an entry point type may be conditionally signaled.
For example, when a slice includes a plurality of tiles and a plurality of substreams, an entry point type, that is, whether an entry type is about a tile or about a substream, may be signaled.
Table 13 illustrates a syntax in a slice header used to signal entry point information.
In Table 13, entry_point_location_flag specifies whether entry point information is present in a bitstream. For example, if the entry point information, for instance, entry point location information, is present in the bitstream, entry_point_location_flag is 1. If the entry point information is absent in the bitstream, entry_point_location_flag is 0.
Table 14 illustrates a syntax relating to the entry point location information in Table 13.
num_of_entry_points_minus1 specifies a number of entry points in the bitstream in a slice. Since a number of entry point offsets is smaller by 1 than the number of entry points, num_of_entry_points_minus1 may also specify a number of syntax elements entry_point_offset[i] in the slice header.
entry_point_offset_length_minus2 specifies a number of bits used to signal information on an entry point offset (syntax element entry_point_offset). That is, entry_point_offset_length_minus2 may represent a length of syntax element entry_point_offset[i] in bits or bytes.
When a number of rows in a tile is greater than 1 or a number of columns in the tile is greater than 1 and a number of substreams is greater than 1, that is, a plurality of tiles and a plurality of substreams are present, entry_point_type[i] specifying an entry point type is signaled.
entry_point_type[i] specifies an entry point type. For instance, entry_point_type[i] equal to 1 specifies an entry point of a WPP substream, and entry_point_type[i] equal to 0 specifies an entry point of both a tile and a WPP substream.
Thus, when a single tile or no tile is present but a plurality of sub streams is present, entry_point_type[i] specifies an entry point of a WPP substream. In other cases, entry_point_type[i] specifies an entry point of both a tile and a WPP substream.
entry_point_offset[i] specifies a number of bits or bytes between two entry points. When i is 0, entry_point_offset[0] specifies a number of bits or bytes between an end of the slice header and a first entry point in a slice. When i is not 0, entry_point_offset[i] specifies a number of bits or bytes between an entry point i−1 and an entry point i.
When entry_point_offset[i] specifies a number of bytes between two entry points, a byte-aligned bit for byte-alignment may be used.
If the length of entry_point_offset[i] is xx, xx may be defined as Equation 4.
xx=(num_substreams_minus1>0)?entry_point_offset_length_minus2+5: entry_point_offset_length_minus2+2 [Equation 4]
When length information on an entry point offset is transmitted as in Embodiment 5, an entry point type may be conditionally signaled.
For example, when a slice includes a plurality of tiles and a plurality of substreams, an entry point type, that is, whether an entry type is about a tile or about a sub stream, may be signaled.
Table 15 illustrates a syntax in a slice header used to signal entry point information.
In Table 15, entry_point_location_flag specifies whether entry point information is present in a bitstream. For example, if the entry point information, for instance, entry point location information, is present in the bitstream, entry_point_location_flag is 1. If the entry point information is absent in the bitstream, entry_point_location_flag is 0.
Table 16 illustrates a syntax relating to the entry point location information in Table 15.
num_of_entry_points_minus1 specifies a number of entry points in the bitstream in a slice. Since a number of entry point offsets is smaller by 1 than the number of entry points, num_of_entry_points_minus1 may also specify a number of syntax elements entry_point_offset[i] in the slice header.
entry_point_offset_length_minus1 specifies a number of bits used to signal information on an entry point offset (syntax element entry_point_offset). That is, entry_point_offset_length_minus1 may represent a length of syntax element entry_point_offset[i] in bits or bytes.
When a number of rows in a tile is greater than 1 or a number of columns in the tile is greater than 1 and a number of substreams is greater than 1, that is, a plurality of tiles and a plurality of substreams are present, entry_point_type[i] specifying an entry point type is signaled.
entry_point_type[i] specifies an entry point type. For instance, entry_point_type[i] equal to 1 specifies an entry point of a WPP substream, and entry_point_type[i] equal to 0 specifies an entry point of both a tile and a WPP substream.
Thus, when a single tile or no tile is present but a plurality of substreams is present, entry_point_type[i] specifies an entry point of a WPP substream. In other cases, entry_point_type[i] specifies an entry point of both a tile and a WPP substream.
entry_point_offset[i] specifies a number of bits or bytes between two entry points. When i is 0, entry_point_offset[0] specifies a number of bits or bytes between an end of the slice header and a first entry point in a slice. When i is not 0, entry_point_offset[i] specifies a number of bits or bytes between an entry point i−1 and an entry point i.
When entry_point_offset[i] specifies a number of bytes between two entry points, a byte-aligned bit for byte-alignment may be used.
If the length of entry_point_offset[i] is xx, xx may be defined as Equation 4.
xx=(num_substreams_minus1>0)?entry_point_offset_length_minus2+4: entry_point_offset_length_minus2+1 [Equation 5]
In Equation 5, WPP may be employed when a number of substreams is greater than 1, while a tile may be used when the number of substreams is 1 or smaller.
When length information on an entry point offset is transmitted as in Embodiment 4, an entry point type may be inferred, instead of being signaled.
For example, an entry point type, that is, whether an entry point is about a tile or about a WPP substream, may be inferred as follows.
(1) If tile_info_present_flag is 1 and num_substream_minus1 is 0, that is, tile_info_present_flag==1 && num_substream_minus1==0, all entry points are entry points of tiles. That is, if tile information is present and the number of substreams is 1, all entry points may be inferred as entry points of tiles.
(2) If tile_info_present flag is 0 and num_substream_minus1 is greater than 0, that is, tile_info_present flag==0 && num_substream_minus1>0, all entry points are entry points of WPP substreams. That is, if tile information is absent and a plurality of substreams is present, all entry points may be inferred as entry points of WPP substreams.
(3) If tile_info_present flag is 1 and num_substream_minus1 is greater than 0, that is, tile_info_present_flag==1 && num_substream_minus1>0, when i is not 0 (i!=0) and (i+1)%(num_substream1+1)==0, an i-th entry point is an entry point of a tile that is an i-th entry point. Otherwise, entry points are entry points of WPP substreams. That is, if tile information is present and a plurality of substreams is present, entry points may be inferred as entry points of WPP substreams or entry points of tiles and WPP substreams.
Table 17 illustrates a syntax in a slice header used to signal entry point information.
In Table 17, entry_point_location_flag specifies whether entry point information is present in a bitstream. For example, if the entry point information, for instance, entry point location information, is present in the bitstream, entry_point_location_flag is 1. If the entry point information is absent in the bitstream, entry_point_location_flag is 0.
Table 18 illustrates a syntax relating to the entry point location information in Table 17.
num_of_entry_points_minus1 specifies a number of entry points in the bitstream in a slice. Since a number of entry point offsets is smaller by 1 than the number of entry points, num_of_entry_points_minus1 may also specify a number of syntax elements entry_point_offset[i] in the slice header.
entry_point_offset_length_minus2 specifies a number of bits used to signal information on an entry point offset (syntax element entry_point_offset). That is, entry_point_offset_length_minus2 may represent a length of syntax element entry_point_offset[i] in bits or bytes.
entry_point_offset[i] specifies a number of bits or bytes between two entry points. When i is 0, entry_point_offset[0] specifies a number of bits or bytes between an end of the slice header and a first entry point in a slice. When i is not 0, entry_point_offset[i] specifies a number of bits or bytes between an entry point i−1 and an entry point i.
When entry_point_offset[i] specifies a number of bytes between two entry points, a byte-aligned bit for byte-alignment may be used.
In Table 18, an entry point type is not directly signaled. Instead, in embodiment 9, an entry point type is inferred based on tile_info_present_flag and num_substream_minus1 as described above.
When length information on an entry point offset is transmitted as in Embodiment 5, an entry point type may be inferred, instead of being signaled.
For example, an entry point type, that is, whether an entry point is about a tile or about a WPP substream, may be inferred as follows.
(1) If tile_info_present_flag is 1 and num_substream_minus1 is 0, that is, tile_info_present_flag==1 && num_substream_minus1==0, all entry points are entry points of tiles. That is, if tile information is present and the number of substreams is 1, all entry points may be inferred as entry points of tiles.
(2) If tile info_present_flag is 0 and num_substream_minus1 is greater than 0, that is, tile_info_present_flag==0 && num_substream_minus1>0, all entry points are entry points of WPP substreams. That is, if tile information is absent and a plurality of substreams is present, all entry points may be inferred as entry points of WPP sub streams.
(3) If tile_info_present_flag is 1 and num_substream_minus1 is greater than 0, that is, tile_info_present_flag==1 && num_substream_minus1>0, when i is not 0 (i!=0) and (i+1)%(num_substream1+1)==0, an i-th entry point is an entry point of a tile that is an i-th entry point. Otherwise, entry points are entry points of WPP substreams. That is, if tile information is present and a plurality of substreams is present, entry points may be inferred as entry points of WPP substreams or entry points of tiles and WPP substreams.
Table 19 illustrates a syntax in a slice header used to signal entry point information.
In Table 19, entry_point_location_flag specifies whether entry point information is present in a bitstream. For example, if the entry point information, for instance, entry point location information, is present in the bitstream, entry_point_location_flag is 1. If the entry point information is absent in the bitstream, entry_point_location_flag is 0.
Table 20 illustrates a syntax relating to the entry point location information in Table 19.
num_of_entry_points_minus1 specifies a number of entry points in the bitstream in a slice. Since a number of entry point offsets is smaller by 1 than the number of entry points, num_of_entry_points_minus1 may also specify a number of syntax elements entry_point_offset[i] in the slice header.
entry_point_offset_length_minus1 specifies a number of bits used to signal information on an entry point offset (syntax element entry_point_offset). That is, entry_point_offset_length_minus1 may represent a length of syntax element entry_point_offset[i] in bits or bytes.
entry_point_offset[i] specifies a number of bits or bytes between two entry points. When i is 0, entry_point_offset[0] specifies a number of bits or bytes between an end of the slice header and a first entry point in a slice. When i is not 0, entry_point_offset[i] specifies a number of bits or bytes between an entry point i−1 and an entry point i.
When entry_point_offset[i] specifies a number of bytes between two entry points, a byte-aligned bit for byte-alignment may be used.
In Table 20, an entry point type is not directly signaled. Instead, in embodiment 10, an entry point type is inferred based on tile_info_present_flag and num_substream_minus1 as described above.
Embodiment 11 illustrates a method based on the foregoing ten embodiments in combination with at least one of the following modifications or characteristics (1) to (4).
(1) When either a tile or WPP is used for parallel decoding, entry point information is transmitted. Thus, entry_point_location_flag specifying existence of entry point information described in the foregoing embodiments may be unnecessary.
(2) Considering that a tile and WPP are not used, information specifying a number of entry points may be transmitted using num_of_entry_points, instead of num_of_entry_points_minus1, so as to indicate a value of 0. That is, a value representing a total number of entry points may be transmitted, instead of a value representing the total number of entry points minus 1.
(3) WPP and a tile may not be used together. In this case, a tile is not used when WPP is employed, and WPP is not used when a tile is employed.
(4) An entry point offset may be derived from NALU data of byte 0. Byte 0 may be a first byte of slice segment data.
When characteristic (1) is added, Embodiment 11 may directly signal necessary entry point information without transmitting entry_point_location_flag specifying existence of entry point information via a slice header, unlike the foregoing ten embodiments.
Table 21 illustrates a syntax in a slice header used to signal entry point information on a WPP substream or tile according to Embodiment 11.
num_of_entry_points_minus1 specifies a number of entry points in the bitstream in a slice. Since a number of entry point offsets is smaller by 1 than the number of entry points, num_of_entry_points_minus1 may also specify a number of syntax elements entry_point_offset[i] in the slice header.
entry_point_offset_length_minus1 specifies a number of bits used to signal information on an entry point offset (syntax element entry_point_offset). That is, entry_point_offset_length_minus1 may represent a length of syntax element entry_point_offset[i] in bits or bytes. Although the present embodiment illustrates that entry_point_offset_length_minus1 is signaled, entry_point_offset_length_minus2 may be signaled instead of entry_point_offset_length_minus1.
entry_point_offset[i] specifies a number of bits or bytes between two entry points. When i is 0, entry_point_offset[0] specifies a number of bytes between a start (byte 0) of NAL unit data and a first entry point (entry_point_offset[0]−1) in a slice. When i is not 0, entry_point_offset[i] specifies a number of bits or bytes between an entry point i−1 and an entry point i.
When entry_point_offset[i] specifies a number of bytes between two entry points, a byte-aligned bit for byte-alignment may be used.
The length of entry_point_offset[i] may be entry_point_offset_length_minus1+1 bits or entry_point_offset_length_minus2+2 bits.
In
A start point of each substream may be indicated by an entry point. For example, if an entry point of substream A may be specified from a start point of a bitstream or an end point of a slice header, an entry point of substream B is entry point 0 1220, an entry point of substream C is entry point 1 1230, and an entry point of substream D is entry point 2 1240.
In this case, entry point 0 1220 as a first entry point may be a value of the end point of the slice header plus an entry point offset, for example, entry_point_offset[0], representing a number of bytes or bits between the end point of the slice header and the first entry point. Likewise, a number of bytes or bits between entry point 1 1220 as the first entry point and entry point 2 1230 as a second entry point may be indicated by an entry point offset, for example, entry_point_offset[1].
In
In
A start point of each tile may be indicated by an entry point. For example, if an entry point of tile 1 may be specified from a start point of a bitstream or an end point of a slice header, an entry point of tile 2 is entry point 0 1320, an entry point of tile 3 is entry point 1 1330, and an entry point of tile 4 is entry point 2 1340.
In this case, entry point 0 1320 as a first entry point may be a value of the end point of the slice header plus an entry point offset, for example, entry_point_offset[0], representing a number of bytes or bits between the end point of the slice header and the first entry point. Likewise, a number of bytes or bits between entry point 1 1320 as a first entry point and entry point 2 1330 as a second entry point may be indicated by an entry point offset, for example, entry_point_offset[1].
In
In
Each tile includes two substreams. For example, tile 1 1410 includes substream A and substream B. Tile 2 1420 includes substream C and substream D. Tile 3 1430 includes substream E and substream F. Tile 4 1440 includes substream G and sub stream H.
A start point of each tile and/or substream may be indicated by an entry point. For example, an entry point of tile 1 1410 may be specified from a start point of a bitstream or an end point of a slice header, and an entry point of substream A may also be specified from the start point of the bitstream or the end point of the slice header. An entry point of substream B as a second substream in tile 1 1410 is entry point 0 1450.
An entry point of tile 2 1420 and substream C is entry point 1 1455. An entry point of substream D in tile 2 1420 is entry point 2 1460.
An entry point of tile 3 1430 and substream E is entry point 1 1465. An entry point of substream F in tile 3 1430 is entry point 2 1470.
An entry point of tile 4 1440 and substream G is entry point 1 1475. An entry point of substream H in tile 4 1440 is entry point 2 1480.
In this case, entry point 0 1450 as a first entry point may be a value of the end point of the slice header plus an entry point offset, for example, entry_point_offset[0], representing a number of bytes or bits between the end point of the slice header and the first entry point.
Entry point 1 1455 as a second entry point may be indicated by a value of entry point 0 1450 as the first entry point plus an entry point offset, for example entry_point_offset[1]. Entry point 2 1460 as a third entry point may be indicated by a value of entry point 1 1455 as the second entry point plus an entry point offset, for example entry_point_offset[2]. Entry point 3 1465 as a fourth entry point may be indicated by a value of entry point 2 1460 as the third entry point plus an entry point offset, for example entry_point_offset[3]. Entry point 4 1470 as a fifth entry point may be indicated by a value of entry point 3 1465 as the fourth entry point plus an entry point offset, for example entry_point_offset[4]. Entry point 5 1475 as a sixth entry point may be indicated by a value of entry point 4 1470 as the fifth entry point plus an entry point offset, for example entry_point_offset[5]. Entry point 6 1480 as a seventh entry point may be indicated by a value of entry point 5 1475 as the sixth entry point plus an entry point offset, for example entry_point_offset[6].
Referring to
Prediction methods, transform methods and quantization methods are illustrated above in
The encoding apparatus may entropy-encode the converted signal (S1520). CABAC, VLC and exponential Golomb may be used for entropy encoding.
The encoding apparatus signals entropy-encoded video information and information necessary for decoding via a bitstream (S1530). When parallel decoding is employed, the signaled information may include information necessary for parallel processing, for example, entry point information, in a slice header.
As described above, the entry point information includes entry point offset information, information on a number of entry points and information on a length of an entry point offset.
For example, entry point offset information, entry_point_offset[i], transmitted via a slice header specifies an i-th entry point offset in bytes. entry_point_offset[i] may be represented by the information on the length of the entry point offset. For instance, if information specifying a length of an entry point offset is entry_point_offset_length_minus1, the entry point offset may be represented by a value of entry_point_offset_length_minus1 plus one bit.
Slice segment data following the slice header may include a number of subsets specified by information on a number of entry points, and parallel decoding may be performed by a subset. Since the number of entry points is greater by 1 than a number of entry point offsets for offsetting neighboring entry points, the number of entry points in a slice may be specified based on the number of entry point offsets signaled via the slice header. For example, when the number of entry point offsets is N, N+1 subsets are present.
As described above, an i-th entry point in the slice is a value of an (i−1)-th entry point plus an i-th entry point offset.
Alternatively, a range of an i-th subset among the subsets forming the slice segment data may be specified using the i-th entry point offset. For example, a 0-th subset may have a range from a first byte (byte 0) of the slice segment data to a 0-th entry point offset−1. A first byte in the range of the i-th subset (i is an integer excluding 0) is a sum of previous subsets that is a sum of previous entry point offsets, and a last byte is a value of the first byte plus the i-th entry point offset, minus a 1 bit.
As described above, the information on the number of entry point offsets may specify a number of syntax elements entry_point_offset[i] in the slice header. For example, when WPP is employed, the number of entry point offsets may have a value in a range from 0 to a number of CTB rows in the picture. When a tile is employed, the number of entry point offsets may have a value in a range from 0 to a number of tiles−1. When a tile and WPP are employed together, the number of entry point offsets may have a value range from 0 to a number of tile columns*a number of CTB rows−1.
Furthermore, the information on the number of entry point offset syntax elements specifies the number of syntax elements entry_point_offset[i] in the slice header. For example, since the number of entry point offsets is smaller by 1 than the number of entry points, the information on the number of entry point offset syntax elements may be transmitted as num_of_entry_point_minus1. Alternatively, the number of entry point offsets may be directly transmitted as num_of_entry_point_offset.
The information on the length of the entry point offset may specify a length of syntax element entry_point_offset[i] in bits. For instance, if information on a length of an entry point offset syntax element is transmitted as entry_point_offset_length_minus1, the length of the entry point offset syntax element is entry_point_offset_length_minus1+1 bits. Alternatively, if the information on the length of the entry point offset syntax element is transmitted as entry_point_offset_length_minus2, the length of the entry point offset syntax element is entry_point_offset_length_minus2+2 bits. The length of the entry point offset syntax element may be also transmitted as a syntax element of entry_point_offset_length, in which case the length of the entry point offset syntax element is entry_point_offset_length bits.
Referring to
The signal conversion module 1610 may partition an input picture (video) into encoding units and perform prediction based on the partitioned encoding units or subdivided units. The signal conversion module 1610 generates a residual as a difference between a prediction result and an original signal. The signal conversion module 1610 transforms and quantizes the residual. DCT and/or DST may be used for transformation.
The signal conversion module 1610 may include the picture partition module 105, the prediction module 110, the transform module 115, the quantization module 120 and the rearrangement module 125 and perform equivalent operations to those of the picture partition module 105, the prediction module 110, the transform module 115, the quantization module 120 and the rearrangement module 125.
The entropy encoding module 1620 may entropy-encode the signal output from the signal conversion module 1610.
The entropy encoding module 1620 may correspond to the entry encoding module 130 of
The signaling module 1630 signals encoded video information and information necessary for decoding via a bitstream. When parallel decoding is employed, the signaled information may include information necessary for parallel processing, for example, entry point information, in a slice header.
The entry point information includes entry point offset information, information on a number of entry points and information on a length of an entry point offset.
As described above, an i-th entry point in a slice is a value of an (i−1)-th entry point plus an i-th entry point offset. Thus, the information on the number of entry points may be information representing a number of entry point offset informations transmitted in the slice header.
Referring to
The decoding apparatus may entropy-decode the received bitstream (S1720). The decoding apparatus may receive data bits transmitted in the bitstream to output syntax element values. A syntax element refers to an element of data represented in the bitstream.
When parallel decoding is performed, data may be byte-aligned. Here, byte-aligning data means putting the data at a position in the bitstream in bytes. For example, when the position in the bitstream is an integer multiple of 8 bits from a first bit of the bitstream, the position is byte-aligned.
Byte alignment of a substream is described above.
When CABAC is employed for entropy decoding, the decoding may sequentially conduct initialization, binarization and decoding.
The decoding apparatus may perform initialization when at least one of parsing slice segment data, parsing a first CTU or LCU of a tile and parsing a first CTU or LCU in a row of CTUs or LCUs starts.
The decoding apparatus may generate initial values of parameters for performing CABAC by initialization.
Binarization is a set of bin strings with respect to values of syntax elements. Binarization is a unique mapping process of mapping possible values of syntax elements to a set of bin strings.
The decoding apparatus may output a syntax element value by mapping with a bin string, that is, a binary sequence or binary code, by binarization. The decoding apparatus may use a table of mapping a syntax element to a bin string for binarization.
The decoding apparatus may determine a syntax element value through a decoding process of CABAC. The decoding apparatus may determine a bin index for each bin of a bin string and determine a context index based on the bin index. The decoding apparatus may determine a random variable with respect to a bin string to be decoded using the context index and output a syntax element value. The decoding apparatus may use a table and also consider a type of a picture or slice (I slice, B slice or P slice) to be decoded when determining the context index based on the bin index.
The row of the CTUs or LCUs may be a WPP substream. If WPP is employed, when a second CTU or LCU in an n-th substream (n-th row of CTU or LCU row) is completely entropy-decoded, related context information may be stored. A first CTU or LCU in an (n+1)-th sub stream may be initialized based on the context information on the second CTU or LCU in the n-th substream.
The decoding apparatus may reconstruct a picture based on the syntax element values (S1730). As described above, the syntax element values may be signaled from the encoding apparatus and obtained via entropy decoding.
When parallel decoding is performed, a tile or WPP may be used. In this case, syntax elements may include information specifying an entry point of a tile or information specifying an entry point of a WPP sub stream.
Syntax elements specifying entry points, for example, a syntax element specifying a number of entry points, a syntax element specifying an entry point offset, a syntax element specifying a length of a syntax element relating to an entry point offset, a syntax element specifying an entry point type and a syntax element specifying existence of entry point information, have been described above.
Here, the syntax elements about the entry points transmitted from the encoding apparatus may be all or part of the syntax elements described above in the foregoing embodiments.
Although
Referring to
The signaling reception module 1810 receives signaling about video information from an encoding apparatus. The video information may be signaled via an entropy-encoded bitstream.
The entropy decoding module 1820 may entropy-decode the received bitstream. The decoding apparatus may receive data bits transmitted in the bitstream to output syntax element values. Entropy decoding has been described above with reference to
The entropy decoding module 1820 corresponds to the entropy decoding module 210 of
The reconstruction module 1830 may reconstruct a picture based on the syntax element values output from the entropy decoding module 1820. The reconstruction module 1830 may include the rearrangement module 215, the dequantization module 220, the inverse transform module 225, the prediction module 230, the filter module 235 and the memory 240 and perform equivalent operations to those of the rearrangement module 215, the dequantization module 220, the inverse transform module 225, the prediction module 230, the filter module 235 and the memory 240.
Although
Although methods of illustrative systems have been described with a series of stages or blocks based on the flowcharts, the present invention is not limited to the foregoing sequence of the stages. Some stages may be carried out in different order from described above or at the same time. Further, it should be noted that as the aforementioned embodiments may include various aspects of examples. Thus, it will be appreciated that changes, modifications and alternatives may be made in these exemplary embodiments without departing from the principles and spirit of be the invention, the scope of which is defined in the appended claims and their equivalents.
It will be understood that when an element is referred to as being “coupled to” or “connected to” another element, the element can be directly coupled to or connected to another element or layer or intervening elements or layers. In contrast, when an element is referred to as being “directly coupled to” or “directly connected to” another element or layer, there are no intervening elements or layers present.
This application is a continuation of U.S. patent application Ser. No. 16/918,418, filed Jul. 1, 2020, now allowed, which is a continuation of U.S. patent application Ser. No. 16/292,037, filed Mar. 4, 2019, now U.S. Pat. No. 10,742,985, which is continuation of U.S. patent application Ser. No. 15/860,412, filed Jan. 2, 2018, now U.S. Pat. No. 10,356,414, which is a continuation of U.S. patent application Ser. No. 14/369,063, filed Jun. 26, 2014, now U.S. Pat. No. 9,883,185, which is a National Phase application of International Application No. PCT/KR2012/011717, filed Dec. 28, 2012, and claims the benefit of U.S. Provisional Application Nos. 61/581,105, filed Dec. 29, 2011, 61/582,822, filed Jan. 4, 2012, 61/586,112, filed Jan. 12, 2012, and 61/597,145, filed Feb. 9, 2012, all of which are hereby incorporated by reference in their entirety for all purposes as if fully set forth herein.
Number | Date | Country | |
---|---|---|---|
61581105 | Dec 2011 | US | |
61582822 | Jan 2012 | US | |
61586112 | Jan 2012 | US | |
61597145 | Feb 2012 | US |
Number | Date | Country | |
---|---|---|---|
Parent | 16918418 | Jul 2020 | US |
Child | 17563135 | US | |
Parent | 16292037 | Mar 2019 | US |
Child | 16918418 | US | |
Parent | 15860412 | Jan 2018 | US |
Child | 16292037 | US | |
Parent | 14369063 | Jun 2014 | US |
Child | 15860412 | US |