Smooth orientation and DC intra prediction

By extending the prediction direction vector in the quadrant direction on the Cartesian plane and using the DC value weighted average, the problem of low efficiency in obtaining predicted pixel block values ​​in intra prediction is solved, and the differential coding capability and accuracy of video coding is improved.

CN118540484APending Publication Date: 2024-08-23APPLE INC
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410779080.9
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Priority Date
2020-03-30
Filing Date
2021-02-04
Publication Date
2024-08-23

AI Technical Summary

Technical Problem

Existing image and video coding technologies have problems with low efficiency and insufficient accuracy in obtaining the value of predicted pixel blocks in intra prediction. Especially in multi-hypothesis prediction mode, it is difficult to effectively utilize previously decoded pixel data for differential encoding.

Method used

By extending the prediction direction vector in different quadrant directions on the Cartesian plane, select two decoded pixel areas in opposite directions to obtain the value of the predicted pixel block, and adjust to the nearest available position if necessary, or use the predicted pixel block's The DC value and adjacent pixels are weighted averaged to obtain the pixel value of the predicted pixel block.

Benefits of technology

It improves the accuracy and efficiency of intra prediction, enhances the ability to differentially encode input pixel blocks, enables more efficient use of previously decoded pixel data, and improves the compressed bitstream of video encoding.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118540484A_ABST
    Figure CN118540484A_ABST
Patent Text Reader

Abstract

The invention relates to smooth orientation and DC intra prediction. Disclosed is a technique for obtaining prediction pixel blocks for intra-coded video as well as combined inter-coded video and intra-coded video. In a first aspect, the technique may include obtaining values of pixel positions of a predicted pixel block by obtaining values of pixel positions from pixel values in two regions of previously decoded pixel data when a prediction direction vector assigned to a prediction vector points to either quadrant I or III of the Cartesian plane, and obtaining values of pixel positions from values of pixels in two regions of the previously decoded pixel data. Two regions of the previously decoded pixel data are intercepted by extending a prediction direction vector in two opposite directions through a pixel position. When the prediction direction vector points to a quadrant II of the Cartesian plane, a value of the pixel position is obtained from pixel values in one region intercepted by the prediction direction vector through the pixel position and pixel values from a second region intercepted by a vector orthogonal to the prediction direction vector.
Need to check novelty before this filing date? Find Prior Art

Description

[0001] This application is a divisional application of the invention patent application with application date of February 4, 2021, application number 202110155990.6, and name “Smooth Directional and DC Intra-frame Prediction”.

[0002] CROSS-REFERENCE TO RELATED APPLICATIONS

[0003] This application claims priority to U.S. Provisional Application No. 62 / 970,359, filed on February 5, 2020, and U.S. Application No. 16 / 834,693, filed on March 30, 2020. Background Art

[0004] The present disclosure relates to digital image coding, image coding with intra prediction, and video coding with combined inter prediction and intra prediction.

[0005] Traditional image and video coding schemes typically use techniques such as prediction, calculation of residuals from the prediction, transformation and quantization of the residuals, loop filtering, and entropy coding to produce a compressed bitstream. Prediction can occur in several modes. In the intra-frame coding mode, the input data is differentially encoded relative to the image data from the common frame that has been encoded. The previously encoded data can be decoded and can therefore be used as a prediction source. The inter-frame coding mode differentially encodes the input data relative to the previously encoded data and decodes the image data from other frames. Both intra-frame coding and inter-frame coding are used in many common coding protocols. BRIEF DESCRIPTION OF THE DRAWINGS

[0006] Figure 1 An exemplary simplified block diagram of an image delivery system is shown.

[0007] Figure 2 is a functional block diagram of an encoding terminal according to one aspect of the present disclosure.

[0008] Figure 3 is a functional block diagram of a decoding terminal according to one aspect of the present disclosure.

[0009] Figure 4 An exemplary frame suitable for use with one aspect of the present disclosure is shown.

[0010] Figure 5 An exemplary directional mode for intra prediction suitable for use with one aspect of the present disclosure is shown.

[0011] Figure 6 A method according to one aspect of the present disclosure is shown.

[0012] Figures 7 to 12 The invention is shown to be applicable to various aspects of the present disclosure. Figure 6An exemplary use case of the method.

[0013] Figures 13 to 15 A predicted pixel block derivation technique according to aspects of the present disclosure is shown.

[0014] Fig.16 A method according to another aspect of the present disclosure is shown.

[0015] Fig.17 is an exemplary functional block diagram of an encoding system according to one aspect of the present disclosure.

[0016] Fig.18 is an exemplary functional block diagram of an exemplary decoding system.

[0017] Fig.19 A method according to one aspect of the present disclosure is shown.

[0018] Figure 20 to Figure 21 The invention is shown to be applicable to various aspects of the present disclosure. Fig.19 An exemplary use case of the method. DETAILED DESCRIPTION

[0019] Various aspects of the present disclosure provide improved techniques for obtaining predicted pixel blocks using a spatial (i.e., intra-frame) prediction method, which is used to encode image and / or video data. These techniques may include obtaining the value of the pixel position of the predicted pixel block in the following manner when the prediction direction vector assigned to the prediction vector points to quadrant I or III of the Cartesian plane, obtaining the value of the pixel position from the pixel values ​​in two areas of previously decoded pixel data, which are intercepted by extending the prediction direction vector through the pixel position in two opposite directions. When the prediction direction vector points to quadrant II of the Cartesian plane, the value of the pixel position is obtained from the pixel values ​​in an area intercepted by the prediction direction vector through the pixel position, and from the pixel values ​​of the second area intercepted by a vector orthogonal to the prediction direction vector. The input pixel block can be differentially encoded with reference to the obtained prediction pixel block. In one aspect, the spatial prediction method can be combined with an inter-frame prediction method for a multi-hypothesis prediction mode.

[0020] On the other hand, the pixel values ​​of the predicted pixel block can be obtained from the predicted DC value of the predicted pixel block and at least one source pixel, and the at least one source pixel is selected from the area of ​​the previously decoded pixel data closest to the pixel position. For example, for the position in the pixel block closest to the top edge of the predicted pixel block, the source pixel can be selected as the pixel in the bottom row of the previously decoded pixel data in the common column as the pixel position. And, for the position in the predicted pixel block closest to the left edge of the predicted pixel block, the source pixel can be selected as the pixel in the rightmost column of the previously decoded pixel data in the common row as the pixel position. The input pixel block can be differentially encoded with reference to the obtained predicted pixel block.

[0021] Figure 1 A simplified block diagram of a video delivery system 100 according to one aspect of the present disclosure is shown. The system 100 may include a plurality of terminals 110, 120 interconnected via a network. The terminals 110, 120 may encode video data for transmission to their corresponding terminals via the network. Thus, a first terminal 110 may capture video data locally, encode the video data, and transmit the encoded video data to a corresponding terminal 120 via a channel. The receiving terminal 120 may receive the encoded video data, decode it, and present it locally, such as on a display at the terminal 120. If the terminals are engaged in a two-way exchange of video data, the terminal 120 may capture video data locally, encode the video data, and transmit the encoded video data to the corresponding terminal 110 via another channel. The receiving terminal 110 may receive the encoded video data transmitted from the terminal 120, decode it, and present it locally, such as on its own display. The processes described herein may operate on the encoding of both frame pictures and interlaced field pictures, but for simplicity, this discussion will describe the techniques in the context of whole frames.

[0022] The video encoding system 100 can be used in a variety of applications. In a first application, the terminals 110, 120 can support real-time bidirectional exchange of encoded video to establish a video conferencing session between them. In another application, the terminal 110 can encode pre-generated video (e.g., a television or movie program) and store the encoded video for delivery to one or often to multiple clients (e.g., terminal 120) for downloading. Therefore, the video being encoded can be real-time or pre-generated, and the terminal 110 can act as a media server to deliver the encoded video according to a one-to-one or one-to-many distribution model. For the purpose of this discussion, unless otherwise specified, the type of video and the video publishing scheme are irrelevant.

[0023] exist Figure 1In the embodiment, terminals 110 and 120 are illustrated as personal computers and smart phones, respectively, but the principles of the present disclosure are not limited thereto. Aspects of the present disclosure are also applicable to various types of computers (desktop computers, laptop computers, and tablet computers), computer servers, media players, dedicated video conferencing equipment, and / or dedicated video encoding equipment. Many of the techniques and systems described herein, such as terminals 110 and 120 of video encoding system 100, can operate on still images as well as videos.

[0024] Network 130 represents any number of networks that communicate encoded video data between terminals 110, 120, including, for example, wired communication networks and / or wireless communication networks. Communication networks can exchange data in circuit switching channels and / or packet switching channels. Representative networks include telecommunication networks, local area networks, wide area networks, and / or the Internet. For the purposes of this discussion, unless otherwise specified, the architecture and topology of the network are immaterial to the operation of the present invention.

[0025] Figure 2 2 is a functional block diagram illustrating components of an encoding terminal 200 according to one aspect of the present disclosure. The encoding terminal may include a video source 210, an image processor 220, an encoding system 230, and a transmitter 240. The video source 210 may supply a video to be encoded. The video source 210 may be provided as a camera that captures image data of a local environment, a storage device that stores video from some other source, or a network connection by which source video data is received. The image processor 220 may perform signal conditioning operations on the video to be encoded to prepare the video data for encoding. For example, the preprocessor 220 may change the frame rate, frame resolution, and / or other characteristics of the source video. The image processor 220 may also perform filtering operations on the source video.

[0026] The encoding system 230 may perform encoding operations on the video to reduce its bandwidth. Typically, the encoding system 230 exploits temporal and / or spatial redundancy within the source video. For example, the encoding system 230 may perform motion compensated predictive encoding, in which a video frame or field is parsed into sub-units (referred to as "pixel blocks" for convenience), and each pixel block is differentially encoded relative to a predicted pixel block, which is derived from previously encoded video data. A given pixel block may be encoded according to any of a variety of predictive coding modes, such as:

[0027] Intra-frame coding, where an input pixel block is differentially encoded relative to previously encoded / decoded data of a common frame;

[0028] · uni-predictive inter-frame coding, where the input pixel block is differentially encoded with respect to data from previously encoded / decoded frames; and

[0029] • Multi-hypothesis motion compensated predictive coding, where an input pixel block is predictively encoded via temporal and / or spatial prediction using previously decoded data from two or more sources.

[0030] The predictive coding mode can be used in cooperation with other coding techniques such as transform skip coding, reduced resolution update (RRU) coding, scaling of prediction sources, palette coding, etc.

[0031] The coding system 230 may include a forward encoder 232, a decoder 233, a loop filter 234, a picture buffer 235, and a predictor 236. The encoder 232 may apply a differential coding technique to an input pixel block using the prediction pixel block data provided by the predictor 236. The decoder 233 may invert the differential coding technique applied by the encoder 232 to a subset of the coding frame designated as a reference frame. The loop filter 234 may apply a filtering technique to a reconstructed reference frame generated by the decoder 233. The picture repository 235 may store the reconstructed reference frame for prediction operations. The predictor 236 may select a prediction mode and a reference, and then obtain prediction data for the input pixel block from the reference frame stored in the picture repository. When intra-frame mode coding is selected, the predictor 236 may select a prediction reference from the current frame. When multi-hypothesis coding is selected, the predictor 236 may combine multiple prediction references from the current frame and / or other reference frames.

[0032] The transmitter 240 may transmit the encoded video data to a decoding terminal through a channel.

[0033] Figure 3 3 is a functional block diagram illustrating components of a decoding terminal 300 according to one aspect of the present disclosure. The decoding terminal may include a receiver 310 for receiving encoded video data from a channel, a video decoding system 320 for decoding the encoded data, a post-processor 330, and a video sink 340 for consuming the output video data.

[0034] Receiver 310 may receive a data stream from a network and may route components of the data stream to appropriate units within terminal 300. Figure 2 and Figure 3 The functional units for video encoding and decoding are shown, but the terminals 110, 120 ( Figure 1 ) will typically include an encoding / decoding system for audio data associated with the video, and may include other processing units (not shown). Thus, receiver 310 can parse the encoded video data from other elements of the data stream and route it to video decoder 320.

[0035] The video decoding system 320 may perform a decoding operation that reverses the encoding operation performed by the encoding system 230. The video decoder may include a decoder 322, a loop filter 324, a picture buffer 326, and a predictor 328. The decoder 322 may reverse the differential encoding technique applied by the encoder 232 to a coded frame that works pixel by pixel block. The loop filter 324 may apply filtering techniques to the reconstructed frame data generated by the decoder 322. For example, the loop filter 324 may perform various filtering operations (e.g., deblocking, de-ringing filtering, sample adaptive offset processing, etc.). The filtered frame data may be output from the decoding system. The reference picture buffer 326 may store a reconstructed reference frame for a prediction operation. The predictor 328 may obtain prediction data for an input pixel block from a current frame and / or a reference frame stored by the reference picture buffer based on the prediction reference data provided in the encoded video data.

[0036] The post-processor 330 may perform operations to adjust the reconstructed video data for display. For example, the post-processor 330 may perform various filtering operations (e.g., deblocking, de-ringing filtering, etc.), which may blur visual artifacts in the output video generated by the encoding / decoding process. The post-processor 330 may also change the resolution, frame rate, color space, etc. of the reconstructed video to conform to the requirements of the video sink 340.

[0037] The video sink 340 represents various hardware and / or software components in the decoding terminal that can consume the reconstructed video. The video sink 340 may generally include one or more display devices that can present the reconstructed video. Alternatively, the video sink 340 may be represented by a memory system that stores the reconstructed video for later use. The video sink 340 may also include one or more applications that process the reconstructed video data according to controls provided in the application. In some aspects, the video sink may represent a transmission system that transmits the reconstructed video to a display on another device separate from the decoding terminal; for example, the reconstructed video generated by a notebook computer may be transmitted to a large flat panel display for viewing.

[0038] For encoding terminal and decoding terminal ( Figure 2 and Figure 3 ) shows the operations performed to encode and decode video or still image data in a single direction between terminals, such as from terminal 110 to terminal 120 ( Figure 1 In applications where a bidirectional exchange of video is to be performed between the terminals 110, 120, each terminal 110, 120 will have a connection to the encoding terminal ( Figure 2 ) and each terminal 110, 120 will have a functional unit associated with the decoding terminal ( Figure 3) associated functional units. In fact, in some applications, the terminals 110, 120 may exchange multiple streams of encoded video in a single direction, in which case a single terminal (such as terminal 110) will have an encoding terminal ( Figure 2 Such specific implementations are fully consistent with this discussion.

[0039] Figure 4 It shows that Figure 2 An exemplary frame 400 encoded by the encoding terminal 200 in . Frame 400 is shown as having been parsed into pixel blocks according to a recursive quadtree partitioning process, which is common in coding protocols such as ITU-TH.265 / HEVC, AV1, and VVC (Versatile Video Coding). In this scheme, frame 400 is first parsed into an array of largest coding units (LCU1-LCUN) (referred to as "LCU" or coding tree units "CTU" in some cases). Each LCU can be further parsed into coding units ("CU") based on analysis of the image content within the LCU. In this example, LCU1 is shown as having been parsed into four coding units, each of which occupies 1 / 4 of the LCU1 area. Similarly, a CU can be parsed into smaller CUs based on the image content of the CU. For example, Figure 4 Coding unit CU5 is shown parsed into four other coding units CU6-CU9. The splitting process may continue as needed, splitting the CU into an array of four smaller CUs, until encoding, until the pre-processor 220 determines from the image content that no further splitting is needed, or until a coding unit is generated at the minimum coding unit size supported by the encoding system 230. The forward encoder 230 may perform video encoding on the coding units generated therefrom, treating them as blocks of pixels, as described herein.

[0040] The principles of the present disclosure may also be applied to pixel blocks generated from other segmentation protocols. For example, a coding system 230 operating according to ITU-T H.261, H.262 / MPEG-2, H.263, H.264 / AVC, H.265 / HEVC, VVC, and AV1 coding protocols divides a frame into macroblocks and further divides it into blocks. Macroblocks / CTUs and / or blocks may be encoded into pixel blocks according to the techniques discussed herein.

[0041] Figure 4 4 shows an example of a raster scan encoding operation applied to frame 400. Encoding system 230 typically encodes pixel blocks in the encoding pipeline in raster scan order. Figure 4 For the pixel block shown, the encoding system 230 may first encode LCU1, which involves encoding all coding units CU1-CU4 contained in LCU1. The encoding system 230 may proceed to LCU2 and encode all CUs in LCU2. Figure 4In the example shown, LCU2 contains ten CUs of different sizes. The encoding system proceeds to LCU3, which is shown as not being parsed into smaller CUs. Thereafter, the encoding system 230 proceeds to LCU4 and encodes all CUs contained therein.

[0042] In this example, when the encoding process reaches LCU5, all coding units from LCU1 to LCU4 will have been encoded by the encoding system 230. The encoding system 230 will have generated decoded representations of the coding units from LCU1 to LCU4. Therefore, the input pixel block PBin from LCU5 can be predictively encoded with reference to the decoded image content generated from any of the LCUs (LCU1 to LCU4). The decoded pixel data in the spatial region from LCU1-LCU4 will be available to obtain a predicted pixel block corresponding to PBin.

[0043] Similar operations may be performed at the decoder. Decoding system 320 ( Figure 3 ) can decode the encoded video data in the same raster scan order as the encoded video data generated by the encoding system 230. Therefore, by the time the decoding system 320 decodes the encoded representation of the input pixel block PBin, the decoding system 320 will already have decoded content from the LCUs (LCU1 to LCU4). The decoded pixel data in the spatial region from LCU1-LCU4 will be available to obtain the predicted pixel block corresponding to PBin.

[0044] Figure 5 Represents a candidate angular prediction direction used by HEVC to predict the image content of an intra-coded pixel block. Various aspects of the present disclosure utilize an angular prediction direction selected by an HEVC encoder to obtain the image content of a predicted pixel block during intra-coding. HEVC supports 33 directional modes for intra-frame prediction. Other coding protocols support other directional modes; for example, the AV1 coding protocol supports 56 directional modes.

[0045] Figure 6 A method 600 according to one aspect of the present disclosure is shown. The method 600 can obtain the pixel value of each position x, y in the prediction pixel block, and can be applied to the encoding system discussed in this article ( Figure 2 , Fig.17 ) and decoding system ( Figure 3 , Fig.18 ) can be found in the predictor of the two. Method 600 can begin by determining which quadrant of the Cartesian plane the prediction direction points to (block 610). The prediction direction of the current pixel block can be identified by the prediction mode of the pixel block. For example, see Figure 5Using the upper left corner of the current prediction block as the origin of the Cartesian plane, when the prediction direction points to quadrant I (pointing to the upper right) or quadrant III (pointing to the lower left), two positions are selected by extending the prediction direction through pixels x, y in opposite directions (block 620). For example, see Figure 7 and Figure 8 to select positions A and B for a prediction direction pointing to quadrant I or III. Alternatively, if the prediction direction points to quadrant II (pointing to the upper left), a first position is selected by extending the prediction direction through pixels x, y in only one direction (block 630), and a second position is selected by extending from somewhere along the prediction direction in a direction orthogonal to the prediction direction (block 640). For example, see Figure 11 to Figure 12 to select positions A and C for prediction directions pointing into quadrant II.

[0046] After selecting two positions, if decoded pixel data is not available at either position, the position with unavailable data may be adjusted to the nearest position where decoded pixel data is available (block 650). A prediction P(x, y) for a pixel at position x, y in the prediction pixel block is obtained from the pixel data at or near the two positions (block 660).

[0047] Figures 7 to 12 The application of method 600 in an exemplary use case is shown. For example, Figure 7 A prediction direction vector PDV is shown pointing toward quadrant I (pointing upward and to the right). PDV extends through pixel position x, y to intersect decoded pixel data in two regions designated A and B. In this example, the value of the pixel at position x, y is available from decoded pixel data in regions A and B. Figures 7 to 12 The cross-hatched area in may indicate a region where previously decoded pixel data is available and may be used as a prediction source for the pixel at position x, y.

[0048] Figure 8 Another prediction direction vector PDV is shown pointing to quadrant III (pointing to the lower left). PDV extends through pixel position x, y to intersect decoded pixel data in two regions designated A and B. In this example, the value of the pixel at position x, y is available from decoded pixel data in regions A and B. This example shows that Figure 7 A prediction direction vector PDV extending in the opposite direction (eg, 180° offset) of the prediction PDV.

[0049] Fig. 9A use case is shown where the prediction direction vector PDV points to quadrant II (towards the upper left) and intersects the upper neighboring block. PDV extends through pixel position x, y to intersect the decoded pixel data only in an area designated as A. Here, blocks 630-640 ( Figure 6 ) operation will be triggered. The method 600 will select a second region C of decoded pixel data based on a second prediction vector OPV extending orthogonally to the prediction direction vector PDV extending through pixel position x, y. As discussed, the orthogonal prediction vector OPV may extend through a pixel position (designated B) immediately adjacent to an edge of the prediction pixel block along the prediction direction vector PDV, or, as Fig.10 As shown, the orthogonal prediction vector OPV can be extended through the position x, y. Fig. 9 and Fig.10 In this case, region C may be located in the left adjacent region.

[0050] Fig.11 Another use case is shown, where the prediction direction vector PDV points to quadrant II (towards the upper left) and intersects the left neighboring block. PDV extends through pixel position x, y to intersect the decoded pixel data only in an area designated as A. Here, blocks 630-640 ( Figure 6 ) operation will be triggered. The method 600 will select a second region C of decoded pixel data based on a second prediction vector OPV extending orthogonally to the prediction direction vector PDV extending through pixel position x, y. As discussed, the orthogonal prediction vector OPV may extend through a pixel position (designated B) immediately adjacent to an edge of the prediction pixel block along the prediction direction vector PDV, or, as Fig.12 As shown, the orthogonal prediction vector OPV can be extended through the position x, y. Fig.11 and Fig.12 In this case, region C may be located in the upper adjacent region.

[0051] Once two source regions are selected, the pixel value at position x, y can be obtained by combining the pixel values ​​from the source regions. The obtaining can be done in a number of ways. First, the pixel value can be calculated by a weighted average of the pixel values ​​in the source regions, which has the following form:

[0052] P(x,y)=w*P reg1 +(1-w)*P reg2 ,in

[0053] P reg1 ,P reg2are pixel values ​​extracted from two source regions, and the weights w are set according to the relative distances of the respective source regions from the pixel position x, y. Optionally, the weights w may be set according to other factors, including the spatial variance of the pixel values ​​in the source regions (which may indicate the presence of edges, occlusions, or other image content that suggests that a pixel region should be more or less weighted in the calculation) and / or the temporal variance of the pixel values ​​in the source regions.

[0054] During implementation, areas A, B and / or C ( Figures 7 to 12 ) may represent the pixel content at the edge of an area where decoded pixel data is available. That is, when the source pixel area is located above a prediction pixel block, pixel data may be obtained from a row of pixels immediately above the top edge of the prediction pixel block. Similarly, when the source pixel area is located to the left of the prediction pixel block, pixel data may be obtained from a column of pixels immediately to the left of the leftmost edge of the prediction pixel block. In practice, it does not always happen that a prediction direction vector PDV or an orthogonal prediction vector OPV will intersect a pixel position within a pixel source row or pixel source column; in such cases, pixel values ​​may be interpolated from adjacent pixel values ​​to non-integer positions within the source row or source column.

[0055] Alternatively, the values ​​of the source pixel region may be obtained from a two-dimensional region of image content for which decoded pixel data is available. The method 600 may identify a predetermined number of decoded pixel values ​​along an edge of the decoded pixel data as the source pixel region, at which the prediction direction vector PDV or the orthogonal prediction vector OPV intercepts the decoded pixel data. From the decoded pixel values, source prediction values ​​may be obtained based on an interpolation technique such as bicubic, spline, cubic, image restoration methods, and the like.

[0056] In another aspect of the present disclosure, the prediction of the pixel value at position x, y can be obtained from the predicted DC value of the prediction block and the pixels adjacent to the pixel block. The prediction value can be calculated by a weighted average of the DC prediction value of the prediction pixel block and from reference pixels in the adjacent area, and the prediction value has the following form:

[0057] P Pred (x,y)=w*pred_DC+(1-w)*P Src ,in

[0058] pred_DC represents the DC prediction value of the predicted pixel block determined by the intra-frame coding prediction selection, P Src represents the pixel values ​​from the source region, and w represents the weights applied to these values. This technique can be applied to the encoding system discussed in this article ( Figure 2 , Fig.17 ) and decoding system ( Figure 3 , Fig.18 )The predictor used in both.

[0059] The predicted DC value is generated according to several coding protocols, such as MPEG2, H.263, H.264 / AVC, HEVC, VVC and AV1 coding protocols.The source region may be selected according to the techniques described below.

[0060] exist Fig.13 and Fig.14 In the first aspect shown, the source region may be selected based on the proximity of the pixel to decoded pixel data available from a previous encoding process. For example, the pixel may be located in the top N rows of the prediction pixel block, which places the pixel's position (x, y) within a predetermined distance of the decoded pixel data available along the top edge of the prediction pixel block. In this case, the source pixel data (in Fig.13 Designated as A) in , may be selected as pixels along the bottom-most edge of the decoded pixel data and within a common column.

[0061] In another example, Fig.14 As shown, the pixel can be within M columns of the left edge of the predicted pixel block, which places the pixel's position (x, y) within a predetermined distance of the decoded pixel data available along the left edge of the predicted pixel block. In this case, the source pixel data (in Fig.14 Designated as B) in , may be selected as pixels along the rightmost edge of the decoded pixel data and within a common row.

[0062] exist Fig.13 and Fig.14 In the case of , the weights may be selected based on the distance of the pixel from its source pixel A or B, as the case may be. For example, as the distance of the pixel from its source pixel increases, the weight value increases, which results in the contribution of the DC prediction value to the prediction value P Pred Alternatively, the weights may be predefined based on the pixel position and / or neighboring pixels within the prediction pixel block.

[0063] like Fig.15 As shown, for pixels within a predetermined distance of both the topmost edge and the leftmost edge of the prediction pixel block, various aspects of the present disclosure may Fig.13 and Fig.14 The techniques shown are integrated together. In this case, the predicted pixel value at position x, y can be calculated as:

[0064] P Pred (x,y)=(1-(w1+w2))*pred DC +w1*P Src1 +w2*P Src2 ,in

[0065] P Src1 and P Src2denote the decoded source pixels from the column and row of pixels respectively, and the weights w1 and w2 are set according to the corresponding distances from the source pixel to the pixel being predicted.

[0066] In implementation, designers of video coding systems may set the thresholds N and M to suit their individual application requirements. For pixel positions that fall outside the region represented by the N and / or M thresholds, DC prediction may be applied, or prediction may be made based on an alternative prediction technique, such as described above in Figures 6 to 12 Those described in .

[0067] In implementation, the source pixel data may be filtered prior to being used to obtain the prediction pixel block data. Typically, the intra-frame coding mode used to encode the data from which the source pixel data is decoded may determine the filtering intensity applied to the source pixel data. In one aspect, the activity of the source prediction data may be included as a factor in determining the filtering intensity to be applied to the source pixel data.

[0068] Fig.16 A method 1600 is shown according to one aspect of the present disclosure. The method 1600 can be applied to source pixel data, such as along the topmost edge of a prediction pixel block or the leftmost edge of a prediction pixel block, to estimate the type of filtering to be applied to the source pixel data before obtaining pixel values ​​for the prediction pixel block. The method 1600 can begin by evaluating the activity of pixel data in a source region (box 1610) and classifying the source pixel region as smooth or non-smooth (box 1620). In one aspect, source region smoothness can be determined based on the prediction mode used to encode the source region. For example, if "smooth mode" (or planar mode in HEVC), "smooth V mode", "smooth H mode" (as in AV1), or any smooth directional / DC prediction method disclosed herein ( Figures 6 to 15 ) is used to encode the source region, then it can be determined that the source region is smooth (box 1620), and if other prediction modes are used, it can be determined that the source region is not smooth.

[0069] Based on the smoothness estimate, method 1600 may compare the maximum gradient of the source region to one of two scaled representations of the average gradient within the region (blocks 1630, 1640). When the region is classified as smooth, method 1600 may compare the maximum gradient to a first scaled representation of the average gradient (block 1630). When the maximum gradient is less than the scaled representation of the average gradient, filtering may be applied to the source region at a relatively high strength (block 1650); for example, in a future standard or codec that may be based on the AV1 specification, type 1 filtering may be used. If at block (1630), the maximum gradient exceeds the scaled representation of the average gradient, filtering may be applied to the source region at a relatively modest strength (block 1660); in a future standard or codec that may be based on the AV1 specification, type 0 filtering may be used. In one aspect, type 1 filtering may be stronger than type 0 filtering.

[0070] When the region is not classified as smooth, method 1600 may compare the maximum gradient to the second scaled representation of the average gradient (block 1640). When the maximum gradient is less than the second scaled representation of the average gradient, filtering may be applied to the source region at a relatively modest filtering strength (block 1660); when the maximum gradient exceeds the scaled representation of the average gradient, filtering may be omitted (block 1670).

[0071] In one aspect, the gradient calculation may be performed separately at each pixel position within a row or column of a source pixel region. For each source pixel R(i) in the region, the gradient value G(i) may be calculated as:

[0072] G i =|2*R(i)-R(i-1)-R(i+1)|,

[0073] Wherein, R(i-1) and R(i+1) are pixels adjacent to the pixel R(i) in the source row or source column, depending on the specific situation.

[0074] In one aspect, the tests for determining the type of filtering in blocks 1630 and 1640 may be calculated according to a number of alternative techniques. For example, different filter lengths may be used to determine the gradient. Additionally, the gradient may be measured in a variety of directions, including horizontally, vertically, and diagonally. Furthermore, multiple gradients may be considered at each pixel, as well as multiple threshold tests.

[0075] Fig.1717 is a functional block diagram of an encoding system 1700 according to one aspect of the present disclosure. The system 1700 can encode input pixel blocks provided by a video source. The system 1700 may include a pixel block encoder 1710, a pixel block decoder 1720, a loop filter system 1730, a reference picture buffer 1740, a predictor 1750, a controller 1760, and a syntax unit 1770. The predictor 1750 can generate a predicted pixel block for use by the pixel block encoder 1710 and the pixel block decoder 1720. The predicted pixel block can be obtained from previously decoded image data stored in the reference picture buffer 1740. In the case where the input pixel block is to be encoded by intra-frame coding or combined inter-frame and intra-frame coding, the predicted pixel block can be obtained by the technology disclosed above.

[0076] The pixel block encoder 1710 may encode the input pixel block by predictive coding techniques and present the encoded pixel block data to the syntax unit 1770. The pixel block decoder 1720 may decode the encoded pixel block data, thereby generating decoded pixel block data. The loop filter 1730 may perform one or more filtering operations on the reconstructed frame. The reference picture buffer 1740 may store the filtered frame, which may be used as a prediction source for pixel blocks received later. The syntax unit 1770 may combine data streams from the encoded pixel block data that conform to the management coding protocol.

[0077] The pixel block encoder 1710 may include a subtractor 1712, a transform unit 1714, a quantizer 1716, and an entropy encoder 1718. The pixel block encoder 1710 may accept an input pixel block at the subtractor 1712. The subtractor 1712 may receive a predicted pixel block from the predictor 1750, and thereby generate a pixel residual array representing the difference between the input pixel block and the predicted pixel block. The transform unit 1714 may apply a transform to the sample data output from the subtractor 1712 to convert the data from the pixel domain to the transform coefficient domain. The quantizer 1716 may perform quantization on the transform coefficients output by the transform unit 1714. The quantizer 1716 may be a uniform or non-uniform quantizer. The entropy encoder 1718 may reduce the output bandwidth of the coefficient quantizer by, for example, losslessly encoding the output through a variable length codeword or using a context adaptive binary arithmetic encoder.

[0078] The transform unit 1714 can operate in a variety of transform modes determined by the controller 1760. For example, the transform unit 1714 can apply a discrete cosine transform (DCT), a discrete sine transform (DST), an Hadamard transform, a Haar transform, a Dobesi wavelet transform, etc. In one aspect, the controller 1760 can select a coding mode to be applied by the transform unit 1714, can configure the transform unit 1714 accordingly, and can explicitly or implicitly signal the coding mode in the encoded video data. The selected coding mode can be included in the data stream of the encoded pixel block data and transmitted to a decoder (not shown).

[0079] The quantizer 1716 may operate according to the quantization parameter provided by the controller 1760. In one aspect, the quantization parameter QP may be applied to the transform coefficients as a multi-valued quantization parameter that may vary, for example, at different coefficient positions within a transform domain pixel block. Thus, the quantization parameter QP may be provided as a quantization parameter array. The quantization parameter may be included in a data stream of the encoded pixel block data and transmitted to a decoder (not shown).

[0080] The entropy encoder 1718, as its name implies, may perform entropy encoding of the data output from the quantizer 1716. For example, the entropy encoder 1718 may perform run length encoding, Huffman encoding, Golomb encoding, context adaptive binary arithmetic coding, etc. The entropy encoder 1718 may also entropy encode various encoding parameters, such as a quantization parameter QP, a resampling parameter, a prediction parameter, or a deblocking parameter.

[0081] The pixel block decoder 1720 may reverse the encoding operation of the pixel block encoder 1710 and may operate on blocks having the same shape and size as the pixel block encoder 1710. For example, the pixel block decoder 1720 may include a dequantizer 1722, an inverse transform unit 1724, and an adder 1726. The pixel block decoder 1720 may obtain its input data from the output of the quantizer 1716. Although allowed, the pixel block decoder 1720 does not have to perform entropy decoding of the entropy encoded data because entropy encoding is a lossless event. The dequantizer 1722 may reverse the operation of the quantizer 1716 of the pixel block encoder 1710. The dequantizer 1722 may perform uniform or non-uniform dequantization. Similarly, the inverse transform unit 1724 may reverse the operation of the transform unit 1714. The dequantizer 1722 and the inverse transform unit 1724 may use the same quantization parameters and transform modes as their corresponding components in the pixel block encoder 1710. The quantization operation will likely truncate the data at various points, and therefore the data recovered by the dequantizer 1722 will most likely have encoding errors when compared to the data presented to the quantizer 1716 in the pixel block encoder 1710.

[0082] The adder 1726 may reverse the operation performed by the subtractor 1712. It may receive the same predicted pixel block from the predictor 1750 as used by the subtractor 1712 in generating the residual signal. The adder 1726 may add the predicted pixel block to the reconstructed residual value output by the inverse transform unit 1724 and may output the reconstructed pixel block data.

[0083] The loop filter 1730 may perform various filtering operations on the decoded picture data generated by the pixel block decoder 1720. That is, the loop filter 1730 may reassemble the decoded frame data from the decoded pixel blocks obtained from the pixel block decoder 1720, and apply filtering operations such as deblocking filtering and / or SAO filtering to the reassembled frames. Thus, the loop filter 1730 may perform filtering across pixel block boundaries.

[0084] Reference picture repository 1740 can store filtered frame data for use in subsequent predictions of other pixel blocks. Different types of prediction data can be made available to predictor 1750 for use in different prediction modes. For example, for an input pixel block, an intra-frame predictor obtains a prediction reference from previously decoded data of the same frame in which the input pixel block is located. With respect to the raster scan ordering of pixel blocks, reference picture repository 1740 can store previously decoded pixel blocks above and to the left of the block currently being encoded, so reference picture repository 1740 can store previously decoded reference rows from blocks above the current block, and can store previously decoded reference columns on the left of the current block. Therefore, reference picture repository 1740 can store decoded pixel block data for each frame at the time of encoding. For the same input pixel block, an inter-frame predictor can use a prediction reference from a previously encoded and decoded frame, which is designated as a reference frame. Therefore, reference picture buffer 1740 can store these decoded reference frames.

[0085] The predictor 1750 can perform inter-frame or intra-frame prediction from one or more reference image data sources. The prediction reference is a previously decoded image and may include a reference row above the current pixel block and a reference column to the left of the current pixel block. In the case of a DC prediction mode, the prediction reference may include an average value of the previously decoded pixel block or a DC value from the previously decoded pixel block. In the case of inter-frame prediction, the prediction reference may also include image data from a previously decoded frame.

[0086] In one aspect, the predictor 1750 may operate on blocks of different types than the block encoder 1710 and the block decoder 1720. A prediction picture store (not shown) may collect the multiple prediction blocks output by the predictor 1750 for use by the pixel block encoder 1710 and the decoder 1720. This may enable the encoder 1710 and the decoder 1720 to operate on blocks of different shapes, sizes, or offsets within a frame than those predicted by the predictor 1750.

[0087] Controller 1760 can control the entire operation of encoding system 1700. Controller 1760 can select operating parameters for predictor 1750, including prediction mode and / or prediction direction, reference source for prediction, and weighting for smooth prediction. Other prediction parameters may include λ, quantization offset, mode to be tested, search window, distortion strategy, etc., for inter-frame or intra-frame prediction. Relevant to this discussion, when these operating parameters are selected and need to be present in the encoded bit stream, controller 1760 can provide those parameters to entropy encoder 1718 or syntax unit 1770, which may include data representing those parameters in the data stream of encoded video data output by system 1700. Controller 1760 can also select parameters for pixel block encoder 1710 and decoder 1720, such as quantization parameters, and may include metadata identifying the parameters selected for each portion of the encoded data. In addition, controller 1760 can control other aspects of the operation of loop filter 1730.

[0088] During operation, the controller 1760 may modify operating parameters, such as quantization parameters, prediction parameters, and deblocking parameters, at different granularities (different portion sizes of image data) of the image data, either on a per-pixel block basis or on a larger granularity basis (e.g., per-frame, per-slice, per-LCU, CU, or another region). In one aspect, deblocking filter parameters may be modified on a per-pixel basis within an encoded frame. Similarly, the compressed bitstream output by the syntax unit 1770 may include indications of operating parameters at different levels in a syntax hierarchy, such as a syntax level corresponding to a pixel block, a frame, a slice, an LCU / CTU, a CU, or another portion of the compressed bitstream.

[0089] Fig.18 18 is a functional block diagram of a decoding system 1800 according to one aspect of the present disclosure. The decoding system 1800 may include a syntax unit 1810, a pixel block decoder 1820, a loop filter 1830, a reference picture buffer 1840, a predictor 1850, and a controller 1860. The syntax unit 1810 may receive an encoded video data stream and may parse the encoded data into its component parts. Data representing encoding parameters may be provided to the controller 1860, and data representing the encoded pixel blocks ( Fig.17The pixel block encoder 1710 output data) may be provided to the pixel block decoder 1820. The predictor 1850 may generate a predicted pixel block from the reference data available in the reference picture buffer 1840 according to the encoding parameter data provided in the encoded video data. In the case where the coded pixel block is encoded by intra-frame coding or combined inter-frame and intra-frame coding, the predicted pixel block may be obtained by the techniques disclosed above. The predicted block may be provided to the pixel block decoder 1820.

[0090] The pixel block decoder 1820 may reverse the encoding operation applied by the pixel block encoder 1710 ( Fig.17 The loop filter 1830 may collect the pixel blocks output by the pixel block decoder 1820, assemble them into a reconstructed frame, and filter the reconstructed frame. The loop filter 1730 ( Fig.17 ) is used to perform filtering. The filtered reconstructed frame can be output from the decoding system 1800 for further processing. The filtered reconstructed frame designated for use as reference data can also be stored in the reference picture buffer 1840 for later use by the predictor 1850.

[0091] The pixel block decoder 1820 may include an entropy decoder 1822, a dequantizer 1824, an inverse transform unit 1826, and an adder 1828. The entropy decoder 1822 may perform entropy decoding to reverse the process performed by the entropy encoder 1718 ( Fig.17 ). The dequantizer 1824 may invert the operation of the quantizer 1816 of the pixel block encoder 1710 ( Fig.17 ). Similarly, the inverse transform unit 1826 may invert the operation of the transform unit 1714 ( Fig.17 ). They can use the quantization parameter QP and transform mode provided in the encoded video data stream. Because quantization may truncate data, the pixel blocks restored by the dequantizer 1824 are likely to have coding errors ( Fig.17 ).

[0092] Adder 1828 may reverse the operation performed by subtractor 1710 ( Fig.17 ). It may receive a predicted pixel block from the predictor 1850, which is determined by a prediction reference in the coded video data stream. The adder 1828 may add the predicted pixel block to the reconstructed residual value output by the inverse transform unit 1826, and may output the reconstructed pixel block data.

[0093] The loop filter 1830 may perform various filtering operations on the restored pixel block data identified by the encoded video data. Thus, the operation of the loop filter 1830 simulates the operation of the corresponding loop filter 1730 of the encoder 1700 ( Fig.17 ).

[0094] The reference picture buffer 1840 can store filtered frame data for use in subsequent prediction of other pixel blocks. The reference picture buffer 1840 can store the entire decoded reference frame, and it can store a partially decoded frame as it is decoded for intra-frame prediction, such as described above with respect to the reference picture storage 1740 of the encoder 1700 ( Fig.17 ).

[0095] Controller 1860 can control the entire operation of encoding system 1800. Controller 1860 can set the operating parameters of various elements of encoding system 1800 based on the parameters received in the encoded video data stream. Relevant to this discussion, in addition to other parameters for pixel block decoder 1820 and loop filter 1830, these operating parameters may also include parameters for predictor 1850. On the one hand, information indicating these operating parameters can be extracted from the compressed bitstream by syntax unit 1810. On the other hand, operating parameters such as prediction references can be inferred from explicitly encoded syntax elements such as prediction modes. As discussed, operating parameters can vary at various granularities of image data and can be transmitted and extracted at various levels of compressed bitstream syntax, for example, based on each pixel block, each frame, each slice, each LCU / CU, or based on the picture type of the video portion.

[0096] Fig.19 A method 1900 according to one aspect of the present disclosure is shown. The method 1900 can obtain the pixel value of each position x, y in the prediction pixel block, and can be applied to the encoding system discussed in this article ( Figure 2 , Fig.17 ) and decoding system ( Figure 3 , Fig.18 ) in the predictor. Method 1900 may begin by extending the prediction direction vector through pixel location x, y (block 1910). Method 1900 may determine how many regions of decoded pixel data intersect the extended vector (block 1920), one or two. If the extended vector intersects two regions of decoded pixel data, method 1900 may obtain the pixel value at location x, y from the decoded pixel data in both regions (block 1930).

[0097] If the extended vector intersects only one region of decoded pixel data, the method 1900 may extend a second vector orthogonal to the prediction direction vector (block 1940). The method may obtain a pixel value at position x, y from the first region of decoded pixel data that intersects the prediction vector and from the second direction that intersects the orthogonal prediction vector (block 1950).

[0098] Fig. 20 and Fig.21 Application of method 1900 in an exemplary use case is shown. Fig. 20 A use case is shown where a prediction direction vector PDV extending through pixel location x, y intersects decoded pixel data only in one region, which is designated A. In this example, decoded pixel data is not available in region B, which occurs at the spatial region below the reference pixel block being developed. In this example, blocks 1940-1950 ( Fig.19 ) will be triggered, and the method 1900 will select a second region C of decoded pixel data based on a second vector OPV drawn orthogonally to the first prediction direction vector PDV. In this example, the orthogonal prediction vector OPV is orthogonal to the prediction direction vector and extends through a position B representing a region of pixel data adjacent to the edge of the predicted pixel block being obtained. The pixel value at position x, y will be obtained from the decoded pixel data available in regions A and C.

[0099] Fig.21 Another use case is shown where the prediction direction vector PDV extending through pixel location x, y intersects decoded pixel data only in one region, which is designated as A. Likewise, decoded pixel data is not available in region B, which occurs at the spatial region below the reference pixel block being developed. Therefore, blocks 1940-1950 ( Fig.19 ) operation will be triggered, and the method 1900 will select a second region C of decoded pixel data based on a second vector OPV drawn orthogonally to the first prediction direction vector PDV. In this example, the orthogonal prediction vector OPV is orthogonal to the prediction direction vector and extends through pixel position x, y. The pixel value at position x, y will be obtained from the decoded pixel data available in regions A and C.

[0100] Video encoders and decoders can exchange video over a channel in a variety of ways. They can communicate with each other via communications and / or computer networks, such as Figure 1 In other applications, the video encoder may output the video data to a storage device, such as an electrical, magnetic, and / or optical storage medium, which may be provided to a decoder at some later time. In such applications, the decoder may retrieve the encoded video data from the storage device and decode it.

[0101] The foregoing discussion has described the operation of the embodiments of the present disclosure in the context of terminals containing encoders and / or decoders. These components are often provided as electronic devices. They can be embedded in integrated circuits, such as application-specific integrated circuits, field programmable gate arrays, and / or digital signal processors. Alternatively, they can be embedded in computer programs executed on personal computers, laptops, tablet computers, smart phones, or computer servers. Such computer programs are usually stored in physical storage media such as electronic, magnetic, and / or optical storage devices, where they are read to the processor under the control of the operating system and executed. Similarly, decoders can be implemented in integrated circuits such as application-specific integrated circuits, field programmable gate arrays, and / or digital signal processors, or they can be implemented in computer programs stored and executed by personal computers, laptops, tablet computers, smart phones, or computer servers. Decoders are often packaged in consumer electronic devices, such as game systems, DVD players, portable media players, etc.; and they can also be packaged in consumer software applications, such as video games, browser-based media players, etc. And, of course, these components can be provided as a hybrid system that distributes functions on dedicated hardware components and programmed general-purpose processors as needed.

[0102] Several embodiments of the present disclosure are specifically shown and / or described herein. However, it should be understood that modifications and variations of the present disclosure are covered by the above teachings and are within the scope of the appended claims without departing from the spirit and intended scope of the present disclosure.

Claims

1. An image encoding method, comprising: Obtain a predicted pixel block for predictive coding, where: a first pixel position in the prediction pixel block, wherein the predicted DC value of the prediction pixel block is obtained by using a first technique from a mixture of a predicted DC value of the prediction pixel block and at least one source pixel selected from a region of previously decoded pixel data closest to a first pixel position, wherein the first pixel position is less than a threshold distance from the at least one source pixel, and the predicted DC value of the prediction pixel block is based on a DC value of a previously decoded rectangular block of pixels, and Obtaining a value of a second pixel position in the prediction pixel block that is a distance greater than the threshold from the at least one source pixel using an alternative technique different from the first technique; and The input pixel block is differentially encoded with reference to the prediction pixel block.

2. The method according to claim 1, wherein: When the first pixel position is within a first threshold distance from a top edge of the predicted pixel block, the source pixel is selected as a pixel in a bottommost row of previously decoded pixel data and in a common column with the first pixel position.

3. The method according to claim 1, wherein: When the first pixel position is within a second threshold distance from a left edge of the predicted pixel block, the source pixel is selected as a pixel in a rightmost column of previously decoded pixel data and in a common row with the first pixel position.

4. The method according to claim 1, wherein: When the first pixel position is within a threshold distance from both a top row of the predicted pixel block and a leftmost column of the predicted pixel block, the value of the first pixel position is obtained from a first source pixel in a bottommost row of previously decoded pixel data and in a column common to the first pixel position, a second source pixel in a rightmost column of previously decoded pixel data and in a row common to the first pixel position, and the predicted DC value of the predicted pixel block.

5. The method of claim 1, wherein the relative contributions of the predicted DC value and the source pixel are weighted according to the distance between the first pixel position and the position of the source pixel.

6. An image decoding method, comprising: Obtain a predicted pixel block for predictive coding, where: a first pixel position in the prediction pixel block, wherein the predicted DC value of the prediction pixel block is obtained by using a first technique from a mixture of a predicted DC value of the prediction pixel block and at least one source pixel selected from a region of previously decoded pixel data closest to a first pixel position, wherein the first pixel position is less than a threshold distance from the at least one source pixel, and the predicted DC value of the prediction pixel block is based on a DC value of a previously decoded rectangular block of pixels, and Obtaining a value of a second pixel position in the prediction pixel block that is a distance greater than the threshold from the at least one source pixel using an alternative technique different from the first technique; and The encoded pixel block is predictively decoded with reference to the predicted pixel block.

7. The method according to claim 6, wherein: When the first pixel position is within a first threshold distance from a top edge of the predicted pixel block, the source pixel is selected as a pixel in a bottommost row of previously decoded pixel data and in a common column with the first pixel position.

8. The method according to claim 6, wherein: When the first pixel position is within a second threshold distance from a left edge of the predicted pixel block, the source pixel is selected as a pixel in a rightmost column of previously decoded pixel data and in a common row with the first pixel position.

9. The method according to claim 6, wherein: When the first pixel position is within a threshold distance from both a top row of the prediction pixel block and a leftmost column of the prediction pixel block, the value of the first pixel position is obtained from a first source pixel in a bottommost row of previously decoded pixel data and in a column common to the first pixel position and a second source pixel in a rightmost column of previously decoded pixel data and in a row common to the first pixel position.

10. The method of claim 9, wherein the relative contributions of the predicted DC value and the source pixel are weighted according to the distance between the first pixel position and the position of the source pixel.

11. A non-transitory computer-readable medium storing program instructions, wherein when the program instructions are executed by a processing device, the processing device performs an image decoding method, the method comprising: Obtain a predicted pixel block for predictive coding, where: a first pixel position in the prediction pixel block, wherein the predicted DC value of the prediction pixel block is obtained by using a first technique from a mixture of a predicted DC value of the prediction pixel block and at least one source pixel selected from a region of previously decoded pixel data closest to a first pixel position, wherein the first pixel position is less than a threshold distance from the at least one source pixel, and the predicted DC value of the prediction pixel block is based on a DC value of a previously decoded rectangular block of pixels, and Obtaining a value of a second pixel position in the prediction pixel block that is a distance greater than the threshold from the at least one source pixel using an alternative technique different from the first technique; and The encoded pixel block is predictively decoded with reference to the predicted pixel block.

12. The non-transitory computer readable medium of claim 11, wherein: When the first pixel position is within a first threshold distance from a top edge of the predicted pixel block, the source pixel is selected as a pixel in a bottommost row of previously decoded pixel data and in a common column with the first pixel position.

13. The non-transitory computer readable medium of claim 11, wherein: When the first pixel position is within a second threshold distance from a left edge of the predicted pixel block, the source pixel is selected as a pixel in a rightmost column of previously decoded pixel data and in a common row with the first pixel position.

14. The non-transitory computer readable medium of claim 11, wherein: When the first pixel position is within a threshold distance from both a top row of the prediction pixel block and a leftmost column of the prediction pixel block, the value of the first pixel position is obtained from a first source pixel in a bottommost row of previously decoded pixel data and in a column common to the first pixel position and a second source pixel in a rightmost column of previously decoded pixel data and in a row common to the first pixel position.

15. The non-transitory computer readable medium of claim 11, wherein the predicted DC value and the relative contribution of the source pixel are weighted according to a distance between the first pixel location and the location of the source pixel.

16. A decoding system comprising: a video decoder having an input for an encoded pixel block, an input for a predicted pixel block, and an output for a decoded pixel block, a reference picture buffer for storing decoded data assembled from the decoded pixel blocks, and A predictor, the predictor generating a predicted pixel block for a pixel block to be encoded by intra-frame encoding, the predicted pixel block comprising: a first pixel position in the prediction pixel block, wherein the predicted DC value of the prediction pixel block is obtained by using a first technique from a mixture of a predicted DC value of the prediction pixel block and at least one source pixel selected from a region of previously decoded pixel data closest to a first pixel position, wherein the first pixel position is less than a threshold distance from the at least one source pixel, and the predicted DC value of the prediction pixel block is based on a DC value of a previously decoded rectangular block of pixels, and Using an alternative technique different from the first technique, a value of a second pixel position in the prediction pixel block that is at a distance greater than the threshold from the at least one source pixel is obtained.

17. The method according to claim 16, wherein: When the first pixel position is within a first threshold distance from a top edge of the predicted pixel block, the source pixel is selected as a pixel in a bottommost row of previously decoded pixel data and in a common column with the first pixel position.

18. The method according to claim 16, wherein: When the first pixel position is within a second threshold distance from a left edge of the predicted pixel block, the source pixel is selected as a pixel in a rightmost column of previously decoded pixel data and in a row common to the pixel position.

19. The method according to claim 16, wherein: When the first pixel position is within a threshold distance from both a top row of the prediction pixel block and a leftmost column of the prediction pixel block, the value of the first pixel position is obtained from a first source pixel in a bottommost row of previously decoded pixel data and in a column common with the first pixel position and a second source pixel in a rightmost column of previously decoded pixel data and in a row common with the pixel position.

20. The method of claim 16, wherein the relative contributions of the predicted DC value and the source pixel are weighted according to a distance between the first pixel position and the position of the source pixel.