Decoding method and device

By segmenting image blocks for deblocking filter decisions, the method reduces memory and computational overhead, enhancing encoding efficiency and cost-effectiveness.

JP7561354B2Active Publication Date: 2024-10-04SUN PATENT TRUST
View PDF 1 Cites 0 Cited by

Patent Information

Application Number
JP2023155933
Authority / Receiving Office
JP · JP
Patent Type
Patents
Current Assignee / Owner
Priority Date
2011-09-09
Filing Date
2023-09-21
Publication Date
2024-10-04
Estimated Expiration
2032-09-06

AI Technical Summary

Technical Problem

Conventional deblocking filtering techniques require excessive memory and computational resources due to the need to make decisions for all block edges, leading to increased costs and inefficiencies.

Method used

The method involves dividing image blocks into segments perpendicular to block boundaries to make deblocking filter decisions independently for each segment, reducing memory usage and computational complexity by eliminating the need for additional line memories.

Benefits of technology

This approach reduces memory costs and computational complexity while maintaining effective deblocking filtering, improving encoding efficiency by about 0.15% with reduced mean square quantization error.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure 0007561354000048
    Figure 0007561354000048
  • Figure 0007561354000049
    Figure 0007561354000049
  • Figure 0007561354000050
    Figure 0007561354000050
Patent Text Reader

Abstract

To provide a decoding method involving an efficient deblocking filtering technique.SOLUTION: A decoding method determines whether to apply a deblocking filter to every adjacent pixel included in first segments of a first block and a second block which are adjacent, and selects a type indicating the number of samples to be corrected though the deblocking filter. Sample pixels used for the determination are included only in sample pixels included in the first segments of the first block and the second block. In the selection, only pixels belonging to the pixel column to which the pixels used for the determination are used to select the type indicating the number of samples to be corrected through the deblocking filter for every pixel column of sample pixels perpendicular to first boundaries included in the first segments of the first block and the second block without using sample pixels of pixel columns other than the target pixel column.SELECTED DRAWING: Figure 20A
Need to check novelty before this filing date? Find Prior Art

Description

[Technical field]

[0001] [Technical field to which the invention pertains] The present invention relates to image filtering, in particular to deblocking filtering and to determining whether to enable or disable deblocking filtering for an image region. [Background technology]

[0002] [Description of the Prior Art] Currently, most standard video coding algorithms are based on hybrid video coding. Hybrid video coding methods usually combine several different lossless and lossy compression techniques to achieve a desired compression gain. Hybrid video coding is the basis of ITU-T standards (H.26x standards such as H.261 and H.263) as well as ISO / IEC standards (MPEG-X standards such as MPEG-1, MPEG-2, MPEG-4). The latest video coding standard is called H.264 / MPEG-4 Advanced Video Coding (AVC) and is the result of standardization activities by the Joint Video Team (JVT) (a joint team between the ITU-T group and the ISO / IEC MPEG group). This codec is being further developed by the Joint Collaborative Team on Video Coding (JCT-VC) under the name High-Efficiency Video Coding (HEVC) with the aim of improving the efficiency of video coding, especially for high resolutions.

[0003] The video signal input to the encoder is a sequence of images called frames, each frame consisting of a two-dimensional matrix of pixels. All the above mentioned standards based on hybrid video coding include dividing each video frame into smaller blocks of pixels. The size of the blocks depends, for example, on the image content. The coding method may usually be different for each block. For example, in HEVC, the maximum size allowed for such a block is 64x64 pixels. This maximum size is called the maximum coding unit (LCU). In H.264 / MPEG-4 AVC, a macroblock (usually a block of 16x16 pixels) is the basic image element on which coding is performed and which may be further divided into smaller sub-blocks where some coding / decoding steps are applied.

[0004] Typically, the coding steps in hybrid video coding include spatial and / or temporal prediction. Thus, each block to be coded is first predicted using spatially or temporally adjacent blocks, i.e. blocks of a previously coded video frame. A difference block between the block to be coded and the prediction, also called prediction residual block, is then calculated. In a next coding step, the residual block is transformed from the spatial (pixel) domain to the frequency domain. The purpose of the transformation is to reduce the correlation of the input blocks. In a next coding step, the transform coefficients are quantized. In this step, a substantially lossy (irreversible) compression is performed. Usually, the compressed transform coefficient values ​​are further compressed (losslessly) by entropy coding. Furthermore, auxiliary information necessary to reconstruct the coded video signal is coded and provided together with the coded video signal. This information concerns, for example, the spatial and / or temporal prediction, the amount of quantization, etc.

[0005] FIG. 1 shows an example of a typical video encoder 100 compliant with H.264 / MPEG-4 AVC and / or HEVC. A subtractor 105 first determines the difference between a block to be coded of an input video (input signal s) and a corresponding predicted block Ŝ. The difference is used to predict the block to be coded. The prediction signal is obtained by temporal or spatial prediction 180. The type of prediction can vary from frame to frame or block to block. Blocks and / or frames predicted using temporal prediction are said to be "inter" coded, whereas blocks and / or frames predicted using spatial prediction are said to be "intra" coded. A prediction signal using temporal prediction is derived from an already coded image stored in memory. A prediction signal using spatial prediction is derived from boundary pixel values ​​of neighboring blocks that have already been coded and decoded and stored in memory. The difference e between the input signal and the prediction signal is called the prediction error or residual, which is transformed (110) into coefficients and quantized (120). To further reduce the amount of data to be stored and / or transmitted losslessly, entropy coding (190) is applied to the quantized coefficients. This is typically achieved by applying a code with variable length codewords, the length of which is chosen based on the probability of occurrence.

[0006] To obtain a decoded (reconstructed) video signal s', a decoding unit is incorporated in the video encoder 100. In line with the encoding step described above, the decoding step includes an inverse quantization and an inverse transform (130). The prediction error signal e' thus obtained differs from the original prediction error signal due to quantization errors, also called quantization noise. The decoded prediction error signal e' is then added (140) to the prediction signal S^ to obtain the reconstructed signal s'. To maintain compatibility between the encoder and the decoder side, the prediction signal S^ is obtained based on the coded and subsequently decoded video signals available at both the encoder and the decoder side.

[0007] As a result of quantization, quantization noise is superimposed on the reconstructed video signal. Due to block-based coding, the superimposed noise often has blocking characteristics, and block boundaries in the decoded image are noticeable, especially when strong quantization is performed. Blocking artifacts have a negative effect on human visual perception. To reduce these artifacts, a deblocking filter 150 is applied to all reconstructed image blocks. The deblocking filter is applied to the reconstructed signal s'. For example, the deblocking filter in H.264 / MPEG-4 AVC has a locally adaptive capability. When the degree of blocking noise is high, a strong (narrow bandwidth) low-pass filter is used, and when the degree of blocking noise is low, a weak (wide bandwidth) low-pass filter is used. The strength of the low-pass filter is determined by the prediction signal S^ and the quantized prediction error signal e'. The deblocking filter generally smooths the edges of the blocks and improves the subjective quality of the decoded image. In addition, since the filtered parts of the image are used for motion-compensated prediction of the next image, filtering also reduces the prediction error, which can improve the coding efficiency.

[0008] After the deblocking filter, a sample adaptive offset 155 and / or an adaptive loop filter 160 may be applied to the image containing the deblocked signal s''. The deblocking filter improves the subjective quality. On the other hand, the sample adaptive offset (SAO) and the ALF aim to improve the pixel-wise reliability ("objective" quality). In particular, the SAO adds an offset according to the nearest neighbors of a pixel. The adaptive loop filter (ALF) is used to compensate for image distortion caused by compression. Typically, the adaptive loop filter is a Wiener filter with filter coefficients determined such that the mean square error (MSE) between the reconstructed image s' and the source image s is minimized. The coefficients of the ALF may be calculated and transmitted on a frame-by-frame basis. The ALF can be applied to the whole frame (image of a video sequence) or to local regions (blocks). Additional auxiliary information indicating the region to filter may be transmitted (block-by-block, frame-by-frame, or quadtree-by-quadtree).

[0009] To decode an inter-coded image, a portion of the coded and decoded image must also be stored in the reference frame buffer 170. An inter-coded block is predicted (180) by using motion-compensated prediction. First, a motion detector finds the best match for the current block in the coded and decoded video frames. This best match becomes the prediction signal, and the relative displacement (motion) between the current block and the best match is signaled as motion data in the form of a three-dimensional motion vector. This motion data is included in the side information provided with the coded video data. The three dimensions are two spatial dimensions and one temporal dimension. To optimize the prediction accuracy, the motion vectors may be determined at a spatial sub-pixel resolution, such as half pixel resolution or quarter pixel resolution. A spatial sub-pixel resolution motion vector may point to a spatial location in the decoded frame where no real pixel value exists, i.e., a sub-pixel location. Therefore, to perform the motion-compensated prediction, a spatial interpolation of such pixel values ​​is required. This may be achieved by an interpolation filter (integrated with the prediction block 180 in FIG. 1).

[0010] In both intra- and inter-coding modes, the difference e between the target input signal and the prediction signal is transformed (110) and quantized (120) to obtain quantized coefficients. Typically, an orthogonal transform is used, such as the two-dimensional discrete cosine transform (DCT) or its integer versions, since this effectively reduces correlation in natural video. After the transform, more bits are spent on coding the low-frequency components than the high-frequency components, since the low-frequency components are usually more important for image quality than the high-frequency components. In the entropy coder, the two-dimensional array of quantized coefficients is transformed into a one-dimensional array, typically by a so-called zigzag scan, in which the two-dimensional array is scanned in a predefined order from the DC coefficient in the upper left corner to the AC coefficient in the lower right corner. Since energy is typically concentrated in the upper left part of the coefficients of the two-dimensional array, which corresponds to low frequencies, a zigzag scan typically results in an array whose last value is zero. This allows efficient encoding using run-length codes, either as part of the actual entropy coding or as a preprocessing step.

[0011] H.264 / MPEG-4 H.264 / MPEG-4 AVC and HEVC have two layers: the Video Coding Layer (VCL) and the Network Abstraction Layer (NAL). The VCL provides the coding functionality, as briefly mentioned above. The NAL encapsulates information elements in standard units called NAL units for further use, such as transmission over a channel or storage in a storage device. Information elements are, for example, coded prediction error signals or other information required for decoding the video signal, such as prediction type, quantization parameters, motion vectors, etc. There are VCL NAL units that contain compressed video data and related information, and there are also non-VCL units that encapsulate additional data, such as parameter sets related to the entire video sequence, or supplemental enhancement information (SEI), which provides additional information used to improve the decoding accuracy.

[0012] FIG. 2 shows an example of a decoder 200 that complies with the H.264 / MPEG-4 AVC or HEVC video coding standard. The coded video signal (input signal to the decoder) is first sent to an entropy decoder 290 that decodes information elements required for decoding, such as motion data, prediction modes, etc., and quantization coefficients. The quantization coefficients are inverse scanned to obtain a two-dimensional array, which is then input to an inverse quantization and inverse transform unit 230. After inverse quantization and inverse transform (230), a decoded (quantized) prediction error signal e' is obtained. In the case where no quantization noise and no errors are generated, this decoded (quantized) prediction error signal e' corresponds to the difference obtained by subtracting the prediction signal from the signal input to the encoder.

[0013] The prediction signal is obtained by a temporal or spatial prediction (280). The decoded information elements usually further contain information necessary for prediction, such as the prediction type in case of intra prediction, or the motion data in case of motion compensated prediction. The quantized prediction error signal in the spatial domain is then added by an adder 240 to the prediction signal obtained from the motion compensated or intra prediction (280). The reconstructed image s′ may be passed through a deblocking filter 250, a sample adaptive offset processor 255 and an adaptive loop filter 260, and the resulting decoded signal is stored in a memory 270 and used for the temporal or spatial prediction of subsequent blocks / images.

[0014] A further illustration of an example of a hybrid video encoder is shown in Figure 3. The encoder of Figure 3 differs from the encoder of Figure 1 in that the deblocking filter 150 of Figure 1 is split into a filter 350a for horizontally deblocking vertical edges and a filter 350b for vertically deblocking horizontal edges. Filter 350a is applied to the reconstructed signal S', which is the output of adder 140. The output of filter 350b, i.e. the image with deblocked vertical edges denoted as S'', is input to filter 350b. The output signal of filter 350b, i.e. the vertically and horizontally deblocked image, is denoted as S'''. Furthermore, Figure 3 explicitly shows the quantization parameter QP input to entropy encoder 190 and to horizontal and vertical deblocking filters 350a and 350b.

[0015] The remaining blocks in Figure 3 correspond to those in Figure 1, and equivalent features are designated with the same reference numerals in Figure 3 and Figure 1. In Figure 3, adaptive loop filter 160 is explicitly described as a Wiener filter, and blocks 155 (SAO) and 160 (ALF) are swapped. However, the order of these steps is not essential to the invention. Also, reference frame buffer 170 is not explicitly shown in Figure 3.

[0016] Given the similarity in functionality between the encoder of Figure 1 and the decoder of Figure 2, a person skilled in the art would know how to modify Figure 2 to illustrate a decoder in which horizontal and vertical deblocking is done explicitly in two successive steps, and therefore the figures are omitted.

[0017] When compressing and decompressing an image, blocking artifacts are usually the most annoying to the user. By smoothing the edges between blocks of the reconstructed image, deblocking filtering improves the user's perceptual experience. One of the difficulties of deblocking filtering is to accurately distinguish between edges that are caused by blocking due to the application of a quantizer and edges that are part of the encoded signal. It is desirable to apply a deblocking filter only in the case of edges that are caused at block boundaries due to compression artifacts. In other cases, application of the deblocking filter may distort the reconstructed signal. Another difficulty is to select an appropriate filter for deblocking filtering. Usually, a decision is made between multiple low-pass filters with different frequency responses, resulting in strong or weak low-pass filtering. To decide whether to apply deblocking filtering and to select an appropriate filter, the image data present near the boundary of two blocks is taken into account.

[0018] For example, the quantization parameters of the neighboring blocks may be taken into account. Alternatively or additionally, the prediction mode, such as intra or inter, may be taken into account. Another possibility is to evaluate the quantized prediction error coefficients, for example, how many coefficients are quantized to zero. The filter selection may also be guided by the reference frame used for the motion compensated prediction, for example, whether the same reference frame was used to predict the current block and the neighboring blocks. The decision may also be based on the motion vectors used for the motion compensated prediction, or on whether the motion vector of the current block and the motion vector of the neighboring blocks are the same or different. The decision may also be related to the sample space location, such as the distance to the block patch.

[0019] For example, H.264 / MPEG-4 AVC evaluates the absolute value of the first differential of each of the two adjacent blocks whose boundaries are to be deblocked. It also evaluates the absolute value of the first differential at the edge between the two blocks, as described for example in section 8.7.2.2 of the H.264 / MPEG-4 AVC standard. A similar approach is also described in US Publication No. 2007 / 854204 A. The same decision is made for all pixels to be filtered, and a selection is made for the entire block. HEVC employs a similar mechanism, but also uses the second differential.

[0020] According to these techniques, in the actual deblocking, the decision to deblock or not is made for all edges of the block that may be deblocked. Furthermore, if deblocking is enabled, a decision is made for each individual line as to what type of filter to apply. These decisions are made based on the non-deblocked pixel samples. Thus, before actually applying the deblocking filter for both horizontal filtering of vertical edges and vertical filtering of horizontal edges, the decision for both deblocking directions must be made. This results in a delay of the first deblocking filter to be applied (e.g. horizontal filtering). Moreover, the filter-on / filter-off decision result needs to be stored. Alternatively, an additional line memory may be required to delay the decision made for the deblocking in the second direction (e.g. vertical direction). Line memory is quite expensive, so this approach increases the cost. Summary of the Invention

[0021] In view of these shortcomings in the prior art, it would be advantageous to provide an efficient deblocking filtering technique with improved memory usage efficiency.

[0022] In a specific approach of the present invention, the decision to apply or skip a deblocking filter to a boundary between two blocks is not made for the entire block, but by dividing each block into at least two segments along a line perpendicular to the block boundary, where the segments are set to include all pixels that are stored in some way, since these pixels are needed to decide whether to apply or skip deblocking filtering and / or to select a suitable filter for another vertical block boundary adjacent to each segment.

[0023] According to one aspect of the present invention, there is provided a method for deblocking filtering an image block of pixels, comprising a partitioning step for partitioning a first block and a second block, each of which is separated by a first boundary, into at least two segments along a line perpendicular to the first boundary, and a judging step for judging whether to apply a deblocking filter to pixels adjacent to the first boundary between the first block and the second block, the judging step being performed separately for a set of adjacent segments on both sides of the first boundary using sample pixels of the set of adjacent segments, while pixels belonging to the other segments are not used in the judging step. The partitioning step is performed such that the segments of a block include all pixels of the block required for the judging whether to apply a deblocking filter and / or for selecting the deblocking filter for deblocking pixels adjacent to a second boundary between the block and a third block, perpendicular to the first boundary.

[0024] According to another aspect of the present invention, there is provided an apparatus for deblocking filtering an image block of pixels, the apparatus comprising: a division unit for dividing a first block and a second block, each of which is distinguished by a first boundary, into at least two segments along a line perpendicular to the first boundary. The apparatus further comprises a determination unit for determining whether or not to apply a deblocking filter to pixels adjacent to the first boundary between the first block and the second block. The determination unit performs a determination for each pair of adjacent segments on both sides of the first boundary using sample pixels of the pair of adjacent segments, such that pixels belonging to other segments are not used in the determination. The division unit performs the division such that the segments of a block include all pixels of the block required for determining whether or not to apply a deblocking filter and / or for selecting the deblocking filter for deblocking pixels adjacent to a second boundary between the block and a third block perpendicular to the first boundary. [Brief description of the drawings]

[0025] The accompanying drawings are incorporated in and form a part of the specification, illustrating several embodiments of the present invention. The drawings, together with the description of the embodiments, serve to explain the principles of the present invention. The purpose of the drawings is only to illustrate preferred and alternative examples of how the invention can be made and used, and should not be construed as limiting the invention to only the embodiments shown and described. Further features and advantages of the present invention will become apparent from the following detailed description of various embodiments of the invention, as illustrated in the accompanying drawings, in which like reference numerals refer to like elements. [Figure 1] FIG. 1 is a block diagram illustrating an example of a video encoder. [Diagram 2] FIG. 2 is a block diagram illustrating an example of a video decoder. [Diagram 3] FIG. 3 is another block diagram illustrating an example of a video encoder. [Figure 4A] FIG. 4A is a schematic diagram illustrating the application of a horizontal deblocking filter. [Figure 4B] FIG. 4B is a schematic diagram illustrating the application of a vertical deblocking filter. [Diagram 5] FIG. 5 is a schematic diagram illustrating the decision of whether to apply deblocking filtering and the selection of a deblocking filter. [Figure 6A] FIG. 6A is a schematic diagram illustrating the deblocking operation performed in a strong filter. [Figure 6B] FIG. 6B is a schematic diagram illustrating the deblocking operation performed in the weak filter. [Figure 7] FIG. 7 is a flow chart illustrating the sequence of deblocking decisions that follow from the example 8 row / column block. [Figure 8] FIG. 8 is a schematic diagram showing pixel samples used to make the first decision in the flow chart of FIG. [Figure 9] FIG. 9 is a schematic diagram showing pixel samples used to make the second decision in the flow chart of FIG. [Figure 10] FIG. 10 is a schematic diagram showing pixel samples used to make the third decision in the flow chart of FIG. 7 when filtering a vertical edge horizontally. [Figure 11] FIG. 11 is a schematic diagram showing pixel samples used for horizontal deblocking filtering of vertical edges. [Figure 12] FIG. 12 is a schematic diagram showing pixel samples used to make the third decision in the flow chart of FIG. 7 when filtering a horizontal edge vertically. [Figure 13] FIG. 13 is a schematic diagram showing pixel samples used for vertical deblocking filtering of horizontal edges. [Figure 14] FIG. 14 is an illustration of a sample modified by horizontal deblocking of vertical edges. [Figure 15] FIG. 15 is an illustration of a sample modified by horizontal deblocking of vertical edges. [Figure 16] FIG. 16 is an illustration of samples that are modified by horizontal or vertical deblocking. [Figure 17A] FIG. 17A is a schematic diagram illustrating a problem that arises when the first and second decisions of the flowchart in FIG. 7 are performed in parallel in horizontal and vertical filtering, and a basic solution to the problem according to the present invention. [Figure 17B] FIG. 17B is a schematic diagram illustrating a problem that arises when the first and second decisions of the flowchart of FIG. 7 are performed in parallel in horizontal and vertical filtering, and a basic solution to the problem according to the present invention. [Figure 17C] FIG. 17C is a schematic diagram illustrating a problem that arises when the first and second decisions of the flowchart of FIG. 7 are performed in parallel in horizontal and vertical filtering, and a basic solution to the problem according to the present invention. [Figure 17D] FIG. 17D is a schematic diagram illustrating a problem that arises when the first and second decisions of the flowchart of FIG. 7 are performed in parallel in horizontal and vertical filtering, and a basic solution to the problem according to the present invention. [Figure 18] FIG. 18 illustrates that the deblocking dependency according to the present invention is limited to 8×8 samples. [Figure 19A] FIG. 19A is a schematic diagram illustrating an example of determining whether to apply a deblocking filter, according to an embodiment of the present invention. [Figure 19B] FIG. 19B is a schematic diagram illustrating an example of determining whether to apply a deblocking filter, according to an embodiment of the present invention. [Figure 20A] FIG. 20A is a schematic diagram illustrating an example of a decision to select an appropriate deblocking filter according to an embodiment of the present invention. [Figure 20B] FIG. 20B is a schematic diagram illustrating an example of a decision to select an appropriate deblocking filter according to an embodiment of the present invention. [Figure 21A]FIG. 21A is a schematic diagram illustrating another example of a decision to select an appropriate deblocking filter according to an embodiment of the present invention. [Figure 21B] FIG. 21B is a schematic diagram illustrating another example of a decision to select an appropriate deblocking filter according to an embodiment of the present invention. [Figure 22A] FIG. 22A is a schematic diagram illustrating the memory access problems that arise when making a decision whether to apply deblocking. [Figure 22B] FIG. 22B is a schematic diagram illustrating the memory access problems that arise when making a decision whether to apply deblocking. [Figure 23A] FIG. 23A is a schematic diagram illustrating a solution to the memory access problem illustrated in FIGS. 22A and 22B. [Figure 23B] FIG. 23B is a schematic diagram illustrating a solution to the memory access problem illustrated in FIGS. 22A and 22B. [Figure 24] FIG. 24 is a diagram showing the overall configuration of a content supply system that realizes a content distribution service. [Diagram 25] FIG. 25 is a diagram showing the overall configuration of a digital broadcasting system. [Figure 26] FIG. 26 is a block diagram showing an example of the configuration of a television. [Figure 27] FIG. 27 is a block diagram showing an example of the configuration of an information reproducing / recording unit that reads and writes information from and to a recording medium that is an optical disc. [Figure 28] FIG. 28 is a diagram showing an example of the structure of a recording medium that is an optical disc. [Figure 29A] FIG. 29A is a diagram showing an example of a mobile phone. [Figure 29B] FIG. 29B is a block diagram showing an example of the configuration of a mobile phone. [Diagram 30] FIG. 30 is a diagram showing a structure of multiplexed data. [Diagram 31] FIG. 31 is a diagram showing a schematic diagram of how each stream is multiplexed in multiplexed data. [Diagram 32]FIG. 32 shows in more detail how a video stream is stored in a PES packet sequence. [Diagram 33] FIG. 33 is a diagram showing the structure of TS packets and source packets in multiplexed data. [Diagram 34] FIG. 34 shows the data structure of a PMT. [Diagram 35] FIG. 35 is a diagram showing the internal structure of the multiplexed data information. [Diagram 36] FIG. 36 shows the internal structure of the stream attribute information. [Figure 37] FIG. 37 shows the steps of identifying video data. [Figure 38] FIG. 38 is a block diagram showing an example of the configuration of an integrated circuit that realizes the video coding method and the video decoding method according to each embodiment. [Figure 39] FIG. 39 is a diagram showing a configuration for switching the drive frequency. [Diagram 40] FIG. 40 is a diagram showing steps of identifying video data and switching the drive frequency. [Diagram 41] FIG. 41 is a diagram showing an example of a lookup table in which video data standards correspond to drive frequencies. [Figure 42A] FIG. 42A is a diagram showing an example of a configuration in which modules of a signal processing unit are shared. [Figure 42B] FIG. 42B is a diagram showing another example of a configuration in which modules of a signal processing unit are shared. DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS

[0026] [Detailed Description of the Invention] As will be described in detail below, conventional decision methods require more memory capacity than necessary to make all the decisions and perform the actual filtering process in the desired order. This is the underlying problem of the present invention. In order to reduce memory costs, the present invention performs block division for the decision process to minimize the amount of MIC memory required. Furthermore, in certain embodiments, the overall computational complexity is reduced.

[0027] FIG. 4 shows an example of application of the deblocking filters (such as 150, 250, 350a and 350b) described in the description of FIG. 1, FIG. 2 and FIG. 3, respectively. Such a deblocking filter may decide for each sample whether to filter at the block boundaries or not. If to filter, a low-pass filter is applied. The purpose of this decision is to filter only those samples that experience large signal changes at the block boundaries due to the quantization applied in the block-wise processing described in the background art above. This filtering results in a smoothed signal at the block boundaries. The smoothed signal is less annoying to the viewer than blocking artifacts. Those samples that experience large signal changes at the block boundaries, belonging to the original signal to be coded, should not be filtered in order to preserve high frequencies and therefore visual sharpness. If the wrong decision is made, the image will be unnecessarily smoothed or the block boundaries will remain distorted.

[0028] FIG 4A illustrates a decision regarding vertical boundaries (whether to filter with a horizontal deblocking filter) and FIG 4B illustrates a decision regarding horizontal boundaries (whether to filter with a vertical deblocking filter). Specifically, FIG 4A illustrates a current block 340 to be decoded and its decoded neighboring blocks 310, 320, and 330. A decision is made for pixels 360 in a line. Similarly, FIG 4B illustrates the same current block 340, with a decision being made for pixels 370 in a column.

[0029] Similar to H.264 / MPEG-4 AVC, the decision of whether to apply a deblocking filter may be performed as follows. As also shown in FIG. 5, take a line of six pixels 360 as an example, among which the first three pixels p2, p1, p0 belong to the left neighboring block A 330, and the next three pixels q0, q1, q2 belong to the current block B 340. A line 410 indicates the boundary between block A and block B. Pixels p0 and q0 are pixels of the left neighboring block A and the current block B, respectively, and are adjacent to each other. Pixels p0 and q0 are filtered by the deblocking filter, for example, when the following condition is satisfied:

number

number

number

number

[0030] These conditions aim to detect whether the difference between p0 and q0 is due to blocking artifacts or not. They correspond to the evaluation of the first differential within block A, within block B, and between blocks A and B.

[0031] Pixel p1 is filtered if it satisfies the following condition in addition to the above three conditions:

number

[0032] A pixel q1 is filtered if, in addition to the first three conditions above, it also satisfies the following condition:

number

[0033] These conditions correspond to the first derivative in the first block and the first derivative in the second block, respectively. In the above conditions, QP denotes a quantization parameter that indicates the amount of quantization to be applied. β and α are scalar constants. In particular, QP NEW is the quantization parameter QP applied to the first block A and the second block B, respectively, as follows: A and Q.P. B The quantization parameter is derived based on

number

[0034] Here, ">>n" means shift right by n bits (1 bit in the formula above).

[0035] The above condition corresponds to an evaluation of the first differential within the block. The decision may be made only for a selected line or lines within the block, but pixel filtering is optionally performed for all lines 360. An example 420 of a line 430 along which an HEVC compliant decision is made is shown in Figure 5. Based on the line 430, a decision is made whether to filter the entire block or not.

[0036] Other examples of deblocking filtering in HEVC are described in Section 8.6.1 of the JCTVC-E603 document of JTC-VC of ITU-T SG16 WP3 and ISO / IEC JTC1 / SC29 / WG11, which is freely available at http: / / wftp3.itu.int / av-arch / jctvc-site / .

[0037] According to this, in HEVC, two lines 430 are used to decide whether and how to apply deblocking filtering. This decision step is referred to herein as a first decision step D1. In the example 420, the third line (index 2) and the sixth line (index 5) are evaluated to perform deblocking filtering in the horizontal direction. In particular, evaluating the second derivative within each block results in a measure d p and d q is obtained.

number

[0038] Pixel p belongs to block A, and pixel q belongs to block B. The number immediately after p or q indicates the column index, and the next subscript number indicates the row number within the block. Deblocking is possible for all eight lines shown in example 420 if the following conditions are met:

number

[0039] If the above conditions are not met, no deblocking is applied at all. If deblocking is possible, then in a next decision step, referred to herein as the second decision step D2, the filter to be used for deblocking is decided. This decision is based on the evaluation of the first differential between blocks AB. In particular, for each line i, where i is an integer between 0 and 7, it is decided whether to apply a strong or a weak low-pass filter. A strong filter is selected if the following conditions are met:

number

number

number

[0040] According to the HEVC model, the "strong filter" is i , p2 i , p1 i , p0 i , q0 i , q1 i , q2 i , q3 i Using sample p2 i , p1 i , p0 i , q0 i , q1 i , q2 i On the other hand, the "weak filter" filters sample p2 i , p1 i , p0 i , q0 i , q1 i , q2 i Using sample p1 i , p0 i , q0 i , q1 i In the above conditions, the parameters β and t c Both are quantization parameters QP e , which may be set for slices of an image, etc. Typically, β and t c The value of is derived based on the QP using a lookup table.

[0041] FIG. 6 provides a more detailed explanation of an example of strong and weak filter operations according to the H264 / MPEG-4 AVC standard (implemented in HEVC software model HM4.0).

[0042] The left diagram of Fig. 6A shows the samples used for horizontal filtering of a vertical edge with a strong filter. The right diagram of Fig. 6A shows the samples modified by the filter. As can be seen, in this example, the samples used for filtering are the four pixels most adjacent to the boundary on both sides, indicated with reference numeral 610. Of these, only the three pixels closest to the boundary on both sides, indicated with reference numeral 620 in the left diagram of Fig. 6A, are actually modified according to the following formula:

number

number

[0043] The function Clip(x) is defined as follows:

number

[0044] where max_allowed_value is the maximum value that x can take. For PCM coding with k-bit samples, the maximum value is max_allowed_value=2 k -1. For example, for PCM coding with 8-bit samples the maximum value is max_allowed_value=255. For PCM coding with 10-bit samples the maximum value is max_allowed_value=1023.

[0045] As can be seen from the above formulas, the filtering is done separately for each line (only for single line index i=0,1,2,3,4,5,6 or 7) and each line is used for the formula (indicated by a dash symbol ´ after the filter number) that modifies the pixel by the filter. Sample p3 i and q3 i In the case of p2', the correction pixels are not calculated, but i and q2'i From the formula, p3 i and q3 i It can be seen that is present in the right-hand term of each formula.

[0046] As can be seen in Fig. 6B, the three pixels closest to the boundary on both sides are used for weak filtering (sample 630 in the diagram on the left). Of these, only the two adjacent pixels closest to the boundary are actually modified (sample 640 in the diagram on the right side of Fig. 6B). The calculation process for weak filtering is quite different from that for strong filtering, and further decisions are made. First, a discriminant value Δ is calculated according to the following formula. The decision is based on this value:

number

[0047] Then, in a third decision step D3, it is decided whether or not to perform filtering on all the images.

number

[0048] If the condition is met, the pixels closest to the boundary on both sides are filtered according to the following formula:

number

number

number

[0049] The function Clip(x) is defined as above. The function Clip3(x) is defined as follows.

number

[0050] After filtering samples p0 and q0, the next closest pixel sample p1 i and q1 i A fourth decision D4 is then made as to whether to also filter pixel p1 belonging to block A in FIG. 6B. i and pixel q1 belonging to block B in FIG. i This is performed on the following:

[0051] Pixel p1 i The fourth decision is to use the above parameter d p Based on.

number

number

number

number

number

number

[0052] In the above, the parameter t c2 teeth

number

[0053] It should be noted that although the above filtering procedure has been described with an example for horizontal filtering of vertical edges, it can be applied equally well to vertical filtering of horizontal edges by replacing horizontal with vertical and rows with columns. Furthermore, the convention is applied herein and the term "line" means either a column or a row.

[0054] FIG. 7 is a general flow chart showing the sequence of decision steps D1, D2, D3 and D4 for the example of an 8×8 block, ie a block containing 8 lines to be filtered.

[0055] As can be seen from FIG. 7, in step S10, a single decision is made for all 8 lines to decide whether or not to apply deblocking filtering. If the decision is made not to apply deblocking (filter OFF), the process ends. If deblocking is to be applied (filter ON), the next step S20 jFor each step from S45j to S45j, the filtering process is performed separately for each line (denoted by the subscript j (j=1, 2, . . . , 8)). For simplicity, the subscript j is omitted in the following description. First, in step S20, it is decided for each line j whether to apply a strong or a weak filter (decision D2). If it is decided to apply a strong filter, in the next step S35, a strong filter is applied as described above with reference to FIG. 6A. If it is decided instead to apply a weak filter, the process proceeds to a further decision step S30. In this step, a decision D3 is made for each line j. If in decision D3 it is decided not to apply filtering, the process ends. Otherwise, in step S38, the pixels p0 and q0 of each line j closest to the boundary are filtered, as described above with reference to FIG. 6B. Then, in step S40, it is decided whether to also filter p1 and q1 (next closest to the boundary). If not, the process ends. If filtering, the process proceeds to step S45. In this step, the corrected pixels p1' and q1' are calculated. Details of the processes in steps S30, S38, S40, and S45 will be described with reference to the example of FIG.

[0056] Fig. 8 illustrates pixel samples used to make decision D1 (i.e. whether to apply full deblocking for a particular boundary between two blocks). The figure shows two rows of blocks. In each row, a decoded block 810, a block to be decoded 820 and a next block to be decoded 830 are listed. Since decision D1 is made for an image block that has not been deblocked, the listed samples correspond to signal S' of Fig. 3.

[0057] As described above, the third and sixth lines (index 2 and index 5) in the filtering direction perpendicular to the edge to be filtered are used for the decision D1. Specifically, sample 860a consists of two columns used to make the decision D1 of whether to filter the boundary between the block to be decoded 820 and the block vertically above it. Sample 860b shows two rows used to make the decision D1 of whether to filter the vertical edge between the block to be decoded 820 and the next block to be decoded 830 in the horizontal direction. Similarly, sample 860c shows two rows used to make the decision D1 for the boundary between the already decoded block 810 and the block to be decoded 820. As explained above, three pixels are needed on both sides of the boundary, counting from the boundary, to make a decision for each sample line.

[0058] Figure 9 shows a schematic of all the sample pixels of the undeblocked signal S' used to make decision D2. Because these decisions are made line by line, all lines of pixels perpendicular to each boundary on which a decision is made are included in the samples 960 shown in Figure 9. As explained above, decision D2 requires the four pixels closest to the boundary on either side being evaluated. Samples 960 show the samples used to make decision D2 for the same boundaries as Figure 8, which shows the samples used to make decision D1.

[0059] Figure 10 shows samples 1060 used to make the decision D3 for horizontal filtering of vertical edges, i.e. the boundaries between the block to be decoded 820 and the already decoded block 810 and between the block to be decoded 820 and the next block to be decoded 830. As explained above, the decision is made for each line separately, but only two pixels from the boundary on each side are used in the decision.

[0060] Figure 11 shows the samples 1160 used to perform horizontal deblocking filtering of a vertical edge. As can be seen, unlike Figure 10, a "depth" of 4 pixels on either side of the boundary is required for filtering.

[0061] Fig. 12 shows samples 1260 used to make decision D3 for vertical filtering of horizontal boundaries, which should be made only after horizontal deblocking of vertical edges, and these samples are selected from the horizontally deblocked signal S'' of Fig. 3. To visualize the difference between the blocks of Fig. 12 and those shown in the previous figures, the reference numbers of each block are appended with an apostrophe. Thus, the decoded block, the block to be decoded and the next block to be decoded in Fig. 12 are denoted as 810', 820' and 830', respectively.

[0062] Figure 13 shows the samples 1360 used to actually perform vertical deblocking filtering of horizontal edges. Figure 13 differs from Figure 12 in the same way that Figure 11 differs from Figure 10. Specifically, counting from the block boundary, four pixels are samples on either side of the boundary.

[0063] The following figures, Figures 14 to 16, show pixel samples that may be modified (different from the pixel samples used for decision and filtering). As in the previous example, they show blocks of 8x8 samples (i.e., 8 rows and 8 columns, i.e., 8 lines in each direction). However, this block size is only an example.

[0064] Specifically, FIG. 14 is an explanatory diagram of samples that may be modified by horizontal deblocking of vertical edges. Of the eight lines of pixels parallel to the deblocking target boundary of the block (represented as "8 samples" in the figure), a maximum of three lines on both sides of the boundary are to be modified. As a result, six consecutive samples close to the boundary are to be modified. In FIG. 14, these samples are shown with shading. Therefore, in the entire 8×8 block, two samples in the block to be modified remain unchanged in each block.

[0065] Figure 15 is an illustration of a sample modified by horizontal deblocking of vertical edges. Figure 15 basically corresponds to Figure 14, but the shaded portion is rotated by 90°.

[0066] Fig. 16 is a general illustration of samples modified by horizontal or vertical deblocking. Fig. 16 corresponds to a superposition of Fig. 14 and Fig. 15.

[0067] Based on the above description, the underlying problem of the present invention will now be described in detail by way of example based on Figures 17A and 17B. The overall solution of this problem is illustrated in Figure 17C.

[0068] It should be noted that in the detailed description below, the block sizes, the number of lines stored, and the number of lines used to make the decision are given as examples only. The invention is not limited to 8x8 blocks, nor is the number of sample pictures limited to those given below. Other block sizes, different numbers of stored samples, and different numbers of selected samples are possible within the scope of the invention as defined in the claims. The invention is also not limited to the example of performing horizontal deblocking first as described herein and shown in FIG. 3. The invention can be equally applied in the reverse case, such as performing vertical deblocking first and then horizontal deblocking.

[0069] Fig. 17A basically corresponds to Fig. 9. Moreover, reference numeral 1770 denotes four lines of samples necessary for determining D2 (strong filter or weak filter) the vertical boundary between the block to be decoded 820 and the block above the block to be decoded 820.

[0070] As mentioned above, the decisions D1 and D2 should be made on the undeblocked samples. Therefore, these decisions must be made while the undeblocked signal S' of Fig. 3 is available, i.e., before the vertical filtering of the horizontal edges in the filter 350a actually starts. In other words, the filtering (specifically, the horizontal filtering of the vertical edges that is performed first according to the flowchart of Fig. 3) is delayed by the decisions D1 and D2, and in particular, the vertical filtering of the horizontal edges is delayed. As a result, four lines of samples (i.e., each length corresponds to a picture width of the undeblocked signal required to make the decision D2 for vertical filtering) shown by the reference numeral 1770 in Fig. 17A are available at the time of starting the delayed horizontal filtering at the vertical boundary.

[0071] The hardware implementation can be realized as follows: the undeblocked samples are stored in a line memory, then for the block to be decoded, decisions D1 and D2 for horizontal filtering of vertical edges and vertical filtering of horizontal edges are performed using the stored unblocked samples, followed by delayed horizontal filtering of vertical edges for the region containing the stored 4 lines.

[0072] However, for such delayed horizontal filtering, the result of the corresponding ON / OFF decision D1 already made is needed. Therefore, the result of this decision needs to be stored or recalculated. If this result has not been stored, then a recalculation according to the conventional method described above requires sample pixels from lines that do not belong to the stored lines 1770. That is, to recalculate the decision result of decision D1, sample pixels 1760 shown in FIG. 17B are needed (corresponding to sample 430 in FIG. 5, i.e. pixels of the third and sixth lines (subscripted 2 and 5 in FIG. 5, respectively)). The sixth line (subscripted 5 in FIG. 5) somehow belongs to the stored lines, but the third line (subscripted 2 in FIG. 5) does not belong to the stored lines.

[0073] Therefore, we must either store the decision result of the already performed decision D1 for delayed horizontal filtering, or additionally store the same pixel data from an additional line (the line above line 1760 in FIG. 17B). However, the latter option increases the cost because line memory is quite expensive.

[0074] As yet another option, the delay of the vertical filtering can be avoided by utilizing an additional line memory: if there are two line memories, one to hold the undeblocked signal and the other to hold the horizontally deblocked signal, the decisions D1 and D2 for the vertical filtering can be postponed, however, this option is also disadvantageous, since line memories are rather expensive.

[0075] Therefore, in the conventional method described above, there is a problem that either the decision result of decision D1 or an additional line not included in the already stored lines (here, the four lines 1770) must be stored for delay filter calculation.

[0076] The present invention seeks to overcome the shortcomings of conventional approaches caused by the storage problems discussed above.

[0077] According to the present invention, each block (in this example, a block of 8 lines (rows / columns)) is divided into at least two segments. The division is made so that all the decisions for horizontal filtering of vertical edges (D1: ON / OFF, D2: strong / weak) can be made based only on the stored lines 1770 (necessary to make each decision for vertical filtering of horizontal edges) and independently of other lines. This means that no decision buffer or additional line memory is needed any more for delayed horizontal filtering of vertical edges.

[0078] This idea is illustrated in Fig. 17C: by partitioning, we modify the decision D1 for delayed horizontal filtering of vertical edges to make the decision based only on the samples of the undeblocked signal S' contained in the dashed box 1760a of Fig. 17C. As can be easily seen, all these pixels belong to the stored line 1770.

[0079] Specifically, the inventive solution is described with reference to Fig. 17D. That is, the partitioning is performed by dividing the blocks along a horizontal partition line (i.e., a line perpendicular to the deblocking target boundary) across all blocks involved in horizontal filtering. For simplicity, Fig. 17D shows the partitioning only for the top blocks. The dashed partition line 1700 divides each block into two segments (sides), one above the other. Also, the manner in which the decision D1 is performed is modified so that the decision D1 for horizontal deblocking of vertical edges in one segment region does not require samples from the other side.

[0080] In other words, the decision D1 is no longer made for the whole block, but for each segment (side) separately. When making a first-side decision, the samples from the first side (specifically, 1760 1 When making a decision for a segment area on the second side, only the samples on the second side (specifically, samples 17602 Only samples (indicated with ) are used.

[0081] Vice versa, samples located on the first side are not used in the decisions required to perform vertical edge horizontal filtering of the second side, and samples on the second side are not used in the decisions required to perform vertical edge horizontal filtering of the first side.

[0082] As a result, the decision for the second side can be made based on the stored lines 1770 without reference to any unstored lines. In this way, there is no need to store either already determined results in expensive line memory or additional lines in expensive line memory.

[0083] For the first side, the separation decision can be made when each line is still stored from the vertical deblocking decision for the boundary between the block in the other row of FIG. 17 and the block above it (not shown in FIG. 17).

[0084] An important advantage of the inventive decision scheme is that it limits the dependency of deblocking on block-sized regions, so that decision sample regions (blocks) can be deblocked in parallel if they are appropriately selected, and typically are different from the boundary blocks where deblocking is applied.

[0085] This advantageous technical effect is illustrated in FIG. 18 (taking an 8×8 block as an example).

[0086] FIG. 18 is based generally on FIG. 17D and shows six 8×8 blocks whose block boundaries are to be deblocked. Also in FIG. 18, an 8×8 region 1800 is highlighted by a dashed square. Within this region 1800, there are samples (e.g., sample 1760 of FIG. 17D, shown by the small dashed rectangle) that are not included in the deblocking process. 218A, 18B, and 18C), the samples required for the decision for horizontal deblocking of a vertical edge 1810 are shown. Also, the samples for vertical deblocking filtering of a horizontal edge 1820 in the region 1800 are highlighted (small vertically oriented dashed rectangles), respectively.

[0087] As can be seen in Figure 18, all decisions can be made for the 8x8 block 1800 without needing to refer to any samples outside this region. Therefore, the 8x8 region (block) 1800 (and each block shifted by a multiple of 8 pixels horizontally and / or vertically) is a suitable decision block that can be processed in parallel with deblocking filtering.

[0088] Such advantages cannot be achieved by conventional decision and filtering methods. For example, as can be seen from Fig. 8, in conventional methods, there is no 8x8 region (block) where the samples for deblocking decisions are restricted to the same region so that deblocking filtering decisions can be made independently within the region. Thus, parallelization is hindered in conventional methods.

[0089] A more detailed description of an example of a solution for making decision D1 (deblocking filter ON / OFF) from an 8-line block divided into two 4-line segments is described below with reference to Fig. 19. Fig. 19A shows the ON / OFF decision for the 4-line segment on the first side. As can be seen from Fig. 19A, the decision is made based only on the first line (with subscript 0) and the fourth line (with subscript 3). Specifically, the following parameters are calculated:

number

number

number

number

number

number

[0090] The filter will be enabled if the following conditions are met:

number

[0091] FIG. 19B shows sample 1760 2 The formula for each decision is as follows:

number

number

number

number

number

number

[0092] The filter will be enabled if the following conditions are met:

number

[0093] As can be seen, the overall computation time increases slightly due to the change in decision D1 due to block division: instead of one ON / OFF decision for a block of 8 lines, which required 20 operations as in the previous method, twice as many ON / OFF decisions for 4 lines must now be made, i.e. 40 operations. Therefore, the number of operations required for decision D1 alone is doubled.

[0094] Therefore, within the scope of the present invention, it is preferable to further modify the implementation of decision D2, ie the decision as to whether it is appropriate to apply a strong or a weak filter, to compensate for the increased computation time.

[0095] Figure 20 shows a first embodiment for an improved decision D2 based on the partitioning according to the present invention. As mentioned above, in the prior art, the decision D2 is made separately for each line. On the other hand, according to the present invention, a separate decision is made only for a subset of lines per segment. Based on the separate decisions for the subset of segments, one filter decision is made for all the lines of the segment.

[0096] Specifically, FIG. 20A shows an improved decision D2 according to the first embodiment for the first side. This decision is represented by reference numeral 1960 in FIG. 1 The filter is based on the first line (index 0) and the fourth line (index 3), denoted by . For each of the two lines, index 0 and 3, a decision is made (preferably in the conventional manner described above) between strong and weak filtering. If a strong filter is selected for both lines, then all four lines (0, 1, 2, 3) are strongly filtered. Otherwise, a weak filter is selected.

[0097] The respective algorithms for the second side are shown in FIG. 20B. The decision D2 for the second side is 2The filter is based on the two lines with index 4 and 7, as shown in Figure 1. For each of the two lines with index 4 and 7, a decision is made for strong or weak filtering. If strong filtering is selected for both lines, then all four lines (4, 5, 6, 7) are strongly filtered. Otherwise, weak filtering is selected.

[0098] Simulations reveal that the coding efficiency according to the embodiment of the present invention is slightly increased over the conventional HM4.0 scheme described above.

[0099] The coding efficiency of the embodiment of the present invention described above with reference to Figures 19 and 20 has been evaluated under coding conditions often used in ISO and ITU standardization activities, see document JCTVC-E700 (http: / / phenix.int-evry.fr / jct / doc_end_user / current_document.php?id=2454). With the same mean squared quantization error, the present invention reduces the average bit rate by about 0.15%.

[0100] Furthermore, based on the changes in both decision D1 and decision D2, a reduction in the overall calculation time is also achieved. In other words, according to the above-mentioned conventional method, the total number of operations required is as follows: - ON / OFF decision for 8 lines: 20 calculations ·Strong / weak decision 8 times: 96 calculations Total calculation amount: 116 operations According to an embodiment of the present invention, the total number of operations is as follows: ·4 lines ON / OFF decision x 2: 40 calculations ·Strong / weak decision 4 times: 48 calculations Total calculation amount: 96 operations

[0101] Therefore, the present invention can reduce the total amount of calculations by about 20%.

[0102] The second example of the improved decision D2 is similar to the first example above. As in the first example, a strong or weak filter decision is made on the first side for each of the two lines with subscripts 0 and 3. If the weak filter is selected for both lines, then all four lines (0, 1, 2, 3) are weakly filtered. Otherwise, the strong filter is selected.

[0103] Similarly, on the second side, for each of the two lines with subscripts 4 and 7, a decision is made between strong and weak filtering. If weak filtering is selected for both lines, then all four lines (4, 5, 6, 7) are weakly filtered. Otherwise, strong filtering is selected.

[0104] Therefore, the second example differs from the first example in the following respect: the second example selects a strong filter when the individual decisions for the two selected lines are different, whereas the first example selects a weak filter whenever they are different. Since the computational complexity of a weak filter is usually less than that of a strong filter, the first example can further reduce the computation time.

[0105] According to the third example, an improved decision D2 is also made based on the selection lines shown in Figures 20A and 20B. However, in the third example, decision D2 is combined with decision D3, i.e., for each selection line, a decision is made that combines a strong filter, a weak filter, and no filter. Each decision is made based on a look-up table.

[0106] Specifically, on the first side, a decision is made as to whether to use a strong filter, a weak filter, or no filter for each of the two lines with subscripts 0 and 3. Using the results of these two decisions, a decision is made for all four lines 0, 1, 2, and 3 from the following lookup table.

[0107] [Table 1]

[0108] On the second side, a decision is made between strong, weak or no filter for each of the two lines with subscripts 4 and 7. Using the results of these two decisions, a decision is made for all four lines 4, 5, 6 and 7 from the following lookup table:

[0109] [Table 2]

[0110] As can be seen from the above table, when the decisions for the two lines are different, the one with the lower complexity is always chosen, thus further reducing the computation time.

[0111] The fourth example, which will be described with reference to Figure 21, is generally similar to the third example. As can be seen in Figure 21, on the first side (Figure 21A), the second line with subscript 1 and the third line with subscript 2 are selected for individual decision. On the second side, the sixth and seventh lines (with subscripts 5 and 6) are selected. The corresponding lookup table is shown below:

[0112] [Table 3] and [Table 4]

[0113] Of course, the implementation of the improved decision D2, which is made on a segment basis rather than on an individual line basis, is not limited to the above four examples. Combinations and variations of the elements of these examples are possible within the scope of the invention as defined by the appended claims. In the above examples, the decision D2 was made based on a sample of two lines. However, the invention is not limited to this number of lines used for the selection. The filter selection may be based on a number of lines less than the total number of lines in each set of segments to be deblocked or on only one line.

[0114] In the following, the first memory access problem occurring when making the ON / OFF decision D1 is described and addressed with reference to Figure 22 and Figure 23. Figure 22 is an illustration of a conventional HEVC approach making a decision D1 for horizontal deblocking of vertical edges.

[0115] As shown in the upper part of FIG. 22A, in the first step, line 2 is read and the associated decision value d p2 and d q2 In the second step, line 5 is read and the associated decision value d p5 and d u5 Calculate.

[0116] In the third step, the decision value d 5 =d q2 +d p2 +d q5 +d p5 Then, a strong / weak filter decision is made for line 5, and deblocking and writing of the deblocking result are performed for line 5.

[0117] In the next step, for the remaining lines 0, 1, 2, 3, 4, 6, and 7, we read each line, decide on strong / weak filtering, perform deblocking and write the result. This results in the following problem: for deblocking 8 lines, we need to read line 2 or line 5 twice, once for decision D1 and once for deblocking. Although there are only 8 lines per block, we need to perform a total of 9 read operations.

[0118] This problem can be conveniently solved using an improved deblocking scheme, as described with reference to Figure 23. In the first step, line 2 (2362) is read and the associated decision value d b2 and d u2 Calculate the improved decision value d 2 =2x(d d2’ +d p2 ) is calculated, and the effective ON / OFF decision D1 for this line is based on the standard d2 <β. Then we make a strong / weak filter decision D2, deblock it and write the result. In the second step, we read line 5 (2365) in the same way and write the associated decision value d b5 and d q5 Calculate the improved decision value d 5 =2x(d q5 +d b5 ) is calculated, and the ON / OFF decision D1 is based on the effective standard d 5 <β. Then, a strong / weak filter decision D2 is made, deblocking and writing of the deblocking result to line 5 (2365).

[0119] Next, the decision value d = (d 2 +d 5 ) / 2 and make a valid / invalid decision d<β for the remaining lines 0, 1, 3, 4, 6, and 7 as shown by reference numeral 2360 in Figure 23B. The next fourth step is to read pixel samples, make strong / weak filter decisions, and deblock and write the results for the remaining lines 0, 1, 3, 4, 6, and 7.

[0120] In a variant of improved deblocking that solves the memory access problem, steps 1, 2, and 4 are performed as described above. Step 3 above is improved so that a common decision value d is not calculated for the remaining lines. Conversely, the ON / OFF decisions of step 3 for the remaining lines 0, 1, 3, 4, 6, and 7 are calculated using the decision

number

[0121] In general, a modified decision scheme for decision D1 is implemented such that decision D1 is made separately (individually) for the lines of pixel samples (in this example, lines 2 and 5) used to calculate and apply the decision criterion, rather than for the entire block, and then decisions are made for the remaining lines.

[0122] The decision scheme for each line for which the decision D1 is made individually must further be modified to distinguish between the pixel samples used, i.e., the individual decision D1 for a particular line is made based only on pixel samples from that line. The decision scheme for the remaining lines of the block may be conventional as described above in Figures 4 and 5, or may be similarly modified. The decision for the remaining lines may be based on pixel samples of all the lines for which an individual decision is made.

[0123] Both versions of improved decision D1 provide the advantages that each line only needs to be read once, so that line read operations are performed a number of times equal to the number of lines in a block (8 in this example), and that more accurate decisions are made for the lines that are decided individually (lines 2 and 5 in this example).

[0124] By recording a program for implementing the configuration of the video coding method (image coding method) or video decoding method (image decoding method) shown in each of the above embodiments on a storage medium, it becomes possible to easily implement the processes shown in each of the above embodiments on an independent computer system. The storage medium may be a magnetic disk, an optical disk, a magneto-optical disk, an IC card, a semiconductor memory, or any other medium capable of recording a program.

[0125] Further, here, application examples of the video coding method (image coding method) and video decoding method (image decoding method) shown in each of the above embodiments and a system using the same will be described. The system is characterized by having an image coding / decoding device consisting of an image coding device using the image coding method and an image decoding device using the image decoding method. Other components of the system can be appropriately changed depending on the case.

[0126] (Embodiment A) 24 is a diagram showing the overall configuration of a content supply system ex100 that realizes a content distribution service. The area where communication services are provided is divided into cells of a desired size, and base stations ex106, ex107, ex108, ex109, and ex110, which are fixed wireless stations, are installed in each cell.

[0127] This content supply system ex100 is connected to the Internet ex101 via an Internet service provider ex102, a telephone network ex104, and base stations ex106 to ex110, and devices such as a computer ex111, a PDA (Personal Digital Assistant) ex112, a camera ex113, a mobile phone ex114, and a game console ex115.

[0128] However, the content supply system ex100 is not limited to the configuration shown in Fig. 24, and any of the elements may be combined and connected. Also, each device may be directly connected to the telephone network ex104 without going through the base stations ex106 to ex110, which are fixed wireless stations. Also, each device may be directly connected to each other via short-distance wireless or the like.

[0129] The camera ex113 is a device capable of shooting moving images, such as a digital video camera, and the camera ex116 is a device capable of shooting still images and moving images, such as a digital camera. The mobile phone ex114 may be any of the following: a GSM (registered trademark) (Global System for Mobile Communications) type, a CDMA (Code Division Multiple Access) type, a W-CDMA (Wideband-Code Division Multiple Access) type, a LTE (Long Term Evolution) type, a HSPA (High Speed ​​Packet Access) mobile phone, or a PHS (Personal Handyphone System).

[0130] In the content supply system ex100, a camera ex113 and the like are connected to a streaming server ex103 through a base station ex109 and a telephone network ex104, thereby enabling live distribution and the like. In live distribution, a user performs encoding processing on content (e.g., a video of a live music performance, etc.) shot by the camera ex113 as described in each of the above embodiments (i.e., functions as an image encoding device according to an aspect of the present invention) and transmits the content to the streaming server ex103. Meanwhile, the streaming server ex103 streams the transmitted content data to a client that has made a request. Examples of the clients include a computer ex111, a PDA ex112, a camera ex113, a mobile phone ex114, a game machine ex115, and the like that are capable of decoding the encoded data. Each device that receives the distributed data decodes the received data and plays it back (i.e., functions as an image decoding device according to an aspect of the present invention).

[0131] The encoding process of the captured data may be performed by the camera ex113, or by the streaming server ex103 which performs the data transmission process, or the two may share the same role. Similarly, the decoding process of the distributed data may be performed by the client, or by the streaming server ex103, or the two may share the same role. Furthermore, still images and / or video data captured by the camera ex116, not limited to the camera ex113, may be transmitted to the streaming server ex103 via the computer ex111. In this case, the encoding process may be performed by the camera ex116, the computer ex111, or the streaming server ex103, or the two may share the same role.

[0132] Moreover, these encoding and decoding processes are generally processed in an LSIex500 possessed by the computer ex111 or each device. The LSIex500 may be a single chip or may be configured with multiple chips. Note that software for encoding and decoding moving images may be embedded in some kind of recording medium (CD-ROM, flexible disk, hard disk, etc.) that can be read by the computer ex111, etc., and the encoding and decoding processes may be performed using that software. Furthermore, if the mobile phone ex114 has a camera, video data captured by the camera may be transmitted. In this case, the video data is data that has been encoded and processed by the LSIex500 possessed by the mobile phone ex114.

[0133] Furthermore, the streaming server ex103 may be a plurality of servers or a plurality of computers that process, record, and distribute data in a distributed manner.

[0134] In this way, the content supply system ex100 allows the client to receive and play back encoded data. In this way, the content supply system ex100 allows the client to receive, decode, and play back information sent by a user in real time, so that even users without special rights or equipment can realize personal broadcasting.

[0135] In addition, as shown in FIG. 25, the content supply system ex100 is not limited to the example, and at least one of the video encoding device (image encoding device) or video decoding device (image decoding device) of each of the above-mentioned embodiments can be incorporated into a digital broadcasting system ex200. Specifically, in a broadcasting station ex201, multiplexed data in which music data and the like are multiplexed with video data is transmitted to a satellite ex202 or through radio waves. This video data is data encoded by the video encoding method described in each of the above-mentioned embodiments (i.e., data encoded by an image encoding device according to one aspect of the present invention). The broadcasting satellite ex202 receives this data and transmits radio waves for broadcasting, which are received by a home antenna ex204 capable of receiving satellite broadcasts. The received multiplexed data is decoded and played by a device such as a television (receiver) ex300 or a set-top box (STB) ex217 (i.e., functions as an image decoding device according to one aspect of the present invention).

[0136] The video decoding device or video encoding device shown in each of the above embodiments can also be implemented in a reader / recorder ex218 that reads and decodes multiplexed data recorded on a recording medium ex215 such as a DVD or BD, or encodes a video signal on the recording medium ex215, and may further multiplex the video signal with a music signal and write it in some cases. In this case, the reproduced video signal is displayed on a monitor ex219, and the video signal can be reproduced in another device or system by the recording medium ex215 on which the multiplexed data is recorded. Also, a video decoding device may be implemented in a set-top box ex217 connected to a cable ex203 for cable television or an antenna ex204 for satellite / terrestrial broadcasting, and this may be displayed on a monitor ex219 of the television. In this case, the video decoding device may be incorporated in the television, not in the set-top box.

[0137] 26 is a diagram showing a television (receiver) ex300 using the video decoding method and video encoding method described in each of the above embodiments. The television ex300 includes a tuner ex301 that acquires or outputs multiplexed data in which audio data is multiplexed onto video data via an antenna ex204 that receives the broadcast or a cable ex203, a modulation / demodulation unit ex302 that demodulates the received multiplexed data or modulates the received multiplexed data to be transmitted externally, and a multiplexing / separation unit ex303 that separates the demodulated multiplexed data into video data and audio data or multiplexes the video data and audio data encoded by a signal processing unit ex306.

[0138] The television ex300 also has a signal processing unit ex306 having an audio signal processing unit ex304 and a video signal processing unit ex305 (functioning as an image encoding device or an image decoding device according to an embodiment of the present invention) that decode the audio data and the video data, respectively, or encode the respective information, and an output unit ex309 having a speaker ex307 that outputs the decoded audio signal, and a display unit ex308 such as a display that displays the decoded video signal. The television ex300 also has an interface unit ex317 having an operation input unit ex312 that accepts input of user operations, etc. The television ex300 also has a control unit ex310 that comprehensively controls each unit, and a power supply circuit unit ex311 that supplies power to each unit. The interface unit ex317 may have, in addition to the operation input unit ex312, a bridge ex313 connected to an external device such as a reader / recorder ex218, a slot unit ex314 for enabling a recording medium ex216 such as an SD card to be mounted, a driver ex315 for connecting to an external recording medium such as a hard disk, a modem ex316 for connecting to a telephone network, etc. The recording medium ex216 is a medium that allows information to be electrically recorded by a non-volatile / volatile semiconductor memory element that stores the information. The various units of the television ex300 are connected to each other via a synchronous bus.

[0139] First, a configuration in which the television ex300 decodes and plays back multiplexed data acquired from the outside via the antenna ex204 or the like will be described. The television ex300 receives user operations from a remote controller ex220 or the like, and based on the control of a control unit ex310 having a CPU or the like, separates the multiplexed data demodulated by the modulation / demodulation unit ex302 in the multiplexing / separation unit ex303. Furthermore, the television ex300 decodes the separated audio data in the audio signal processing unit ex304, and decodes the separated video data in the video signal processing unit ex305 using the decoding method described in each of the above embodiments. The decoded audio signal and video signal are output to the outside from the output unit ex309, respectively. When outputting, it is preferable to temporarily store these signals in buffers ex318, ex319, etc. so that the audio signal and the video signal are played back in synchronization. The television ex300 may also read out the multiplexed data not from broadcasting or the like, but from recording media ex215, ex216 such as magnetic / optical disks and SD cards. Next, a configuration in which the television ex300 encodes an audio signal and a video signal and transmits them to the outside or writes them to a recording medium or the like will be described. The television ex300 receives user operations from the remote controller ex220 or the like, and, based on the control of the control unit ex310, encodes the audio signal in the audio signal processing unit ex304 and encodes the video signal in the video signal processing unit ex305 using the encoding method described in each of the above embodiments. The encoded audio signal and video signal are multiplexed in the multiplexing / demultiplexing unit ex303 and output to the outside. When multiplexing, it is preferable to temporarily store these signals in buffers ex320, ex321, etc. so that the audio signal and the video signal are synchronized. Note that the buffers ex318, ex319, ex320, and ex321 may be provided in multiple units as shown in the figure, or one or more buffers may be shared. Furthermore, other than those shown in the figure, data may be stored in a buffer as a buffer to avoid system overflow and underflow, for example, between the modulation / demodulation unit ex302 and the multiplexing / demultiplexing unit ex303.

[0140] Furthermore, in addition to acquiring audio data and video data from broadcasts, recording media, etc., the television ex300 may be configured to accept AV input from a microphone or camera and perform encoding processing on the data acquired from them. Note that while the television ex300 has been described here as being configured to be capable of the above-mentioned encoding processing, multiplexing, and external output, it may be configured not to be able to perform these processes and only be capable of the above-mentioned reception, decoding processing, and external output.

[0141] In addition, when the reader / recorder ex218 reads or writes multiplexed data from a recording medium, the above-mentioned decoding or encoding process may be performed by either the television ex300 or the reader / recorder ex218, or the television ex300 and the reader / recorder ex218 may share the same role.

[0142] As an example, the configuration of the information reproducing / recording unit ex400 when reading or writing data from an optical disk is shown in FIG. 27. The information reproducing / recording unit ex400 includes elements ex401, ex402, ex403, ex404, ex405, ex406, and ex407, which will be described below. The optical head ex401 writes information by irradiating a laser spot onto the recording surface of the recording medium ex215, which is an optical disk, and reads information by detecting reflected light from the recording surface of the recording medium ex215. The modulation recording unit ex402 electrically drives a semiconductor laser built into the optical head ex401 and modulates the laser light according to the recording data. The reproduction demodulation unit ex403 amplifies a reproduction signal obtained by electrically detecting reflected light from the recording surface by a photodetector built into the optical head ex401, separates and demodulates the signal components recorded on the recording medium ex215, and reproduces the necessary information. The buffer ex404 temporarily holds information to be recorded on the recording medium ex215 and information reproduced from the recording medium ex215. The disk motor ex405 rotates the recording medium ex215. The servo control unit ex406 controls the rotational drive of the disk motor ex405 while moving the optical head ex401 to a predetermined information track, and performs a laser spot tracking process. The system control unit ex407 controls the entire information reproduction / recording unit ex400. The above read and write processes are realized by the system control unit ex407 using various information held in the buffer ex404, generating and adding new information as necessary, and recording and reproducing information through the optical head ex401 while cooperating with the modulation recording unit ex402, the reproduction demodulation unit ex403, and the servo control unit ex406. The system control unit ex407 is composed of, for example, a microprocessor, and performs these processes by executing a read and write program.

[0143] In the above, the optical head ex401 has been described as irradiating a laser spot, but it may be configured to perform higher density recording using near-field light.

[0144] FIG. 28 shows a schematic diagram of a recording medium ex215, which is an optical disk. A guide groove (groove) is formed in a spiral shape on the recording surface of the recording medium ex215, and address information indicating an absolute position on the disk is recorded in advance on the information track ex230 by changing the shape of the groove. This address information includes information for identifying the position of a recording block ex231, which is a unit for recording data, and a recording block can be identified by reproducing the information track ex230 and reading the address information in a recording and reproducing device. The recording medium ex215 also includes a data recording area ex233, an inner peripheral area ex232, and an outer peripheral area ex234. The area used for recording user data is the data recording area ex233, and the inner peripheral area ex232 and the outer peripheral area ex234, which are located on the inner or outer periphery of the data recording area ex233, are used for specific purposes other than recording user data. The information reproducing / recording unit ex400 reads and writes encoded audio data, video data, or multiplexed data obtained by multiplexing these data, to the data recording area ex233 of such recording medium ex215.

[0145] In the above, the description has been given taking as examples optical discs such as single-layer DVDs and BDs, but the present invention is not limited to these and may be an optical disc with a multi-layer structure that allows recording on other surfaces as well. Also, the present invention may be an optical disc with a structure that allows multi-dimensional recording / playback, such as recording information on the same location on the disc using light of various different wavelengths or recording different layers of information from various angles.

[0146] In the digital broadcasting system ex200, a car ex210 having an antenna ex205 can receive data from a satellite ex202 or the like, and can play back moving images on a display device such as a car navigation system ex211 of the car ex210. Note that the car navigation system ex211 can be configured, for example, by adding a GPS receiver to the configuration shown in Fig. 26, and the same can be considered for a computer ex111, a mobile phone ex114, and the like.

[0147] 29A is a diagram showing a mobile phone ex114 using the video decoding method and the video encoding method described in the above embodiment. The mobile phone ex114 includes an antenna ex350 for transmitting and receiving radio waves to and from the base station ex110, a camera unit ex365 capable of taking videos and still images, and a display unit ex358 such as a liquid crystal display for displaying data obtained by decrypting the video captured by the camera unit ex365 and the video received by the antenna ex350. The mobile phone ex114 further includes a main body unit having an operation key unit ex366, an audio output unit ex357 such as a speaker for outputting audio, an audio input unit ex356 such as a microphone for inputting audio, a memory unit ex367 for storing the captured video, still images, recorded audio, or the encoded or decoded data of the received video, still images, email, etc., or a slot unit ex364 which is an interface unit with a recording medium for similarly storing data.

[0148] Further, a configuration example of the mobile phone ex114 will be described with reference to Fig. 29B. In the mobile phone ex114, a power supply circuit unit ex361, an operation input control unit ex362, a video signal processing unit ex355, a camera interface unit ex363, an LCD (Liquid Crystal Display) control unit ex359, a modulation / demodulation unit ex352, a multiplexing / separation unit ex353, an audio signal processing unit ex354, a slot unit ex364, and a memory unit ex367 are connected to each other via a bus ex370, in relation to a main control unit ex360 that comprehensively controls each unit of a main body unit having a display unit ex358 and an operation key unit ex366.

[0149] When the end call and power key is turned on by the user's operation, the power supply circuit unit ex361 starts up the mobile phone ex114 into an operable state by supplying power to each unit from the battery pack.

[0150] Based on the control of a main control unit ex360 having a CPU, ROM, RAM, etc., the mobile phone ex114 converts a voice signal collected by a voice input unit ex356 in a voice call mode into a digital voice signal in a voice signal processing unit ex354, performs spectrum spreading processing on this in a modulation / demodulation unit ex352, performs digital-to-analog conversion processing and frequency conversion processing on this in a transmission / reception unit ex351, and transmits it via an antenna ex350. Also, the mobile phone ex114 amplifies reception data received via the antenna ex350 in a voice call mode, performs frequency conversion processing and analog-to-digital conversion processing on this, performs spectrum despreading processing on this in the modulation / demodulation unit ex352, converts it into an analog voice signal in the voice signal processing unit ex354, and outputs this from a voice output unit ex357.

[0151] Furthermore, when sending an e-mail in the data communication mode, the text data of the e-mail input by operating the operation key unit ex366 of the main unit is sent to the main control unit ex360 via the operation input control unit ex362. The main control unit ex360 performs spectrum spreading processing on the text data in the modulation / demodulation unit ex352, performs digital-to-analog conversion processing and frequency conversion processing in the transmission / reception unit ex351, and then transmits the data to the base station ex110 via the antenna ex350. When receiving an e-mail, the received data is processed in roughly the reverse manner, and is output to the display unit ex358.

[0152] When transmitting video, still images, or video and audio in the data communication mode, the video signal processing unit ex355 compresses and encodes the video signal supplied from the camera unit ex365 using the video encoding method described in each of the above embodiments (i.e., functions as an image encoding device according to one aspect of the present invention), and sends the encoded video data to the multiplexing / separation unit ex353. Also, the audio signal processing unit ex354 encodes an audio signal collected by the audio input unit ex356 while the camera unit ex365 is capturing video, still images, etc., and sends the encoded audio data to the multiplexing / separation unit ex353.

[0153] The multiplexing / separation unit ex353 multiplexes the encoded video data supplied from the video signal processing unit ex355 and the encoded audio data supplied from the audio signal processing unit ex354 in a predetermined manner, and the resulting multiplexed data is subjected to spectrum spreading processing in a modulation / demodulation unit (modulation / demodulation circuit unit) ex352, and then transmitted via an antenna ex350 after undergoing digital-to-analog conversion processing and frequency conversion processing in a transmission / reception unit ex351.

[0154] When receiving data of a video file linked to a homepage or the like in the data communication mode, or when receiving an e-mail with video and / or audio attached, in order to decode the multiplexed data received via the antenna ex350, the multiplexing / separation unit ex353 separates the multiplexed data into a bit stream of video data and a bit stream of audio data, and supplies the encoded video data to the video signal processing unit ex355 via the synchronous bus ex370, and supplies the encoded audio data to the audio signal processing unit ex354. The video signal processing unit ex355 decodes the video signal by decoding using a video decoding method corresponding to the video encoding method shown in each of the above embodiments (i.e., functions as an image decoding device according to one aspect of the present invention), and displays, for example, video and still images included in the video file linked to the homepage on the display unit ex358 via the LCD control unit ex359. The audio signal processing unit ex354 also decodes the audio signal, and audio is output from the audio output unit ex357.

[0155] Also, like the television ex300, the terminals such as the mobile phone ex114 may be implemented in three different ways: a transmitting terminal having only an encoder, a transmitting terminal having only a decoder, and a receiving terminal having only a decoder, in addition to a transmitting terminal having both an encoder and a decoder. Furthermore, in the digital broadcasting system ex200, multiplexed data in which music data and the like are multiplexed with video data is received and transmitted, but the data may be multiplexed with text data related to the video in addition to the audio data, or may be video data itself instead of multiplexed data.

[0156] In this way, it is possible to use the video encoding method or video decoding method shown in each of the above embodiments in any of the above-mentioned devices and systems, and by doing so, it is possible to obtain the effects described in each of the above embodiments.

[0157] Furthermore, the present invention is not limited to the above-described embodiment, and various modifications and alterations are possible without departing from the scope of the present invention.

[0158] (Embodiment B) It is also possible to generate video data by switching as necessary between the video coding method or device shown in each of the above embodiments and a video coding method or device conforming to a different standard, such as MPEG-2, MPEG4-AVC, or VC-1.

[0159] Here, when multiple pieces of video data conforming to different standards are generated, it is necessary to select a decoding method corresponding to each standard when decoding. However, since it is not possible to identify which standard the video data to be decoded conforms to, a problem arises in that it is not possible to select an appropriate decoding method.

[0160] To solve this problem, multiplexed data, which is video data multiplexed with audio data, contains identification information indicating which standard the video data complies with. A specific configuration of multiplexed data including video data generated by the video coding method or device shown in each of the above embodiments will be described below. The multiplexed data is a digital stream in the MPEG-2 transport stream format.

[0161] FIG. 30 is a diagram showing the structure of multiplexed data. As shown in FIG. 30, the multiplexed data is obtained by multiplexing one or more of a video stream, an audio stream, a presentation graphics stream (PG), and an interactive graphics stream. The video stream indicates the main video and the sub-video of a movie, the audio stream (IG) indicates the main audio part of the movie and the sub-audio mixed with the main audio, and the presentation graphics stream indicates the subtitles of the movie. Here, the main video indicates a normal video displayed on a screen, and the sub-video indicates a video displayed on a small screen within the main video. The interactive graphics stream indicates an interactive screen created by arranging GUI components on a screen. The video stream is encoded by the moving image encoding method or device shown in each of the above embodiments, or a moving image encoding method or device conforming to conventional standards such as MPEG-2, MPEG4-AVC, and VC-1. The audio stream is encoded by a method such as Dolby AC-3, Dolby Digital Plus, MLP, DTS, DTS-HD, or Linear PCM.

[0162] Each stream included in the multiplexed data is identified by a PID. For example, 0x1011 is assigned to the video stream used for the movie image, 0x1100 to 0x111F to the audio stream, 0x1200 to 0x121F to the presentation graphics stream, 0x1400 to 0x141F to the interactive graphics stream, 0x1B00 to 0x1B1F to the video stream used for the movie secondary video, and 0x1A00 to 0x1A1F to the audio stream used for the secondary audio to be mixed with the main audio.

[0163] 31 is a diagram showing a schematic diagram of how multiplexed data is multiplexed. First, a video stream ex235 consisting of a plurality of video frames and an audio stream ex238 consisting of a plurality of audio frames are converted into PES packet sequences ex236 and ex239, respectively, and then converted into TS packets ex237 and ex240. Similarly, data of a presentation graphics stream ex241 and interactive graphics ex244 are converted into PES packet sequences ex242 and ex245, respectively, and then further converted into TS packets ex243 and ex246. The multiplexed data ex247 is constructed by multiplexing these TS packets into one stream.

[0164] Fig. 32 shows in more detail how a video stream is stored in a PES packet sequence. The first row in Fig. 32 shows a video frame sequence of a video stream. The second row shows a PES packet sequence. As indicated by arrows yy1, yy2, yy3, and yy4 in Fig. 32, I-pictures, B-pictures, and P-pictures, which are multiple Video Presentation Units in a video stream, are divided into individual pictures and stored in the payload of a PES packet. Each PES packet has a PES header, and the PES header stores a Presentation Time-Stamp (PTS) that is the display time of the picture and a Decoding Time-Stamp (DTS) that is the decoding time of the picture.

[0165] Fig. 33 shows the format of the TS packet that is finally written to the multiplexed data. The TS packet is a fixed-length packet of 188 bytes consisting of a 4-byte TS header that has information such as a PID that identifies the stream, and a 184-byte TS payload that stores the data, and the above PES packet is divided and stored in the TS payload. In the case of BD-ROM, a 4-byte TP_Extra_Header is added to the TS packet, forming a 192-byte source packet that is written to the multiplexed data. Information such as ATS (Arrival_Time_Stamp) is written in the TP_Extra_Header. The ATS indicates the start time of transfer of the TS packet to the PID filter of the decoder. In the multiplexed data, source packets are lined up as shown in the lower part of Fig. 33, and the number that increments from the beginning of the multiplexed data is called SPN (Source Packet Number).

[0166] In addition to the various streams such as video, audio, and subtitles, the TS packets contained in the multiplexed data also contain a PAT (Program Association Table), PMT (Program Map Table), and PCR (Program Clock Reference). The PAT indicates the PID of the PMT used in the multiplexed data, and the PID of the PAT itself is registered as 0. The PMT has the PID of each stream such as video, audio, and subtitles contained in the multiplexed data, as well as attribute information of the stream corresponding to each PID, and also has various descriptors related to the multiplexed data. The descriptors include copy control information that indicates whether copying of the multiplexed data is permitted or not. The PCR has information on the STC time corresponding to the ATS at which the PCR packet is transferred to the decoder, in order to synchronize the ATC (Arrival Time Clock), which is the time axis of the ATS, with the STC (System Time Clock), which is the time axis of the PTS and DTS.

[0167] FIG. 34 is a diagram explaining the data structure of a PMT in detail. At the beginning of a PMT, a PMT header is placed, which describes the length of the data contained in the PMT, etc. After that, multiple descriptors related to the multiplexed data are placed. The above-mentioned copy control information, etc. are written as descriptors. After the descriptors, multiple pieces of stream information related to each stream included in the multiplexed data are placed. The stream information is made up of stream descriptors that describe the stream type to identify the compression codec of the stream, the stream PID, and stream attribute information (frame rate, aspect ratio, etc.). There are as many stream descriptors as there are streams in the multiplexed data.

[0168] When recording on a recording medium, the multiplexed data is recorded together with a multiplexed data information file.

[0169] The multiplexed data information file is management information for multiplexed data as shown in FIG. 35, has one-to-one correspondence with the multiplexed data, and is made up of multiplexed data information, stream attribute information, and an entry map.

[0170] As shown in Fig. 35, the multiplexed data information consists of a system rate, a playback start time, and a playback end time. The system rate indicates the maximum transfer rate of the multiplexed data to the PID filter of the system target decoder, which will be described later. The interval of the ATS contained in the multiplexed data is set to be equal to or less than the system rate. The playback start time is the PTS of the first video frame of the multiplexed data, and the playback end time is set to the PTS of the last video frame of the multiplexed data plus the playback interval of one frame.

[0171] As shown in Fig. 36, the stream attribute information is registered for each PID for each stream included in the multiplexed data. The attribute information has different information for each video stream, audio stream, presentation graphics stream, and interactive graphics stream. The video stream attribute information has information such as what compression codec was used to compress the video stream, the resolution of each picture data constituting the video stream, the aspect ratio, and the frame rate. The audio stream attribute information has information such as what compression codec was used to compress the audio stream, the number of channels included in the audio stream, which language it corresponds to, and the sampling frequency. This information is used for initializing the decoder before the player starts playing.

[0172] In this embodiment, the stream type included in the PMT of the multiplexed data is used. Also, when multiplexed data is recorded on the recording medium, video stream attribute information included in the multiplexed data information is used. Specifically, in the video coding method or device shown in each of the above embodiments, a step or means is provided for setting unique information indicating that the video data is generated by the video coding method or device shown in each of the above embodiments to the stream type included in the PMT or the video stream attribute information. This configuration makes it possible to distinguish between video data generated by the video coding method or device shown in each of the above embodiments and video data that complies with other standards.

[0173] FIG. 37 shows steps of the video decoding method according to the present embodiment. In step exS100, the stream type included in the PMT or the video stream attribute information included in the multiplexed data information is obtained from the multiplexed data. Next, in step exS101, it is determined whether the stream type or the video stream attribute information indicates that the multiplexed data is generated by the video coding method or device shown in each of the above embodiments. If it is determined that the stream type or the video stream attribute information is generated by the video coding method or device shown in each of the above embodiments, in step exS102, decoding is performed by the video decoding method shown in each of the above embodiments. In addition, if the stream type or the video stream attribute information indicates that the data complies with conventional standards such as MPEG-2, MPEG4-AVC, and VC-1, in step exS103, decoding is performed by the video decoding method that complies with the conventional standard.

[0174] In this way, by setting a new unique value in the stream type or video stream attribute information, it is possible to determine whether the video decoding method or device shown in each of the above embodiments is capable of decoding the data when decoding. Therefore, even when multiplexed data conforming to a different standard is input, an appropriate decoding method or device can be selected, making it possible to decode the data without causing an error. In addition, the video encoding method or device, or the video decoding method or device shown in the present embodiment can be used in any of the above-mentioned devices and systems.

[0175] (Embodiment C) The video encoding method and device, and the video decoding method and device shown in each of the above embodiments are typically realized by an LSI, which is an integrated circuit. As an example, FIG. 38 shows the configuration of a single-chip LSIex500. The LSIex500 includes elements ex501, ex502, ex503, ex504, ex505, ex506, ex507, ex508, and ex509, which will be described below, and each element is connected via a bus ex510. When the power supply is on, the power supply circuit unit ex505 supplies power to each unit to start it up into an operable state.

[0176] For example, when performing encoding processing, the LSIex500 inputs AV signals from the microphone ex117, the camera ex113, etc. through the AV I / Oex509 based on the control of a control unit ex501 having a CPUex502, a memory controller ex503, a stream controller ex504, a drive frequency control unit ex512, etc. The input AV signals are temporarily stored in an external memory ex511 such as an SDRAM. Based on the control of the control unit ex501, the stored data is divided into a plurality of times as appropriate according to the processing amount and processing speed, and sent to the signal processing unit ex507, where the audio signal is encoded and / or the video signal is encoded. Here, the encoding processing of the video signal is the encoding processing described in each of the above embodiments. The signal processing unit ex507 further performs processing such as multiplexing the encoded audio data and the encoded video data as the case may be, and outputs the data to the outside from the stream I / Oex506. This output multiplexed data is transmitted to the base station ex107, or written to a recording medium ex215. When multiplexing, it is advisable to temporarily store the data in a buffer ex508 to ensure synchronization.

[0177] In the above, the memory ex511 is described as an external configuration of the LSIex500, but it may be included inside the LSIex500. The buffer ex508 is not limited to one, and may include multiple buffers. Furthermore, the LSIex500 may be formed as a single chip or multiple chips.

[0178] In the above, the control unit ex501 has a CPU ex502, a memory controller ex503, a stream controller ex504, a drive frequency control unit ex512, etc., but the configuration of the control unit ex501 is not limited to this configuration. For example, the signal processing unit ex507 may further include a CPU. By providing a CPU inside the signal processing unit ex507, it is possible to further improve the processing speed. As another example, the CPU ex502 may include the signal processing unit ex507, or a part of the signal processing unit ex507, such as an audio signal processing unit. In such a case, the control unit ex501 is configured to include the CPU ex502 having the signal processing unit ex507 or a part thereof.

[0179] Although we refer to it as an LSI here, it may also be called an IC, system LSI, super LSI, or ultra LSI depending on the level of integration.

[0180] The method of integration is not limited to LSI, but may be realized by a dedicated circuit or a general-purpose processor. It is also possible to use a field programmable gate array (FPGA) that can be programmed after LSI manufacturing, or a reconfigurable processor that can reconfigure the connections and settings of circuit cells inside the LSI.

[0181] Furthermore, if a new integrated circuit technology that can replace LSI appears due to the progress of semiconductor technology or a derivative technology, it may be possible to integrate the functional blocks using that technology. The application of biotechnology is also a possibility.

[0182] (Embodiment D) When decoding video data generated by the video encoding method or device shown in each of the above embodiments, the amount of processing is expected to increase compared to when decoding video data conforming to conventional standards such as MPEG-2, MPEG4-AVC, and VC-1. Therefore, in the LSIex500, it is necessary to set a driving frequency higher than the driving frequency of the CPUex502 when decoding video data conforming to conventional standards. However, when the driving frequency is increased, a problem occurs in that power consumption increases.

[0183] In order to solve this problem, a video decoding device such as a television ex300 or an LSI ex500 is configured to identify which standard the video data complies with and switch the driving frequency according to the standard. FIG. 39 shows a configuration ex800 in this embodiment. If the video data is generated by the video encoding method or device shown in each of the above embodiments, the driving frequency switching unit ex803 sets the driving frequency high. Then, it instructs the decoding processing unit ex801 that executes the video decoding method shown in each of the above embodiments to decode the video data. On the other hand, if the video data is video data that complies with a conventional standard, it sets the driving frequency low compared to when the video data is generated by the video encoding method or device shown in each of the above embodiments. Then, it instructs the decoding processing unit ex802 that complies with the conventional standard to decode the video data.

[0184] More specifically, the drive frequency switching unit ex803 is composed of the CPU ex502 and the drive frequency control unit ex512 in FIG. 38. The decoding processing unit ex801 that executes the video decoding method shown in each of the above embodiments and the decoding processing unit ex802 that complies with the conventional standard correspond to the signal processing unit ex507 in FIG. 38. The CPU ex502 identifies which standard the video data complies with. Then, based on the signal from the CPU ex502, the drive frequency control unit ex512 sets the drive frequency. Also, based on the signal from the CPU ex502, the signal processing unit ex507 decodes the video data. Here, for example, the identification information described in embodiment B can be used to identify the video data. The identification information is not limited to that described in embodiment B, and may be any information that can identify which standard the video data complies with. For example, if it is possible to identify which standard the video data complies with based on an external signal that identifies whether the video data is used for a television or a disc, the identification may be based on such an external signal. Also, the selection of the drive frequency in the CPUex502 may be based on a lookup table that associates the video data standard with the drive frequency as shown in Fig. 41. The lookup table is stored in the bufferex508 or the internal memory of the LSI, and the CPUex502 can select the drive frequency by referring to this lookup table.

[0185] FIG. 40 shows steps for carrying out the method of the present embodiment. First, in step exS200, the signal processing unit ex507 acquires identification information from the multiplexed data. Next, in step exS201, the CPU ex502 identifies whether the video data is generated by the encoding method or device shown in each of the above embodiments based on the identification information. If the video data is generated by the encoding method or device shown in each of the above embodiments, in step exS202, the CPU ex502 sends a signal to set the driving frequency to a high frequency to the driving frequency control unit ex512. Then, the driving frequency is set to a high frequency in the driving frequency control unit ex512. On the other hand, if the video data is in accordance with conventional standards such as MPEG-2, MPEG4-AVC, and VC-1, in step exS203, the CPU ex502 sends a signal to set the driving frequency to a low frequency to the driving frequency control unit ex512. Then, in the driving frequency control unit ex512, the driving frequency is set to a low frequency compared to when the video data is generated by the encoding method or device shown in each of the above embodiments.

[0186] Furthermore, by changing the voltage applied to the LSIex500 or a device including the LSIex500 in conjunction with switching the drive frequency, it is possible to further improve the power saving effect. For example, when the drive frequency is set to a low value, it is conceivable to set the voltage applied to the LSIex500 or a device including the LSIex500 to a lower value compared to when the drive frequency is set to a high value.

[0187] In addition, the method of setting the drive frequency is not limited to the above-mentioned setting method, and may be such that the drive frequency is set high when the amount of processing required for decoding is large, and the drive frequency is set low when the amount of processing required for decoding is small. For example, when the amount of processing required for decoding video data conforming to the MPEG4-AVC standard is larger than the amount of processing required for decoding video data generated by the video encoding method or device shown in each of the above-mentioned embodiments, the drive frequency may be set in the opposite manner to the above-mentioned setting method.

[0188] Furthermore, the method of setting the drive frequency is not limited to the configuration of lowering the drive frequency. For example, when the identification information indicates that the video data is generated by the video encoding method or device shown in each of the above embodiments, the voltage to be applied to the LSIex500 or the device including the LSIex500 is set high, and when the identification information indicates that the video data is compliant with conventional standards such as MPEG-2, MPEG4-AVC, VC-1, the voltage to be applied to the LSIex500 or the device including the LSIex500 is set low. As another example, when the identification information indicates that the video data is generated by the video encoding method or device shown in each of the above embodiments, the drive of the CPUex502 is not stopped, and when the identification information indicates that the video data is compliant with conventional standards such as MPEG-2, MPEG4-AVC, VC-1, the drive of the CPUex502 is temporarily stopped because there is a margin for processing. Even when the identification information indicates that the video data is generated by the video encoding method or device shown in each of the above embodiments, the drive of the CPUex502 is temporarily stopped if there is a margin for processing. In this case, it is conceivable to set the stop time shorter than when the video data indicates that it is video data conforming to conventional standards such as MPEG-2, MPEG4-AVC, and VC-1.

[0189] In this way, by switching the drive frequency according to the standard to which the video data conforms, it is possible to achieve power saving. Also, when the LSIex500 or a device including the LSIex500 is driven by a battery, the power saving can extend the battery life.

[0190] (Embodiment E) In the above-mentioned devices and systems, such as televisions and mobile phones, multiple video data conforming to different standards may be input. In order to be able to decode multiple video data conforming to different standards, the signal processing unit ex507 of the LSIex500 must support multiple standards. However, if a signal processing unit ex507 corresponding to each standard is used individually, the circuit size of the LSIex500 will increase, and the cost will also increase.

[0191] In order to solve this problem, a configuration is adopted in which a decoding processing unit for executing the video decoding method shown in each of the above embodiments is partially shared with a decoding processing unit conforming to conventional standards such as MPEG-2, MPEG4-AVC, and VC-1. An example of this configuration is shown in ex900 of FIG. 42A. For example, the video decoding method shown in each of the above embodiments and the video decoding method conforming to the MPEG4-AVC standard share some of the processing contents in processes such as entropy coding, inverse quantization, deblocking filter, and motion compensation. For the common processing contents, a decoding processing unit ex902 conforming to the MPEG4-AVC standard is shared, and for other processing contents specific to one aspect of the present invention that are not conforming to the MPEG4-AVC standard, a dedicated decoding processing unit ex901 is used. In particular, since one aspect of the present invention is characterized by inverse quantization, for example, a dedicated decoding processing unit ex901 is used for inverse quantization, and for any or all of the other processing, such as entropy decoding, deblocking filter, and motion compensation, a decoding processing unit is shared. Regarding sharing of the decoding processing unit, for common processing content, a decoding processing unit for executing the video decoding method shown in each of the above embodiments may be shared, and for processing content specific to the MPEG4-AVC standard, a dedicated decoding processing unit may be used.

[0192] Another example of partially sharing the process is shown in ex1000 in FIG. 42B. In this example, a dedicated decoding processing unit ex1001 corresponding to the process content specific to one aspect of the present invention, a dedicated decoding processing unit ex1002 corresponding to the process content specific to another conventional standard, and a shared decoding processing unit ex1003 corresponding to the process content common to the video decoding method according to one aspect of the present invention and the video decoding method of another conventional standard are used. Here, the dedicated decoding processing units ex1001 and ex1002 are not necessarily specialized for the process content specific to one aspect of the present invention or another conventional standard, and may be capable of executing other general-purpose processes. In addition, the configuration of this embodiment can also be implemented in LSIex500.

[0193] In this way, by sharing a decoding processing unit for processing content common to a video decoding method according to one embodiment of the present invention and a video decoding method according to a conventional standard, it is possible to reduce the circuit size of the LSI and reduce costs.

[0194] In summary, the present invention relates to deblocking filtering, which may be suitably applied in block-based encoding and decoding of image or video signals. In particular, the present invention relates to improved memory management in the automatic decision to apply or skip deblocking filtering for a block, and to the selection of a deblocking filter, the decision being based on block partitioning such that memory usage is optimized. Preferably, the selection of an appropriate deblocking filter is improved to reduce computation time.

Claims

1. 1. A method for decoding an encoded current block of an image of a plurality of pixels, comprising the steps of: reconstructing the encoded current block; and a filtering step of deblocking the reconstructed blocks, In the filtering step, In a first block and a second block that are separated by a first boundary, the first block is divided into a plurality of segments including at least a first segment and a second segment along a line perpendicular to the first boundary, and the second block is divided into a plurality of segments including at least a first segment and a second segment along a line perpendicular to the first boundary, determining whether to apply a deblocking filter to adjacent pixels adjacent across the first boundary included in each of the first segment of the first block and the first segment of the second block; selecting a type indicating a number of samples to be modified by the deblocking filter to be applied to the line to which the adjacent pixel belongs from a plurality of types; The sample pixels used in the judgment are included only in the sample pixels included in the first segment of the first block and the first segment of the second block, In the selection, a type indicating the number of samples to be modified by the deblocking filter for each line of sample pixels perpendicular to the first boundary included in each of the first segment of the first block and the first segment of the second block, without using sample pixels of lines other than the target line, is selected. Decryption method.

2. 1. A decoding device for decoding an encoded current block of an image consisting of a plurality of pixels, comprising: A reconstruction unit that reconstructs the encoded current block; a filtering unit for deblocking the reconstructed block; The filtering unit is In a first block and a second block that are separated by a first boundary, the first block is divided into a plurality of segments including at least a first segment and a second segment along a line perpendicular to the first boundary, and the second block is divided into a small number of segments along a line perpendicular to the first boundary. into a plurality of segments including at least a first segment and a second segment; determining whether to apply a deblocking filter to adjacent pixels adjacent across the first boundary included in each of the first segment of the first block and the first segment of the second block; selecting a type indicating a number of samples to be modified by the deblocking filter to be applied to the line to which the adjacent pixel belongs from a plurality of types; The sample pixels used in the judgment are included only in the sample pixels included in the first segment of the first block and the first segment of the second block, In the selection, a type indicating the number of samples to be modified by the deblocking filter for each line of sample pixels perpendicular to the first boundary included in each of the first segment of the first block and the first segment of the second block, without using sample pixels of lines other than the target line, is selected. Decryption device.

Citation Information

Patent Citations

  • In-loop deblocking filter

    US20050013494A1