Device
By partitioning video frames into reconstruction and entropy slices with independent decoding and context models, the entropy decoding bottleneck in H.264/AVC is addressed, enabling parallel processing and improved decoding speed.
Patent Information
- Application Number
- JP2024114600
- Authority / Receiving Office
- JP · JP
- Patent Type
- Applications
- Current Assignee / Owner
- Priority Date
- 2008-03-28
- Filing Date
- 2024-07-18
- Publication Date
- 2024-10-01
- Estimated Expiration
- 2029-03-25
AI Technical Summary
Entropy decoding is a bottleneck in the decoding process of H.264/AVC video codecs, hindering parallel processing and increasing complexity.
The solution involves dividing a video frame into reconstruction slices, which are further partitioned into entropy slices, allowing for independent entropy decoding and reconstruction of each slice in parallel, with each slice having its own context model and header configuration.
This approach enables parallel entropy decoding, reducing the decoding bottleneck and improving processing speed while maintaining image quality.
Smart Images

Figure 2024133284000001_ABST
Abstract
Description
[Technical field]
[0001] FIELD OF THE PRESENT DISCLOSURE Embodiments of the present invention relate generally to video coding. [Background technology]
[0002] Modern video coding methods and standards, such as H.264 / MPEG-4 AVC (H.264 / AVC), offer higher coding efficiency compared to older methods and standards at the expense of increased complexity. The increased complexity is also due to the increasing requirements for image quality and resolution in video coding methods and standards. Decoders that support parallel decoding improve the decoding speed and reduce memory requirements. In addition, advances in multi-core processors make encoders and decoders that support parallel decoding desirable.
[0003] H.264 / MPEG-4 AVC (Non-Patent Document 1) is a video codec specification (which is incorporated herein in its entirety) that uses macroblock prediction followed by residual coding to reduce temporal and spatial redundancy in video sequences for efficient compression. [Prior art documents] [Non-patent literature]
[0004] [Non-Patent Document 1] “H.264: Advanced video coding for generic audiovisual services,” Joint Video Team of ITU-T VCEG and ISO / IEC MPEG, ITU-T Rec. H.264 and ISO / IEC 14496-10 (MPEG4 - Part 10), November 2007 Summary of the Invention [Problem to be solved by the invention]
[0005] However, in an H.264 / AVC decoder, entropy decoding must be performed prior to all other processes in the decoder, and therefore entropy decoding is a potential bottleneck in the decoding process.
[0006] The present invention has been made in view of the above problems, and a main object of the present invention is to solve the above problems. [Means for solving the problem]
[0007] One aspect of the invention is an apparatus comprising a non-transitory computer-readable storage medium having stored thereon instructions that, when executed by one or more processors, cause the one or more processors to perform operations to generate image data corresponding to a video bitstream, the image data including a plurality of pictures in the video bitstream including a first picture including a first slice and a second slice, and a plurality of slice headers including a first slice header associated with the first slice of the first picture and a second slice header associated with the second slice of the first picture, the first slice and the second slice being a plurality of entropy coded samples. the second slice header includes a plurality of blocks, the second slice header is different from the first slice header and shares some slice characteristics with the first slice header, the size of the second slice header is smaller than the size of the first slice header, a flag value of the first slice header indicates that the first slice header is a header of an entropy slice that is the start of a reconstructed slice, a flag value of the second slice header indicates that the second slice header is a header of an entropy slice that is not the start of a reconstructed slice, the flag value of the first slice header is set to 0, and the image data of the first slice and the second slice include transform coefficients.
[0008] The above and other objects, features and advantages of the present invention will be more readily understood from the following detailed description of the invention taken in conjunction with the accompanying drawings. Effect of the Invention
[0009] In H.264 / AVC, entropy decoding is a potential bottleneck in the decoding process. The configuration of one embodiment of the present invention allows the entropy decoding process required to reconstruct an image to be performed in parallel. Thus, the method according to the present invention can solve this problem. [Brief description of the drawings]
[0010] [Figure 1] FIG. 1 illustrates an H.264 / AVC video encoder (prior art). [Diagram 2] FIG. 1 illustrates an H.264 / AVC video decoder (prior art). [Diagram 3] FIG. 1 illustrates an exemplary slice structure (prior art). [Figure 4] FIG. 1 illustrates an exemplary slice group structure (prior art). [Diagram 5] FIG. 1 illustrates an exemplary slice division in an embodiment of the present invention, where a picture is divided into at least one reconstructed slice, and a reconstructed slice is divided into more than one entropy slice. [Figure 6] 1 is a flowchart illustrating an exemplary embodiment of the present invention including entropy slicing. [Figure 7] 4 is a flow chart illustrating an exemplary embodiment of the present invention involving parallel entropy decoding of multiple entropy slices followed by reconstruction of the slices. [Figure 8] 1 is a flow chart illustrating an exemplary embodiment of the present invention involving picture-level prediction / residual data multiplexing to construct entropy slices. [Figure 9] 4 is a flow chart illustrating an exemplary embodiment of the present invention involving picture-level color plane multiplexing to construct entropy slices. [Figure 10] 4 is a flow chart illustrating an exemplary embodiment of the present invention including entropy decoding, forming entropy slices, and transcoding a bitstream by entropy encoding. DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS
[0011] The embodiments of the present invention will be best understood by reference to the drawings, in which like parts are numbered like, and in which the above-mentioned drawings are expressly incorporated into the detailed description.
[0012] It will be readily understood that the elements of the present invention, as generally described and illustrated in the figures herein, could be arranged and designed in a wide variety of configurations. Thus, the following more detailed descriptions of exemplary methods, apparatus and systems according to the present invention are not intended to limit the scope of the invention, but merely represent the presently preferred embodiments.
[0013] Each element in the embodiment of the present invention may be realized by hardware, firmware, and / or software. The embodiment disclosed as an example in this specification describes only one of these forms, and it is understood that a person skilled in the art can realize each element in any of these forms within the scope of the present invention.
[0014] Although any coder / decoder (codec) that uses entropy encoding / decoding is encompassed by embodiments of the present invention, exemplary embodiments of the present invention are described in the context of an H.264 / AVC encoder and an H.264 / AVC decoder for purposes of explanation and not limitation of the present invention.
[0015] Modern video coding methods and standards, such as H.264 / MPEG-4 AVC (H.264 / AVC), offer higher coding efficiency compared to older methods and standards at the expense of increased complexity. The increased complexity is also due to the increasing requirements for image quality and resolution in video coding methods and standards. Decoders that support parallel decoding improve the decoding speed and reduce memory requirements. In addition, advances in multi-core processors make encoders and decoders that support parallel decoding desirable.
[0016] H.264 / AVC and many other video coding standards and methods are based on a block-based hybrid video coding approach, in which the source-coding algorithm is a hybrid of (a) inter-picture (also called inter-frame) prediction, (b) intra-picture (also called intra-frame) prediction, and (c) prediction-residual transform coding. Inter-frame prediction exploits temporal redundancy, while intra-frame and prediction-residual transform coding exploit spatial redundancy.
[0017] FIG. 1 is a block diagram of an exemplary H.264 / AVC video encoder 2. An input picture 4, which may also be considered as an input frame, is present as a target for encoding. A predicted signal 6 and a residual signal 8 are generated. Here, the predicted signal 6 is based on either an inter-frame prediction 10 or an intra-frame prediction 12. The inter-frame prediction 10 is determined by a motion compensation unit 14 using (1) an accumulated reference picture 16 (also called a reference frame) and (2) motion information 19 determined by a motion detection process 18 between an input frame 4 and the reference frame 16. The intra-frame prediction 12 is determined by an intra-frame prediction unit 20 using a decoded signal 22. The residual signal 8 is determined by subtracting the prediction 6 from the input frame 4. The residual signal 8 is transformed, scaled and quantized 24 to produce quantized transform coefficients 26. The decoded signal 22 is generated by adding the prediction signal 6 to a signal 28 produced by inverse transforming, scaling and inverse quantizing 30 the quantized transform coefficients 26. The motion information 19 and the quantized transform coefficients 26 are entropy coded 32 and written to a compressed video bitstream 34. An output image region 38 (e.g., a portion of a reference frame) is generated in the encoder 2 by applying a filter 36 to the reconstructed unfiltered signal (decoded signal) 22.
[0018] FIG. 2 is a block diagram of an exemplary H.264 / AVC video decoder 50. An input signal 52, which may be considered as a bitstream, is present to be decoded. Received symbols are entropy decoded 54 to generate (1) motion information 56 and (2) quantized and scaled transform coefficients 58. The motion information 56 is combined with a portion of a reference frame 84 in a frame memory 64 by motion compensation 60 to generate an interframe prediction 68. The quantized and scaled transform coefficients 58 are inverse quantized, (inverse) scaled, and inverse transformed 62 to generate a decoded residual signal 70. The residual signal 70 is added to a prediction signal 78, which may be either an interframe prediction signal 68 or an intraframe prediction signal 76. The intraframe prediction signal 76 is predicted by intraframe prediction 74 from information 72 already decoded in the current frame. The summed signal 72 is filtered by a deblocking filter 80 and the filtered signal 82 is written to the frame memory 64 .
[0019] In H.264 / AVC, the input picture is divided into fixed-size macroblocks, each covering a rectangular image area of 16×16 samples for the luma component and 8×8 samples for each of the two chroma components. The decoding process in the H.264 / AVC standard is specified to be performed on a macroblock-by-macroblock basis. The entropy decoder 54 parses syntax elements of the compressed video bitstream 52 and demultiplexes them. H.264 / AVC is specified to use two different methods for entropy decoding. One is a low-complexity technique called CAVLC, which is based on the use of a set of variable-length codes with adaptive context switching, and the other is a more computationally intensive algorithm called CABAC, which performs context-based adaptive binary arithmetic coding. In both entropy decoding methods, the decoding process of the current symbol depends on the previously correctly decoded symbols and on a context model that is adaptively updated. In addition, different data information is multiplexed together, such as prediction data information, residual data information, and different color planes. The demultiplexing is not complete until each element is entropy decoded.
[0020] After entropy decoding, the macroblocks are reconstructed by obtaining (1) the residual signal that has undergone inverse quantization and inverse transformation, and (2) a prediction signal, which can be either an intraframe prediction signal or an interframe prediction signal. Blocking artifacts are reduced by applying a deblocking filter to each decoded macroblock. No processing can begin until the input signal has been entropy decoded. Therefore, entropy decoding is a potential bottleneck in the decoding process.
[0021] Similarly, in codecs that allow different prediction mechanisms, such as inter-layer prediction in H.264 / AVC and other scalable codecs, entropy decoding must be performed prior to any processing in the decoder, and thus becomes a potential bottleneck in the decoding process.
[0022] In H.264 / AVC, an input picture containing multiple macroblocks is divided into one or more slices. Assuming that the reference images used in the encoder and decoder are the same, the values of samples in the area of the image represented by one slice can be correctly decoded without using data from other slices. Therefore, the entropy decoding and macroblock reconstruction for one slice does not depend on other slices. In particular, at the start of each slice, the state of the entropy coding is reset. Data from other slices is marked as unavailable when defining the availability of neighbors for both entropy decoding and reconstruction. In H.264 / AVC, slices are entropy decoded and reconstructed in parallel. Intra prediction and motion vector prediction across slice boundaries are prohibited. The deblocking filter can use information across slice boundaries.
[0023] 3 illustrates an exemplary video image (video picture) 90. Video image 90 includes eleven macroblocks horizontally and nine macroblocks vertically (nine exemplary macroblocks are numbered 91-99). FIG. 3 illustrates three exemplary slices: Shown is a first slice denoted as "Slice #0" 100, a second slice denoted as "Slice #1" 101, and a third slice denoted as "Slice #2" 102. An H.264 / AVC decoder can decode and reconstruct the three slices 100, 101, 102 in parallel. At the beginning of the decoding / reconstruction process of each slice, the context model is initialized or reset, and macroblocks in other slices are marked as unavailable for both entropy decoding and macroblock reconstruction. Thus, for macroblocks in "Slice #1", e.g., macroblock numbered 93, macroblocks in "Slice #0" (e.g., macroblocks numbered 91 and 92) are not used for context model selection and reconstruction. On the other hand, for a macroblock in "Slice #1", e.g., macroblock numbered 95, other macroblocks in "Slice #1" (e.g., macroblocks numbered 93 and 94) are used in the context model selection and reconstruction. Therefore, entropy decoding and macroblock reconstruction must be performed serially within a slice. Macroblocks within a slice are processed in raster scan order, unless the slice is defined with flexible macroblock ordering (FMO).
[0024] Flexible macroblock ordering defines slice groups that change the way a picture is divided into slices. Macroblocks in a slice group are defined by a macroblock-to-slice-group map, which is indicated by the picture parameter set and the additional information in the slice header. The macroblock-to-slice-group map is composed of a slice-group identification number for each macroblock in a picture. The slice-group identification number identifies which slice each macroblock belongs to. Each slice group can be divided into one or more slices, where a slice consists of a set of macroblocks in the same slice group that are processed in raster scan order in the set of macroblocks in a slice group. Entropy decoding and reconstruction of macroblocks must be performed sequentially within a slice.
[0025] 4 shows an exemplary arrangement of macroblocks into three slice groups: a first slice group denoted as "slice group #0" 103, a second slice group denoted as "slice group #1" 104, and a third slice group denoted as "slice group #2" 105. These slice groups 103, 104, 105 are associated with two foreground regions and one background region, respectively, in picture 90.
[0026] Some embodiments of the invention involve dividing a picture into one or more reconstruction slices, where a reconstruction slice is self-contained in that sample values in the area of the picture represented by the reconstruction slice are correctly reconstructed without using data from other reconstruction slices, assuming that the reference images used at the encoder and decoder are the same. All reconstructed macroblocks in a reconstruction slice are available in defining a neighborhood for reconstruction.
[0027] Some embodiments of the invention include splitting a reconstruction slice into more than one entropy slice, where an entropy slice is self-contained in that the values of symbols in the region of the picture represented by the entropy slice are correctly entropy decoded without using data from other entropy slices. In some embodiments of the invention, at the start of decoding of each entropy slice, the state of the entropy coding is reset. In some embodiments of the invention, data of other entropy slices is marked as unavailable when defining the availability of neighbors for entropy decoding. In some embodiments of the invention, macroblocks in other entropy slices are not used in selecting a context model for the current block. In some embodiments of the invention, the context model is updated only within the entropy slice. In these embodiments of the invention, each entropy decoder used for an entropy slice maintains its own set of context models.
[0028] Some embodiments of the present invention include CABAC encoding / decoding. The CABAC encoding process includes the following steps:
[0029] Binarization: Non-binary-valued symbols (e.g. transform coefficients, motion vectors, or other coded data) are converted into a binary code, also called a bin string.
[0030] For each bin, which can also be thought of as a bit, of the binarized symbol, binarization is followed by context model selection.
[0031] Context model selection: A context model is a probability model for one or more bins of a binarized symbol. For each bin, the context model contains the probability that the bin is either a “1” or a “0”. The selection of the model depends on the statistics of the last coded data symbols, usually based on the left and upper neighbouring symbols if available, over a choice of several available models.
[0032] · Binary arithmetic coding: An arithmetic coder encodes each bin based on a recursive interval subdivision according to a chosen probability model.
[0033] Probability update: The selected context model is updated based on the actual encoded values.
[0034] In some embodiments of the present invention involving CABAC encoding / decoding, at the start of decoding an entropy slice, all context models are initialized or reset to a predefined model.
[0035] Some embodiments of the present invention may be understood in relation to Figure 5, which illustrates an exemplary video frame 110. The video frame 110 includes eleven horizontal and nine vertical macroblocks (the nine exemplary macroblocks are numbered 115-123). Three exemplary reconstructed slices are illustrated in Figure 5: a first reconstructed slice designated "R_slice #0" 111, a second reconstructed slice designated "R_slice #1" 112, and a third reconstructed slice designated "R_slice #2" 113. 5 further illustrates the division of the second reconstructed slice “R_slice#1” 112 into three entropy slices: a first entropy slice 112-1, cross-hatched and labeled “E_slice#0”, a second entropy slice 112-2, vertically hatched and labeled “E_slice#1”, and a third entropy slice 112-3, diagonally hatched and labeled “E_slice#2”. Each of the entropy slices 112-1, 112-2, 112-3 is entropy decoded in parallel. Here, the first entropy slice, labeled “E_slice#0”, and the second entropy slice, labeled “E_slice#1”, are also referred to as the first and second parts of the bitstream.
[0036] In some embodiments of the invention, only data from macroblocks within an entropy slice are available for context model selection during entropy decoding of the entropy slice. All other macroblocks are marked as unavailable. In this exemplary partitioning, macroblocks numbered 117 and 118 are unavailable for context model selection when decoding symbols corresponding to the region of macroblock numbered 119, because macroblocks numbered 117 and 118 are located outside the entropy slice that contains macroblock 119. However, these macroblocks 117, 118 are available when macroblock 119 is reconstructed.
[0037] In some embodiments of the invention, the encoder decides whether to split the reconstructed slice into entropy slices and includes the decision as a signal in the bitstream. In some embodiments of the invention, the signal includes an entropy-slice flag (the entropy slice flag for the first entropy slice is also called the first flag). In some embodiments of the invention, the entropy slice flag is denoted as "entropy_slice_frag".
[0038] Some decoder embodiments of the present invention are described in relation to FIG. 6. In these embodiments, the entropy slice flag is examined (S130), and if the entropy slice flag indicates that there is no entropy slice associated with the picture or the reconstructed slice (NO in step S130), the header is parsed as a regular slice header (S134). The state of the entropy decoder is reset (S136), and neighbor information for entropy decoding and reconstruction is defined (S138). The slice data is then entropy decoded (S140), and the slice is reconstructed (S142). If the entropy slice flag indicates that there is an entropy slice associated with the picture (YES in step S130), the header is parsed as an entropy-slice header (S148). The state of the entropy decoder is reset (S150), neighborhood information for entropy decoding is defined (S152), and the data of the entropy slice is entropy decoded (S154). Then, neighborhood information for reconstruction is defined (S156), and the slice is reconstructed (S142). After reconstruction of the slice in step S142, the next slice or picture is analyzed.
[0039] Some other decoder embodiments of the present invention are described in relation to FIG. 7. In these embodiments, the decoder is capable of parallel decoding and defines its degree of parallelism. For example, consider a decoder capable of decoding N entropy slices in parallel. The decoder identifies N entropy slices (S170). In some embodiments of the present invention, when fewer than N entropy slices are available in the current picture or reconstructed slice, the decoder decodes entropy slices from the next picture or reconstructed slice, if available. In other embodiments, the decoder waits until the current picture or reconstructed slice is completely processed before decoding a portion of the next picture or reconstructed slice. After identifying up to N entropy slices in step S170, each of the identified entropy slices is entropy decoded independently. A first entropy slice is decoded (S172-S176). Decoding the first entropy slice includes resetting the state of the decoder (S172). In some embodiments involving CABAC entropy decoding, the CABAC state is reset. Neighborhood information for entropy decoding of the first entropy slice is defined (S174), and the data for the first entropy slice is decoded (S176). These steps are performed for each of up to N entropy slices (S178-S182 for the Nth entropy slice). In some embodiments of the invention, the decoder reconstructs the entropy slices when all entropy slices have been entropy decoded (S184). In other embodiments of the invention, the decoder begins the reconstruction of step S184 after one or more entropy slices have been decoded.
[0040] In some embodiments of the invention, when there are more than N entropy slices, a decode thread starts entropy decoding of the next entropy slice as soon as it finishes entropy decoding of an entropy slice, so that when a thread completes entropy decoding of a low complexity entropy slice, it starts decoding of an additional entropy slice without waiting for other threads to complete decoding.
[0041] In some embodiments of the present invention involving existing standards or methods, entropy slices share many of the slice attributes of regular slices according to such standards or methods. Thus, entropy slices require a small header. In some embodiments of the present invention, the entropy slice header allows a decoder to identify the beginning of an entropy slice and begin entropy decoding. In some embodiments, at the beginning of a picture or a reconstruction slice, the entropy slice header is a regular header or a reconstruction slice header.
[0042] In some embodiments of the present invention, including the H.264 / AVC codec, entropy slices are signaled by adding a new bit "entropy_slice_flag" to the existing slice header. Table 1 shows a list of the syntax of the entropy slice header according to an embodiment of the present invention. In Table 1, C indicates the category, and the Descriptors u(1), ue(v) indicate the fixed length or variable length decoding method.
[0043] "first_mb_in_slice" specifies the address of the first macroblock in the entropy slice associated with the entropy slice header. In some embodiments, an entropy slice contains a sequence of macroblocks.
[0044] "cabac_init_idc" specifies an index for determining the initialization table to be used in the context mode initialization process.
[0045] [Table 1] Table 1: Entropy slice header syntax table
[0046] In some embodiments of the present invention, entropy decoding of an entropy slice includes initializing a number of context models and updating the number of context models during entropy decoding of the entropy slice.
[0047] In some embodiments of the present invention, entropy slices are assigned a different network abstraction layer (NAL) unit type than regular slices. In these embodiments, a decoder can distinguish between regular slices and entropy slices based on the NAL unit type. In these embodiments, the bit field "entropy_slice_flag" is not required.
[0048] In some embodiments of the invention, the entropy slice is constructed by varying the data multiplexing. In some embodiments of the invention, the set of symbols included in the entropy slice is multiplexed at the macroblock level. In other embodiments of the invention, the set of symbols included in the entropy slice is multiplexed at the picture level. In other embodiments of the invention, the set of symbols included in the entropy slice is multiplexed by data type. In yet other embodiments of the invention, the set of symbols included in the entropy slice is multiplexed by a combination of the above.
[0049] Some embodiments of the method according to the present invention include (1) encoding a video frame in a video sequence, (2) thereby generating a reconstructed slice, and (3) dividing the reconstructed slice into a number of entropy slices, where (1) encoding the video frame in the video sequence includes dividing the frame in the video sequence into at least one reconstructed slice.
[0050] Some embodiments of the present invention that include constructing entropy slices based on multiplexing at the picture level may be understood in relation to Figures 8 and 9. In some embodiments of the present invention shown in Figure 8, prediction data 190 and residual data 192 are entropy coded separately by a prediction encoder 194 and a residual encoder 196, and multiplexed at the picture level by a picture-level multiplexer 198. In some embodiments of the present invention, the prediction data 190 for a picture is associated with a first entropy slice, and the residual data 192 for a picture is associated with a second entropy slice. The coded prediction data and the coded entropy data are decoded in parallel. In some embodiments of the present invention, each partition containing prediction data or residual data is divided into multiple entropy slices that are decoded in parallel.
[0051] In some embodiments of the invention, as shown in FIG. 9, the residuals of each color plane, e.g., a luma (Y) residual 200 and two chroma (U and V) residuals 202, 204, are entropy coded separately by a Y encoder 206, a U encoder 208, and a V encoder 210, and multiplexed at the picture level by a picture level multiplexer 212. In some embodiments of the invention, the luma residual for picture 200 is associated with a first entropy slice, the first chroma (U) residual for picture 202 is associated with a second entropy slice, and the second chroma (V) residual for picture 204 is associated with a third entropy slice. The coded residual data for the three color planes are decoded in parallel. In some embodiments of the invention, each partition containing color plane residual data is divided into multiple entropy slices that are decoded in parallel. In some embodiments of the present invention, the luma residual 200 has relatively more entropy slices than the chroma residuals 202, 204.
[0052] In some embodiments of the invention, a compressed-video bitstream is transcoded to include entropy slices, thereby performing parallel entropy decoding as included in the embodiments of the invention described above. Some embodiments of the invention are described in relation to FIG. 10. An input bitstream without entropy slices is processed picture by picture according to FIG. 10. In these embodiments of the invention, pictures from the input bitstream are entropy decoded (S220). Encoded data, such as mode data, motion information, residual information, and other data, are obtained. Entropy slices are constructed one by one from the data (S222). Entropy slice headers corresponding to the entropy slices are written to a new bitstream (S224). The encoder state is reset and neighborhood information is defined (S226). The entropy slices are entropy coded (S228) and written to the new bitstream. If there is picture data that has not been consumed into the constructed entropy slice (NO in step S230), another entropy slice is constructed in step S222, and processing from S224 to S230 is continued until all picture data has been consumed into the constructed entropy slice (YES in step S230), and then the next picture is processed.
[0053] [Additional Notes] Some embodiments of the present invention include methods, apparatus, and systems for entropy encoding and decoding a video bitstream in parallel by partitioning the slice data into multiple entropy slices that are entropy coded and decoded independently.
[0054] According to one aspect of the present application, there is provided a method for decoding a video bitstream, the method including: a first entropy decoding step of entropy decoding a first portion of a video bitstream, the first portion being associated with a video frame, to generate a first portion of decoded data, a second entropy decoding step of entropy decoding a second portion of the video bitstream, the second portion being associated with the video frame, independent of the entropy decoding of the first portion, to generate a second portion of decoded data, the second portion being associated with the video frame, and a reconstruction step of reconstructing the first portion of the video frame associated with the video bitstream using the first portion of the decoded data and the second portion of the decoded data.
[0055] According to another aspect of the present application, a method is provided for decoding video frames in a video sequence, the method including receiving a bitstream, identifying a reconstructed slice in the bitstream, identifying a plurality of entropy slices associated with the reconstructed slice in the bitstream, entropy decoding each of the plurality of entropy slices associated with the reconstructed slice to generate a plurality of entropy decoded entropy slices, and reconstructing a portion of a video frame associated with the reconstructed slice using the plurality of entropy decoded entropy slices.
[0056] According to another aspect of the present application, there is provided a method for encoding a video frame in a video sequence, the method comprising: a reconstructed slice generation step of generating a first reconstructed slice by dividing a first frame in the video sequence into at least one reconstructed slice, and a division step of dividing the first reconstructed slice into a plurality of entropy slices.
[0057] According to another aspect of the present application, a method for generating a video bitstream for parallel decoding is disclosed, the method including receiving a first video bitstream, identifying a reconstructed slice in the video bitstream, entropy decoding a plurality of symbols from the reconstructed slice to generate entropy decoded data associated with the reconstructed slice, partitioning the entropy decoded data associated with the reconstructed slice into a plurality of entropy slices associated with the reconstructed slice, entropy encoding the entropy decoded data for each of the plurality of entropy slices individually to generate a plurality of entropy coded entropy slices, and generating a bitstream including the plurality of entropy coded entropy slices.
[0058] In some embodiments of the invention, a first portion and a second portion of an input compressed-video bitstream are entropy decoded separately. A block of samples of a video frame associated with the second portion of the input compressed-video bitstream is reconstructed using decoded data from the first portion and the second portion. Thus, the definition of neighborhood during reconstruction is not the same as the definition of neighborhood during entropy decoding.
[0059] In some embodiments of the invention, an encoder divides input data into a number of entropy slices. The encoder entropy codes the entropy slices individually. The encoder generates a bitstream including a number of entropy slice headers, where each of the entropy slice headers indicates a location in the bitstream of data relating to an entropy slice. In some embodiments of the invention, a decoder parses the received bitstream for entropy slice headers, and entropy decodes the entropy slices according to a level of parallelism defined by the decoder.
[0060] In some embodiments of the invention, data is multiplexed at the picture level to generate (form) entropy slices. In some embodiments, one or more entropy slices correspond to prediction data and one or more entropy slices correspond to residual data. In other embodiments of the invention, one or more entropy slices correspond to each of a number of color-planes.
[0061] In some embodiments of the present invention, a bitstream is transcoded to include entropy slices, in which the received bitstream is entropy decoded to construct a number of entropy slices, each of which is individually encoded and written into the transcoded bitstream along with a corresponding entropy slice header.
[0062] In H.264 / AVC, entropy decoding is a potential bottleneck in the decoding process. The configuration of one embodiment of the present invention allows the entropy decoding process required to reconstruct an image to be performed in parallel. Thus, the method, apparatus, and system of the present invention can solve the above problem.
[0063] In addition, the decoding method of the present invention, in a decoding method for decoding a video bitstream, includes an entropy decoding step of generating decoded data by entropy decoding the video bitstream, a syntax analysis step of performing syntax analysis of the decoded data to identify first decoded data associated with a first part of the video bitstream and second decoded data associated with a second part, a first reconstruction step of reconstructing a first region relating to an image in the video using the first decoded data, and a second reconstruction step of reconstructing a second region relating to an image in the video using the second decoded data, and the second reconstruction step may further use the first region reconstructed in the first reconstruction step to reconstruct the second region.
[0064] In addition, the encoding method of the present invention may be an encoding method for encoding a moving image into a bitstream, the encoding method including: a first construction step of constructing first encoded data representing a first region relating to an image in the moving image based on the first region; a second construction step of constructing second encoded data representing a second region relating to an image of the moving image based on the second region and the first region; a syntax addition step of adding a syntactic expression that enables the first encoded data and the second encoded data to be distinguished; and an entropy encoding step of entropy encoding the first encoded data and the second encoded data that have undergone the syntax addition step to generate the moving image bitstream.
[0065] The above decoding method can also be expressed as follows: In order to solve the above problem, the decoding method according to the present invention is a decoding method for decoding a video frame in a video sequence, the decoding method including: a) receiving a bit stream; b) identifying a reconstructed slice in the bit stream; c) analyzing a flag of a slice header in the bit stream; d) identifying a first divided slice and a second divided slice indicated by a division of an area in the reconstructed slice; e) entropy decoding the first divided slice to generate first decoded data; f) entropy decoding the second divided slice to generate second decoded data; and g) reconstructing the reconstructed slice, The step of reconstructing the segment includes: i) using the first decoded data to reconstruct a first portion of the video frame associated with the first divided slice; and ii) using the second decoded data and the first portion to reconstruct a second portion of the video frame associated with the second divided slice, wherein if the flag is 1, the slice header is a divided slice header, and if the flag is 0, the slice header is a standard slice header, the divided slice header shares slice characteristics of the standard slice header, and a size of the divided slice header is smaller than a size of the standard slice header.
[0066] A decoding method according to the present invention is a method for decoding an image of a video sequence using a decoding device, comprising the steps of: receiving a bitstream; identifying a reconstructed slice indicating a region of the image in the bitstream; analyzing flags in headers of two divided slices in the bitstream; identifying one of the two divided slices as a first divided slice of the reconstructed slice based on the flags in the header, and identifying the other of the two divided slices as a second divided slice of the reconstructed slice; entropy decoding the first divided slice to generate first decoded data; and entropy decoding the second divided slice to generate second decoded data, wherein the entropy decoding of the first divided slice is independent of any other divided slices in the reconstructed slice, and the method may further comprise the step of reconstructing the region of the image indicated by the reconstructed slice using the first decoded data and the second decoded data.
[0067] Also, an encoding method according to the present invention is a method for encoding an image of a video sequence using an encoding device, the method comprising the steps of entropy encoding a first divided slice to generate first entropy encoded data, and entropy encoding a second divided slice to generate second entropy encoded data, wherein a reconstructed slice indicating a region of the image includes the first divided slice and the second divided slice, and the method further comprises the steps of encoding a first divided slice header for the first divided slice, and encoding a second divided slice header for the second divided slice. and encoding the first partitioned slice header and the second partitioned slice header, both of which include a flag indicating whether a corresponding partitioned slice is the first partitioned slice or the first partitioned slice, and the second partitioned slice header shares slice characteristics of the first partitioned slice header, and the method may further include transmitting a bitstream including the first partitioned slice, the second partitioned slice, and the reconstructed slice including the first partitioned slice header and the second partitioned slice header.
[0068] The device of the present invention may also be an apparatus comprising a recording medium accessible by a decoding device and for non-temporarily recording data readable by a computer, the computer-readable recording medium including bitstream data including data indicating a reconstructed slice indicating an area in an image, the reconstructed slice including a first divided slice and a second divided slice, the first divided slice including a first divided slice header and the second divided slice including a second divided slice header, each of the first divided slice header and the second divided slice header including a flag indicating whether the corresponding divided slice is the first divided slice or the second divided slice.
[0069] Also, an apparatus according to the present invention is an apparatus including a non-transitory computer-readable recording medium, the non-transitory computer-readable recording medium storing instructions which, when executed by one or more processors, cause the one or more processors to perform a process of generating a plurality of reconstructed slices in encoded image data representing a video frame, each reconstructed slice having a plurality of entropy slices, each entropy slice having a plurality of macroblocks, no macroblock included in one reconstructed slice is included in two different entropy slices, a first entropy slice in a first reconstructed slice is entropy coded independently of remaining entropy slices in the first reconstructed slice, and The first entropy slice represents a first portion of the video frame, and a second entropy slice in the first reconstructed slice represents a second portion of the video frame and is encoded using the first portion of the video frame, each entropy slice having a header, each header having a flag, and if the flag in the header is 0, the entropy slice is the first entropy slice of the reconstructed slice, and if the flag in the header is 1, the entropy slice is not the first entropy slice of the reconstructed slice, and the header of the second entropy slice is smaller than the header of the first entropy slice.
[0070] The terms and expressions used in the above specification are used as terms of description only and not as terms of limitation, and are not used to exclude the equivalents of the above-mentioned characteristics or any portion thereof. The scope of the present invention is defined by and limited only by the claims.
[0071] [Additional Notes] An apparatus according to the present invention is an apparatus including a non-transitory computer-readable recording medium, the non-transitory computer-readable recording medium storing instructions which, when executed by one or more processors, cause the one or more processors to perform a process of generating a plurality of reconstructed slices in encoded image data representing a video frame, the reconstructed slices among the plurality of reconstructed slices including a plurality of entropy slices, the plurality of entropy slices including a plurality of macroblocks, no macroblock included in one reconstructed slice is included in two different entropy slices, a first entropy slice in a first reconstructed slice is entropy coded independently of remaining entropy slices in the first reconstructed slice, the first entropy slice represents a first portion of the video frame, the first reconstructed slice includes a plurality of entropy slices including a plurality of macroblocks, no macroblock included in one reconstructed slice is included in two different entropy slices, a first entropy slice in a first reconstructed slice is entropy coded independently of remaining entropy slices in the first reconstructed slice, the first entropy slice represents a first portion of the video frame, a second entropy slice in the video frame represents a second portion of the video frame and is encoded using the first portion of the video frame, the first entropy slice and the second entropy slice each include a header, the header of the first entropy slice and the header of the second entropy slice each include a flag, if the flag in the header is a first predetermined value, the respective entropy slice is the first entropy slice of the first reconstructed slice, if the flag in the header is a second predetermined value, the respective entropy slice is not the first entropy slice of the first reconstructed slice, the header of the second entropy slice is smaller than the header of the first entropy slice, and the plurality of entropy slices include residual data. [Industrial Applicability]
[0072] The present invention can be suitably applied to video encoding and video decoding in general.
Claims
1. An apparatus comprising: a non-transitory computer-readable storage medium storing instructions that, when executed by one or more processors, cause the one or more processors to perform operations to generate image data corresponding to a video bitstream; The image data is a plurality of pictures in the video bitstream, including a first picture including a first slice and a second slice; a plurality of slice headers including a first slice header associated with the first slice of the first picture and a second slice header associated with the second slice of the first picture; the first slice and the second slice include a plurality of blocks of entropy coded samples; The second slice header is different from the first slice header and shares some slice characteristics with the first slice header, and the size of the second slice header is smaller than the size of the first slice header; a value of the flag of the first slice header indicates that the first slice header is a header of an entropy slice that is the start of a reconstruction slice; a value of the flag of the second slice header indicates that the second slice header is a header of an entropy slice that does not start a reconstruction slice; The value of the flag in the first slice header is set to 0; The image data for the first slice and the second slice includes transform coefficients.
2. The apparatus of claim 1 , wherein a value of the flag in the second slice header is set to 1.
Citation Information
Patent Citations
Image decoding device and image encoding device
JP2006014113A
Information processing apparatus, decoding processing method, and program
JP2007295392A
Encoding circuit, decoding circuit, encoder circuit, decoder circuit, cabac processing method
JP2008011204A
MPEG decoder and MPEG encoder
JP2008067026A
Method and device for processing coded video data
WO2006048807A1
