Image processing device and image processing method
By expanding the application scope and state determination mechanism of the deblocking filter, the problem of reduced PSNR caused by inappropriate filter application in the prior art is solved, and better image quality and peak signal-to-noise ratio are achieved.
Patent Information
- Application Number
- CN202210029313.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2017-11-30
- Publication Date
- 2024-10-29
- Estimated Expiration
- 2037-11-30
AI Technical Summary
In the prior art, the application of deblocking filters is inappropriate, which leads to a decrease in peak signal-to-noise ratio (PSNR), especially when an overly strong filter is applied.
An image processing apparatus and method are provided, which determines whether to apply an extended strong filter by expanding the application range of a deblocking filter, performs filtering processing on pixels near block boundaries of the decoded image using the extended strong filter, expands the application range from 3 pixels near block boundaries to 7 pixels, and determines the application of the filter based on the pixel state.
It enables more appropriate filter applications, reduces block artifacts, improves image quality, and maintains peak signal-to-noise ratio (PSNR).
Smart Images

Figure CN114449267B_ABST
Abstract
Description
[0001] This application is a divisional application of the invention patent application with Chinese application number 201780079701.0, application date November 30, 2017, and invention name “Image processing device and image processing method”. Technical Field
[0002] The present disclosure relates to an image processing device and an image processing method. Background Art
[0003] In H.265 / HEVC (one of the standard image coding scheme specifications), in order to suppress the degradation of image quality caused by block artifacts occurring during image encoding, for example, deblocking filtering is applied to block boundaries (see Non-Patent Document 1). Deblocking filtering includes a strong filter and a weak filter, and a determination formula for each filter is used on a block boundary to determine which filter to apply.
[0004] In addition, at present, in order to further improve the coding efficiency compared with H.265 / HEVC, the Joint Video Exploration Team (JVET) (a joint standards organization of ITU-T and ISO / IEC) is conducting standard work on a next-generation image coding scheme called Future Video Coding (FVC) (for example, see non-patent document 2).
[0005] In the FVC standard work, the following non-patent document 3 proposes to apply a deblocking filter over a wider range of application than the strong filter in H.265 / HEVC. Using the technology proposed in non-patent document 3, a stronger filter can be applied by setting the range of filter application to 3 pixels to 7 pixels near the block boundary.
[0006] Reference List
[0007] Non-patent literature
[0008] Non-patent document 1: Recommendation ITU-T H.265, (04 / 2015) "High efficiency video coding", April 2015
[0009] Non-patent literature 2: J. Chen, E. Alshina, G. J. Sullivan, J.-R. Ohm, J. Boyce, "Algorithm Description of Joint Exploration Test Model 4", JVET-D1001_v3, Joint Video Exploration Team (JVET) of ITU-T SG 16 WP 3 and ISO / IEC JTC 1 / SC 29 / WG 11 Fourth Meeting: Chengdu, China, October 15-21, 2016
[0010] Non-patent literature 3: K. Kawamura, S. Naito, "Extended deblocking-filter decision for large block boundary", JVET-D0047, Joint Video Exploration Team (JVET) of ITU-T SG 16 WP 3 and ISO / IEC JTC 1 / SC 29 / WG 11 Fourth Meeting: Chengdu, China, October 15-21, 2016 Summary of the invention
[0011] Technical issues
[0012] However, with the prior art filter determination methods, there is a risk of applying an inappropriate filter. For example, in some cases, a strong filter is over-applied and the peak signal-to-noise ratio (PSNR) is greatly reduced by applying a deblocking filter.
[0013] The present disclosure has been designed in light of such circumstances, and makes it possible to apply a more appropriate filter in a deblocking filtering process.
[0014] Solution to the problem
[0015] According to the present disclosure, there is provided an image processing device, comprising: a decoding part, which is configured to decode a coded stream to generate a decoded image; a determination part, which is configured to determine whether to apply an extended strong filter applied in an extended application range to pixels near a block boundary of the decoded image generated by the decoding part according to a state of pixels included in the extended application range, wherein in the extended application range, the application range of the deblocking filter is extended; and a filtering part, which is configured to apply the extended strong filter to the pixels to which the determination part determines that the extended strong filter is to be applied.
[0016] In addition, according to the present disclosure, an image processing method is provided, comprising: decoding a coded stream to generate a decoded image; determining whether to apply an extended strong filter applied in an extended application range to pixels near a block boundary of the generated decoded image according to the state of pixels included in the extended application range, wherein in the extended application range, the application range of a deblocking filter is extended; and applying the extended strong filter to the pixels to which the extended strong filter is determined to be applied.
[0017] In addition, according to the present disclosure, there is provided an image processing device, comprising: a determination part, which is configured to determine whether to apply an extended strong filter applied in the extended application range to pixels near the block boundary of a locally decoded decoded image according to the state of pixels included in the extended application range, wherein in the extended application range, the application range of the deblocking filter applied to pixels near the block boundary of the decoded image is extended; a filtering part, which is configured to apply the extended strong filter to the pixels to which the determination part determines that the extended strong filter is to be applied; and an encoding part, which is configured to encode an image using the decoded image to which the extended strong filter has been applied by the filtering part.
[0018] In addition, according to the present disclosure, there is provided an image processing method, comprising: determining whether to apply an extended strong filter applied in an extended application range to pixels near a block boundary of a locally decoded decoded image according to a state of pixels included in the extended application range, wherein in the extended application range, the application range of a deblocking filter applied to pixels near a block boundary of the decoded image is extended; applying the extended strong filter to pixels to which the extended strong filter is determined to be applied; and encoding an image using the decoded image to which the extended strong filter has been applied.
[0019] Advantageous Effects of the Invention
[0020] According to the present disclosure as described above, a more appropriate filter can be applied in the deblocking filtering process.
[0021] Note that the above effects are not necessarily limitative. Together with or in place of the above effects, any one of the effects described in this specification or other effects that can be understood from this specification can be achieved. BRIEF DESCRIPTION OF THE DRAWINGS
[0022] [ Figure 1 ] is an illustrative diagram for explaining an overview of the recursive block division of CU in HEVC.
[0023] [ Figure 2 ] is an explanatory diagram used to illustrate the setting of PU in CU.
[0024] [ Figure 3 ] is an explanatory diagram used to illustrate the setting of TU in CU.
[0025] [ Figure 4 ] is an illustration for explaining the scanning order of CU / PU.
[0026] [ Figure 5 ] is a diagram illustrating the shapes of CU, PU and TU in QTBT.
[0027] [ Figure 6 ] is an explanatory diagram showing an example of pixels within two blocks Bp and Bq adjacent to each other on a vertical boundary, each block containing 4×4 pixels.
[0028] [ Figure 7 ] is an illustration for explaining the strong filter determination process in HEVC.
[0029] [ Figure 8 ] is an illustrative diagram showing an example of a block boundary to which the proposed filter is applied.
[0030] [ Fig. 9 ] is shown Figure 8 An enlarged schematic diagram of the area H10 is shown in FIG.
[0031] [ Fig.10 ] is a block diagram showing an example of the configuration of an image encoding device 10, which is an aspect of an image processing device according to an embodiment of the present disclosure.
[0032] [ Fig.11 ] is a block diagram showing an example of the configuration of an image decoding device 60, which is an aspect of the image processing device according to this embodiment.
[0033] [ Fig.12 ] is a block diagram showing an example of a detailed configuration of the deblocking filter 24 according to the first example.
[0034] [ Fig.13 ] is an illustrative diagram for explaining the determination process for determining whether to apply the extended strong filter.
[0035] [ Fig.14 ] is an explanatory diagram for explaining an example of an extended strong filter applied by the filtering section 130.
[0036] [ Fig.15 ] is an explanatory diagram for explaining the idea in the derivation of the filter coefficients of the extended strong filter applied by the filtering part 130 according to the first example.
[0037] [ Fig.16] is an explanatory diagram for explaining the idea in the derivation of the filter coefficients of the extended strong filter applied by the filtering part 130 according to the first example.
[0038] [ Fig.17 ] is a flowchart showing an example of the processing flow of the deblocking filter 24 according to the first embodiment.
[0039] [ Fig.18 ] is a modified illustration.
[0040] [ Fig.19 ] is a modified illustration.
[0041] [ Fig. 20 ] is an illustrative diagram for illustrating a determination process for determining whether to apply an extended strong filter.
[0042] [ Fig.21 ] is an explanatory diagram showing an example of an asymmetric deblocking filter applied by the filtering section 130 in the modification.
[0043] [ Fig. 22 ] is a flowchart showing an example of the processing flow of the deblocking filter 24 according to the second example.
[0044] [ Fig.23 ] is a flowchart for illustrating the processing in step S230.
[0045] [ Fig.24 ] is a modified illustration.
[0046] [ Fig.25 ] is a modified illustration.
[0047] [ Fig.26 ] is a block diagram showing an example of the main configuration of a computer.
[0048] [ Fig. 27 ] is a block diagram showing an example of a schematic configuration of a television device.
[0049] [ Fig.28 ] is a block diagram showing an example of a schematic configuration of a mobile phone.
[0050] [ Fig.29 ] is a block diagram showing an example of a schematic configuration of a recording / reproducing device.
[0051] [ Fig.30 ] is a block diagram showing an example of a schematic configuration of an imaging device.
[0052] [ Fig.31 ] is a block diagram showing an example of a schematic configuration of a video device.
[0053] [ Fig.32 ] is a block diagram showing an example of a schematic configuration of a video processor.
[0054] [ Fig.33 ] is a block diagram showing another example of a schematic configuration of a video processor.
[0055] [ Fig.34 ] is a block diagram showing an example of a schematic configuration of a network system. DETAILED DESCRIPTION
[0056] Hereinafter, one or more preferred embodiments of the present disclosure will be described in detail with reference to the accompanying drawings. Note that, in this specification and the drawings, structural elements that have substantially the same function and structure are denoted by the same reference numerals, and repeated explanation of these structural elements is omitted.
[0057] Note that in this specification and the drawings, structural elements having substantially the same function and structure are sometimes distinguished from each other using different letters after the same reference numerals. However, when there is no need to particularly distinguish structural elements having substantially the same function and structure, only the same reference numerals are attached.
[0058] Hereinafter, the description will be made in the following order.
[0059] 1. Background
[0060] 1-1. Block structure
[0061] 1-2. Existing deblocking filter
[0062] 2. Device Overview
[0063] 2-1. Image Coding Device
[0064] 2-2. Image decoding device
[0065] 3. First Example
[0066] 3-1. Exemplary Configuration of Deblocking Filter
[0067] 3-2. Processing flow
[0068] 3-3. Modification
[0069] 4. Second Example
[0070] 4-1. Exemplary Configuration of Deblocking Filter
[0071] 4-2. Processing flow
[0072] 4-3. Modification
[0073] 5. Example Hardware Configuration
[0074] 6. Application Examples
[0075] 7. Conclusion
[0076] <1. Background>
[0077] [1-1. Block structure]
[0078] With older image coding schemes such as MPEG-2 or H.264 / AVC, the encoding process is performed in processing units called macroblocks. A macroblock is a block of uniform size of 16×16 pixels. In contrast, with HEVC, the encoding process is performed in processing units called coding units (CUs). A CU is a block of variable size formed by recursively dividing a coding tree unit (CTU). The maximum selectable CU size is 64×64 pixels. The minimum selectable CU size is 8×8 pixels.
[0079] Since a CU with a variable size is implemented, with HEVC, image quality and coding efficiency can be adaptively adjusted according to the image content. Prediction processing for predictive coding is performed in a processing unit called a prediction unit (PU). A PU is formed by dividing a CU according to one of several division modes. In addition, an orthogonal transform process is performed in a processing unit called a transform unit (TU). A TU is formed by dividing a CU or PU to a specific depth.
[0080] Figure 1 This is an explanatory diagram for explaining an overview of recursive block partitioning of a CU in HEVC. CU block partitioning is performed by recursively and repeatedly partitioning a single block into 4 (=2×2) sub-blocks, resulting in a tree structure having a quadtree shape. A complete quadtree is called a coding tree block (CTB), and a logical unit corresponding to a CTB is called a CTU. Figure 1In the upper part, as an example, CU C01 of size 64×64 pixels is shown. The partition depth of CU C01 is equal to zero. This means that CU C01 corresponds to the root of the CTU. The size of the CTU or CTB can be specified by a parameter encoded in a sequence parameter set (SPS). CU C02 is one of the four CUs partitioned from CU C01 and has a size of 32×32 pixels. The partition depth of CU C02 is equal to 1. CU C03 is one of the four CUs partitioned from CUC02 and has a size of 16×16 pixels. The partition depth of CU C03 is equal to 2. CU C04 is one of the four CUs partitioned from CU C03 and has a size of 8×8 pixels. The partition depth of CU C04 is equal to 3. In this way, CUs are formed by recursively partitioning the image to be encoded. The partition depth is variable. For example, in a flat image area such as a blue sky, a CU of a larger size (ie, a smaller depth) can be set. On the other hand, in a steep image area including many edges, a CU of a smaller size (ie, a larger depth) can be set. In addition, the set CU becomes a processing unit of the encoding process.
[0081] A PU is a processing unit of a prediction process including intra prediction and inter prediction. A PU is formed by partitioning a CU according to one of several partitioning modes. Figure 2 It is used to illustrate Figure 1 An illustration of the arrangement of PUs in a CU is shown. Figure 2 The right side of the figure shows eight partition modes, called 2N×2N, 2N×N, N×2N, N×N, 2N×nU, 2N×nD, nL×2N, and nR×2N. Among these partition modes, in intra prediction, two of 2N×2N and N×N are selectable (N×N is selectable only for SCU). On the other hand, in inter prediction, when asymmetric motion partitioning is enabled, all eight partition modes can be selected.
[0082] A TU is a processing unit of an orthogonal transform process. A TU is formed by splitting a CU (or each PU within a CU for an intra CU) into a specific depth. Figure 3 It is used to illustrate Figure 1 An illustration of the setting of TUs in a CU is shown. Figure 3 The right side of shows one or more TUs that can be set in CU C02. For example, TU T01 has a size of 32×32 pixels, and the depth of TU partition is equal to zero. TU T02 has a size of 16×16 pixels, and the depth of TU partition is equal to 1. TU T03 has a size of 8×8 pixels, and the depth of TU partition is equal to 2.
[0083] What type of block partitioning to perform to set the above-mentioned blocks such as CU, PU, and TU in an image is generally decided based on a comparison of the cost of controlling the coding efficiency. For example, the encoder compares the cost between one 2M×2M pixel CU and four M×M pixel CUs, and if the coding efficiency is higher by setting four M×M pixel CUs, the encoder decides to divide the 2M×2M pixel CU into four M×M pixel CUs.
[0084] When encoding an image, the CTBs (or LCUs) arranged in a grid within the image (or slice, block) are scanned in raster scan order. Within a single CTB, the CU is scanned by following the quadtree from left to right and from top to bottom. When processing the current block, information about the adjacent blocks above and to the left is used as input information. Figure 4 This is an explanatory diagram for explaining the scanning order of CU / PU. Figure 4 The upper left portion of FIG. 4 shows four CUs C10, C11, C12, and C13 that can be included in a single CTB. The numbers in the boxes of each CU indicate the processing order. The encoding process is performed in the order of the upper left CU C10, the upper right CU C11, the lower left CU C12, and the lower right CU C13. Figure 4 The right side of shows one or more PUs for inter-frame prediction that can be set in CU C11. Figure 4 The lower part of shows one or more PUs for intra prediction that can be set in CU C12. As indicated by the numbers in the boxes of these PUs, the PUs are also scanned from left to right and from top to bottom.
[0085] The block division in HEVC is described above. Next, a block structure called QTBT described in JVET-C0024 "EE21: Quadtree plus binary tree structure integration with JEM tools" will be described. Figure 5 The diagram illustrates the shapes of CU, PU, and TU in QTBT.
[0086] Specifically, in CU block partitioning, a single block can be divided not only into 4 (=2×2) sub-blocks but also into 2 (=1×2, 2×1) sub-blocks. In other words, CU block partitioning is performed by recursively repeating the division of a single block into 4 or 2 sub-blocks, and as a result, a tree structure having a quadtree shape or a binary tree shape in the horizontal or vertical direction is formed. As described above, blocks can be recursively divided according to a combination of a quadtree and a binary tree.
[0087] As a result, possible CU shapes are not only square but also rectangular. For example, in the case of a coding tree unit (CTU) size of 128×128, Figure 5 As shown, possible CU sizes (horizontal size w×vertical size h) include not only square sizes such as 128×128, 64×64, 32×32, 16×16, 8×8, and 4×4, but also rectangular sizes such as 128×64, 128×32, 128×16, 128×8, 128×4, 64×128, 32×128, 16×128, 8×128, 4×128, 64×32, 64×16, 64×8, 64×4, 32×64, 16×64, 8×64, 4×64, 32×16, 32×8, 32×4, 16×32, 8×32, 4×32, 16×8, 16×4, 8×16, 4×16, 8×4, and 4×8. Note that in Non-Patent Literature 2, PU and TU are the same as CU. However, it is also possible to conceive a form in which the CU, PU, and TU block structures are independent of each other. The present technology is applicable not only to the case where the CU, PU, and TU have the same block structure, but also to the case where the CU, PU, and TU have independent block structures.
[0088] Note that in this specification, "block" is used in the description to refer to a partial area of an image (picture) or a processing unit in some cases (not a block of a processing portion). The "block" in this case means any partial area within a picture, and the size, shape, characteristics, etc. of the partial area are not limited. In other words, it is assumed that the "block" in this case includes any partial area (processing unit), such as TU, PU, CU, CTU, CTB, tile, or slice.
[0089] In addition, in this specification, a block boundary may be a boundary between any of the above blocks, and includes, for example, a boundary between blocks divided by block division in HEVC and a boundary between blocks divided by block division in the above QTBT. In addition, the present technology is also applicable to the block structure and block boundary described in JVET-D0117 "Multi-Type-Tree".
[0090] [1-2. Conventional deblocking filter]
[0091] Next, the existing deblocking filter will be described. In the existing image coding scheme such as HEVC, the processing performed by the deblocking filter includes filtering requirement determination processing, filter strength determination processing and filtering processing. In the following, the filtering requirement determination processing, filter strength determination processing and filtering processing will be described by taking HEVC as an example.
[0092] (1) HEVC filter requirement determination process
[0093] The filtering requirement determination process is a process of determining whether a deblocking filter should be applied to every four lines of a block boundary in the input image. In the case where the block boundary is a vertical boundary, the above lines correspond to rows orthogonal to the vertical boundary. In addition, in the case where the block boundary is a horizontal boundary, the above lines correspond to columns orthogonal to the horizontal boundary.
[0094] Figure 6 is an explanatory diagram showing an example of pixels within two blocks Bp and Bq adjacent on a vertical boundary, each of which contains 4×4 pixels. Although a vertical boundary is described here as an example, it is obvious that the contents described herein are also applicable to horizontal boundaries. Figure 6 In the example, pixels in block Bp are denoted by pi j , where i is the column index and j is the row index. The column index i is numbered 0, 1, 2, 3 in order from the column near the vertical boundary (from right to left). The row index j is numbered 0, 1, 2, 3 from top to bottom. On the other hand, the pixels within the block Bq are denoted by qk j , where k is the column index and j is the row index. The column index k is numbered sequentially 0, 1, 2, 3 starting from the column near the vertical boundary (from left to right).
[0095] for Figure 6 The vertical boundary between blocks Bq and Bq shown in , can determine whether the deblocking filter should be applied according to the following conditions:
[0096] -Determine the conditions...If both condition M and condition N are true, then apply
[0097] --Condition M:
[0098] (M1) block Bp or Bq is in intra prediction mode;
[0099] (M2) block Bq or Bq has non-zero orthogonal transform coefficients, and the boundary between blocks Bp and Bq is a TU boundary;
[0100] (M3) the absolute value of the difference between the block motion vectors of blocks Bp and Bq is 1 pixel or more; or
[0101] (M4) Blocks Bp and Bq have different reference images for block motion compensation, or different numbers of motion vectors
[0102] --Condition N:
[0103] |p20-2*p10+p00|+|p23-2*q13+p03|+|p20-2*q1 u +q00|+| q 23—2* q 11+q03|<β
[0104] Note that β in condition N is an edge determination threshold. The initial value of β is assigned according to the quantization parameter. In addition, the value of β can be specified by the user in the parameters in the slice header.
[0105] In other words, Figure 6 As shown in the dashed boxes L11 and L14 in FIG. 1 , in the filtering requirement determination process (particularly, the determination of the condition N), the pixels in the rows on the first line and the fourth line (the top row is taken as the first line) of each block are referred to. Similarly, in the filtering requirement determination process for the horizontal boundary, the pixels in the first column and the fourth column ( Figure 6 Subsequently, for the pixels in the image (not shown in FIG. 1 ), the above-mentioned filter strength determination processing is performed for the boundary to which the deblocking filter is determined to be applied according to the above-mentioned determination condition.
[0106] (2) HEVC filter strength determination process
[0107] If it is determined that the deblocking filter should be applied to a specific boundary, a process of determining the strength of the filter to be applied is performed. In HEVC, an application determination process is performed on each of a strong filter and a weak filter.
[0108] Similar to the filtering requirement determination process, the strong filter determination process is performed in units of four lines. Figure 6 In the illustrated example, pixels in rows of the first line and the fourth line of each block indicated by dotted-line frames L11 and L14 are referred to to perform the strong filter determination process.
[0109] Note that in the following, row indices (row indices for vertical boundaries and column indices for horizontal boundaries) will be omitted where appropriate, but in describing the determination processing performed in units of four lines, it is assumed that pixels in the rows of the first line and the fourth line of each block are referenced.
[0110] Figure 7 It is an explanatory diagram for explaining the strong filter determination process in HEVC. Figure 7 p0 to p3 and q0 to q3 shown in are columns of pixel values in blocks Bq and Bq, respectively.
[0111] In the strong filter determination process in HEVC, the following conditions A1, B1, and C1 are used.
[0112] (A1)|p3-p0|+|q3-q0|<(β>>3)
[0113] (B1)|p2-2*p1+p0|+|q2-2*q1+q0|<(β>>2)
[0114] (C1)|p0-q0|<((tc*5+1)>>1)
[0115] The pixel ranges referred to by the above conditions A1, B1 and C1 correspond to Figure 7 The ranges are A1, B1 and C1 as shown in the figure. Figure 7 As shown, condition A1 and condition B1 are determined using pixel values within a block. More specifically, condition A1 is a condition for determining flatness within a block. In addition, condition B1 is a condition for determining continuity within a block. In addition, condition C2 uses pixel values adjacent to a block boundary to determine the amount of change (gap) between blocks.
[0116] When both the first line and the fourth line satisfy the above conditions A1, B1, and C1, a strong filter is applied to the block boundary in units of four lines, and when any one condition is not satisfied, a weak filter determination process is performed on each line.
[0117] The strong filter in HEVC is represented as follows.
[0118] p0′=Clip3(p0-2*tc, p0+2*tc, (p2+2*p1+2*p0+2*q0+q1+4)>>3)
[0119] q0′=Clip3(q0-2*tc, q0+2*tc, (p1+2p0+2q0+2q1+q2+4)>>3)
[0120] p1′=Clip3(p1-2*tc, p1+2*tc, (p2+p1+p0+q0+2)>>2)
[0121] q1′=Clip3(q1-2*tc, q1+2*tc, (p0+q0+q1+q2+2)>>2)
[0122] p2′=Clip3(p2-2*tc, p2+2*tc, (2*p3+3*p2+p1+p0+q0+4)>>3)
[0123] q2′=Clip3(q2-2*tc, q2+2*tc, (p0+q0+q1+3*q2+2*q3+4)>>3)
[0124] Note that pi' and qk' are pixel values after the deblocking filter is applied. In addition, Clip3(a, b, c) represents a process of limiting the value c to the range of a≤c≤b.
[0125] However, block artifacts are prone to occur in the case of large-sized blocks in flat areas (areas where pixel values vary little), and even if a strong filter is applied as described above, block artifacts cannot be sufficiently reduced in some cases. In addition, as described above, in HEVC, larger blocks can be selected than macroblocks in previous image coding schemes such as MPEG-2 or H.264 / AVC. Moreover, in the above-mentioned QTBT, even larger blocks than the CTU size in HEVC can be selected. In view of this situation, a stronger deblocking filter is required.
[0126] For example, in non-patent document 3, in order to further reduce block artifacts at block boundaries associated with large-sized blocks, it is proposed to apply a filter having a wider application range than the above-mentioned strong filter. Using the technology proposed in non-patent document 3, the application range of the filter in each block is extended from 3 pixels located near the block boundary to 7 pixels, making it possible to apply a stronger filter.
[0127] The filter proposed in Non-Patent Document 3 (hereinafter sometimes referred to as the proposed filter) is expressed as follows. Note that what is expressed below is the pixel value after the filter is applied on the block Bp side.
[0128] p6′=Clip3(p6-2*tc, p6+2*tc, (3*p7+5*p6+2*p5+p4+p3+p2+p1+p0+q0+8)>>4)
[0129] p5′=Clip3(p5-2*tc, p5+2*tc, (p7+2*p6+5*p5+2*p4+p3+p2+p1+p0+q0+q1+8)>>4)
[0130] p4′=Clip3(p4-2*tc, p4+2*tc, (p6+3*p5+3*p4+3*p3+p2+p1+p0+q0+q1+q2+8)>>4)
[0131] p3′=Clip3(p3-2*tc, p3+2*tc, (p6+2*p5+2*p4+2*p3+2*p2+2*p1+p0+q0+q1+q2+q3+8)>>4)
[0132] p2′=Clip3(p2-2*tc, p2+2*tc, (p5+2*p4+2*p3+2*p2+2*p1+2*p0+2*q0+q1+q2+q3+8)>>4)
[0133] p1′=Clip3(p1-2*tc, p1+2*tc, (p5+p4+2*p3+2*p2+2*p1+2*p0+2*q0+2*q1+q2+q3+8)>>4)
[0134] p0′=Clip3(p0-2*tc, p0+2*tc, (p4+2*p3+2*p2+2*p1+2*p0+2*q0+2*q1+2*q2+q3+8)>>4)
[0135] As described above, in the proposed filter, the filter application range becomes wider, and further, the tap range referenced during filtering is also wider than that of the strong filtering in HEVC.
[0136] Furthermore, according to Non-Patent Document 3, a filter has been proposed that is applied to a case where all of the following conditions R1 to R3 are true.
[0137] (R1) The size in the direction perpendicular to the block boundary of two blocks on either side of the block boundary is a predetermined threshold value (in non-patent documents 3, 16) or more
[0138] (R2) Satisfies the conditions for applying HEVC strong filter
[0139] (R3) Of the two blocks on either side of the block boundary, at least one block is in intra prediction mode.
[0140] Among the above conditions R1 to R3, only R2 is a determination condition that refers to the pixel value. Figure 7 As described above, the condition for applying a strong filter in condition R2 refers to only 4 pixels located near the block boundary in each block, and the reference range in condition R2 is narrower than the application range of the filter proposed in non-patent document 3. Therefore, in the case of using the above-mentioned determination conditions R1 to R3, there is a risk of applying an inappropriate filter.
[0141] Figure 8 is an explanatory diagram showing an example of a block boundary to which the proposed filter is applied. Figure 8 A weak filter application boundary where a weak filter is applied with respect to the image H1 , a strong filter application boundary where a strong filter is applied, and a proposed filter application boundary where the proposed filter is applied are shown.
[0142] Fig. 9 It is shown Figure 8 FIG. 1 is an enlarged schematic diagram of the area H10 shown in FIG. Figure 8 As shown, for Fig. 9 The block boundary in the region H10 shown determines that the proposed filter will be applied. Note that the reference range used to determine the condition R2 is Fig. 9 As shown in the range H11. Fig. 9 As shown, since the range H11 of the region H10 is a flat region where the pixel value changes little, it is easy to apply a strong filter when determination is made based on the condition R2.
[0143] However, the application scope of the proposed filter is Fig. 9 Here, as shown in the range H12 Fig. 9 As shown, since range H13 included in range H12 includes the boundary between the object (the main body of the image) and the background, it is not desirable to apply the deblocking filter to range H13. For example, if a deblocking filter (the proposed filter) is applied to range H12 including range H13, a peak signal-to-noise ratio (PSNR) may be greatly reduced in some cases.
[0144] Therefore, focusing on the above situation led to the creation of embodiments according to the present disclosure. With the embodiments according to the present disclosure, more appropriate filters can be applied.
[0145] <2. Device Overview>
[0146] Will use Fig.10 and Fig.11 Hereinafter, an overview of a device serving as one applicable example of the technology disclosed in this specification will be described. For example, the technology disclosed in this specification can be applied to an image encoding device and an image decoding device.
[0147] [2-1. Image Coding Device]
[0148] Fig.10 1 is a block diagram showing one example of the configuration of the image encoding device 10 which is one aspect of the image processing device according to one embodiment of the present disclosure.
[0149] refer to Fig.10 The image encoding device 10 is provided with a reordering buffer 11, a control part 12, a subtraction part 13, an orthogonal transform part 14, a quantization part 15, a lossless encoding part 16, an accumulation buffer 17, an inverse quantization part 21, an inverse orthogonal transform part 22, an addition part 23, a deblocking filter 24a, an SAO filter 25, a frame memory 26, a switch 27, a mode setting part 28, an intra-frame prediction part 30, and an inter-frame prediction part 40.
[0150] The reordering buffer 11 reorders the image data of a series of images included in the video to be encoded according to the Group of Pictures (GOP) structure according to the encoding process. The reordering buffer 11 outputs the reordered image data to the control part 12, the subtraction part 13, the intra-frame prediction part 30 and the inter-frame prediction part 40.
[0151] The control section 12 divides the image data into blocks of the processing unit based on the block size of the processing unit specified externally or in advance. For example, the QTBT block structure described above can also be formed by the block division of the control section 12. In addition, the control section 12 determines the encoding parameters associated with the encoding process based on, for example, rate-distortion optimization (RDO). The determined encoding parameters are provided to each section.
[0152] The subtraction section 13 calculates prediction error data, which is a difference between the image data input from the reordering buffer 11 and the predicted image data, and outputs the calculated prediction error data to the orthogonal transform section 14 .
[0153] The orthogonal transform section 14 performs an orthogonal transform process on each of one or more transform blocks (TU) set in each region. The orthogonal transform at this time may be, for example, a discrete cosine transform, a discrete sine transform, etc. More specifically, for each transform block, the orthogonal transform section 14 transforms the prediction error data input from the subtraction section 13 from the image signal in the spatial domain into a transform coefficient in the frequency domain. Subsequently, the orthogonal transform section 14 outputs the transform coefficient to the quantization section 15.
[0154] The quantization section 15 is supplied with the transform coefficient data input from the orthogonal transform section 14 and a rate control signal from a rate control section 18 described later. The quantization section 15 quantizes the transform coefficient data and outputs the quantized transform coefficient data (hereinafter also referred to as quantized data) to the lossless encoding section 16 and the inverse quantization section 21. The quantization section 15 also changes the bit rate of the quantized data input to the lossless encoding section 16 by switching the quantization scale based on the rate control signal from the rate control section 18.
[0155] The lossless encoding section 16 generates an encoded stream by encoding the quantized data input from the quantization section 15. In addition, the lossless encoding section 16 encodes various encoding parameters to be referred to by the decoder and inserts the encoded encoding parameters into the encoded stream. The encoding parameters encoded by the lossless encoding section 16 may include the encoding parameters determined by the above-mentioned control section 12. The lossless encoding section 16 outputs the generated encoded stream to the accumulation buffer 17.
[0156] The accumulation buffer 17 uses a storage medium such as a semiconductor memory to temporarily buffer the encoded stream input from the lossless encoding section 16. Then, the accumulation buffer 17 outputs the buffered encoded stream to a transmission section (for example, a communication interface or a connection interface connected to a peripheral device) not shown at a certain rate according to the bandwidth of the transmission channel.
[0157] The rate control section 18 monitors the amount of free space in the accumulation buffer 17. Then, the rate control section 18 generates a rate control signal according to the amount of free space in the accumulation buffer 17, and outputs the generated rate control signal to the quantization section 15. For example, when there is not much free space in the accumulation buffer 17, the rate control section 18 generates a rate control signal for reducing the bit rate of the quantized data. In addition, for example, when there is a sufficiently large amount of free space in the accumulation buffer 17, the rate control section 18 generates a rate control signal for increasing the bit rate of the quantized data.
[0158] The inverse quantization section 21, the inverse orthogonal transform section 22 and the addition section 23 form a local decoder. The local decoder has a role of locally decoding decoded image data based on encoded data.
[0159] The inverse quantization section 21 inversely quantizes the quantized data using the same quantization parameter as that used by the quantization section 15 and restores the transform coefficient data. Then, the inverse quantization section 21 outputs the restored transform coefficient data to the inverse orthogonal transform section 22.
[0160] The inverse orthogonal transform section 22 reconstructs prediction error data by performing an inverse orthogonal transform process on the transform coefficient data input from the inverse quantization section 21. Then, the inverse orthogonal transform section 22 outputs the reconstructed prediction error data to the addition section 23.
[0161] The addition section 23 adds the restored prediction error data input from the inverse orthogonal transform section 22 to the predicted image data input from the intra prediction section 30 or the inter prediction section 40, thereby generating decoded image data (reconstructed image). Then, the addition section 23 outputs the generated decoded image data to the deblocking filter 24a and the frame memory 26.
[0162] Both the deblocking filter 24a and the SAO filter 25 are loop filters for improving the image quality of a reconstructed image.
[0163] The deblocking filter 24a reduces block artifacts by filtering the decoded image data input from the adding section 23, and outputs the filtered decoded image data to the SAO filter 25. Note that the processing of the deblocking filter 24a will be described in detail later.
[0164] The SAO filter 25 removes noise by applying an edge offset process or a band offset process to the decoded image data input from the deblocking filter 24 a , and outputs the processed decoded image data to the frame memory 26 .
[0165] The frame memory 26 stores the unfiltered decoded image data input from the adding section 23 and the decoded image data to which loop filtering has been applied input from the SAO filter 25 in a storage medium.
[0166] The switch 27 reads the unfiltered decoded image data to be used for intra prediction output from the frame memory 26, and supplies the read decoded image data as reference image data to the intra prediction section 30. In addition, the switch 27 reads the filtered decoded image data to be used for inter prediction output from the frame memory 26, and supplies the read decoded image data as reference image data to the inter prediction section 40.
[0167] The mode setting section 28 sets the prediction encoding mode for each block based on the comparison of the costs input from the intra prediction section 30 and the inter prediction section 40. For the block for which the intra prediction mode is set, the mode setting section 28 outputs the prediction image data generated by the intra prediction section 30 to the subtraction section 13 and the addition section 23, and also outputs the information related to the intra prediction to the lossless encoding section 16. In addition, for the block for which the inter prediction mode is set, the mode setting section 28 outputs the prediction image data generated by the inter prediction section 40 to the subtraction section 13 and the addition section 23, and also outputs the information related to the inter prediction to the lossless encoding section 16.
[0168] The intra-frame prediction part 30 performs intra-frame prediction processing based on the original image data and the decoded image data. For example, the intra-frame prediction part 30 evaluates the cost based on the prediction error and the amount of code to be generated for each prediction mode candidate within the search range. Then, the intra-frame prediction part 30 selects the prediction mode that minimizes the cost as the optimal prediction mode. In addition, the intra-frame prediction part 30 generates predicted image data according to the selected optimal prediction mode. Then, the intra-frame prediction part 30 outputs information about the intra-frame prediction to the mode setting part 28, and the information about the intra-frame prediction includes prediction mode information indicating the optimal prediction mode, the corresponding cost and the predicted image data.
[0169] The inter-frame prediction part 40 performs inter-frame prediction processing (motion compensation) based on the original image data and the decoded image data. For example, the inter-frame prediction part 40 evaluates the cost based on the prediction error and the generated code rate of each prediction mode candidate included in the search range specified by HEVC. Next, the inter-frame prediction part 40 selects the prediction mode that produces the minimum cost, or in other words, the prediction mode that produces the highest compression ratio, as the optimal prediction mode. In addition, the inter-frame prediction part 40 generates predicted image data according to the selected optimal prediction mode. Subsequently, the inter-frame prediction part 40 outputs information related to the inter-frame prediction, the corresponding cost and the predicted image data to the mode setting part 28.
[0170] [2-2. Image Decoding Device]
[0171] Next, decoding of the encoded data encoded as above will be described. Fig.11 is a block diagram showing an example of the configuration of an image decoding device 60 which is one aspect of the image processing device according to the present embodiment. Fig.11 , an accumulation buffer 61, a lossless decoding part 62, an inverse quantization part 63, an inverse orthogonal transform part 64, an addition part 65, a deblocking filter 24b, an SAO filter 67, a reordering buffer 68, a digital-to-analog (D / A) conversion part 69, a frame memory 70, selectors 71a and 71b, an intra-frame prediction part 80 and an inter-frame prediction part 90 are set.
[0172] The accumulation buffer 61 temporarily buffers the encoded stream received from the image encoding device 10 via a transmission section (for example, a communication interface or a connection interface with a peripheral device) not shown, using a storage medium.
[0173] The lossless decoding section 62 decodes the quantized data in the encoded stream input from the accumulation buffer 61 in accordance with the encoding scheme used during encoding. The lossless decoding section 62 outputs the decoded quantized data to the inverse quantization section 63.
[0174] In addition, the lossless decoding section 62 decodes various encoding parameters inserted into the header region of the encoded stream. For example, the parameters decoded by the lossless decoding section 62 may include information related to intra-frame prediction and information related to inter-frame prediction. The lossless decoding section 62 outputs the information related to intra-frame prediction to the intra-frame prediction section 80. In addition, the lossless decoding section 62 outputs the information related to inter-frame prediction to the inter-frame prediction section 90.
[0175] The inverse quantization section 63 inversely quantizes the quantized data input from the lossless decoding section 62 at the same quantization step size as that used during encoding, and reconstructs transform coefficient data. The inverse quantization section 63 outputs the reconstructed transform coefficient data to the inverse orthogonal transform section 64.
[0176] The inverse orthogonal transform section 64 generates prediction error data by performing an inverse orthogonal transform on the transform coefficient data input from the inverse quantization section 63 according to the orthogonal transform scheme used during encoding. The inverse orthogonal transform section 64 outputs the generated prediction error data to the addition section 65.
[0177] The addition section 65 generates decoded image data by adding the prediction error data input from the inverse orthogonal transform section 64 and the prediction image data input from the selector 71b. Then, the addition section 65 outputs the generated decoded image data to the deblocking filter 24b and the frame memory 70.
[0178] The deblocking filter 24b reduces block artifacts by filtering the decoded image data input from the adding section 65, and outputs the filtered decoded image data to the SAO filter 67. Note that the processing of the deblocking filter 24b will be described in detail later.
[0179] The SAO filter 67 removes noise by applying edge offset processing or band offset processing to the decoded image data input from the deblocking filter 24 b , and outputs the processed decoded image data to the reordering buffer 68 and the frame memory 70 .
[0180] The reordering buffer 68 reorders the images input from the SAO filter 67 , thereby generating a series of time-series image data. Then, the reordering buffer 68 outputs the generated image data to the D / A conversion section 69 .
[0181] The D / A conversion section 69 converts the image data in a digital format input from the reordering buffer 68 into an image signal in an analog format. Then, for example, the D / A conversion section 69 outputs the analog image signal to a display (not shown) connected to the image decoding device 60, so that the decoded video is displayed.
[0182] The frame memory 70 stores the unfiltered decoded image data input from the adding section 65 and the filtered decoded image data input from the SAO filter 67 in a storage medium.
[0183] The selector 71a switches the output destination of the image data from the frame memory 70 between the intra prediction section 80 and the inter prediction section 90 for each block in the image, according to the prediction mode information acquired by the lossless decoding section 62. In the case where the intra prediction mode is specified, for example, the selector 71a outputs the unfiltered decoded image data supplied from the frame memory 70 as reference image data to the intra prediction section 80. In addition, in the case where the inter prediction mode has been specified, the selector 71a outputs the filtered decoded image data as reference image data to the inter prediction section 90.
[0184] The selector 71b switches the output source of the predicted image data to be supplied to the addition section 65 between the intra prediction section 80 and the inter prediction section 90 according to the prediction mode information acquired by the lossless decoding section 62. In the case where the intra prediction mode is designated, for example, the selector 71b supplies the predicted image data output from the intra prediction section 80 to the addition section 65. Also, in the case where the inter prediction mode is designated, the selector 71b supplies the predicted image data output from the inter prediction section 90 to the addition section 65.
[0185] The intra prediction section 80 performs intra prediction processing based on the information on intra prediction input from the lossless decoding section 62 and the reference image data input from the frame memory 70, thereby generating predicted image data. Then, the intra prediction section 80 outputs the generated predicted image data to the selector 71b.
[0186] The inter prediction section 90 performs inter prediction processing based on the information on inter prediction input from the lossless decoding section 62 and the reference image data input from the frame memory 70, thereby generating predicted image data. Then, the inter prediction section 90 outputs the generated predicted image data to the selector 71b.
[0187] <3. First Example>
[0188] [3-1. Exemplary configuration of deblocking filter]
[0189] This section describes the Fig.10 The deblocking filter 24a and the deblocking filter 24b in the image encoding device 10 shown in FIG. Fig.11 An example of a configuration related to the first example of the deblocking filter 24b in the image decoding device 60 shown in FIG. Note that the deblocking filter 24a and the deblocking filter 24b can share a common configuration. Therefore, in the following description, the deblocking filter 24a and the deblocking filter 24b are collectively referred to as the deblocking filter 24 when it is not necessary to distinguish between the two.
[0190] The deblocking filter 24 according to this example applies an extended strong filter to pixels in an already extended application range (extended application range), in which the application range of the deblocking filter has been extended beyond the above-mentioned HEVC strong filter. In addition, the deblocking filter 24 according to the present embodiment determines whether to apply the extended strong filter based on the extended application range. In the following, an example of an extended strong filter in which the application range is extended from 3 pixels located near a block boundary to 7 pixels is described, but this example is not limited to such an example, and other examples of the extended strong filter will be described later.
[0191] Fig.12 2 is a block diagram showing an example of a detailed configuration of the deblocking filter 24 according to the first example. Fig.12 , the deblocking filter 24 includes an application requirement determining part 110 , a filter strength determining part 120 and a filtering part 130 .
[0192] (1) Application requirements determination part
[0193] The application requirement determination section 110 determines whether a deblocking filter should be applied to a block boundary. For example, the application requirement determination section 110 may determine that a deblocking filter should be applied if both condition M and condition N in the above-mentioned prior art are true.
[0194] In order to make the above determination, determination information about adjacent blocks adjacent across each block boundary is provided to the application requirement determination section 110. The determination information provided at this time includes, for example, mode information, transform coefficient information, and motion vector information. Subsequently, the application requirement determination section 110 determines whether the following conditions are satisfied as a determination in units of four lines for each block boundary.
[0195] -Determine the conditions...If both condition M and condition N are true, then apply
[0196] --Condition M:
[0197] (M1) block Bp or Bq is in intra prediction mode;
[0198] (M2) block Bq or Bq has a non-zero orthogonal transform coefficient, and the boundary between blocks Bp and Bq is a TU boundary;
[0199] (M3) the absolute value of the difference between the block motion vectors of blocks Bp and Bq is 1 pixel or more; or
[0200] (M4) Blocks Bp and Bq have different reference images for block motion compensation, or different numbers of motion vectors
[0201] --Condition N;
[0202] |p20-2*p10+p00|+|p23-2*q13+p03|+|p20-2*q10+q00|+|q23-2*q13+q03|<β
[0203] In addition, for a block boundary that satisfies the above determination condition, the application requirement determination section 110 causes the filter strength determination section 120 to make a determination related to filter application for each strength. On the other hand, for a block boundary that does not satisfy the above determination condition, the application requirement determination section 110 causes the filter strength determination section 120 to skip the determination related to filter application for each strength.
[0204] Note that the determination of the application requirement determination part 110 described herein is only an example. In other words, determination conditions different from the above determination conditions may also be used. For example, any of the determination conditions M1 to M4 and N may be omitted, and other conditions may also be added.
[0205] (2) Filter strength determination part
[0206] The filter strength determination section 120 determines whether to apply each strength of the filter to a pixel located near a block boundary of an input image (decoded image) for which the application requirement determination section 110 has determined that the deblocking filter should be applied. For example, the filter strength determination section 120 makes a determination regarding the application of a weak filter, a strong filter, and an extended strong filter whose application range is extended beyond the strong filter.
[0207] For example, first, the filter strength determination section 120 may determine whether to apply the extended strong filter to the block boundary in units of four lines. In addition, for a block boundary to which the extended strong filter is determined not to be applied, the filter strength determination section 120 may determine whether to apply the strong filter in units of four lines. In addition, for a block boundary to which the strong filter is determined not to be applied, the filter strength determination section 120 may determine whether to apply the weak filter in units of one line.
[0208] According to such a configuration, a stronger filter is more easily applied to a block boundary to which a stronger filter is applicable.
[0209] For each determined unit, when it is determined that any one of the extended strong filter, the strong filter and the weak filter is to be applied, the filter strength determination part 120 outputs information indicating the filter strength (for example, a flag indicating one of the extended strong filter, the strong filter and the weak filter) to the filtering part 130.
[0210] In addition, for a line to which it is determined that any one of the extended strong filter, the strong filter, and the weak filter is not to be applied, the filter strength determination portion 120 causes the filtering portion 130 to skip application of the deblocking filter.
[0211] The determination related to the application of a strong filter by the filter strength determination section 120 may be performed using the determination conditions A1, B1, and C1 related to the application of a strong filter in, for example, the above-mentioned HEVC. In addition, the determination related to the application of a weak filter by the filter strength determination section 120 may be performed similarly to the determination related to the application of a weak filter in, for example, HEVC.
[0212] Hereinafter, determination processing related to application of the extended strong filter performed by the filter strength determination section 120 will be described. Fig.13 : is an explanatory diagram for explaining the determination process for determining whether to apply the extended strong filter. The application range of the extended strong filter according to this example (extended application range) is 7 pixels located near the block boundary, corresponding to Fig.13 p0 to p6 and q0 to q6 in the pixels shown.
[0213] The filter strength determination section 120 according to the present example determines whether to apply the extended strong filter according to the application range of the extended strong filter (extended application range). For example, the filter strength determination section 120 may perform determination processing by referring to pixels over a wider range than the extended application range.
[0214] According to such a configuration, for example, in the case where there is a boundary between an object and a background or the like in a range to which an extended strong filter is to be applied, determination can be made so that the extended strong filter is less likely to be applied and a more appropriate deblocking filter is more likely to be applied.
[0215] For example, the filter strength determination section 120 may determine to apply the extended strong filter if the following condition V11 is satisfied.
[0216] Condition V11: True if all of the following conditions A110, B111 to B113, C110 are true
[0217] (A110)|p7-p0|+|q7-q0|<(beta>>3)
[0218] (B111)|p2-2*p1+p0|+|q2-2*q1+q0|<(beta>>2)
[0219] (B112)|p4-2*p3+p2|+|q4-2*q3+q2|<(beta>>2)
[0220] (B113)|p6-2* p 5+p4|+|q6-2* q 5+q4|<(beta>>2)
[0221] (C110)|p0-q0|<((tc*5+1)>>1)
[0222] Furthermore, as another example of the determination condition, the filter strength determination section 120 may determine to apply the extended strong filter if the following condition V12 is satisfied.
[0223] Determine condition V12: True if all of the following conditions A110, B110, and C110 are true
[0224] (A110)|p7-p0|+|q7-q0|<(beta>>3)
[0225] (B110)|p2-2*p1+p0|+|q2-2*q1+q0|+|p4-2*p3+p2|+|q4-2*q3+q2|+|p6-2*p5+p4|+|q6-2*q5+q4|<(3*beta>>2)
[0226] (C110)|p0-q0|<((tc*5+1)>>1)
[0227] Furthermore, as another example of the determination condition, the filter strength determination section 120 may determine to apply the extended strong filter if the following condition V13 is satisfied.
[0228] Condition V13: True if all of the following conditions A110, B115, and C110 are true
[0229] (A110)|p7-p0|+|q7-q0|<(beta>>3)
[0230] (B115)|p6-2*p3+p0|+|q6-2*q3+q0|<(beta>>2)
[0231] (C110)|p0-q0|<((tc*5+1)>>1)
[0232] In the above conditions V11 to V13, the pixel range referred to by condition A110 corresponds to Fig.13 In addition, in the above condition V11, the pixel ranges referred to by conditions B111 to B113 correspond to Fig.13 In addition, in the above conditions V12 and V13, the pixel range referred to by the conditions B110 and B115 corresponds to Fig.13 Range B11 to B13 shown.
[0233] Note that, among the above-mentioned conditions V11 to V13, condition A110 is a condition for determining flatness within a block. In addition, conditions B110, B111 to B113, and B115 are conditions for determining continuity within a block. In addition, condition C110 uses the pixel values adjacent to the block boundary to determine the amount of change (gap) between blocks.
[0234] Herein, in the conditions B110, B111 to B113 and B115 for determining continuity, the pixels used are continuously extended compared to the above-mentioned existing condition B1 for determining continuity. In other words, the filter strength determination part 120 performs the continuity determination processing that determines the continuity of the pixel values included in the extended application range based on the condition that the pixels used when determining the continuity of the pixel values included in the extended application range are continuously extended.
[0235] In addition, in the present specification, the flatness of the pixel value, the continuity of the pixel value, and the amount of change (gap) in the pixel value of the pixels included in the application range or the extended application range of the deblocking filter are collectively referred to as the state of the pixels included in the application range or the state of the pixels included in the extended application range. By using one of the conditions V11 to V13, the filter strength determination section 120 according to the present example determines whether to apply the extended strong filter according to the state of the pixels included in the extended application range.
[0236] In addition, the filter strength determination section 120 may also determine whether to apply the extended strong filter in units of four lines, and may also determine to apply the extended strong filter if both the first line and the fourth line satisfy one of the above conditions V11 to V13.
[0237] In addition, the filter strength determination section 120 can also determine whether to apply the extended strong filter by combining one of the above conditions V11 to V13 with the condition R1 or condition R2 in the above prior art. Note that in this example, the threshold of condition R1 is not limited to 16, and other values can also be used as the threshold.
[0238] (3) Filtering part
[0239] The filtering section 130 applies a deblocking filter to pixels located near a block boundary of the input image (decoded image) according to the determination results of the application requirement determination section 110 and the filter strength determination section 120. In the case where the filter strength determination section 120 determines to apply a strong filter or a weak filter, for example, a strong filter or a weak filter of HEVC can be applied.
[0240] Furthermore, the filtering section 130 applies the extended strong filter to the pixels to which the filter strength determination section 120 determines to apply the extended strong filter. Hereinafter, one example of the extended strong filter applied by the filtering section 130 will be described.
[0241] Fig.14 1 is an explanatory diagram for explaining an example of an extended strong filter applied by the filtering section 130. Fig.14 As shown, the following case is assumed: there is a gap G causing block artifacts at the block boundary (between p0 and q0) where the extended strong filter is applied, and there is no difference between pixel values (pixel values are flat) in the extended application range (p0 to p6 and q0 to q6) within the block. In this case, by applying a filter with strong low-frequency characteristics so that the offset G=p0q0 changes according to the position from the block boundary, it is possible to reduce Fig.14 Block artifacts shown.
[0242] For example, the filtering part 130 may apply an extended strong filter having the following first filter coefficient to the pixels to which the filter strength determination part 120 determines to apply the extended strong filter.
[0243] -First filter coefficient
[0244] p6′=Clip3(p6-2*tc, p6+2*tc, (4*p7+8*p6+4*p5-p0+q0+8)>>4)
[0245] p5′=Clip3(p5-2*tc, p5+2*tc, (4*p6+8*p5+4*p4-2*p0+2*q0+8)>>4)
[0246] p4′=Clip3(p4-2*tc, p4+2*tc, (4*p5+8*p4+4*p3-3*p0+3*q0+8)>>>4)
[0247] p3′=Clip3(p3-2*tc, p3+2*tc, (4*p4+8*p3+4*p2-4*p0+4*q0+8)>>4)
[0248] p2′=Clip3(p2-2*tc, p2+2*tc, (4*p3+8*p2+4*p1-5*p0+5*q0+8)>>4)
[0249] p1′=Clip3(p1-2*tc, p1+2*tc, (4*p2+8*p1+4*p0-6*q0+6*q0+8)>>4)
[0250] p0′=Clip3(p0-2*tc, p0+2*tc, (4*p1+5*p0+7*q0+8)>>4)
[0251] q0′=Clip3(q0-2*tc, q0+2*tc, (7*p0+5*q0+4*q1+8)>>4)
[0252] q1′=Clip3(q1-2*tc, q1+2*tc, (6*p0-6*q0+4*q0+8*q1+4*q2+8)>>4)
[0253] q2′=Clip3(q2-2*tc, q2+2*tc, (5*p0-5*q0+4*q1+8*q2+4*q3+8)>>4)
[0254] q3′=Clip3(q3-2*tc, q3+2*tc, (4*p0-4*q0+4*q2+8*q3+4*q4+8)>>4)
[0255] q4′=Clip3(q4-2*tc, q4+2*tc, (3*p0-3*q0+4*q3+8*q4+4*q5+8)>>4)
[0256] q5′=Clip3(q5-2*tc, q5+2*tc, (2*p0-2*q0+4*q4+8*q5+4*q6+8)>>4)
[0257] q6′=Clip3(q6-2*tc, q6+2*tc, (p0-q0+4*q5+8*q6+4*q7+8)>>4)
[0258] Furthermore, the filtering part 130 may apply an extended strong filter having the following second filter coefficient to the pixels to which the filter strength determination part 120 determines to apply the extended strong filter.
[0259] The second filter coefficient
[0260] p6′=Clip3(p6-2*tc, p6+2*tc, (6*p7+4*p6+4*p5+2*p4-p0+q0+8)>>4)
[0261] p5′=Clip3(p5-2*tc, p5+2*tc, (2*p7+4*p6+4*p5+4*p4+2*p3-2*p0+2*q0+8)>>4)
[0262] p4′=Clip3(p4-2*tc, p4+2*tc, (2*p6+4*p5+4*p4+4*p3+2*p2-3*p0+3*q0+8)>>4)
[0263] p3′=Clip3(p3-2*tc, p3+2*tc, (2*p5+4*p4+4*p3+4*p2+2*p1-4*p0+4*q0+8)>>4)
[0264] p2′=Clip3(p2-2*tc, p2+2*tc, (2*p4+4*p3+4*p2+4*p1+2*p0-5*q0+5*q0+8)>>4)
[0265] p1′=Clip3(p1-2*tc, p1+2*tc, (2*p3+4*p2+4*p1+6*q0+8)>>4)
[0266] p0′=Clip3(p0-2*tc, p0+2*tc, (2*p2+4*p1+3*p0+5*q0+2*q1+8)>>4)
[0267] q0′=Clip3(q0-2*tc, q0+2*tc, (2*p1+5*p0+3*q0+4*q1+2*q2+8)>>4)
[0268] q1′=Clip3(q1-2*tc, q1+2*tc, (6*p0+4*q1+4*q2+2*q3+8)>>4)
[0269] q2′=Clip3(q2-2*tc, q2+2*tc, (5*p0-5*q0+2*q0+4*q1+4*q2+4*q3+2*q4+8)>>4)
[0270] q3′=Clip3(q3-2*tc, q3+2*tc, (4*p0-4*q0+2*q1+4*q2+4*q3+4*q4+2*q5+8)>>4)
[0271] q4′=Clip3(q4-2*tc, q4+2*tc, (3*p0-3*q0+2*q2+4*q3+4*q4+4*q5+2*q6+8)>>4)
[0272] q5′=Clip3(q5-2*tc, q5+2*tc, (2*p0-2*q0+2*q3+4*q4+4*q5+4*q6+2*q7+8)>>4)
[0273] q6′=Clip3(q6-2*tc, q6+2*tc, (p0-q0+2*q4+4*q5+4*q6+6*q7+8)>>4)
[0274] Fig.15 and Fig.16 is an explanatory diagram for explaining the idea in deriving the filter coefficients of the extended strong filter applied by the filtering section 130 according to the present example.
[0275] The first filter coefficient and the second filter coefficient have strong low-frequency characteristics and can be smoothed strongly. Fig.14 As shown in FIG. 1 , in the case where the pixel values of pixels near the block boundary inside the block hardly change, the extended strong filter based on the first filter coefficient and the second filter coefficient works effectively. Fig.15 As shown, in the case where pixel values within a block vary, applying the extended strong filter according to the first filter coefficient and the second filter coefficient may result in oversmoothing, and there is a risk that, for example, the image may become blurred.
[0276] At this time, we will consider Fig.15The pixel values near the block boundary shown are decomposed into Fig.16 Shown are the DC component (low frequency component) and the AC component (high frequency component).
[0277] The DC component is, for example, the signal value used as the basis for each block (pi and qi) on either side of the block boundary. Fig.15 In the example shown, the values closest to the block boundaries, i.e., p0 and q0, are used as DC components. Note that the DC component is not limited to such an example, and may be an average value in each block (average value (p0:pn) and average value (q0:qn)), or a minimum value in each block (min(p0:pn) and min(q0:qn)). Note that n is determined based on the reference range (tap range) of the extended strong filter.
[0278] In addition, the AC component is the residual signal value obtained by subtracting the above-mentioned DC component in each block (pi and qi) on either side of the block boundary. Fig.15 In the illustrated example, a value obtained by subtracting p0 in the p-side block and a value obtained by subtracting q0 in the q-side block are AC components.
[0279] Subsequently, a block artifact removal filter having a strong low-frequency characteristic (e.g., a filter according to the first filter characteristic or the second filter characteristic) is applied to the DC component. On the other hand, a filter different from the above (e.g., a filter different from the block artifact removal filter) may also be applied to the AC component. For example, an FIR filter or a bilateral filter having a weak low-frequency characteristic may be applied to the AC component. Furthermore, it is not necessary to apply the filter to the AC component.
[0280] For example, a filter having the following third filter coefficient may be applied to the DC component.
[0281] The third filter coefficient
[0282] p0 position: p0-7 / 16*(p0-q0)=p0-7*(p0-q0)>>4
[0283] p1 position: p0-6 / 16*(p0-q0)=p0-6*(p0-q0)>>4
[0284] p2 position: p0-5 / 16*(p0-q0)=p0-5*(p0-q0)>>4
[0285] p3 position: p0-4 / 16*(p0-q0)=p0-4*(p0-q0)>>4
[0286] p4 position: p0-3 / 16*(p0-q0)=p0-3*(p0-q0)>>4
[0287] p5 position: p0-2 / 16*(p0-q0)=p0-2*(p0-q0)>>4
[0288] p6 position: p0-1 / 16*(p0-q0)=p0-1*(p0-q0)>>4
[0289] Furthermore, a filter having a fourth filter coefficient having 121 coefficients centered at the target pixel may be applied to the AC component.
[0290] The fourth filter coefficient
[0291] p0 position: {1*(p1-p0)+2*(p0-p0)+1*(q0-q0)} / 4=1*(p1-p0)>>2
[0292] p1 position: {1*(p2-p0)+2*(p1-p0)+1*(p0-p0)} / 4={1*(p2-p0)+2*(p1-p0)}>>2
[0293] p2 position: {1*(p3-p0)+2*(p2-p0)+1*(p1-q0)} / 4={1*(p3-p0)+2*(p2-p0)+1*(p1-q0)}>>2
[0294] p3 position: {1*(p4-p0)+2*(p3-p0)+1*(p2-q0)} / 4={1*(p4-p0)+2*(p3-p0)+1*(p2-q0)}>>2
[0295] p4 position: {1*(p5-p0)+2*(p4-p0)+1*(p3-q0)} / 4={1*(p5-p0)+2*(p4-p0)+1*(p3-q0)}>>2
[0296] p5 position: {1*(p6-p0)+2*(p5-p0)+1*(p4-q0)} / 4={1*(p6-p0)+2*(p5-p0)+1*(p4-q0)}>>2
[0297] p6 position: {1*(p7-p0)+2*(p6-p0)+1*(p5-q0)} / 4={1*(p7-p0)+2*(p6-p0)+1*(p5-q0)}>>2
[0298] The filtering part 130 may apply the extended strong filter having the fifth filter coefficient obtained by combining the third filter coefficient and the fourth filter coefficient as described below to the pixels to which the filter strength determination part 120 determines to apply the extended strong filter.
[0299] The fifth filtering coefficient
[0300] p0′ = Clip3(p0 - 2*tc, p0 + 2*tc, 1*(p1 - p0) >> 2 + p0 - 7*(p0 - q0) >> 4 + offset0)
[0301] = Clip3(p0 - 2*tc, p0 + 2*tc, (4*p1 + 5*p0 + 7*q0 + offset0) >> 4)
[0302] p1′ = Clip3(p1 - 2*tc, p1 + 2*tc, {1*(p2 - p0) + 2*(p1 - p0)} >> 2 + p0 - 6*(p0 - q0) >> 4 + offset1)
[0303] = Clip3(p1 - 2*tc, p1 + 2*tc, (4*p2 + 8*p1 + 4*p0 - 6*p0 + 6*q0 + offset1) >> 4))
[0304] p2′ = Clip3(p2 - 2*tc, p2 + 2*tc, {1*(p3 - p0) + 2*(p2 - p0) + 1*(p1 - p0)} >> 2 + p0 - 5*(p0 - q0) >> 4 + offset2)
[0305] = Clip3(p2 - 2*tc, p2 + 2*tc, (4*p3 + 8*p2 + 4*p1 - 5*p0 + 5*q0 + offset2) >> 4)
[0306] p3′ = Clip3(p3 - 2*tc, p3 + 2*tc, {1*(p4 - p0) + 2*(p3 - p0) + 1*(p2 - p0)} >> 2 + p0 - 4*(p0 - q0) >> 4 + 0ffset3)
[0307] = Clip3(p3 - 2*tc, p3 + 2*tc, (4*p4 + 8*p3 + 4*p2 - 4*p0 + 4*q0 + offset3) >> 4)
[0308] p4′ = Clip3(p4 - 2*tc, p4 + 2*tc, {1*(p5 - p0) + 2*(p4 - p0) + 1*(p3 - p0)} >> 2 + p0 - 3*(p0 - q0) >> 4 + offset4)
[0309] = Clip3(p4 - 2*tc, p4 + 2*tc, (4*p5 + 8*p4 + 4*p3 - 3*p0 + 3*q0 + offset4) >> 4)
[0310] p5′=Clip3(p5-2*tc, p5+2*tc, 1*(p6-p0)+2*(p5-p0)+1*(p4-p0)}>>2+p0-2*(p0-q0)>>4+offset5)
[0311] =Clip3(p5-2*tc, p5+2*tc, (4*p6+8*p5+4*p4-2*p0+2*q0+offset5)>>4)
[0312] p6′=Clip3(p6-2*tc, p6+2*tc, {1*(p7-p0)+2*(p6-p0)+1*(p5-p0)}>>2+p0-1*(p0-q0)>>4+offset6)
[0313] =Clip3(p6-2*tc, p6+2*tc, (4*p7+8*p6+4*p5-p0+q0+offset6)>>4)
[0314] In addition, a filter having a sixth filter coefficient having 12221 coefficients centered at the target pixel may be applied to the AC component.
[0315] Sixth filter coefficient
[0316] p0 position: {1*(p2-p0)+2*(p1-p0)+2*(p0-p0)+2*(q0-q0)+1*(q1-q0)} / 8
[0317] ={1*(p2-p0)+2*(p1-p0)+1*(q1-q0)}>>3
[0318] p1 position: {1*(p3-p0)+2*(p2-p0)+2*(p1-p0)+2*(p0-p0)+1*(q0-q0)} / 8
[0319] ={1*(p3-p0)+2*(p2-p0)+2*(p1-p0)}>>3
[0320] p2 position: {1*(p4-p0)+2*(p3-p0)+2*(p2-p0)+2*(p1-p0)+1*(p0-p0)} / 8
[0321] ={1*(p4-p0)+2*(p3-p0)+2*(p2-p0)+2*(p1-p0)}>>3
[0322] p3 position: {1*(p5-p0)+2*(p4-p0)+2*(p3-p0)+2*(p2-p0)+1*(p1-p0)} / 8
[0323] ={1*(p5-p0)+2*(p4-p0)+2*(p3-p0)+2*(p2-p0)+1*(p1-p0)}>>3
[0324] p4 position: {1*(p6-p0)+2*(p5-p0)+2*(p4-p0)+2*(p3-p0)+1*(p2-p0)} / 8
[0325] ={1*(p6-p0)+2*(p5-p0)+2*(p4-p0)+2*(p3-p0)+1*(p2-p0)}>>3
[0326] p5 position: {1*(p7-p0)+2*(p6-p0)+2*(p5-p0)+2*(p4-p0)+1*(p3-p0)} / 8
[0327] ={1*(p7-p0)+2*(p6-p0)+2*(p5-p0)+2*(p4-p0)+1*(p3-p0)}>>3
[0328] p6 position: {1*(p7-p0)+2*(p7-p0)+2*(p6-p0)+2*(p5-p0)+1*(p4-p0)} / 8
[0329] ={3*(p7-p0)+2*(p6-p0)+2*(p5-p0)+1*(p4-p0)}>>3
[0330] Note that in the p6 position of the sixth filter coefficient above, the leftmost reference pixel is p8, but since the pixels referenced in the determination of the filter strength determination portion 120 only reach p7, p7 is used instead of p8.
[0331] The filtering part 130 may apply the extended strong filter having the seventh filter coefficient obtained by combining the above-mentioned third filter coefficient and the sixth filter coefficient as described below to the pixels to which the filter strength determination part 120 determines to apply the extended strong filter.
[0332] Seventh filter coefficient
[0333] p0′=Clip3(p0-2*tc, p0+2*tc, {1*(p2-p0)+2*(p1-p0)+1*(q1-q0)}>>3+p0-7*(p0-q0)>>4+offset0)
[0334] =Clip3(p0-2*tc,p0+2*tc,(2*p2+4*p1+3*p0+5*q0+2*q1+offset0)>>4)
[0335] p1′=Clip3(p1-2*tc,p1+2*tc,{1*(p3-p0)+2*(p2-p0)+2*(p1-p0)}>>3+p0-6*(p0-q0)>>4+offset1)
[0336] =Clip3(p1-2*tc,p1+2*tc,(2*p3+4*p2+4*p1+6*q0+offset1)>>4)
[0337] p2′=Clip3(p2-2*tc,p2+2*tc,{1*(p4-p0)+2*(p3-p0)+2*(p2-p0)+2*(p1-p0)}>>3+p0-5*(p0-q0))>>4+offset2)
[0338] =Clip3(p2-2*tc,p2+2*tc,(2*p4+4*p3+4*p2+4*p1-3*p0+5*q0+offset2)>>4)
[0339] p3′=Clip3(p3-2*tc,p3+2*tc,{1*(p5-p0)+2*(p4-p0)+2*(p3-p0)+2*(p2-p0)+1*(p1-p0)}>>3+p0-4*(p0-q0)>>4+offset3)
[0340] =Clip3(p3-2*tc,p3+2*tc,(2*p5+4*p4+4*p3+4*p2+2*p1-4*p0+4*q0+offset3)>>4)
[0341] p4′=Clip3(p4-2*tc,p4+2*tc,{1*(p6-p0)+2*(p5-p0)+2*(p4-p0)+2*(p3-p0)+1*(p2-p0)}>>3+p0-3*(p0-q0)>>4+offset4)
[0342] =Clip3(p4-2*tc,p4+2*tc,(2*p6+4*p5+4*p4+4*p3+2*p2-3*p0+3*q0+offset4)>>4)
[0343] p5′=Clip3(p5-2*tc, p5+2*tc, {1*(p7-p0)+2*(p6-p0)+2*(p5-p0)+2*(p4-p0)+1*(p3-p0)}>>3+p0-2*(p0-q0)>>4+offset5)
[0344] =Clip3(p5-2*tc, p5+2*tc, (2*p7+4*p6+4*p5+4*p4+2*p3-2*p0+2*q0+offset5)>>4)
[0345] p6′=Clip3(p6-2*tc, p6+2*tc, {3*(p7-p0)+2*(p6-p0)+2*(p5-p0)+1*(p4-p0)}>>3+p0-1*(p0-q0)>>4+offset6)
[0346] =Clip3(p6-2*tc, p6+2*tc, (6*p7+4*p6+4*p5+2*p4-p0+q0+offset6)>>4)
[0347] In this case, the filtering section 130 may apply an extended strong filter having an eighth filter coefficient obtained by combining the third filter coefficient and the AC component as described below to the pixel to which the filter strength determination section 120 determines to apply the extended strong filter.
[0348] Eighth filter coefficient
[0349] p0′=Clip3(p0-2*tc, p0+2*tc, 0+p0-7*(p0-q0)>>4+offset0)
[0350] =Clip3(p0-2*tc, p0+2*tc, (9*p0+7*q0+offset0)>>4)
[0351] p1′=Clip3(p1-2*tc, p1+2*tc, p1-p0+p0-6*(p0-q0)>>4+offset1)
[0352] =Clip3(p1-2*tc, p1+2*tc, (16*p1-6*p0+6*q0+offset1)>>4)
[0353] p2′=Clip3(p2-2*tc, p2+2*tc, p2-p0+p0-5*(p0-q0)>>4+offset2)
[0354] =Clip3(p2-2*tc, p2+2*tc, (16*p2-5*p0+5*q0+offset2)>>4)
[0355] p3′=Clip3(p3-2*tc, p3+2*tc, p3-p0+p0-4*(p0-q0)>>4+offset3)
[0356] =Clip3(p3-2*tc, p3+2*tc, (16*p3-4*p0+4*q0+offset3)>>4)
[0357] p4′=Clip3(p4-2*tc, p4+2*tc, p4-p0+p0-3*(p0-q0)>>4+offset4)
[0358] =Clip3(p4-2*tc, p4+2*tc, (16*p4-3*p0+3*q0+offset4)>>4)
[0359] p5′=Clip3(p5-2*tc, p5+2*tc, p5-p0+p0-2*(p0-q0)>>4+offset5)
[0360] =Clip3(p5-2*tc, p5+2*tc, (16*p5-2*p0+2*q0+offset5)>>4)
[0361] p6′=Clip3(p6-2*tc, p6+2*tc, p6-p0+p0-1*(p0-q0)>>4+0ffset6)
[0362] =Clip3(p6-2*tc, p6+2*tc, (16*p6-p0+q0+offset6)>>4)
[0363] [3-2. Processing flow]
[0364] Fig.17 2 is a flowchart showing an example of the processing flow of the deblocking filter 24 according to the present example. Fig.17 The processing of steps S110 to S180 in .
[0365] First, for a single boundary to be processed (hereinafter referred to as a target boundary), the application requirement determination section 110 determines whether the application requirement determination condition of the deblocking filter is satisfied in units of four lines (S110). At this time, in the case where the filter application requirement determination condition is not satisfied, the subsequent processing from step S120 to step S170 is skipped. On the other hand, in the case where the determination condition in units of boundaries is satisfied, the processing proceeds to step S120.
[0366] In step S120, the filter strength determination section 120 determines whether the extended strong filter determination condition is satisfied based on the state of the pixels included in the extended application range in units of four lines. In the case where the extended strong filter determination condition is satisfied ("Yes" in S120), the process proceeds to step S130, and the filtering section 130 applies the extended strong filter.
[0367] On the other hand, in the case where the extended strong filter determination condition is not satisfied (No in S120), the process proceeds to step S140, and the filter strength determination section 120 determines whether the strong filter determination condition is satisfied in units of four lines. In the case where the strong filter determination condition is satisfied (Yes in S140), the process proceeds to step S150, and the filtering section 130 applies the strong filter.
[0368] On the other hand, in the case where the strong filter determination condition is not satisfied (No in S140), the process proceeds to step S160, and the filter strength determination section 120 determines whether the weak filter determination condition is satisfied in units of one line. In the case where the weak filter determination condition is satisfied (Yes in S160), the process proceeds to step S170, and the filtering section 130 applies the weak filter to the line.
[0369] In step S180, if an unprocessed boundary remains in the input image (Yes in step S180), a new target boundary is set, and the process returns to step S110. If there is no unprocessed boundary, the process for the input image (decoded image) ends.
[0370] [3-3. Modification]
[0371] The first example is described above, but the extended strong filter applied in this example is not limited to the above example. For example, an extended strong filter whose application range is extended from 3 pixels located near the block boundary to 5 pixels may also be applied. Fig.18 and Fig.19 The application of this extended strong filter and the determination of the filter coefficients are described.
[0372] Fig.18is an explanatory diagram for explaining the determination process for determining whether to apply the extended strong filter according to the present modification. The application range of the extended strong filter according to the present modification (extended application range) is 5 pixels located near the block boundary, corresponding to Fig.18 p0 to p4 and q0 to q4 in the pixels shown in .
[0373] The filter strength determination section 120 according to the present modification determines whether to apply the extended strong filter according to the extended application range. For example, the filter strength determination section 120 may perform determination processing by referring to pixels included in the extended application range, or may perform determination processing by referring to pixels included in a range wider than the extended application range.
[0374] For example, the filter strength determination section 120 may determine to apply the extended strong filter if the following condition V21 is satisfied.
[0375] Condition V21: True if all of the following conditions A210, B211, B212, and C210 are true
[0376] (A210)|p5-p0|+|q5-q0|<(beta>>3)
[0377] (B211)|p2-2*p1+p0|+|q2-2*q1+q0|<(beta>>2)
[0378] (B212)|p4-2*p3+p2|+|q4-2*q3+q2|<(beta>>2)
[0379] (C210)|p0-q0|<((tc*5+1)>>1)
[0380] Furthermore, as another example of the determination condition, the filter strength determination section 120 may determine to apply the extended strong filter if the following condition V22 is satisfied.
[0381] Determine condition V22: True if all of the following conditions A210, B210, and C210 are true
[0382] (A210)|p5-p0|+|q5-q0|<(beta>>3)
[0383] (B210)|p2-2*p1+p0|+|q2-2*q1+q0|+|p4-2*p3+p2|+|q4-2*q3+q2|<(2*beta>>2)
[0384] (C210)|p0-q0|<((tc*5+1)>>1)
[0385] Furthermore, as another example of the determination condition, the filter strength determination section 120 may determine to apply the extended strong filter if the following condition V13 is satisfied.
[0386] Determine condition V23: True if all of the following conditions A210, B215, and C210 are true
[0387] (A210)|p5-p0|+|q5-q0|<(beta>>3)
[0388] (B215)|p4-2*p2+p0|+|q4-2*q2+q0|<(beta>>2)
[0389] (C210)|p0-q0|<((tc*5+1)>>1)
[0390] In the above conditions V21 to V23, the pixel range referred to by condition A210 corresponds to Fig.18 In addition, in the above condition V21, the pixel ranges referred to by conditions B211 and B212 correspond to Fig.18 In addition, in the above conditions V22 and V23, the pixel ranges referred to by conditions B210 and B215 correspond to Fig.18 Ranges B21 and B22 are shown.
[0391] Note that, among the above-mentioned conditions V21 to V23, condition A210 is a condition for determining the flatness inside a block. In addition, conditions B210, B211, B212, and B215 are conditions for determining the continuity inside a block. In addition, condition C210 uses the pixel values adjacent to the block boundary to determine the amount of change (gap) between blocks.
[0392] Next, an example of the filter coefficient according to the present modification will be described. Fig.19 1 is an explanatory diagram for explaining an example of an extended strong filter applied by the filtering section 130 in the present modification. Fig.19 As shown, it is assumed that there is a gap G causing block artifacts at the block boundary (between p0 and q0) where the extended strong filter is applied, and there is no difference between pixel values in the extended application range (p0 to p4 and q0 to q4) inside the block (the pixel values are flat). In this case, by applying a filter with strong low-frequency characteristics so that the offset G = p0-q0 changes according to the position from the block boundary, it is possible to reduce the Fig.19 Block artifacts shown.
[0393] For example, the filtering part 130 may apply the extended strong filter having the ninth filter coefficient as follows to the pixels to which the filter strength determination part 120 determines that the extended strong filter is to be applied.
[0394] Ninth filter coefficient
[0395] p4′=Clip3(p4-2*tc, p4+2*tc, (4*p5+8*p4+4*p3-2*p0+2*q0+8)>>4)
[0396] p3′=Clip3(p3-2*tc, p3+2*tc, (4*p4+8*p3+4*p2-4*p0+4*q0+8)>>4)
[0397] p2′=Clip3(p2-2*tc, p2+2*tc, (4*p3+8*p2+4*p1-5*p0+5*q0+8)>>4)
[0398] p1′=Clip3(p1-2*tc, p1+2*tc, (4*p2+8*p1+4*p0-6*q0+6*q0+8)>>4)
[0399] p0′=Clip3(p0-2*tc, p0+2*tc, (4*p1+5*p0+7*q0+8)>>4)
[0400] q0′=Clip3(q0-2*tc, q0+2*tc, (7*p0+5*q0+4*q1+8)>>4)
[0401] q1′=Clip3(q1-2*tc, q1+2*tc, (6*p0-6*q0+4*q0+8*q1+4*q2+8)>>4)
[0402] q2′=Clip3(q2-2*tc, q2+2*tc, (5*p0-5*q0+4*q1+8*q2+4*q3+8)>>4)
[0403] q3′=Clip3(q3-2*tc, q3+2*tc, (4*p0-4*q0+4*q2+8*q3+4*q4+8)>>4)
[0404] q4′=Clip3(q4-2*tc, q4+2*tc, (2*p0-2*q0+4*q3+8*q4+4*q5+8)>>4)
[0405] Furthermore, the filtering part 130 may apply the extended strong filter having a tenth filter coefficient as described below to the pixels to which the filter strength determination part 120 determines that the extended strong filter is to be applied.
[0406] Tenth filter coefficient
[0407] p4′=Clip3(p4-2*tc, p4+2*tc, (2*p6+4*p5+4*p4+4*p3+2*p2-2*p0+2*q0+8)>>4)
[0408] p3′=Clip3(p3-2*tc, p3+2*tc, (2*p5+4*p4+4*p3+4*p2+2*p1-4*p0+4*q0+8)>>4)
[0409] p2′=Clip3(p2-2*tc, p2+2*tc, (2*p4+4*p3+4*p2+4*p1+2*p0-5*q0+5*q0+8)>>4)
[0410] p1′=Clip3(p1-2*tc, p1+2*tc, (2*p3+4*p2+4*p1+6*q0+8)>>4)
[0411] p0′=Clip3(p0-2*tc, p0+2*tc, (2*p2+4*p1+3*p0+5*q0+2*q1+8)>>4)
[0412] q0′=Clip3(q0-2*tc, q0+2*tc, (2*p1+5*p0+3*q0+4*q1+2*q2+8)>>4)
[0413] q1′=Clip3(q1-2*tc, q1+2*tc, (6*p0+4*q1+4*q2+2*q3+8)>>4)
[0414] q2′=Clip3(q2-2*tc, q2+2*tc, (5*p0-5*q0+2*q0+4*q1+4*q2+4*q3+2*q4+8)>>4)
[0415] q3′=Clip3(q3-2*tc, q3+2*tc, (4*p0-4*q0+2*q1+4*q2+4*q3+4*q4+2*q5+8)>>4)
[0416] q4′=Clip3(q4-2*tc, q4+2*tc, (2*p0-2*q0+2*q2+4*q3+4*q4+4*q5+2*q6+8)>>4)
[0417] Note that the filter coefficient according to the present modification is not limited to the above-described example, and may be, for example, a filter coefficient obtained by combining a DC component and an AC component as described above.
[0418] Modifications of the present example are described above. As described above, the application range (extended application range) of the extended strong filter according to the present embodiment is not limited as long as the range is wider than 3 pixels near the block boundary, and may be various ranges.
[0419] In addition, the extended strong filter according to the above-mentioned present modification can be used in combination with the extended strong filter applied to 7 pixels near the block boundary. In the case of combining multiple extended strong filters, it can be determined first, for example, whether to apply an extended strong filter with a wider application range, and in the case where the extended strong filter is not applied, it can be determined next whether to apply an extended strong filter with a narrower application range.
[0420] <4. Second Example>
[0421] [4-1. Exemplary configuration of deblocking filter]
[0422] Next, the deblocking filter 24 according to the second example will be described. The deblocking filter 24 according to the present example is capable of applying a deblocking filter (asymmetric deblocking filter) having different filter strengths (e.g., application ranges) on one side and the other side based on the block boundary. Note that, in particular, a deblocking filter in which the tap shape is asymmetric due to the application of an extended strong filter only on one side based on the block boundary is referred to as an asymmetric extended strong filter in some cases.
[0423] The basic configuration of the deblocking filter 24 according to the present example may be similar to that according to Fig.12 . However, in the deblocking filter 24 according to the present example, the functions of the filter strength determination portion 120 and the filtering portion 130 are partially different from those of the first example. Hereinafter, the functions of the filter strength determination portion 120 and the filtering portion 130 according to the present example, which are different from those of the first example, will be described while functions similar to those of the first example are appropriately omitted.
[0424] Similar to the filter strength determination section 120 according to the first example, the filter strength determination section 120 according to the present example makes determinations regarding application of a weak filter, a strong filter, and an extended strong filter whose application range is extended beyond the strong filter.
[0425] However, a determination is made regarding the extended strong filter, and the filter strength determination section 120 according to the present example can determine whether the block boundary satisfies the strong filter determination condition in units of four lines. Subsequently, in the case where it is determined that the block boundary satisfies the strong filter determination condition, it can also be determined in units of four lines whether to apply the extended strong filter on each side based on the block boundary.
[0426] According to such a configuration, for example, even if there is a boundary where a large block and a small block are adjacent, the extended strong filter is more likely to be applied only to the large block. For example, according to the present example, even in the following case, it is difficult to apply a filter whose application range is extended beyond the strong filter using the existing determination method because the large block and the small block are adjacent to each other, such as Figure 8 The same is true in the area H20 shown.
[0427] In addition, even in the case where it is not desirable to apply the extended strong filter described in the first example because the boundary between the object and the background exists only near one side based on the block boundary, it can be determined that the extended strong filter is applied to the nearby pixels on the other side. Therefore, block artifacts can be further reduced.
[0428] In addition, the filter strength determination section 120 according to the present example may determine to apply the strong filter to the block on the side where it is determined that the extended strong filter is not applied (the extended strong filter determination condition is not satisfied).
[0429] In addition, similarly to the filter strength determination section 120 according to the first example, the filter strength determination section 120 according to the present example may determine whether to apply a weak filter to a block boundary determined not to satisfy the strong filter determination condition in units of one line.
[0430] Hereinafter, determination processing related to application of the extended strong filter performed by the filter strength determination section 120 according to the present example will be described. Fig. 20 : is an explanatory diagram for explaining a determination process for determining whether to apply an extended strong filter.
[0431] The application range of the extended strong filter according to the present example is, for example, 7 pixels near the block boundary on one side, corresponding to Fig. 20 p0 to p6 of the pixels shown.
[0432] The filter strength determination section 120 according to the present example determines whether to apply the extended strong filter on each side based on the block boundary according to the application range of the extended strong filter. For example, the filter strength determination section 120 can perform determination processing by referring to pixels in a wider range than the application range of the extended strong filter.
[0433] According to such a configuration, in a case where there is a boundary between an object and a background, etc. in a range to which an extended strong filter is to be applied, for example, determination can be made so that the extended strong filter is less likely to be applied and a more appropriate deblocking filter is more likely to be applied.
[0434] For example, the filter strength determination section 120 may determine to apply the extended strong filter if the following condition V31 is satisfied.
[0435] Condition V31: True if all of the following conditions A310, B311 to B313, C310 are true
[0436] (A310)|p7-p0|<(beta>>4)
[0437] (B311)|p2-2*p1+p0|<(beta>>3)
[0438] (B312)|p4-2*p3+p2|<(beta>>3)
[0439] (B313)|p6-2*p5+p4|<(beta>>3)
[0440] (C3110)|p0- q 0|<((tc*5+1)>>1)
[0441] Furthermore, as another example of the determination condition, the filter strength determination section 120 may determine to apply the extended strong filter if the following condition V32 is satisfied.
[0442] Determine condition V32: True if all of the following conditions A310, B310, and C310 are true
[0443] (A310)|p7-p0|<(beta>>4)
[0444] (B310)|p2-2*p1+p0|+|p4-2*p3+p2|+|p6-2*p5+p4|<(3*beta>>3)
[0445] (C3110)|p0-q0|<((tc*5+1)>>1)
[0446] Furthermore, as another example of the determination condition, the filter strength determination section 120 may determine to apply the extended strong filter if the following condition V33 is satisfied.
[0447] Condition V33: True if all of the following conditions A310, B315, and C310 are true
[0448] (A310)|p7-p0|<(beta>>4)
[0449] (B315)|p6-2*p3+p0|<(beta>>3)
[0450] (C310)|p0-q0|<((tc*5+1)>>1)
[0451] In the above conditions V31 to V33, the pixel range referred to by condition A310 corresponds to Fig. 20 In addition, in the above condition V31, the pixel ranges referred to by conditions B311 to B313 correspond to Fig. 20 In addition, in the above conditions V32 and V33, the pixel range referred to by conditions B310 and B315 corresponds to Fig. 20 Range B31 to B33 shown.
[0452] Note that, among the above-mentioned conditions V31 to V33, condition A310 is a condition for determining the flatness inside the block. In addition, conditions B310, B311 to B313, and B315 are conditions for determining the continuity of the pixel values included in the extended application range inside the block. In addition, condition C310 uses the pixel values adjacent to the block boundary to determine the amount of change (gap) between blocks.
[0453] Herein, the conditions B310, B311 to B313 and B315 for determining the continuity of pixel values are independent conditions in a block on one side of a block boundary. In other words, the filter strength determination section 120 according to the present example independently performs a continuity determination process for determining the continuity of pixel values included in the extended application range. Note that the filter strength determination section 120 may also be configured to independently perform a continuity determination process according to the state of a block boundary.
[0454] In particular, when blocks are divided by QTBT, the lengths of different block boundaries, the intervals between each block boundary, etc. are easily changed due to the size and shape (square, rectangle) of adjacent blocks, for example, and the changes in block boundaries related to the above reasons are referred to as the states of block boundaries in this specification.
[0455] In addition, the filter strength determination section 120 may also determine whether to apply the extended strong filter in units of four lines, and may also determine to apply the extended strong filter if both the first line and the fourth line satisfy one of the above conditions V31 to V33.
[0456] Similar to the first example, the filtering section 130 according to the present example applies a deblocking filter to pixels located near a block boundary of an input image (decoded image) according to the determination results of the application requirement determination section 110 and the filter strength determination section 120 .
[0457] For example, the filtering section 130 according to the present example applies the filter determined by the filter strength determination section 120. However, the filtering section 130 according to the present example can apply the extended strong filter and the strong filter on each side.
[0458] Fig.21 is an explanatory diagram showing one example of an asymmetric extended strong filter applied by the filtering section 130 in the present modification. Fig.21 An example is shown in which the filtering section 130 applies an extended strong filter to the p-side and a strong filter to the q-side. Note that the filter coefficients of the extended strong filter applied to the p-side may be, for example, the filter coefficients described in the first example. In addition, the filter coefficients of the strong filter applied to the q-side may be the filter coefficients of the HEVC strong filter.
[0459] [4-2. Processing flow]
[0460] Fig. 22 2 is a flowchart showing an example of the processing flow of the deblocking filter 24 according to the present example. Fig. 22 The processing of steps S210 to step S260 in .
[0461] First, for a single boundary to be processed (hereinafter referred to as a target boundary), the application requirement determination section 110 determines whether the application requirement determination condition of the deblocking filter is satisfied in units of four lines (S210). At this time, in the case where the filter application requirement determination condition is not satisfied, the subsequent processing from step S220 to step S250 is skipped. On the other hand, in the case where the determination condition in units of boundaries is satisfied, the processing proceeds to step S220.
[0462] In step S220, the filter strength determination section 120 determines whether the strong filter determination condition is satisfied in units of four lines. In the case where the strong filter determination condition is satisfied ("Yes" in S220), the process proceeds to step S230, and determination and filter application are performed on each side based on the block boundary. Note that reference will be made later. Fig.23 The processing in step S230 is described.
[0463] On the other hand, in the case where the strong filter determination condition is not satisfied (No in S220), the process proceeds to step S2460, and the filter strength determination section 120 determines whether the weak filter determination condition is satisfied in units of one line. In the case where the weak filter determination condition is satisfied (Yes in S240), the process proceeds to step S250, and the filtering section 130 applies a weak filter to the line.
[0464] In step S260, if an unprocessed boundary remains in the input image ("Yes" in step S260), a new target boundary is set and the process returns to step S260. If no unprocessed boundary remains, the process for the input image (decoded image) ends.
[0465] Fig.23 It is used to illustrate Fig. 22 Flow chart of the process in step S230. Fig.23 As shown, processing can be performed in parallel on each side (p side, q side) based on the block boundary. In step S231, the filter strength determination part 120 determines whether the extended strong filter determination condition is met based on the state of the pixels included in the extended application range on the p side in units of four lines. In the case where the extended strong filter determination condition is met ("Yes" in S231), the processing proceeds to step S232, and the filtering part 130 applies the extended strong filter to the p side. On the other hand, in the case where the extended strong filter determination condition is not met ("No" in S231), the processing proceeds to step S233, and the filtering part 130 applies the strong filter to the p side.
[0466] Similarly, on the q side, in step S235, the filter strength determination section 120 determines whether the extended strong filter determination condition is satisfied based on the state of the pixels included in the extended application range on the q side in units of four lines. In the case where the extended strong filter determination condition is satisfied ("Yes" in S235), the process proceeds to step S236, and the filtering section 130 applies the extended strong filter to the q side. On the other hand, in the case where the extended strong filter determination condition is not satisfied ("No" in S235), the process proceeds to step S237, and the filtering section 130 applies the strong filter to the q side.
[0467] [4-3. Modification]
[0468] The second example is described above, but the extended strong filter applied in this example is not limited to the above example. For example, in this example as well, an extended strong filter whose application range is extended from 3 pixels located near the block boundary to 5 pixels can also be applied. Fig.24 and Fig.25The application of this extended strong filter and the determination of the filter coefficients are described.
[0469] Fig.24 1 is an explanatory diagram for explaining a determination process for determining whether to apply the extended strong filter according to the present modification to pixels on one side (p side) based on the block boundary. The application range of the extended strong filter according to the present modification is 5 pixels located near the block boundary, corresponding to, for example Fig.24 p0 to p4 in the pixels shown.
[0470] The filter strength determination section 120 according to the present modification may determine whether to apply the extended strong filter according to the application range of the extended strong filter. For example, the filter strength determination section 120 may perform determination processing by referring to pixels over a wider range than the application range of the extended strong filter.
[0471] For example, the filter strength determination section 120 may determine to apply the extended strong filter to the pixel on the p-side if the following condition V61 is satisfied.
[0472] Condition V61: True if all of the following conditions A610, B611, B612, and C610 are true
[0473] (A610)|p5-p0|<(beta>>4)
[0474] (B611)|p2-2*p1+p0|<(beta>>3)
[0475] (B612)|p4-2*p3+p2|<(beta>>3)
[0476] (C610)|p0-q0|<((tc*5+1)>>1)
[0477] Furthermore, as another example of the determination condition, the filter strength determination section 120 may determine to apply the extended strong filter to the pixel on the p-side if the following condition V62 is satisfied.
[0478] Determine condition V62: True if all of the following conditions A610, B610, and C610 are true
[0479] (A610)|p5-p0|<(beta>>4)
[0480] (B610)|p2-2*p1+p0|+|p4-2*p3+p2|<(2*beta>>3)
[0481] (C610)|p0-q0|<((tc*5+1)>>1)
[0482] Furthermore, as another example of the determination condition, the filter strength determination section 120 may determine to apply the extended strong filter to the pixel on the p-side if the following condition V63 is satisfied.
[0483] Determine condition V63: True if all of the following conditions A610, B615, and C610 are true
[0484] (A610)|p5-p0|<(beta>>4)
[0485] (B615)|p4-2*p2+p0|<(beta>>3)
[0486] (C610)|p0-q0|<((tc*5+1)>>1)
[0487] In the above conditions V61 to V63, the pixel range referred to by condition A610 corresponds to Fig.18 In addition, in the above condition V61, the pixel ranges referred to by conditions B611 and B612 correspond to Fig.24 In addition, in the above conditions V62 and V63, the pixel ranges referred to by conditions B610 and B615 correspond to Fig.24 Ranges B61 and B62 are shown.
[0488] Note that, among the above-mentioned conditions V61 to V63, condition A610 is a condition for determining the flatness inside a block. In addition, conditions B610, B611, B612, and B615 are conditions for determining the continuity inside a block. In addition, condition C610 uses the pixel values adjacent to the block boundary to determine the amount of change (gap) between blocks.
[0489] Next, an example of an asymmetric deblocking filter according to the present modification will be described. Fig.25 : is an explanatory diagram for explaining one example of an asymmetric deblocking filter applied by the filtering section 130 in the present modification. Fig.25 An example is shown in which the filtering section 130 applies the extended strong filter according to the present modification to the p-side and the strong filter to the q-side. Note that, for example, the filter coefficient of the extended strong filter according to the present modification applied to the p-side may be the filter coefficient described in the modification of the first example. In addition, the filter coefficient of the strong filter applied to the q-side may be the filter coefficient of the HEVC strong filter.
[0490] <5. Exemplary Hardware Configuration>
[0491] The above series of processing can be performed by hardware or by software. In the case of performing a series of processing by software, the program forming the software is installed on a computer. In this article, the term computer includes a computer built into dedicated hardware, a computer capable of performing various functions by installing various programs thereon (e.g., a general-purpose personal computer), etc.
[0492] Fig.26 : is a block diagram showing an exemplary hardware configuration of a computer that executes the above-described series of processes according to a program.
[0493] exist Fig.26 In the computer 800 shown, a central processing unit (CPU) 801 , a read only memory (ROM) 802 , and a random access memory (RAM) 803 are interconnected via a bus 804 .
[0494] In addition, an input / output interface 810 is also connected to the bus 804. An input unit 811, an output unit 812, a storage unit 813, a communication unit 814, and a drive 815 are connected to the input / output interface 810.
[0495] The input unit 811 includes, for example, a keyboard, a mouse, a microphone, a touch panel, an input terminal, etc. The output unit 812 includes, for example, a display, a speaker, an output terminal, etc. The storage unit 813 includes, for example, a hard disk, a RAM disk, a nonvolatile memory, etc. The communication unit 814 includes, for example, a network interface. The drive 815 drives a removable medium 821, such as a magnetic disk, an optical disk, a magneto-optical disk, or a semiconductor memory.
[0496] In the computer configured as above, the above-described series of processing is performed, for example, by causing the CPU 801 to load the program stored in the storage unit 813 into the RAM 803 via the input / output interface 810 and the bus 804 and execute the program. In addition, data required for the CPU 801 to perform various processing and the like is also stored in the RAM 803 as appropriate.
[0497] For example, the program executed by the computer (CPU 801) can be applied by recording it on a removable medium 821 (as an example of a package medium, etc.). In this case, by inserting the removable medium 821 into the drive 815, the program can be installed in the storage unit 813 via the input / output interface 810.
[0498] In addition, the program can also be provided via a wired or wireless transmission medium such as a local area network, the Internet, or digital satellite broadcasting. In this case, the program can be received by the communication unit 814 and installed in the storage unit 813.
[0499] Furthermore, the program may also be installed in the ROM 802 or the storage unit 813 in advance.
[0500] <6. Application Examples>
[0501] The image encoding device 10 and the image decoding device 60 according to the above-mentioned embodiments can be applied to various electronic devices, such as: a transmitter or a receiver used for satellite broadcasting, cable broadcasting such as cable television, distribution on the Internet, and distribution to terminals via cellular communications; a recording device that records an image on a medium such as an optical disc, a magnetic disk, and a flash memory; or a reproducing device that reproduces an image from the above-mentioned storage medium.
[0502] (1) First application example: TV receiver
[0503] Fig. 27 An example of a schematic configuration of a television device to which the above-described embodiment is applied is shown. A television device 900 has an antenna 901, a tuner 902, a demultiplexer 903, a decoder 904, a video signal processing unit 905, a display unit 906, an audio signal processing unit 907, a speaker 908, an external interface (I / F) 909, a control unit 910, a user interface (I / F) 911, and a bus 912.
[0504] The tuner 902 extracts a signal of a desired channel from a broadcast signal received via the antenna 901 and demodulates the extracted signal. Then, the tuner 902 outputs a coded bit stream obtained from the demodulation to the demultiplexer 903. That is, the tuner 902 functions as a transmission section of the television device 900 that receives a coded stream in which an image is coded.
[0505] The demultiplexer 903 demultiplexes the video stream and the audio stream of the program to be viewed from the encoded stream, and outputs the demultiplexed stream to the decoder 904. In addition, the demultiplexer 903 extracts auxiliary data from auxiliary data such as an electronic program guide (EPG), and supplies the extracted data to the control unit 910. Note that in the case where the encoded bit stream is scrambled, the demultiplexer 903 may perform descrambling.
[0506] The decoder 904 decodes the video stream and the audio stream input from the demultiplexer 903. Then, the decoder 904 outputs the video data resulting from the decoding process to the video signal processing unit 905. Furthermore, the decoder 904 outputs the audio data resulting from the decoding process to the audio signal processing unit 907.
[0507] The video signal processing unit 905 reproduces the video data input from the decoder 904 so that the display unit 906 displays the video. In addition, the video signal processing unit 905 can cause the display unit 906 to display an application screen provided via a network. In addition, the video signal processing unit 905 can perform additional processing on the video data according to the settings, such as noise reduction. In addition, the video signal processing unit 905 can generate an image of a graphical user interface (GUI) (e.g., a menu, a button, or a cursor), and superimpose the generated image on the output image.
[0508] The display unit 906 is driven by a driving signal supplied from the video signal processing unit 905 , and displays a video or an image on a video surface of a display device (eg, a liquid crystal display, a plasma display, an organic electroluminescent display (OLED), etc.).
[0509] The audio signal processing unit 907 performs a reproduction process including D / A conversion and amplification on the audio data input from the decoder 904, and causes the speaker 908 to output sound. In addition, the audio signal processing unit 907 may perform additional processing such as noise removal on the audio data.
[0510] The external interface 909 is an interface for connecting the television device 900 to an external device or a network. For example, a video stream or an audio stream received via the external interface 909 can be decoded by the decoder 904. In other words, the external interface 909 also functions as a transmission section of the television device 900 that receives an encoded stream in which an image is encoded.
[0511] The control unit 910 has a processor such as a CPU and a memory such as a RAM and a ROM. The memory stores a program executed by the CPU, program data, EPG data, and data acquired via a network. The program stored in the memory is read and executed by the CPU at the time of, for example, startup of the television device 900. The CPU controls the operation of the television device 900 by executing the program in response to, for example, an operation signal input from the user interface portion 911.
[0512] The user interface section 911 is connected to the control unit 910. The user interface section 911 includes, for example, buttons and switches for the user to operate the television device 900, a receiving unit for remote control signals, etc. The user interface section 911 generates an operation signal by detecting the user's operation via any of the above-mentioned constituent elements, and outputs the generated operation signal to the control unit 910.
[0513] The bus 912 connects the tuner 902 , the demultiplexer 903 , the decoder 904 , the video signal processing unit 905 , the audio signal processing unit 907 , the external interface 909 , and the control unit 910 to one another.
[0514] In the television device 900 configured in this manner, the decoder 904 may also include the functions of the above-described image decoding device 60. In other words, the decoder 904 may be configured to decode the encoded data according to the method described in each of the above-described embodiments. With this arrangement, the television device 900 becomes capable of applying a more appropriate filter in the deblocking filtering process.
[0515] Furthermore, in the television device 900 configured in this manner, the video signal processing unit 905 may be able to encode the image data supplied from the decoder 904 and cause the resulting encoded data to be output to the outside of the television device 900 through the external interface 909. In addition, the video signal processing unit 905 may also include the functions of the above-described image encoding device 10. In other words, the video signal processing unit 905 may be configured to encode the image data supplied from the decoder 904 according to the method described in each of the above-described embodiments. With this arrangement, the television device 900 becomes able to apply a more appropriate filter in the deblocking filtering process.
[0516] (2) Second application example: mobile phone
[0517] Fig.28 An example of a schematic configuration of a mobile phone to which the above-described embodiment is applied is shown. The mobile phone 920 includes an antenna 921, a communication unit 922, an audio codec 923, a speaker 924, a microphone 925, a camera unit 926, an image processing unit 927, a multiplexing / demultiplexing unit 928, a recording / reproducing unit 929, a display unit 930, a control unit 931, an operation unit 932, and a bus 933.
[0518] The antenna 921 is connected to the communication unit 922. The speaker 924 and the microphone 925 are connected to the audio codec 923. The operation unit 932 is connected to the control unit 931. The bus 933 connects the communication unit 922, the audio codec 923, the camera unit 926, the image processing unit 927, the multiplexing / demultiplexing unit 928, the recording / reproducing unit 929, the display unit 930, and the control unit 931 to each other.
[0519] The mobile phone 920 performs actions such as transmitting / receiving audio signals, transmitting / receiving e-mail or image data, capturing images, and recording data in various operation modes including an audio call mode, a data communication mode, a photographing mode, and a videophone mode.
[0520] In the audio call mode, the analog audio signal generated by the microphone 925 is provided to the audio codec 923. The audio codec 923 then converts the analog audio signal into audio data, performs A / D conversion on the converted audio data, and compresses the data. The audio codec 923 then outputs the compressed audio data to the communication unit 922. The communication unit 922 encodes and modulates the audio data to generate a transmission signal. Then, the communication unit 922 sends the generated transmission signal to a base station (not shown) through the antenna 921. In addition, the communication unit 922 amplifies the radio signal received by the antenna 921, performs frequency conversion, and obtains the received signal. Thereafter, the communication unit 922 demodulates and decodes the received signal to generate audio data, and outputs the generated audio data to the audio codec 923. The audio codec 923 expands the audio data, performs D / A conversion on the data, and generates an analog audio signal. The audio codec 923 then provides the generated audio signal to the speaker 924 so that it outputs audio.
[0521] In the data communication mode, for example, the control unit 931 generates character data constituting an e-mail according to a user operation detected by the operation unit 932. The control unit 931 also displays characters on the display unit 930. In addition, the control unit 931 generates e-mail data according to a transmission instruction obtained from the user through the operation unit 932, and outputs the generated e-mail data to the communication unit 922. The communication unit 922 encodes and modulates the e-mail data to generate a transmission signal. Then, the communication unit 922 transmits the generated transmission signal to a base station (not shown) through the antenna 921. The communication unit 922 also amplifies the radio signal received by the antenna 921, performs frequency conversion, and acquires a received signal. Thereafter, the communication unit 922 demodulates and decodes the received signal, restores the e-mail data, and outputs the restored e-mail data to the control unit 931. The control unit 931 displays the content of the e-mail on the display unit 930, and provides the e-mail data to the storage medium of the recording / reproducing unit 929 so that the data is recorded in the medium.
[0522] The recording / reproducing unit 929 includes any readable and writable storage medium. For example, the storage medium may be a built-in storage medium such as a RAM or a flash memory, or may be an externally mounted storage medium such as a hard disk, a magnetic disk, a magneto-optical disk, an optical disk, a magnetic disk, a USB memory, or a memory card.
[0523] In the shooting mode, for example, the camera unit 926 images a subject to generate image data, and outputs the generated image data to the image processing unit 927. The image processing unit 927 encodes the image data input from the camera unit 926, and provides the encoded stream to the storage medium of the recording / reproducing unit 929 so that the encoded stream is recorded in the medium.
[0524] Furthermore, in the image display mode, the recording / reproducing unit 929 reads out the encoded stream recorded on the storage medium, and outputs it to the image processing unit 927. The image processing unit 927 decodes the encoded stream input from the recording / reproducing unit 929, supplies the image data to the display unit 930, and causes the image to be displayed.
[0525] In the video phone mode, for example, the multiplexing / demultiplexing unit 928 multiplexes the video stream encoded by the image processing unit 927 and the audio stream input from the audio codec 923, and outputs the multiplexed stream to the communication unit 922. The communication unit 922 encodes and modulates the stream to generate a transmission signal. Then, the communication unit 922 transmits the generated transmission signal to a base station (not shown) through the antenna 921. In addition, the communication unit 922 amplifies the radio signal received by the antenna 921, performs frequency conversion, and obtains the received signal. The transmission signal and the received signal may include a coded bit stream. The communication unit 922 thus demodulates and decodes the received signal to restore the stream, and outputs the restored stream to the multiplexing / demultiplexing unit 928. The multiplexing / demultiplexing unit 928 demultiplexes the video stream and the audio stream from the input stream, and outputs the video stream and the audio stream to the image processing unit 927 and the audio codec 923, respectively. The image processing unit 927 decodes the video stream to generate video data. The video data is then supplied to the display unit 930 which displays a series of images. The audio codec 923 expands the audio stream and performs D / A conversion to generate an analog audio signal. The audio codec 923 then supplies the generated audio signal to the speaker 924 to cause it to output audio.
[0526] In the mobile phone 920 configured in this manner, the image processing unit 927 may include, for example, the functions of the above-described image encoding device 10. In other words, the image processing unit 927 may be configured to encode image data according to the method described in each of the above-described embodiments. With this arrangement, the mobile phone 920 becomes able to apply a more appropriate filter in the deblocking filtering process.
[0527] In addition, in the mobile phone 920 configured in this manner, the image processing unit 927 may include, for example, the functions of the above-described image decoding device 60. In other words, the image processing unit 927 may be configured to decode the encoded data according to the method described in each of the above-described embodiments. With this arrangement, the mobile phone 920 becomes able to apply a more appropriate filter in the deblocking filtering process.
[0528] (3) Third application example: recording / reproducing device
[0529] Fig.29 An example of a schematic configuration of a recording / reproducing device to which the above-described embodiment is applied is shown. For example, the recording / reproducing device 940 encodes the audio data and video data of a received broadcast program and records the data in a recording medium. For example, the recording / reproducing device 940 may also encode the audio data and video data acquired from another device and record the data in a recording medium. The recording / reproducing device 940, for example, reproduces the data recorded in the recording medium on a monitor and a speaker in response to a user instruction. In this case, the recording / reproducing device 940 decodes the audio data and the video data.
[0530] The recording / reproducing device 940 includes a tuner 941 , an external interface 942 , an encoder 943 , a hard disk drive (HDD) 944 , a disk drive 945 , a selector 946 , a decoder 947 , an on screen display (OSD) 948 , a control unit 949 , and a user interface 950 .
[0531] The tuner 941 extracts a signal of a desired channel from a broadcast signal received through an antenna (not shown) and demodulates the extracted signal. Then, the tuner 941 outputs a coded bit stream obtained by demodulation to the selector 946. That is, the tuner 941 has a role as a transmission device in the recording / reproducing device 940.
[0532] The external interface 942 is an interface for connecting the recording / reproducing device 940 to an external device or a network. The external interface 942 may be, for example, an IEEE 1394 interface, a network interface, a USB interface, or a flash memory interface. For example, video data and audio data received through the external interface 942 are input to the encoder 943. That is, the external interface 942 has a role as a transmission device in the recording / reproducing device 940.
[0533] In the case where the video data and the audio data input from the external interface 942 are not encoded, the encoder 943 encodes the video data and the audio data, and then outputs the encoded bit stream to the selector 946 .
[0534] The HDD 944 records a coded bit stream (in which content data such as video and audio are compressed), various programs, and other data in an internal hard disk. When reproducing video and audio, the HDD 944 reads these data from the hard disk.
[0535] The disk drive 945 records data in / reads data from a recording medium attached to the disk drive. The recording medium attached to the disk drive 945 may be, for example, a DVD disk (e.g., DVD-Video, DVD-RAM, DVD-R, DVD-RW, DVD+R, or DVD+RW) or a Blu-ray (registered trademark) disk.
[0536] The selector 946 selects an encoded bit stream input from the tuner 941 or the encoder 943 when recording video and audio, and outputs the selected encoded bit stream to the HDD 944 or the disk drive 945. On the other hand, when reproducing video and audio, the selector 946 outputs the encoded bit stream input from the HDD 944 or the disk drive 945 to the decoder 947.
[0537] The decoder 947 decodes the encoded bit stream to generate video data and audio data. Then, the decoder 904 outputs the generated video data to the OSD 948, and outputs the generated audio data to an external speaker.
[0538] The OSD 948 reproduces the video data input from the decoder 947 and displays the video. The OSD 948 may also superimpose an image of a GUI such as a menu, a button, or a cursor on the displayed video.
[0539] The control unit 949 includes a processor such as a CPU and a memory such as a RAM and a ROM. The memory stores a program executed by the CPU and program data. For example, the program stored in the memory is read and executed by the CPU when the recording / reproducing device 940 is started. By executing the program, the CPU controls the operation of the recording / reproducing device 940 according to an operation signal input from, for example, the user interface 950.
[0540] The user interface 950 is connected to the control unit 949. The user interface 950 includes buttons and switches for the user to operate the recording / reproducing device 940, and a receiving section for receiving a remote control signal, for example. The user interface 950 detects the user operation through these components to generate an operation signal, and outputs the generated operation signal to the control unit 949.
[0541] In the recording / reproducing device 940 configured in this manner, the encoder 943 includes the function of the image encoding device 10 according to the above-described embodiment. In addition, the decoder 947 includes the function of the image decoding device 60 according to the above-described embodiment. With this arrangement, the recording / reproducing device 940 becomes able to apply a more appropriate filter in the deblocking filtering process.
[0542] (4) Fourth application example: imaging device
[0543] Fig.30 An example of a schematic configuration of an imaging device to which the above-described embodiment is applied is shown. The imaging device 960 images a subject to generate an image, encodes the image data, and records the data in a recording medium.
[0544] The imaging device 960 includes an optical block 961 , an imaging unit 962 , a signal processing unit 963 , an image processing unit 964 , a display unit 965 , an external interface 966 , a memory 967 , a media drive 968 , an OSD 969 , a control unit 970 , a user interface 971 , and a bus 972 .
[0545] The optical block 961 is connected to the imaging unit 962. The imaging unit 962 is connected to the signal processing unit 963. The display unit 965 is connected to the image processing unit 964. The user interface 971 is connected to the control unit 970. The bus 972 connects the image processing unit 964, the external interface 966, the memory 967, the media drive 968, the OSD 969, and the control unit 970 to each other.
[0546] The optical block 961 includes a focusing lens and an aperture mechanism. The optical block 961 forms an optical image of a subject on an imaging plane of the imaging unit 962. The imaging unit 962 includes an image sensor such as a CCD (charge coupled device) or a CMOS (complementary metal oxide semiconductor), and performs photoelectric conversion to convert the optical image formed on the imaging plane into an image signal as an electrical signal. Then, the imaging unit 962 outputs the image signal to the signal processing unit 963.
[0547] The signal processing unit 963 performs various camera signal processes such as knee correction, gamma correction, and color correction on the image signal input from the imaging unit 962. The signal processing unit 963 outputs the image data on which the camera signal process has been performed to the image processing unit 964.
[0548] The image processing unit 964 encodes the image data input from the signal processing unit 963 and generates encoded data. Then, the image processing unit 964 outputs the generated encoded data to the external interface 966 or the media drive 968. The image processing unit 964 also decodes the encoded data input from the external interface 966 or the media drive 968 to generate image data. Then, the image processing unit 964 outputs the generated image data to the display unit 965. In addition, the image processing unit 964 may output the image data input from the signal processing unit 963 to the display unit 965 so that the display unit 965 displays an image. In addition, the image processing unit 964 may superimpose the display data acquired from the OSD 969 on the image output on the display unit 965.
[0549] The OSD 969 generates an image of a GUI such as a menu, a button, or a cursor, and outputs the generated image to the image processing unit 964 .
[0550] The external interface 966 is configured as a USB input / output terminal, for example. The external interface 966 connects the imaging device 960 to a printer, for example, when printing an image. In addition, a drive is connected to the external interface 966 as needed. For example, a removable medium such as a disk or an optical disk is attached to the drive so that a program read from the removable medium can be installed to the imaging device 960. The external interface 966 can also be configured as a network interface connected to a network such as a LAN or the Internet. That is, the external interface 966 has a role as a transmission device in the imaging device 960.
[0551] The recording medium attached to the media drive 968 may be any removable medium that is readable and writable, such as a magnetic disk, a magneto-optical disk, an optical disk, or a semiconductor memory. In addition, the recording medium may be attached to the media drive 968 in a fixed manner, thereby configuring, for example, a non-removable storage unit such as a built-in hard disk drive or a solid state drive (SSD).
[0552] The control unit 970 includes a processor such as a CPU and a memory such as a RAM and a ROM. The memory stores a program executed by the CPU and program data. The program stored in the memory is read and then executed by the CPU when the imaging device 960 is started. By executing the program, the CPU controls the operation of the imaging device 960 according to an operation signal input from the user interface 971, for example.
[0553] The user interface 971 is connected to the control unit 970. The user interface 971 includes, for example, buttons and switches for the user to operate the imaging device 960. The user interface 971 detects the user operation through these components to generate an operation signal, and outputs the generated operation signal to the control unit 970.
[0554] In the imaging device 960 configured in this manner, the image processing unit 964 includes the functions of the image encoding device 10 and the image decoding device 60 according to the above-described embodiments. With this arrangement, the imaging device 960 becomes able to apply a more appropriate filter in the deblocking filtering process.
[0555] (5) Fifth application example: video set
[0556] In addition, the present technology can also be implemented as any type of configuration installed in any device or a device included in a system, for example, a processor configured as a large-scale integration (LSI) chip, etc., a module using multiple processors, etc., a unit using multiple modules, etc., an apparatus that further adds other functions to the unit (i.e., a configuration of a part of the device), etc. Fig.31 One example of a schematic configuration of a video device to which the present technology is applied is shown.
[0557] Recently, electronic devices have become more multifunctional, and in the development and manufacture of such electronic devices, in the case of implementing a partial configuration thereof for sale, bidding, etc., it has become common not only to perform the implementation as a configuration including a single function, but also to combine multiple configurations (including related functions) and to perform the implementation as a single device including multiple functions.
[0558] Fig.31 The video device 1300 shown in FIG. 1 is such a multifunctional configuration, and is a combination of a device including functions related to image encoding and decoding (one or both), and a device including other functions related to these functions.
[0559] like Fig.31 As shown, the video device 1300 includes a module group such as a video module 1311, an external memory 1312, a power management module 1313 and a front-end module 1314, and devices including related functions such as a connection part 1321, a camera 1322 and a sensor 1323.
[0560] A module is a part that brings together several interrelated partial functions into a unified function. The specific physical configuration may be any configuration, but for example, it is conceivable that a plurality of processors having respective functions, electronic circuit elements such as resistors and capacitors, other devices, etc. are arranged and integrated on a circuit board, etc. It is also conceivable to combine a module with another module, a processor, etc. to create a new module.
[0561] exist Fig.31 In the case of the example in , the video module 1311 is a combination of a configuration including functions related to image processing, and includes an application processor, a video processor, a broadband modem 1333, and an RF module 1334.
[0562] The processor integrates a configuration having a predetermined function into a semiconductor chip as a system on chip (SoC), and may also be specified as, for example, a large-scale integration (LSI) chip, etc. The configuration having the predetermined function may be a logic circuit (hardware configuration), but may also be a CPU, ROM, RAM, etc. and a program executed using the CPU, ROM, RAM, etc. (software configuration), and may also be a combination of the two. For example, a processor may include a logic circuit and a CPU, ROM, RAM, etc., and may be configured to implement a subset of functions using the logic circuit (hardware configuration), while implementing other functions using a program executed on the CPU (software configuration).
[0563] Fig.31 The application processor 1331 in the embodiment is a processor for executing an application program related to image processing. In order to realize a predetermined function, the application program executed in the application processor 1331 can not only perform calculation processing, but also control the configuration inside and outside the video module 1311 (e.g., the video processor 1332) when necessary.
[0564] The video processor 1332 is a processor including functions related to image encoding / decoding (one or both).
[0565] The broadband modem 1333 performs digital modulation, etc. to convert data (digital signals) transmitted by wired or wireless (or both) broadband communications performed through a broadband connection such as the Internet or a public telephone network into analog signals, and also performs demodulation to convert analog signals received through such broadband communications into data (digital signals). The broadband modem 1333 processes any type of information, such as image data processed by the video processor 1332, a stream in which image data is encoded, an application program, and setting data.
[0566] The RF module 1334 is a module that performs frequency conversion, modulation / demodulation, amplification, filtering processing, etc. on a radio frequency (RF) signal transmitted and received through an antenna. For example, the RF module 1334 generates an RF signal by performing frequency conversion, etc. on a baseband signal generated by the broadband modem 1333. In addition, for example, the RF module 1334 generates a baseband signal by performing frequency conversion, etc. on an RF signal received via the front end module 1314.
[0567] Note that Fig.31 As shown by the dotted line 1341 in FIG. 1 , the application processor 1331 and the video processor 1332 may also be unified and configured as a single processor.
[0568] The external memory 1312 is a module provided outside the video module 1311, which includes a storage device used by the video module 1311. The storage device of the external memory 1312 may be implemented by any kind of physical configuration, but since the storage device is generally used to store a large amount of data such as image data in units of frames, it is desirable to implement a storage device with a relatively inexpensive and high-capacity semiconductor memory (e.g., dynamic random access memory (DRAM)).
[0569] The power management module 1313 manages and controls power supply to the video module 1311 (each configuration within the video module 1311).
[0570] The front-end module 1314 is a module that provides front-end functions (circuits on the antenna-side transmit / receive ports) to the RF module 1334. Fig.31 As shown, the front end module 1314 includes, for example, an antenna unit 1351 , a filter 1352 , and an amplification unit 1353 .
[0571] The antenna unit 1351 includes an antenna for transmitting and receiving wireless signals, and its peripheral configuration. The antenna unit 1351 transmits the signal provided from the amplification unit 1353 as a wireless signal, and provides the received wireless signal as an electrical signal (RF signal) to the filter 1352. The filter 1352 performs filtering processing on the RF signal received by the antenna unit 1351, and provides the processed RF signal to the RF module 1334. The amplification unit 1353 amplifies the RF signal provided from the RF module 1334 and provides it to the antenna unit 1351.
[0572] The connection part 1321 is a module including functions related to external connection. The physical configuration of the connection part 1321 may be any configuration. For example, the connection part 1321 includes a configuration having a communication function other than the communication standard supported by the broadband modem 1333, the external input / output terminal, etc.
[0573] For example, the connection portion 1321 may include a module having a communication function that complies with a wireless communication standard (e.g., Bluetooth (registered trademark), IEEE80211 (e.g., Wireless Fidelity (WiFi (registered trademark))), Near Field Communication (NFC), or Infrared Data Association (IrDA)), and an antenna that sends and receives signals that comply with the standard, etc. In addition, for example, the connection portion 1321 may include a module having a communication function that complies with a wired communication function (e.g., Universal Serial Bus (USB) or High-Definition Multimedia Interface (HDMI) (registered trademark)), and a port that complies with the communication function. In addition, for example, the connection portion 1321 may include a function of sending another type of data (signal), such as an analog input / output terminal.
[0574] Note that the connection section 1321 may include a transmission destination device of data (signal). For example, the connection section 1321 may include a drive (not only a drive for removable media but also a hard disk, a solid state drive (SSD), a network attached storage (NAS), etc.) that reads and writes data with respect to a recording medium (such as a magnetic disk, an optical disk, a magneto-optical disk, or a semiconductor memory). In addition, the connection section 1321 may include a device that outputs images and sounds (for example, a monitor and a speaker).
[0575] The camera 1322 is a module having a function of imaging a subject and obtaining image data of the subject. The image data obtained by imaging of the camera 1322 is provided to the video processor 1332, for example, and is encoded.
[0576] The sensor 1323 is a module having any type of sensor function, such as a sound sensor, an ultrasonic sensor, a light sensor, an illumination sensor, an infrared sensor, an image sensor, a rotation sensor, an angle sensor, an angular velocity sensor, a speed sensor, an acceleration sensor, a tilt sensor, a magnetic field sensor, a vibration sensor, or a temperature sensor. For example, data detected by the sensor 1323 is provided to the application processor 1331 and used by an application program or the like.
[0577] The configuration described as a module above may also be implemented as a processor, and conversely, the configuration described as a processor may also be implemented as a module.
[0578] In the video device 1300 having the above configuration, the present technology can be applied to the video processor 1332 described later. Therefore, the video device 1300 can be implemented as a device to which the present technology is applied.
[0579] (Exemplary Configuration of Video Processor)
[0580] Fig.32 The video processor 1332 ( Fig.31 ) is an example of a schematic configuration.
[0581] exist Fig.32 In the example case, the video processor 1332 includes a function of receiving input of a video signal and an audio signal and encoding these signals according to a predetermined method, and a function of decoding the encoded video data and audio data and reproducing and outputting the video signal and the audio signal.
[0582] like Fig.32As shown, the video processor 1332 includes a video input processing unit 1401, a first image magnification / reduction unit 1402, a second image magnification / reduction unit 1403, a video output processing unit 1404, a frame memory 1405, and a memory control unit 1406. In addition, the video processor 1332 includes an encoding / decoding engine 1407, video elementary stream (ES) buffers 1408A and 1408B, and audio ES buffers 1409A and 1409B. In addition, the video processor 1332 includes an audio encoder 1410, an audio decoder 1411, a multiplexer (MUX) 1412, a demultiplexer (DMUX) 1413, and a stream buffer 1414.
[0583] The video input processing unit 1401 obtains the video from the connection unit 1321 ( Fig.31 ) and the like, and converts the video signal into digital image data. The first image enlargement / reduction unit 1402 performs format conversion, image enlargement / reduction processing, etc. on the image data. The second image enlargement / reduction unit 1403 performs the following processing on the image data: enlarging or reducing the image according to the format of the destination to be outputted through the video output processing unit 1404, format conversion and image enlargement / reduction processing similar to the first image enlargement / reduction unit 1402, etc. The video output processing unit 1404 performs format conversion such as conversion into an analog signal on the image data, and outputs the result to the connection section 1321, for example, as a reproduced video signal.
[0584] The frame memory 1405 is a memory of image data shared by the video input processing unit 1401, the first image enlargement / reduction unit 1402, the second image enlargement / reduction unit 1403, the video output processing unit 1404, and the encoding / decoding engine 1407. The frame memory 1405 is implemented as a semiconductor memory such as a DRAM, for example.
[0585] The memory control unit 1406 receives a synchronization signal from the encoding / decoding engine 1407, and controls access according to the access schedule of access to the frame memory 1405 written in the access management table 1406A, and reads and writes to the frame memory 1405. The access management table 1406A is updated by the memory control unit 1406 according to the processing performed by the encoding / decoding engine 1407, the first image enlargement / reduction unit 1402, the second image enlargement / reduction unit 1403, and the like.
[0586] The encoding / decoding engine 1407 performs a process of encoding image data and a process of decoding a video stream, which is data in which image data is encoded. For example, the encoding / decoding engine 1407 encodes the image data read from the frame memory 1405, and continuously writes the encoded data to the video ES buffer 1408A as a video stream. In addition, for example, the encoding / decoding engine 1407 continuously reads and decodes the video stream from the video ES buffer 1408B, and writes the decoded data as image data to the frame memory 1405. During this encoding and decoding, the encoding / decoding engine 1407 uses the frame memory 1405 as a work area. In addition, for example, the encoding / decoding engine 1407 outputs a synchronization signal to the memory control unit 1406 when starting the processing of each macroblock.
[0587] The video ES buffer 1408A buffers the video stream generated by the encoding / decoding engine 1407 and supplies it to the multiplexer (MUX) 1412. The video ES buffer 1408B buffers the video stream supplied from the demultiplexer (DMUX) 1413 and supplies it to the encoding / decoding engine 1407.
[0588] The audio ES buffer 1409A buffers the audio stream generated by the audio encoder 1410, and supplies it to the multiplexer (MUX) 1412. The audio ES buffer 1409B buffers the audio stream supplied from the demultiplexer (DMUX) 1413, and supplies it to the audio decoder 1411.
[0589] The audio encoder 1410, for example, digitally converts an audio signal input from the connection section 1321 or the like, and encodes the audio signal according to a predetermined method such as the MPEG audio method or the Audio Code 3 (AC3) method. The audio encoder 1410 continuously writes an audio stream (data in which the audio signal is encoded) to the audio ES buffer 1409A. The audio decoder 1411, for example, decodes the audio stream provided from the audio ES buffer 1409B, performs conversion to an analog signal, etc., and provides the result to the connection section 1321 or the like, for example, as a reproduced audio signal.
[0590] The multiplexer (MUX) 1412 multiplexes the video stream and the audio stream. The multiplexing method (i.e., the format of the bit stream generated by multiplexing) can be any method. In addition, during the multiplexing, the multiplexer (MUX) 1412 is also capable of adding predetermined header information, etc. to the bit stream. In other words, the multiplexer (MUX) 1412 is capable of converting the format of the stream by multiplexing. For example, by multiplexing the video stream and the audio stream, the multiplexer (MUX) 1412 converts the stream into a transport stream, which is a bit stream in a format for transmission. In addition, for example, by multiplexing the video stream and the audio stream, the multiplexer (MUX) 1412 converts the stream into data (file data) in a file format for recording.
[0591] The demultiplexer (DMUX) 1413 demultiplexes the bit stream in which the video stream and the audio stream are multiplexed according to a method corresponding to the multiplexing of the multiplexer (MUX) 1412. In other words, the demultiplexer (DMUX) 1413 extracts the video stream and the audio stream from the bit stream read out from the stream buffer 1414 (separates the video stream and the audio stream). In other words, the demultiplexer (DMUX) 1413 is capable of converting the format of the stream by demultiplexing (inverse conversion of the conversion of the multiplexer (MUX) 1412). For example, the demultiplexer (DMUX) 1413 is capable of acquiring a transport stream provided from the connection part 1321, the broadband modem 1333, etc., for example, via the stream buffer 1414, and is capable of converting the transport stream into a video stream and an audio stream by demultiplexing. In addition, for example, the demultiplexer (DMUX) 1413 can acquire file data read out from various types of recording media through the connection section 1321 via the stream buffer 1414 , for example, and can convert the file data into a video stream and an audio stream by demultiplexing.
[0592] The stream buffer 1414 buffers a bit stream. For example, the stream buffer 1414 buffers a transport stream supplied from the multiplexer (MUX) 1412, and supplies the transport stream to, for example, the connection section 1321, the broadband modem 1333, etc. at a predetermined timing or based on an external request or the like.
[0593] In addition, for example, the stream buffer 1414 buffers the file data provided from the multiplexer (MUX) 1412, and at a predetermined timing or based on an external request, for example, provides the file data to the connection section 1321, etc., and records the file data on any of various types of recording media.
[0594] Furthermore, the stream buffer 1414 buffers, for example, a transport stream acquired via the connection section 1321 , the broadband modem 1333 , or the like, and supplies the transport stream to the demultiplexer (DMUX) 1413 at a predetermined timing or based on an external request or the like.
[0595] In addition, the stream buffer 1414 buffers file data read out from any of various types of recording media in the connection section 1321 or the like, or supplies the file data to the demultiplexer (DMUX) 1413 at a predetermined timing or based on an external request or the like, for example.
[0596] Next, an example of the operation of the video processor 1332 having such a configuration will be described. For example, a video signal input to the video processor 1332 from the connection section 1321 or the like is converted into digital image data of a predetermined format (e.g., 4:2:2 Y / Cb / Cr format) in the video input processing unit 1401, and is continuously written into the frame memory 1405. The digital image data is read out to the first image enlargement / reduction unit 1402 or the second image enlargement / reduction unit 1403, undergoes format conversion into a predetermined format (e.g., 4:2:0 Y / Cb / Cr, etc.) and enlargement / reduction processing, and is written again into the frame memory 1405. The image data is encoded by the encoding / decoding engine 1407, and is written into the video ES buffer 1408A as a video stream.
[0597] Furthermore, an audio signal input from the connection section 1321 or the like to the video processor 1332 is encoded by the audio encoder 1410 and written to the audio ES buffer 1409A as an audio stream.
[0598] The video stream in the video ES buffer 1408A and the audio stream in the audio ES buffer 1409A are read out and multiplexed by the multiplexer (MUX) 1412, and converted into a transport stream, file data, etc. The transport stream generated by the multiplexer (MUX) 1412 is buffered in the stream buffer 1414, and then output to an external network via, for example, the connection section 1321, the broadband modem 1333, etc. In addition, the file data generated by the multiplexer (MUX) 1412 is buffered in the stream buffer 1414, and then output to, for example, the connection section 1321, etc., and recorded to any of various types of recording media.
[0599] Furthermore, a transport stream input to the video processor 1332 from an external network, for example, via the connection section 1321, the broadband modem 1333, etc., is buffered in the stream buffer 1414 and then demultiplexed by the demultiplexer (DMUX) 1413. In addition, file data read out from any of various types of recording media in, for example, the connection section 1321 and input to the video processor 1332 is buffered in the stream buffer 1414 and then demultiplexed by the demultiplexer (DMUX) 1413. In other words, the transport stream or file data input to the video processor 1332 is separated into a video stream and an audio stream by the demultiplexer (DMUX) 1413.
[0600] The audio stream is provided to the audio decoder 1411 via the audio ES buffer 1409B and decoded, and the audio signal is reproduced. In addition, the video stream is continuously read out and decoded by the encoding / decoding engine 1407 after being written to the video ES buffer 1408B, and is written to the frame memory 1405. The decoded image data undergoes the enlargement / reduction processing of the second image enlargement / reduction unit 1403 and is written to the frame memory 1405. Then, the decoded image data is read out to the video output processing unit 1404, the format is converted into a predetermined format (for example, 4:2:2Y / Cb / Cr format), and is additionally converted into an analog signal, and the video signal is reproduced and output.
[0601] In the case of applying the present technology to the video processor 1332 configured in this manner, it is sufficient to apply the present technology according to the above-described embodiment to the encoding / decoding engine 1407. In other words, for example, the encoding / decoding engine 1407 may include the function of the above-described image encoding device 10 or the function of the image decoding device 60, or both. With this arrangement, the video processor 1332 can obtain the same Figures 1 to 25 Each of the embodiments described has similar effects.
[0602] Note that in the encoding / decoding engine 1407, the present technology (i.e., the function of the image encoding device 10, the function of the image decoding device 60, or both) can be implemented by hardware such as a logic circuit, or can be implemented by software such as an embedded program, or can be implemented by both of the above.
[0603] (Another Exemplary Configuration of a Video Processor)
[0604] Fig.33 13 shows another example of a schematic configuration of a video processor 1332 to which the present technology is applied. Fig.33 In the example case in , the video processor 1332 includes a function of encoding / decoding video data according to a predetermined method.
[0605] More specifically, if Fig.33 As shown, the video processor 1332 includes a control unit 1511, a display interface 1512, a display engine 1513, an image processing engine 1514, and an internal memory 1515. In addition, the video processor 1332 includes a codec engine 1516, a memory interface 1517, a multiplexer / demultiplexer (MUX DMUX) 1518, a network interface 1519, and a video interface 1520.
[0606] The control unit 1511 controls the operation of each processing unit in the video processor 1332 (eg, the display interface 1512 , the display engine 1513 , the image processing engine 1514 , and the codec engine 1516 ).
[0607] like Fig.33 As shown, the control unit 1511 includes, for example, a main CPU 1531, a sub-CPU 1532, and a system controller 1533. The main CPU 1531 executes a program or the like for controlling the operation of each processing unit in the video processor 1332. The main CPU 1531 generates a control signal according to the program or the like, and provides the control signal to each processing unit (in other words, controls the operation of each processing unit). The sub-CPU 1532 performs a supplementary role to the main CPU 1531. For example, the sub-CPU 1532 executes a sub-process, a sub-routine, etc. of the program or the like executed by the main CPU 1531. The system controller 1533 controls the operations of the main CPU 1531 and the sub-CPU 1532, for example, specifies the programs to be executed by the main CPU 1531 and the sub-CPU 1532.
[0608] The display interface 1512 outputs image data to the connection section 1321 or the like under the control of the control unit 1511. For example, the display interface 1512 converts digital image data into an analog signal and outputs the analog signal, or directly outputs the digital image data as a reproduced video signal to a monitor device or the like of the connection section 1321.
[0609] The display engine 1513 performs various conversion processes such as format conversion, size conversion, and color gamut conversion on image data under the control of the control unit 1511 to match the hardware specifications of a monitor device or the like on which an image is to be displayed.
[0610] The image processing engine 1514 performs predetermined image processing, such as filter processing for improving image quality, on image data under the control of the control unit 1511 .
[0611] The internal memory 1515 is a memory provided in the video processor 1332 and shared by the display engine 1513, the image processing engine 1514, and the codec engine 1516. For example, the internal memory 1515 is used to exchange data between the display engine 1513, the image processing engine 1514, or the codec engine 1516. For example, the internal memory 1515 stores data provided from the display engine 1513, the image processing engine 1514, or the codec engine 1516, and provides the data to the display engine 1513, the image processing engine 1514, or the codec engine 1516 as needed (for example, in response to a request). The internal memory 1515 can be implemented by any type of storage device, but since the storage device is generally used to store a small amount of data (for example, image data in units of blocks, parameters, etc.), it is desirable to implement the storage device using a semiconductor memory (for example, a static random access memory (SRAM)) having a relatively small capacity (for example, compared to the external memory 1312) but a fast response speed.
[0612] The codec engine 1516 performs processing related to encoding and decoding of image data. The encoding / decoding method supported by the codec engine 1516 may be any method, and there may be one or more such methods. For example, the codec engine 1516 may be provided with a codec function for a plurality of encoding / decoding methods, and may be configured to encode or decode image data by selecting from a plurality of methods.
[0613] exist Fig.33 In the example shown, the codec engine 1516 includes, for example, MPEG2 video 1541, AVC / H.264 1542, HEVC / H.265 1543, HEVC / H.265 (scalable) 1544, HEVC / H.265 (multi-view) 1545, and MPEG-DASH 1551 as functional blocks for codec-related processing.
[0614] MPEG-2 Video 1541 is a functional block that encodes and decodes image data according to the MPEG-2 method. AVC / H.264 1542 is a functional block that encodes and decodes image data according to the AVC method. HEVC / H.265 1543 is a functional block that encodes and decodes image data according to the HEVC method. HEVC / H.265 (Scalable) 1544 is a functional block that performs scalable encoding and scalable decoding of image data according to the HEVC method. HEVC / H.265 (Multi-view) 1545 is a functional block that performs multi-view encoding and multi-view decoding of image data according to the HEVC method.
[0615] MPEG-DASH 1551 is a functional block for transmitting and receiving image data according to the MPEG Dynamic Adaptive HTTP Streaming (MPEG-DASH) method. MPEG-DASH is a technology for streaming video using the Hypertext Transfer Protocol (HTTP), and one of its features is that appropriate coded data is selected and transmitted in units of segments from multiple sets of coded data with different resolutions prepared in advance. MPEG-DASH 1551 performs generation of streams compliant with the standard, transmission control, etc., and for encoding / decoding of image data, MPEG-2 Video 1541 to HEVC / H.265 (Multi-view) 1545 are used.
[0616] The memory interface 1517 is an interface of the external memory 1312. Data supplied from the image processing engine 1514 and the codec engine 1516 are supplied to the external memory 1312 through the memory interface 1517. In addition, data read out from the external memory 1312 is supplied to the video processor 1332 (the image processing engine 1514 or the codec engine 1516) through the memory interface 1517.
[0617] Multiplexer / demultiplexer (MUX DMUX) 1518 multiplexes and demultiplexes various image-related data, such as bit streams of coded data, image data, video signals, etc. The multiplexing / demultiplexing method can be any method. For example, when multiplexing, multiplexer / demultiplexer (MUX DMUX) 1518 can not only collect multiple data into a single data, but also add predetermined header information, etc. to the data. In addition, when demultiplexing, multiplexer / demultiplexer (MUX DMUX) 1518 can not only divide a single data into multiple data, but also add predetermined header information, etc. to each divided data. In other words, multiplexer / demultiplexer (MUX DMUX) 1518 can convert the data format by multiplexing / demultiplexing. For example, by multiplexing the bit stream, the multiplexer / demultiplexer (MUX DMUX) 1518 can convert the bit stream into a transport stream, which is a bit stream in a format for transmission, or into data (file data) in a file format for recording. Obviously, by demultiplexing, inverse conversion is also possible.
[0618] The network interface 1519 is, for example, an interface for the broadband modem 1333, the connection unit 1321, etc. The video interface 1520 is, for example, an interface for the connection unit 1321, the camera 1322, etc.
[0619] Next, an example of the operation of such a video processor 1332 will be described. For example, when a transmission stream is received from an external network through the connection section 1321, the broadband modem 1333, etc., the transmission stream is provided to the multiplexer / demultiplexer (MUX DMUX) 1518 through the network interface 1519 and is demultiplexed, and is decoded by the codec engine 1516. The image data obtained by the decoding of the codec engine 1516 is subjected to predetermined image processing by the image processing engine 1514, for example, and is subjected to predetermined conversion by the display engine 1513, for example, and is provided to the connection section 1321 through the display interface 1512, and the image is displayed on the monitor. In addition, for example, the image data obtained by the decoding of the codec engine 1516 is re-encoded by the codec engine 1516, multiplexed and converted into file data by the multiplexer / demultiplexer (MUX DMUX) 1518, for example, output to the connection section 1321 through the video interface 1520, etc., and is recorded on any of various types of recording media.
[0620] In addition, for example, file data of encoded data (in which image data is encoded) read out from a recording medium not shown through the connection section 1321 or the like is provided to the multiplexer / demultiplexer (MUX DMUX) 1518 through the video interface 1520 and is demultiplexed, and is decoded by the codec engine 1516. The image data obtained by the decoding of the codec engine 1516 is subjected to predetermined image processing by the image processing engine 1514, subjected to predetermined conversion by the display engine 1513, and is provided to the connection section 1321 or the like through the display interface 1512, and the image is displayed on the monitor. In addition, for example, the image data obtained by the decoding of the codec engine 1516 is re-encoded by the codec engine 1516, multiplexed and converted into a transport stream by the multiplexer / demultiplexer (MUX DMUX) 1518, and is provided to the connection section 1321, the broadband modem 1333, and the like through the network interface 1519, and is sent to another device not shown.
[0621] Note that, for example, exchange of image data and other data between each processing unit within the video processor 1332 is performed by utilizing the internal memory 1515 and the external memory 1312. In addition, the power management module 1313 controls the supply of power to the control unit 1511, for example.
[0622] In the case of applying the present technology to the video processor 1332 configured in this manner, it is sufficient to apply the present technology according to the above-described embodiment to the codec engine 1516. In other words, for example, it is sufficient for the codec engine 1516 to include the function of the above-described image encoding device 10 or the function of the image decoding device 60 or both. With this arrangement, the video processor 1332 can obtain the same Figures 1 to 25 Each of the embodiments described has similar effects.
[0623] Note that in the codec engine 1516, the present technology (ie, the functions of the image encoding device 10) can be implemented by hardware such as a logic circuit, can be implemented by software such as an embedded program, or can be implemented by both.
[0624] Two configurations of the video processor 1332 are shown above as examples, but the configuration of the video processor 1332 may be any configuration, and may be a configuration other than the above two examples. In addition, the video processor 1332 may be configured as a single semiconductor chip, but may also be configured as a plurality of semiconductor chips. For example, a three-dimensional stacked LSI chip stacking a plurality of semiconductors is possible. In addition, a configuration implemented by a plurality of LSI chips is possible.
[0625] (Application examples of the device)
[0626] The video device 1300 may be embedded in any of various types of devices that process image data. For example, the video device 1300 may be embedded in the television device 900 ( Fig. 27 )、Mobile phone 920( Fig.28 )、Recording / reproducing device 940( Fig.29 )、Imaging device 960( Fig.30 ) etc. By embedding the video device 1300, the device can obtain the same Figures 1 to 25 Each of the embodiments described has similar effects.
[0627] Note that as long as the video processor 1332 is included, even a part of each configuration of the above-mentioned video device 1300 can be implemented as a configuration to which the present technology is applied. For example, only the video processor 1332 can be implemented as a video processor to which the present technology is applied. In addition, for example, the processor, video module 1311, etc. shown by the dotted line 1341 as described above can be implemented as a processor, module, etc. to which the present technology is applied. In addition, for example, the video module 1311, the external memory 1312, the power management module 1313, and the front-end module 1314 can also be combined and implemented as a video unit 1361 to which the present technology is applied. Using any of these configurations, the same configuration as the above reference can be obtained. Figures 1 to 25 Each of the embodiments described has similar effects.
[0628] In other words, similar to the case of the video device 1300, any type of configuration can be embedded in various types of devices that process image data as long as the video processor 1332 is included. For example, the video processor 1332, the processor shown by the dotted line 1341, the video module 1311, or the video unit 1361 can be embedded in the television device 900 ( Fig. 27 )、Mobile phone 920( Fig.28 )、Recording / reproducing device 940( Fig.29 )、Imaging device 960( Fig.30 ) etc. In addition, similar to the video device 1300, by embedding any configuration to which the present technology is applied, the device can obtain the same Figures 1 to 25 Each of the embodiments described has similar effects.
[0629] (6) Sixth application example: network system
[0630] In addition, the present technology is also applicable to a network system including a plurality of devices. Fig.34 One example of a schematic configuration of a network system to which the present technology is applied is shown.
[0631] Fig.34 The network system 1600 shown is a system in which devices exchange information related to images (moving images) with each other through a network. The cloud service 1601 of the network system 1600 is a system that provides services related to images (moving images) to terminals (e.g., computers 1611, audio-visual (AV) equipment 1612, mobile information processing terminals 1613, Internet of Things (IoT) devices 1614) that are communicatively connected to the cloud service 1601. For example, the cloud service 1601 provides a service for providing image (moving image) content to terminals, such as so-called video streaming (on-demand or live streaming). As another example, the cloud service 1601 provides a backup service for receiving and storing image (moving image) content from terminals. As another example, the cloud service 1601 provides a service for mediating the exchange of image (moving image) content between terminals.
[0632] The physical configuration of the cloud service 1601 may be any configuration. For example, the cloud service 1601 may include various servers, such as a server for storing and managing motion images, a server for delivering motion images to a terminal, a server for acquiring motion images from a terminal, and a server for managing users (terminals) and payments, and any type of network such as the Internet or a local area network.
[0633] Computer 1611 includes an information processing device, such as a personal computer, a server or a workstation. AV equipment 1612 includes an image processing device, such as a television receiver, a hard disk recorder, a game console or a camera. Mobile information processing terminal 1613 includes a mobile information processing device, such as a notebook personal computer, a tablet terminal, a mobile phone or a smart phone. Internet of Things device 1614 includes any object that performs image-related processing, such as a machine, an electrical appliance, furniture, other items, an IC tag, or a card-shaped device. These terminals all include a communication function and can connect to (establish a session with) cloud service 1601 and exchange information with (i.e., communicate with) cloud service 1601. In addition, each terminal is also capable of communicating with another terminal. Communication between terminals can be performed via cloud service 1601, or can be performed without passing through cloud service 1601.
[0634] When the present technology is applied to the network system 1600 as described above, and image (moving image) data is exchanged between terminals or between the terminal and the cloud service 1601, the image data can be encoded / decoded as described above in each embodiment. In other words, the terminal (from the computer 1611 to the IoT device 1614) and the cloud service 1601 can each include the functions of the above-mentioned image encoding device 10 and the image decoding device 60. With this arrangement, a more appropriate filter can be applied in the deblocking filtering process.
[0635] <6. Conclusion>
[0636] As described above, the embodiments of the present disclosure make it possible to apply a more appropriate filter in the deblocking filtering process.
[0637] The preferred embodiments of the present disclosure have been described above with reference to the accompanying drawings, and the present disclosure is not limited to the above examples. Those skilled in the art may find various changes and modifications within the scope of the appended claims, and it should be understood that they will naturally fall within the technical scope of the present disclosure.
[0638] For example, control information related to the present technology described in the above embodiment may be sent from the encoding side to the decoding side. For example, control information for controlling whether to allow (or deny) the application of the above technology may be sent. In addition, for example, the following control information may be sent: the control information specifies the upper limit, lower limit, or both of the block size for allowing (or denying) the application of the above technology.
[0639] In addition, the aforementioned embodiment describes an example in which the filter strength determination section 120 determines whether to apply the extended strong filter to the block boundary in units of four lines, but the present technology is not limited to such an example. For example, the filter strength determination section 120 may determine whether to apply the extended strong filter to the block boundary in units of one line. According to this configuration, a more appropriate filter is more likely to be applied. In particular, since the extended strong filter is a powerful filter with a wider range of application than existing filters, by accurately making a determination in units of one line, inappropriate application of a powerful extended strong filter can be avoided.
[0640] In addition, the effects described in this specification are merely illustrative or exemplary effects and are not restrictive. That is, together with or in place of the above effects, the technology disclosed herein can achieve other effects that are clear to those skilled in the art based on the description of this specification.
[0641] Additionally, the present technology may also be configured as follows.
[0642] (1) An image processing device comprising:
[0643] A decoding part configured to decode the encoded stream to generate a decoded image;
[0644] a determining section configured to determine whether to apply the extended strong filter applied in an extended application range, in which the application range of the deblocking filter is extended, to pixels near a block boundary of the decoded image generated by the decoding section, according to a state of pixels included in the extended application range, in which the application range of the deblocking filter is extended; and
[0645] A filtering section is configured to apply the extended strong filter to the pixels to which the determination section determines that the extended strong filter is to be applied.
[0646] (2) The image processing device according to (1), wherein
[0647] The determination portion refers to pixels included in the extended application range to determine whether to apply the extended strong filter.
[0648] (3) The image processing device according to (1) or (2), wherein
[0649] The determination section determines whether to apply a strong filter having a narrower application range than the extended strong filter to pixels to which the determination section determines that the extended strong filter is not to be applied.
[0650] (4) The image processing device according to (1) or (2), wherein
[0651] The determination section determines whether to apply the extended strong filter on each side based on the block boundary.
[0652] (5) The image processing device according to (4), wherein
[0653] The determination section determines whether to apply the extended strong filter on each side of the block boundary, in a case where a determination condition regarding a strong filter having a narrower application range than the extended strong filter is satisfied.
[0654] (6) The image processing device according to any one of (1) to (5), wherein
[0655] The filtering section applies the extended strong filter having a filter coefficient obtained by combining a filter coefficient related to a low frequency component and a filter coefficient related to a high frequency component.
[0656] (7) The image processing device according to (6), wherein
[0657] The filter coefficient associated with the low-frequency component is a filter coefficient having a strong low-frequency characteristic.
[0658] (8) The image processing device according to (1), wherein
[0659] The filtering section applies an asymmetric extended strong filter in which the tap shape of the filter is asymmetric.
[0660] (9) The image processing device according to any one of (1) to (8), wherein
[0661] The determination section performs continuity determination processing that determines the continuity of the pixel values included in the extended application range according to a condition that pixels are continuously extended, which is used when determining the continuity of the pixel values included in the extended application range.
[0662] (10) The image processing device according to (8), wherein
[0663] The determination section independently performs continuity determination processing that determines continuity of pixel values included in the extended application range according to a state of the block boundary.
[0664] (11) The image processing device according to any one of (1) to (10), wherein
[0665] The block boundary is a boundary between blocks recursively divided according to a combination of a quadtree and a binary tree.
[0666] (12) An image processing method, comprising:
[0667] decoding the encoded stream to generate a decoded image;
[0668] determining whether to apply the extended strong filter applied in an extended application range in which the application range of the deblocking filter is extended to pixels near a block boundary of the generated decoded image according to states of pixels included in the extended application range; and
[0669] The expanded strong filter is applied to the pixels to which the expanded strong filter is determined to be applied.
[0670] (13) An image processing device comprising:
[0671] a determination section configured to determine whether to apply an extended strong filter applied in an extended application range to pixels near a block boundary of a locally decoded decoded image, according to a state of pixels included in the extended application range in which an application range of a deblocking filter applied to pixels near a block boundary of the decoded image is extended;
[0672] a filtering section configured to apply the extended strong filter to the pixels to which the determination section determines that the extended strong filter is to be applied; and
[0673] An encoding section is configured to encode an image using the decoded image to which the extended strong filter has been applied by the filtering section.
[0674] (14) An image processing method, comprising:
[0675] determining whether to apply an extended strong filter applied in an extended application range to pixels near a block boundary of a locally decoded decoded image according to states of pixels included in the extended application range in which an application range of a deblocking filter applied to pixels near a block boundary of the decoded image is extended;
[0676] applying the extended strong filter to the pixels to which the extended strong filter is determined to be applied; and
[0677] An image is encoded using the decoded image to which the extended strong filter has been applied.
[0678] Reference numerals list
[0679] 10: Image coding device
[0680] 11: Reorder Buffer
[0681] 12: Control section
[0682] 13: Subtraction part
[0683] 14: Orthogonal transformation part
[0684] 15: Quantitative part
[0685] 16: Lossless encoding part
[0686] 17: Accumulation buffer
[0687] 18: Rate control part
[0688] 21: Inverse quantization part
[0689] 22: Inverse orthogonal transformation part
[0690] 23: Addition part
[0691] 24: Deblocking filter
[0692] 25: SAO filter
[0693] 26: Frame memory
[0694] 27: Switch
[0695] 28: Mode setting section
[0696] 30: Intra-frame prediction part
[0697] 40: Inter-frame prediction part
[0698] 60: Image decoding device
[0699] 61: Accumulation buffer
[0700] 62: Lossless decoding part
[0701] 63: Inverse quantization part
[0702] 64: Inverse orthogonal transformation part
[0703] 65: Addition part
[0704] 67: SAO filter
[0705] 68: Reorder Buffer
[0706] 69: D / A conversion section
[0707] 70: Frame memory
[0708] 71: Selector
[0709] 80: Intra-frame prediction part
[0710] 90: Inter-frame prediction part
[0711] 110: Application requirements determination section
[0712] 120: Filter strength determination part
[0713] 130: Filtering part
Claims
1. An image processing device, comprising: A decoding part configured to decode the encoded stream to generate a decoded image; a determining section configured to determine whether to apply the extended strong filter applied in the extended application range to pixels adjacent to a block boundary of the decoded image generated by the decoding section, according to states of pixels included in the extended application range in which the application range of the deblocking filter is extended, wherein the states of the pixels include at least one of flatness of pixel values, continuity of pixel values, and an amount of change in pixel values; and a filtering section configured to apply the extended strong filter to the pixels to which the determination section determines that the extended strong filter is to be applied, wherein the determining portion determines whether to apply the extended strong filter on one side of the block boundary independently of whether to apply the extended strong filter on the other side of the block boundary, wherein, at a block boundary where a large block and a small block are adjacent, the extended strong filter is applied only to the large block, and Wherein, the decoding part, the determining part and the filtering part are all implemented by at least one processor.
2. The image processing device according to claim 1, wherein: The determination portion refers to pixels included in the extended application range to determine whether to apply the extended strong filter.
3. The image processing device according to claim 1, wherein: The determination section determines whether to apply a strong filter having a narrower application range than the extended strong filter to pixels to which the determination section determines that the extended strong filter is not to be applied.
4. The image processing device according to claim 1, wherein: The determination portion determines whether to apply the extended strong filter on the one side of the block boundary independently of whether to apply the extended strong filter on the other side of the block boundary, when a determination condition related to a strong filter having a narrower application range than the extended strong filter is satisfied.
5. The image processing device according to claim 1, wherein: The filtering section applies the extended strong filter having a filter coefficient obtained by combining a filter coefficient related to a low frequency component and a filter coefficient related to a high frequency component.
6. The image processing device according to claim 5, wherein: The filter coefficient associated with the low-frequency component is a filter coefficient having a strong low-frequency characteristic.
7. The image processing device according to claim 1, wherein: The filtering section applies an asymmetric extended strong filter in which the tap shape of the filter is asymmetric.
8. The image processing device according to claim 1, wherein: The determination section performs continuity determination processing that determines the continuity of the pixel values included in the extended application range according to a condition that pixels used in determining the continuity of the pixel values included in the extended application range are continuously extended.
9. The image processing apparatus according to claim 7, wherein: The determination section independently performs continuity determination processing that determines continuity of pixel values included in the extended application range according to a state of the block boundary.
10. The image processing apparatus according to claim 1, wherein: The block boundary is a boundary between blocks that are recursively divided according to a combination of a quadtree structure and a binary tree.
11. The image processing apparatus according to claim 1, wherein: In the case where the boundary between the object and the background of the decoded image is located adjacent to only the one side, the determination section determines not to apply the extended strong filter on the one side of the block boundary but to apply the extended strong filter on the other side of the block boundary.
12. An image processing method, comprising: decoding the encoded stream to generate a decoded image; determining whether to apply the extended strong filter applied in the extended application range to pixels adjacent to a block boundary of the generated decoded image according to states of pixels included in the extended application range, wherein the application range of the deblocking filter is extended in the extended application range, wherein the states of the pixels include at least one of flatness of pixel values, continuity of pixel values, and an amount of change in pixel values; determining whether to apply the extended strong filter on one side of the block boundary independently of whether to apply the extended strong filter on the other side of the block boundary, wherein at a block boundary where a large block and a small block are adjacent, the extended strong filter is applied only to the large block; and The expanded strong filter is applied to the pixels to which the expanded strong filter is determined to be applied.
13. A non-transitory computer-readable medium containing a program, which, when executed by a computer, causes the computer to perform a method, the method comprising: decoding the encoded stream to generate a decoded image; determining whether to apply the extended strong filter applied in the extended application range to pixels adjacent to a block boundary of the generated decoded image according to states of pixels included in the extended application range, wherein the application range of the deblocking filter is extended in the extended application range, wherein the states of the pixels include at least one of flatness of pixel values, continuity of pixel values, and an amount of change in pixel values; determining whether to apply the extended strong filter on one side of the block boundary independently of whether to apply the extended strong filter on the other side of the block boundary, wherein at a block boundary where a large block and a small block are adjacent, the extended strong filter is applied only to the large block; and The expanded strong filter is applied to the pixels to which the expanded strong filter is determined to be applied.
14. An image processing device, comprising: a reordering buffer configured to reorder image data of a series of images included in a video to be encoded; a control section configured to divide the reordered image data into blocks; a subtraction section configured to calculate prediction error data which is a difference between the reordered image data and the predicted image data; an orthogonal transform section configured to transform the prediction error data input from the subtraction section from an image signal in a spatial domain into a transform coefficient in a frequency domain; a quantization section configured to quantize the transform coefficient data input from the orthogonal transform section and change a bit rate of the quantized data based on a rate control signal; a lossless encoding section configured to generate an encoded stream by encoding the quantized data input from the quantization section; an accumulation buffer configured to buffer the encoded stream input from the lossless encoding section and output the buffered encoded stream at a certain rate according to a bandwidth of a transmission channel; a rate control section configured to monitor the amount of free space in the accumulation buffer and generate the rate control signal according to the amount of free space in the accumulation buffer; an inverse quantization section configured to inversely quantize the quantized data using the same quantization parameter as that used by the quantization section to restore the transform coefficient data; an inverse orthogonal transform section configured to reconstruct prediction error data by performing an inverse orthogonal transform process on the transform coefficient data input from the inverse quantization section; an adding section configured to add the reconstructed prediction error data input from the inverse orthogonal transform section to the predicted image data to generate decoded image data; a deblocking filter configured to reduce blocking artifacts by filtering the decoded image data input from the adding part; an SAO filter configured to remove noise by applying an edge offset process or a band offset process to the decoded image data input from the deblocking filter; a frame memory configured to store the unfiltered decoded image data input from the adding part and the filtered decoded image data input from the SAO filter in a storage medium; a switch configured to supply the unfiltered decoded image data to be used for intra prediction output from the frame memory to the intra prediction section, and supply the filtered decoded image data to be used for inter prediction output from the frame memory to the inter prediction section; The intra prediction section is configured to perform an intra prediction process based on the original image data and the unfiltered decoded image data; the inter-frame prediction section configured to perform an inter-frame prediction process based on the original image data and the filtered decoded image data; as well as a mode setting section configured to set a prediction encoding mode for each block, wherein, for a block for which an intra prediction mode is set, the mode setting section outputs the prediction image data generated by the intra prediction section to the subtraction section and the addition section, and outputs information related to the intra prediction to the lossless encoding section, and wherein, for a block for which an inter prediction mode is set, the mode setting section outputs the prediction image data generated by the inter prediction section to the subtraction section and the addition section, and outputs information related to the inter prediction to the lossless encoding section, The deblocking filter comprises an application requirement determination part, a filter strength determination part and a filtering part. The application requirement determination section determines whether a deblocking filter should be applied to a block boundary in the decoded image data, In a case where the application requirement determination section has determined that a deblocking filter should be applied to the block boundary, the filter strength determination section determines to apply one of a weak filter, a strong filter, and an extended strong filter to pixels near the block boundary, and The filtering section applies the determined one of the weak filter, the strong filter, and the extended strong filter to pixels near the block boundary.
15. An image processing device, comprising: an accumulation buffer configured to buffer the received encoded stream; a lossless decoding section configured to decode quantized data in the encoded stream input from the accumulation buffer, and to decode information related to intra-frame prediction and information related to inter-frame prediction inserted in a header region of the encoded stream; an inverse quantization section configured to inversely quantize the quantized data input from the lossless decoding section to reconstruct transform coefficient data; an inverse orthogonal transform section configured to generate prediction error data by performing an inverse orthogonal transform on the transform coefficient data input from the inverse quantization section; an adding section configured to generate decoded image data by adding the prediction error data input from the inverse orthogonal transform section and the prediction image data input from the selector; a deblocking filter configured to reduce blocking artifacts by filtering the decoded image data input from the adding part; an SAO filter configured to remove noise by applying an edge offset process or a band offset process to the filtered decoded image data input from the deblocking filter; a reordering buffer configured to reorder the images input from the SAO filter to generate a series of time-series image data; a D / A conversion section configured to convert the image data in a digital format input from the reordering buffer into an image signal in an analog format; a frame memory configured to store the unfiltered decoded image data input from the adding part and the filtered decoded image data input from the SAO filter in a storage medium; a selector, wherein, in a case where the prediction mode information acquired by the lossless decoding section specifies an intra-prediction mode, the selector outputs the unfiltered decoded image data supplied from the frame memory to the intra-prediction section, and supplies the predicted image data output from the intra-prediction section to the addition section, and wherein, in a case where the prediction mode information specifies an inter-prediction mode, the selector outputs the filtered decoded image data supplied from the frame memory to the inter-prediction section, and supplies the predicted image data output from the inter-prediction section to the addition section; the intra prediction section configured to perform an intra prediction process based on the information related to the intra prediction input from the lossless decoding section and the unfiltered decoded image data from the frame memory to generate predicted image data; and the inter prediction section configured to perform an inter prediction process based on the information related to the inter prediction input from the lossless decoding section and the filtered decoded image data from the frame memory to generate predicted image data, The deblocking filter comprises an application requirement determination part, a filter strength determination part and a filtering part. The application requirement determination section determines whether a deblocking filter should be applied to a block boundary in the decoded image data, In a case where the application requirement determination section has determined that a deblocking filter should be applied to the block boundary, the filter strength determination section determines to apply one of a weak filter, a strong filter, and an extended strong filter to pixels near the block boundary, and The filtering section applies the determined one of the weak filter, the strong filter, and the extended strong filter to pixels near the block boundary.
Citation Information
Patent Citations
Measurement-based and scalable deblock filtering of image data
CN101754015A
Method and apparatus for image enhancement for low bit rate video compression
US20050276505A1
