Video encoding and decoding method and device
By remapping the intra prediction mode of square blocks to the wide-angle prediction mode of non-square blocks, the problem of low intra prediction efficiency of non-square blocks in the existing technology is solved, and more efficient intra prediction and decoding are achieved.
Patent Information
- Application Number
- CN202211213616.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Priority Date
- 2018-09-28
- Filing Date
- 2019-07-01
- Publication Date
- 2024-10-22
- Estimated Expiration
- 2039-07-01
AI Technical Summary
In the existing technology, the consistency of intra prediction designs for square blocks and non-square blocks causes the intra prediction mode to be invalid for non-square blocks, and the signaling of wide-angle intra prediction depends on the intra prediction mode, resulting in parsing dependency problems. affect decoding efficiency.
A processing circuit is provided to form a new set of intra prediction modes by remapping intra prediction modes of square blocks to wide angle prediction modes of non-square blocks, removing a specific number of conventional intra prediction modes and adding wide angle modes, according to The aspect ratio of the block adjusts the number of modes to improve intra prediction efficiency for non-square blocks.
It improves the intra prediction efficiency of non-square blocks, solves the problem that intra prediction mode is invalid for non-square blocks, reduces parsing dependence, and improves decoding efficiency.
Smart Images

Figure CN115604464B_ABST
Abstract
Description
[0001] This application claims priority to U.S. Provisional Application No. 62 / 693,050, filed on July 2, 2018, “METHODS AND APPARATUS FOR WIDE ANGULAR INTRAPREDICTION IN VIDEO COMPRESSION,” and U.S. Application No. 16 / 147,517, filed on September 28, 2018, “METHOD AND APPARATUS FOR VIDEO CODING,” the disclosures of which are incorporated herein by reference in their entirety. Technical Field
[0002] The present application relates to video decoding technology, and more particularly to a video decoding method and device. Background Art
[0003] The background description provided herein is intended to generally present the context of the present application. To the extent described in this background section, the work of the presently named inventors and aspects of the description that may not have qualified as prior art at the time of filing are neither explicitly nor implicitly admitted to be prior art against the present application.
[0004] Inter-picture prediction with motion compensation can be used for video encoding and decoding. Uncompressed digital video can include a series of pictures, each picture having a spatial dimension of, for example, 1920×1080 luma samples and associated chroma samples. The series of pictures can have a fixed or variable picture rate (also informally referred to as a frame rate), such as 60 pictures per second or 60Hz. Uncompressed video has significant bit rate requirements. For example, 1080p60 4:2:0 video with 8 bits per sample (1920×1080 luma sample resolution at 60Hz frame rate) requires close to 1.5Gbit / s bandwidth. One hour of such video requires more than 600 gigabytes of storage space.
[0005] One purpose of video encoding and decoding can be to reduce redundancy in the input video signal through compression. Compression can help reduce the bandwidth or storage space requirements mentioned above, in some cases by two orders of magnitude or more. Both lossless and lossy compression, and combinations of the two, can be used. Lossless compression refers to techniques that can reconstruct an exact copy of the original signal from the compressed original signal. When lossy compression is used, the reconstructed signal may not be identical to the original signal, but the distortion between the original signal and the reconstructed signal is small enough to make the reconstructed signal useful for the intended application. Lossy compression is widely used in video. The amount of distortion that can be tolerated depends on the application; for example, users of certain consumer streaming applications may tolerate higher distortion than users of television distribution applications. The achievable compression ratio may reflect that higher allowable / tolerable distortion can produce higher compression ratios.
[0006] Video encoders and decoders can utilize techniques in several general categories including, for example, motion compensation, transforms, quantization, and entropy coding.
[0007] Video codec techniques may include techniques known as intra-coding. In intra-coding, sample values are represented without reference to samples or other data from previously reconstructed reference pictures. In some video codecs, pictures are spatially subdivided into blocks of samples. When all sample blocks are encoded in intra-mode, the picture may be an intra-coded picture. Intra-coded pictures and their derivatives, such as independent decoder refresh pictures, may be used to reset decoder states and may therefore be used as the first picture in an encoded video bitstream and video session, or as a still image. Samples of intra-coded blocks may be transformed, and transform coefficients may be quantized before entropy encoding. Intra-prediction may be a technique for minimizing sample values in a pre-transform domain. In some cases, the smaller the DC value after the transform, and the smaller the AC coefficient, the fewer bits are required for a given quantization step size to represent the block after entropy encoding.
[0008] Traditional intra-frame coding, such as known from, for example, MPEG-2 generative coding techniques, does not use intra-frame prediction. However, some newer video compression techniques include techniques that attempt to perform intra-frame prediction from surrounding sample data and / or metadata obtained during encoding / decoding, such as from spatially adjacent and preceding data blocks in decoding order. Such techniques are hereinafter referred to as "intra-frame prediction" techniques. Note that, in at least some cases, intra-frame prediction uses only reference data from the reconstructed current picture and not reference data from reference pictures.
[0009] Intra-frame prediction can take many different forms. When more than one such technique can be used in a given video coding technique, the technique in use can be encoded in an intra-frame prediction mode. In some cases, a mode may have sub-modes and / or parameters, and those can be encoded separately or included in a mode codeword. Which codeword is used for a given mode / sub-mode / parameter combination can have an impact on the coding efficiency gain through intra-frame prediction, so entropy coding techniques can be used to convert the codewords into a bitstream.
[0010] Modes of intra prediction were introduced with H.264, refined in H.265, and further refined in newer coding techniques such as the Joint Development Model (JEM), Versatile Video Coding (VVC), and Benchmark Set (BMS). A predictor block may be formed using neighboring sample values belonging to samples that are already available. Sample values of neighboring samples are copied into the predictor block according to the direction. A reference to the direction in use may be encoded in the bitstream or it may itself be predicted. Summary of the invention
[0011] Embodiments of the present application provide methods and devices for video encoding. In some examples, a device includes a processing circuit. The processing circuit decodes prediction information of a current block from an encoded video code stream. The current block is a non-square block, and the prediction information of the current block indicates a first intra-frame prediction mode in a first set of intra-frame prediction modes for non-square blocks. The first set of intra-frame prediction modes includes a specific number of intra-frame prediction additional modes, the intra-frame prediction additional modes do not belong to a second set of intra-frame prediction modes for square blocks, and the first set of intra-frame prediction modes does not include a specific number of removed intra-frame prediction modes, the removed intra-frame prediction modes belong to the second set of intra-frame prediction modes, and the specific number is associated with a function of the aspect ratio of the current block. Then, the processing circuit reconstructs at least one sample of the current block according to the first intra-frame prediction mode.
[0012] In some embodiments, the second set of intra-prediction modes includes directional modes from a lower left diagonal mode to an upper right diagonal mode, and the first set of intra-prediction modes does not include one of the lower left diagonal mode and the upper right diagonal mode. In one embodiment, the second set of intra-prediction modes includes directional modes from a lower left diagonal mode to an upper right diagonal mode, and the first set of intra-prediction modes includes additional modes with angles beyond one of the lower left diagonal mode and the upper right diagonal mode.
[0013] In some embodiments, the second set of intra-frame prediction modes includes directional modes from a lower-left diagonal mode to an upper-right diagonal mode, the width of the current block is greater than the height of the current block, and the first set of intra-frame prediction modes does not include the lower-left diagonal mode but includes additional modes whose angles exceed the upper-right diagonal mode.
[0014] In some embodiments, the second set of intra-frame prediction modes includes directional modes from a lower-left diagonal mode to an upper-right diagonal mode, the height of the current block is greater than the width of the current block, and the first set of intra-frame prediction modes does not include the upper-right diagonal mode but includes additional modes whose angles exceed the lower-left diagonal mode.
[0015] In some embodiments, the second set of intra-frame prediction modes includes directional modes from a lower-left diagonal mode to an upper-right diagonal mode, and the first set of intra-frame prediction modes does not include a subset of the second set of intra-frame prediction modes, the subset including continuous mode values from the lower-left diagonal mode to the upper-right diagonal mode.
[0016] In some embodiments, the second set of intra prediction modes includes directional modes from a lower left diagonal mode to an upper right diagonal mode, and the additional modes include consecutive mode values beyond one of the lower left diagonal mode and the upper right diagonal mode.
[0017] In some embodiments, the second set of intra-frame prediction modes includes a directional mode from a lower-left diagonal mode to an upper-right diagonal mode, and the first set of intra-frame prediction modes does not include a subset of the second set of intra-frame prediction modes, the subset including non-continuous mode values from one of the lower-left diagonal mode and the upper-right diagonal mode.
[0018] In some embodiments, the second set of intra prediction modes includes directional modes from a lower left diagonal mode to an upper right diagonal mode, and the additional modes include non-contiguous mode values beyond one of the lower left diagonal mode and the upper right diagonal mode.
[0019] In some embodiments, the specific number has a first value when the ratio of the longer side to the shorter side is less than or equal to 2, and has a second value when the ratio of the longer side to the shorter side is greater than or equal to 4, and the second value is greater than the first value.
[0020] An embodiment of the present application provides a computer device, including one or more processors and a memory, wherein the memory stores instructions, and when the instructions are executed by the processor, the processor executes the video decoding method described in any embodiment of the present application.
[0021] An embodiment of the present application further provides a non-transitory computer-readable medium having instructions stored thereon. When the instructions are executed by a computer used for video decoding, the computer executes the video decoding method.
[0022] By applying the embodiments of the present application, the problem in the prior art that some intra-frame prediction modes are invalid for non-square blocks due to the consistent intra-frame prediction design for square blocks and non-square blocks is solved, and since the signaling of wide-angle intra-frame prediction depends on the intra-frame prediction mode, there is a problem of parsing dependency when parsing the wide-angle control flag (the intra-frame prediction mode needs to be reconstructed during the parsing process), thereby improving the decoding efficiency.
[0023] BRIEF DESCRIPTION OF THE DRAWINGS
[0024] Further features, properties and various advantages of the disclosed subject matter will become more apparent from the following detailed description and the accompanying drawings, in which:
[0025] Figure 1 is a schematic diagram of a subset of intra prediction modes according to H.265;
[0026] Figure 2 It is a schematic diagram of the intra prediction direction according to JEM;
[0027] Figure 3 is a schematic diagram of a simplified block diagram of a communication system according to an embodiment;
[0028] Figure 4 is a schematic diagram of a simplified block diagram of a communication system according to another embodiment;
[0029] Figure 5 is a schematic diagram of a simplified block diagram of a decoder according to an embodiment;
[0030] Figure 6 is a schematic diagram of a simplified block diagram of an encoder according to an embodiment;
[0031] Figure 7 A block diagram showing an encoder according to another embodiment;
[0032] Figure 8 A block diagram showing a decoder according to another embodiment;
[0033] Fig. 9 A schematic diagram showing an example of a wide angle mode is shown;
[0034] Fig.10 An example of remapping some conventional intra prediction modes to wide angle modes is shown;
[0035] Fig.11 Another example of remapping some conventional intra prediction modes to wide angle modes is shown;
[0036] Fig.12 A schematic diagram including a conventional intra-frame prediction direction and a wide-angle intra-frame prediction direction is shown;
[0037] Fig.13A A flowchart showing a processing method according to an embodiment of the present application;
[0038] Fig. 13B A structural diagram of a video decoding device according to an embodiment of the present application is shown;
[0039] Fig.14 is a schematic diagram of a computer system according to an embodiment. DETAILED DESCRIPTION
[0040] refer to Figure 1 , depicted at the bottom right is a subset of nine known predictor directions from the 35 possible predictor directions of H.265. The point (101) where the arrows converge represents the sample being predicted. The arrows represent the direction of the predicted sample. For example, arrow (102) indicates that the sample (101) is predicted from one or more samples at an angle of 45 degrees relative to horizontal to the upper right. Similarly, arrow (103) indicates that the sample (101) is predicted from one or more samples at an angle of 22.5 degrees relative to horizontal to the lower left.
[0041] Still reference Figure 1 , in the upper left, a square block (104) of 4×4 samples is depicted (shown by bold dashed lines). The square block (104) includes 16 samples, each of which is labeled by "S", its position in the Y dimension (e.g., row index), and its position in the X dimension (e.g., column index). For example, sample S21 is the second sample in the Y dimension (from the top) and the first sample in the X dimension (from the left). Similarly, sample S44 is the fourth sample in the Y dimension and the X dimension in the block (104). Since the size of the block is 4×4 samples, S44 is at the bottom right. Reference samples following a similar numbering scheme are further shown. Reference samples are labeled by R, their Y position (e.g., row index) and X position (column index) relative to the block (104). In H.264 and H.265, the prediction samples are adjacent to the block under reconstruction, so there is no need to use negative values.
[0042] Intra picture prediction can work by instructing neighboring samples occupied by a signaled prediction direction to copy reference sample values. For example, assume that the encoded video bitstream includes signaling. For this block, the signaling indicates the prediction direction according to arrow (102) - that is, predicting samples to the upper right from the prediction sample or samples at an angle of 45 degrees relative to horizontal. In this case, samples S41, S32, S23, and S14 are predicted from the same R05. Sample S44 is then predicted from R08.
[0043] In some cases, the values of multiple reference samples may be combined, for example by interpolation, in order to calculate the reference sample; particularly when the directions are not evenly divisible by 45 degrees.
[0044] As video coding techniques have evolved, the number of possible directions has increased. In H.264 (year 2003), nine different directions can be represented. In H.265 (year 2013), this increased to 33; and at the time of publication, JEM / VVC / BMS was able to support up to 65 directions. Experiments have been conducted to identify the most likely directions, and certain techniques in entropy coding can represent those possible directions with a smaller number of bits, accepting some penalty for less likely directions. Further, the direction itself can sometimes be predicted from neighboring directions used in neighboring, already decoded blocks.
[0045] Figure 2 201 is illustrated, which depicts 65 intra prediction directions according to JEM, to illustrate the increasing number of prediction directions over time.
[0046] The mapping of the intra-frame prediction direction bit in the encoded video bitstream representing the direction may vary due to different video coding techniques, and may range from, for example, a simple direct mapping from the prediction direction to the intra-frame prediction mode to the codeword, to a complex adaptive scheme involving most possible modes and similar techniques. Those skilled in the art are well familiar with those techniques. However, in all cases, there are certain directions that are statistically less likely to appear in the video content than certain other directions. Since the goal of video compression is to reduce redundancy, in good-performing video coding techniques, a greater number of bits may be used to represent those less likely directions than the most likely direction.
[0047] Figure 3 A simplified block diagram of a communication system (300) according to an embodiment of the present application is shown. The communication system (300) includes a plurality of terminal devices, which can communicate with each other through, for example, a network (350). For example, the communication system (300) includes a terminal device (310) and a terminal device (320) interconnected through the network (350). Figure 3In an embodiment, the terminal device (310) and the terminal device (320) perform unidirectional data transmission. For example, the terminal device (310) may encode video data (e.g., a video picture stream collected by the terminal device (310)) for transmission to another terminal device (320) via the network (350). The encoded video data is transmitted in the form of one or more encoded video code streams. The terminal device (320) may receive the encoded video data from the network (350), decode the encoded video data to restore the video data, and display the video picture based on the restored video data. Unidirectional data transmission is more common in applications such as media services.
[0048] In another embodiment, the communication system (300) includes terminal devices (330) and (340) that perform bidirectional transmission of encoded video data, which can occur, for example, during a video conference. For bidirectional data transmission, each of the terminal devices (330) and the terminal device (340) can encode video data (e.g., a video picture stream collected by the terminal device) for transmission to the other terminal device (330) and the terminal device (340) through a network (350). Each of the terminal devices (330) and the terminal device (340) can also receive the encoded video data transmitted by the other terminal device (330) and the terminal device (340), and can decode the encoded video data to restore the video data, and can display the video picture on an accessible display device based on the restored video data.
[0049] exist Figure 3 In the embodiment of the present invention, the terminal device (310), the terminal device (320), the terminal device (330) and the terminal device (340) may be a server, a personal computer and a smart phone, but the principles disclosed in the present application may not be limited thereto. The embodiments disclosed in the present application are applicable to laptop computers, tablet computers, media players and / or dedicated video conferencing equipment. The network (350) represents any number of networks that transmit encoded video data between the terminal devices (310), the terminal devices (320), the terminal devices (330) and the terminal devices (340), including, for example, wired (wired) and / or wireless communication networks. The communication network (350) may exchange data in circuit switching and / or packet switching channels. The network may include a telecommunications network, a local area network, a wide area network and / or the Internet. For the purpose of this discussion, unless explained below, the architecture and topology of the network (350) may be irrelevant to the operation disclosed in the present application.
[0050] As an example, Figure 4The video encoder and video decoder are shown in a streaming environment. The subject matter disclosed in this application is equally applicable to other video-enabled applications, including, for example, video conferencing, digital TV, storing compressed video on digital media including CDs, DVDs, memory sticks, etc.
[0051] The streaming system may include an acquisition subsystem (413), which may include a video source (401) such as a digital camera, which creates an uncompressed video picture stream (402). In an embodiment, the video picture stream (402) includes samples taken by a digital camera. Compared to the encoded video data (404) (or the encoded video bitstream), the video picture stream (402) is depicted as a thick line to emphasize the high data volume of the video picture stream, and the video picture stream (402) can be processed by an electronic device (420), which includes a video encoder (403) coupled to the video source (401). The video encoder (403) may include hardware, software, or a combination of hardware and software to implement or implement various aspects of the disclosed subject matter as described in more detail below. Compared to the video picture stream (402), the encoded video data (404) (or the encoded video bitstream (404)) is depicted as a thin line to emphasize the lower amount of data of the encoded video data (404) (or the encoded video bitstream (404)), which can be stored on the streaming server (405) for future use. One or more streaming client subsystems, such as Figure 4 The client subsystem (406) and the client subsystem (408) in the video transmission system can access the streaming server (405) to retrieve the copy (407) and the copy (409) of the encoded video data (404). The client subsystem (406) may include, for example, a video decoder (410) in the electronic device (430). The video decoder (410) decodes the incoming copy (407) of the encoded video data and generates an output video picture stream (411) that can be presented on a display (412) (e.g., a display screen) or another presentation device (not depicted). In some streaming transmission systems, the encoded video data (404), the video data (407), and the video data (409) (e.g., a video bitstream) can be encoded according to certain video encoding / compression standards. Examples of these standards include ITU-T H.265. In an embodiment, the video coding standard under development is informally referred to as Versatile Video Coding (VVC), and the present application can be used in the context of the VVC standard.
[0052] It should be noted that the electronic device (420) and the electronic device (430) may include other components (not shown). For example, the electronic device (420) may include a video decoder (not shown), and the electronic device (430) may also include a video encoder (not shown).
[0053] Figure 5 is a block diagram of a video decoder (510) according to an embodiment disclosed in the present application. The video decoder (510) may be provided in an electronic device (530). The electronic device (530) may include a receiver (531) (e.g., a receiving circuit). The video decoder (510) may be used to replace Figure 3 A video decoder (510) of an embodiment.
[0054] The receiver (531) may receive one or more encoded video sequences to be decoded by the video decoder (510); in the same or another embodiment, one encoded video sequence is received at a time, wherein the decoding of each encoded video sequence is independent of the other encoded video sequences. The encoded video sequence may be received from a channel (501), which may be a hardware / software link to a storage device storing the encoded video data. The receiver (531) may receive the encoded video data as well as other data, such as encoded audio data and / or auxiliary data streams that may be forwarded to their respective consuming entities (not shown). The receiver (531) may separate the encoded video sequence from the other data. To prevent network jitter, a buffer memory (515) may be coupled between the receiver (531) and the entropy decoder / parser (520) (hereinafter referred to as "parser (520)"). In some applications, the buffer memory (515) is part of the video decoder (510). In other cases, the buffer memory (515) may be provided external to the video decoder (510) (not shown). In other cases, a buffer memory (not shown) is provided outside the video decoder (510) to prevent network jitter, for example, and another buffer memory (515) may be configured inside the video decoder (510) to handle broadcast timing, for example. When the receiver (531) receives data from a storage / forward device with sufficient bandwidth and controllability or from an isochronous network, it may not be necessary to configure the buffer memory (515), or the buffer memory may be made smaller. Of course, in order to use on a service packet network such as the Internet, a buffer memory (515) may also be required, and the buffer memory may be relatively large and have an adaptive size, and may be at least partially implemented in an operating system or a similar element (not shown) outside the video decoder (510).
[0055] The video decoder (510) may include a parser (520) to reconstruct symbols (521) from the encoded video sequence. The types of symbols include information used to manage the operation of the video decoder (510) and potential information used to control a display device such as a display device (512) (e.g., a display screen) that is not part of the electronic device (530) but can be coupled to the electronic device (530), such as Figure 5 As shown in . The control information for the display device may be a parameter set fragment (not indicated) of Supplementary Enhancement Information (SEI message) or Video Usability Information (VUI). The parser (520) may parse / entropy decode the received coded video sequence. The encoding of the coded video sequence may be performed according to a video coding technique or standard, and may follow various principles, including variable length coding, Huffman coding, arithmetic coding with or without context sensitivity, and the like. The parser (520) may extract a subgroup parameter set of at least one subgroup of the subgroups of pixels in the video decoder from the coded video sequence based on at least one parameter corresponding to the group. The subgroup may include a Group of Pictures (GOP), a picture, a tile, a slice, a macroblock, a Coding Unit (CU), a block, a Transform Unit (TU), a Prediction Unit (PU), and the like. The parser (520) may also extract information from the encoded video sequence, such as transform coefficients, quantizer parameter values, motion vectors, and so on.
[0056] The parser (520) may perform entropy decoding / parsing operations on the video sequence received from the buffer memory (515), thereby creating symbols (521).
[0057] Depending on the type of coded video picture or portion of coded video picture (e.g., inter- and intra-pictures, inter- and intra-blocks) and other factors, the reconstruction of the symbol (521) may involve multiple different units. Which units are involved and how they are involved may be controlled by subgroup control information parsed by the parser (520) from the coded video sequence. For the sake of brevity, such subgroup control information flow between the parser (520) and the multiple units below is not described.
[0058] In addition to the functional blocks already mentioned, the video decoder (510) can be conceptually subdivided into several functional units as described below. In a practical embodiment operating under commercial constraints, many of these units interact closely with each other and can be integrated with each other. However, for the purpose of describing the disclosed subject matter, the conceptual subdivision into the following functional units is appropriate.
[0059] The first unit is a sealer / inverse transform unit (551). The sealer / inverse transform unit (551) receives quantized transform coefficients as symbols (521) from the parser (520) and control information, including which transform method to use, block size, quantization factor, quantization scaling matrix, etc. The sealer / inverse transform unit (551) can output a block including sample values, which can be input into an aggregator (555).
[0060] In some cases, the output samples of the scaler / inverse transform unit (551) may belong to an intra-coded block; that is, a block that does not use predictive information from a previously reconstructed picture, but may use predictive information from a previously reconstructed portion of the current picture. Such predictive information may be provided by an intra-prediction unit (552). In some cases, the intra-prediction unit (552) generates surrounding blocks of the same size and shape as the block being reconstructed using reconstructed information extracted from a current picture buffer (558). For example, the current picture buffer (558) buffers a partially reconstructed current picture and / or a fully reconstructed current picture. In some cases, the aggregator (555) adds the prediction information generated by the intra-prediction unit (552) to the output sample information provided by the scaler / inverse transform unit (551) on a per-sample basis.
[0061] In other cases, the output samples of the scaler / inverse transform unit (551) may belong to an inter-frame coded and potentially motion compensated block. In this case, the motion compensated prediction unit (553) may access the reference picture memory (557) to extract samples for prediction. After the extracted samples are motion compensated according to the symbols (521), these samples may be added to the output of the scaler / inverse transform unit (551) (in this case referred to as residual samples or residual signals) by the aggregator (555) to generate output sample information. The acquisition of the predicted samples by the motion compensated prediction unit (553) from the address in the reference picture memory (557) may be controlled by a motion vector, and the motion vector is provided to the motion compensated prediction unit (553) in the form of the symbols (521), for example, including X, Y and reference picture components. Motion compensation may also include interpolation of sample values extracted from the reference picture memory (557) when using sub-sample accurate motion vectors, motion vector prediction mechanisms, and the like.
[0062] The output samples of the aggregator (555) may be employed by various loop filtering techniques in a loop filter unit (556). The video compression techniques may include in-loop filter techniques controlled by parameters included in the encoded video sequence (also referred to as the encoded video bitstream) and available to the loop filter unit (556) as symbols (521) from the parser (520). However, in other embodiments, the video compression techniques may also be responsive to meta-information obtained during decoding of a previous (in decoding order) portion of an encoded picture or encoded video sequence, as well as to previously reconstructed and loop filtered sample values.
[0063] The output of the loop filter unit (556) may be a sample stream that may be output to a display device (512) and stored in a reference picture memory (557) for subsequent inter-picture prediction.
[0064] Once fully reconstructed, certain coded pictures may be used as reference pictures for future prediction. For example, once the coded picture corresponding to the current picture is fully reconstructed, and the coded picture is identified as a reference picture (e.g., by the parser (520)), the current picture buffer (558) may become part of the reference picture memory (557), and a new current picture buffer may be reallocated before starting to reconstruct a subsequent coded picture.
[0065] The video decoder (510) may perform decoding operations according to a predetermined video compression technique, such as in the ITU-T H.265 standard. The encoded video sequence may conform to the syntax specified by the video compression technique or standard used in the sense that the encoded video sequence follows the syntax of the video compression technique or standard and the profile recorded in the video compression technique or standard. Specifically, the profile may select certain tools from all the tools available in the video compression technique or standard as the only tools available for use under the profile. For compliance, the complexity of the encoded video sequence is also required to be within the range defined by the hierarchy of the video compression technique or standard. In some cases, the hierarchy limits the maximum picture size, the maximum frame rate, the maximum reconstruction sampling rate (measured in, for example, mega samples per second), the maximum reference picture size, etc. In some cases, the limits set by the hierarchy may be further limited by the Hypothetical Reference Decoder (HRD) specification and the metadata of the HRD buffer management signaled in the encoded video sequence.
[0066] In an embodiment, the receiver (531) may receive additional (redundant) data along with the encoded video. The additional data may be part of the encoded video sequence. The additional data may be used by the video decoder (510) to properly decode the data and / or more accurately reconstruct the original video data. The additional data may be in the form of, for example, temporal, spatial or signal-to-noise ratio (SNR) enhancement layers, redundant slices, redundant pictures, forward error correction codes, etc.
[0067] Figure 6 6 is a block diagram of a video encoder (603) according to an embodiment disclosed in the present application. The video encoder (603) is provided in an electronic device (620). The electronic device (620) includes a transmitter (640) (e.g., a transmission circuit). The video encoder (603) can be used to replace Figure 4 A video encoder (603) in an embodiment.
[0068] The video encoder (603) can be used to obtain the video source (601) (not Figure 6 In another embodiment, the video source (601) is a part of the electronic device (620) to receive video samples, and the video source can collect video images to be encoded by the video encoder (603). In another embodiment, the video source (601) is a part of the electronic device (620).
[0069] The video source (601) may provide a source video sequence in the form of a digital video sample stream to be encoded by the video encoder (603), wherein the digital video sample stream may have any suitable bit depth (e.g., 8-bit, 10-bit, 12-bit, ...), any color space (e.g., BT.601 Y CrCB, RGB, ...), and any suitable sampling structure (e.g., Y CrCb 4:2:0, Y CrCb 4:4:4). In a media service system, the video source (601) may be a storage device storing previously prepared videos. In a video conferencing system, the video source (601) may be a camera that captures local image information as a video sequence. The video data may be provided as a plurality of separate pictures that are given motion when viewed sequentially. The pictures themselves may be constructed as a spatial pixel array, wherein each pixel may include one or more samples depending on the sampling structure, color space, etc. used. The relationship between pixels and samples may be easily understood by those skilled in the art. The following description focuses on samples.
[0070] According to an embodiment, the video encoder (603) may encode and compress pictures of a source video sequence into an encoded video sequence (643) in real time or under any other time constraints required by the application. Implementing an appropriate encoding speed is a function of the controller (650). In some embodiments, the controller (650) controls other functional units as described below and is functionally coupled to these units. For the sake of simplicity, coupling is not indicated in the figure. The parameters set by the controller (650) may include rate control related parameters (picture skipping, quantizer, lambda value of rate distortion optimization technology, etc.), picture size, group of pictures (GOP) layout, maximum motion vector search range, etc. The controller (650) can be used to have other suitable functions that are related to the video encoder (603) optimized for a certain system design.
[0071] In some embodiments, the video encoder (603) operates in an encoding loop. As a simple description, in embodiments, the encoding loop may include a source encoder (630) (e.g., responsible for creating symbols, such as a symbol stream, based on an input picture to be encoded and a reference picture) and a (local) decoder (633) embedded in the video encoder (603). The decoder (633) reconstructs the symbols to create sample data in a manner similar to how the (remote) decoder creates sample data (because in the video compression technology considered in this application, any compression between the symbols and the encoded video code stream is lossless). The reconstructed sample stream (sample data) is input to a reference picture memory (634). Since the decoding of the symbol stream produces bit-accurate results that are independent of the decoder location (local or remote), the contents of the reference picture memory (634) are also bit-accurate between the local encoder and the remote encoder. In other words, the reference picture samples "seen" by the prediction part of the encoder are exactly the same as the sample values that the decoder will "see" when using the prediction during decoding. This basic principle of reference picture synchronization (and the drift that occurs when synchronization cannot be maintained, eg due to channel errors) is also used in some related techniques.
[0072] The operation of the "local" decoder (633) can be combined with the above Figure 5 The "remote" decoder described in detail for the video decoder (510) is identical. However, additional brief reference is made to Figure 5 , when symbols are available and the entropy encoder (645) and parser (520) are capable of losslessly encoding / decoding the symbols into an encoded video sequence, the entropy decoding portion of the video decoder (510), including the buffer memory (515) and the parser (520), may not be fully implemented in the local decoder (633).
[0073] At this point, it can be observed that any decoder technology other than the parsing / entropy decoding present in the decoder must also be present in the corresponding encoder in substantially the same functional form. For this reason, the present application focuses on decoder operation. The description of encoder technology can be simplified because encoder technology is mutually inverse to the decoder technology described comprehensively. A more detailed description is only needed in certain areas and is provided below.
[0074] During operation, in some embodiments, the source encoder (630) may perform motion compensated predictive coding. The motion compensated predictive coding predictively encodes an input picture with reference to one or more previously encoded pictures from a video sequence designated as "reference pictures." In this manner, the encoding engine (632) encodes the differences between pixel blocks of the input picture and pixel blocks of a reference picture that may be selected as a prediction reference for the input picture.
[0075] The local video decoder (633) may decode the encoded video data of the picture that may be designated as the reference picture based on the symbol created by the source encoder (630). The operation of the encoding engine (632) may be a lossy process. When the encoded video data is available at the video decoder ( Figure 6 When the video sequence is decoded at a remote location (not shown), the reconstructed video sequence may typically be a copy of the source video sequence with some errors. The local video decoder (633) replicates the decoding process that may be performed by the video decoder on the reference picture and may cause the reconstructed reference picture to be stored in the reference picture cache (634). In this way, the video encoder (603) may store a copy of the reconstructed reference picture locally that has common content (absent transmission errors) with the reconstructed reference picture to be obtained by the remote video decoder.
[0076] The predictor (635) may perform a prediction search for the encoding engine (632). That is, for a new picture to be encoded, the predictor (635) may search the reference picture memory (634) for sample data (as candidate reference pixel blocks) or certain metadata, such as reference picture motion vectors, block shapes, etc., that may serve as appropriate prediction references for the new picture. The predictor (635) may operate pixel-by-pixel based on sample blocks to find a suitable prediction reference. In some cases, based on the search results obtained by the predictor (635), it may be determined that the input picture may have prediction references taken from a plurality of reference pictures stored in the reference picture memory (634).
[0077] The controller (650) may manage encoding operations of the source encoder (630), including, for example, setting parameters and subgroup parameters for encoding video data.
[0078] The outputs of all the above functional units may be entropy encoded in an entropy encoder (645). The entropy encoder (645) performs lossless compression on the symbols generated by the various functional units according to techniques such as Huffman coding, variable length coding, arithmetic coding, etc., thereby converting the symbols into a coded video sequence.
[0079] The transmitter (640) may buffer the encoded video sequence created by the entropy encoder (645) in preparation for transmission over a communication channel (660), which may be a hardware / software link to a storage device where the encoded video data will be stored. The transmitter (640) may combine the encoded video data from the video encoder (603) with other data to be transmitted, such as encoded audio data and / or ancillary data streams (source not shown).
[0080] The controller (650) may manage the operation of the video encoder (603). During encoding, the controller (650) may assign a certain coded picture type to each coded picture, but this may affect the coding techniques that can be applied to the corresponding picture. For example, a picture may generally be assigned to any of the following picture types:
[0081] An intra picture (I picture) may be a picture that can be encoded and decoded without using any other picture in the sequence as a prediction source. Some video codecs allow different types of intra pictures, including, for example, Independent Decoder Refresh ("IDR") pictures. Those skilled in the art are aware of the variations of I pictures and their corresponding applications and features.
[0082] A predictive picture (P picture) may be a picture that can be encoded and decoded using intra prediction or inter prediction, which uses at most one motion vector and a reference index to predict sample values for each block.
[0083] Bidirectional predictive pictures (B pictures), which can be pictures that can be encoded and decoded using intra prediction or inter prediction, which uses up to two motion vectors and reference indices to predict the sample values of each block. Similarly, multiple predictive pictures can use more than two reference pictures and associated metadata for reconstruction of a single block.
[0084] The source picture may typically be spatially subdivided into blocks of samples (e.g., blocks of 4×4, 8×8, 4×8, or 16×16 samples), and coded block by block. These blocks may be predictively coded with reference to other (already coded) blocks, which are determined according to the coding allocation applied to the block's corresponding picture. For example, blocks of an I picture may be non-predictively coded, or the blocks may be predictively coded (spatial prediction or intra prediction) with reference to already coded blocks of the same picture. Blocks of pixels of a P picture may be predictively coded by spatial prediction with reference to one previously coded reference picture or by temporal prediction. Blocks of a B picture may be predictively coded by spatial prediction with reference to one or two previously coded reference pictures or by temporal prediction.
[0085] The video encoder (603) may perform encoding operations according to a predetermined video encoding technique or standard, such as ITU-T H.265 Recommendation. In operation, the video encoder (603) may perform various compression operations, including predictive encoding operations that exploit temporal and spatial redundancy in an input video sequence. Thus, the encoded video data may conform to the syntax specified by the video encoding technique or standard used.
[0086] In an embodiment, the transmitter (640) may transmit additional data when transmitting the encoded video. The source encoder (630) may include such data as part of the encoded video sequence. The additional data may include other forms of redundant data such as temporal / spatial / SNR enhancement layers, redundant pictures and slices, SEI messages, VUI parameter set fragments, etc.
[0087] The captured video may be taken as a plurality of source pictures (video pictures) in a temporal sequence. Intra-picture prediction (often simplified to intra-prediction) exploits spatial correlations in a given picture, while inter-picture prediction exploits (temporal or other) correlations between pictures. In an embodiment, a particular picture being encoded / decoded is divided into blocks, and the particular picture being encoded / decoded is referred to as the current picture. When a block in the current picture is similar to a reference block in a reference picture that was previously encoded in the video and is still buffered, the block in the current picture may be encoded by a vector called a motion vector. The motion vector points to a reference block in a reference picture, and in the case where multiple reference pictures are used, the motion vector may have a third dimension that identifies the reference picture.
[0088] In some embodiments, bidirectional prediction techniques may be used in inter-picture prediction. According to the bidirectional prediction technique, two reference pictures are used, for example, a first reference picture and a second reference picture that are both before the current picture in the video in decoding order (but may be in the past and future in display order, respectively). A block in the current picture may be encoded by a first motion vector pointing to a first reference block in the first reference picture and a second motion vector pointing to a second reference block in the second reference picture. Specifically, the block may be predicted by a combination of the first reference block and the second reference block.
[0089] In addition, merge mode technology can be used in inter-picture prediction to improve coding efficiency.
[0090] According to some embodiments disclosed in the present application, predictions such as inter-picture prediction and intra-picture prediction are performed in blocks. For example, according to the HEVC standard, pictures in a video picture sequence are divided into coding tree units (CTUs) for compression, and the CTUs in the pictures have the same size, such as 64×64 pixels, 32×32 pixels, or 16×16 pixels. In general, a CTU includes three coding tree blocks (CTBs), which are a luminance CTB and two chrominance CTBs. Furthermore, each CTU can be split into one or more coding units (CUs) using a quadtree. For example, a 64×64 pixel CTU can be split into a 64×64 pixel CU, or 4 32×32 pixel CUs, or 16 16×16 pixel CUs. In an embodiment, each CU is analyzed to determine the prediction type for the CU, such as an inter-prediction type or an intra-prediction type. In addition, depending on temporal and / or spatial predictability, the CU is split into one or more prediction units (PUs). Typically, each PU includes a luminance prediction block (PB) and two chrominance PBs. In an embodiment, the prediction operation in encoding (encoding / decoding) is performed in units of prediction blocks. Taking the luminance prediction block as an example of a prediction block, the prediction block includes a matrix of pixel values (e.g., luminance values), such as 8×8 pixels, 16×16 pixels, 8×16 pixels, 16×8 pixels, and the like.
[0091] Figure 7 is a diagram of a video encoder (703) according to another embodiment disclosed in the present application. The video encoder (703) is used to receive a processed block (e.g., a prediction block) of sample values in a current video picture in a video picture sequence, and encode the processed block into an encoded picture that is part of an encoded video sequence. In this embodiment, the video encoder (703) is used to replace Figure 4A video encoder (703) in an embodiment.
[0092] In an HEVC embodiment, a video encoder (703) receives a matrix of sample values for a processing block, such as a prediction block of 8×8 samples. The video encoder (703) uses, for example, rate-distortion (RD) optimization to determine whether to use intra mode, inter mode, or bidirectional prediction mode to encode the processing block. When encoding the processing block in intra mode, the video encoder (703) may use intra prediction techniques to encode the processing block into an encoded picture; and when encoding the processing block in inter mode or bidirectional prediction mode, the video encoder (703) may use inter prediction or bidirectional prediction techniques to encode the processing block into an encoded picture, respectively. In some video encoding techniques, the merge mode may be an inter-picture prediction submode, in which a motion vector is derived from one or more motion vector predictors without the aid of an encoded motion vector component external to the predictor. In some other video encoding techniques, there may be a motion vector component applicable to the subject block. In an embodiment, the video encoder (703) includes other components, such as a mode decision module (not shown) for determining the processing block mode.
[0093] exist Figure 7 In an embodiment of the present invention, the video encoder (703) includes: Figure 7 Shown are an inter-frame encoder (730), an intra-frame encoder (722), a residual calculator (723), a switch (726), a residual encoder (724), a general controller (721), and an entropy encoder (725) coupled together.
[0094] The inter-frame encoder (730) is used to receive samples of a current block (e.g., a processing block), compare the block with one or more reference blocks in a reference picture (e.g., blocks in a previous picture and a subsequent picture), generate inter-frame prediction information (e.g., redundant information description according to an inter-frame coding technique, motion vectors, merge mode information), and calculate an inter-frame prediction result (e.g., a predicted block) based on the inter-frame prediction information using any suitable technique. In some embodiments, the reference picture is a decoded reference picture decoded based on the encoded video information.
[0095] The intra encoder (722) is used to receive samples of a current block (e.g., a processing block), compare the block with encoded blocks in the same picture in some cases, generate quantization coefficients after transformation, and in some cases also generate intra prediction information (e.g., intra prediction direction information according to one or more intra coding techniques).
[0096] The general controller (721) is used to determine the general control data and control other components of the video encoder (703) based on the general control data. In an embodiment, the general controller (721) determines the mode of the block and provides a control signal to the switch (726) based on the mode. For example, when the mode is intra mode, the general controller (721) controls the switch (726) to select the intra mode result for use by the residual calculator (723) and controls the entropy encoder (725) to select intra prediction information and add the intra prediction information to the bitstream; and when the mode is inter mode, the general controller (721) controls the switch (726) to select the inter prediction result for use by the residual calculator (723) and controls the entropy encoder (725) to select the inter prediction information and add the inter prediction information to the bitstream.
[0097] The residual calculator (723) is used to calculate the difference (residual data) between the received block and the prediction result selected from the intra-frame encoder (722) or the inter-frame encoder (730). The residual encoder (724) is used to operate based on the residual data to encode the residual data to generate transform coefficients. In an embodiment, the residual encoder (724) is used to convert the residual data to the frequency domain and generate transform coefficients. The transform coefficients are then quantized to obtain quantized transform coefficients.
[0098] The entropy encoder (725) is used to format the code stream to produce an encoded block. The entropy encoder (725) generates various information according to a suitable standard such as the HEVC standard. In an embodiment, the entropy encoder (725) is used to obtain general control data, selected prediction information (such as intra-frame prediction information or inter-frame prediction information), residual information, and other suitable information in the code stream. It should be noted that according to the disclosed subject matter, when the block is encoded in the inter-frame mode or the merge sub-mode of the bidirectional prediction mode, there is no residual information.
[0099] Figure 8 FIG. 8 is a diagram of a video decoder (810) according to another embodiment disclosed in the present application. The video decoder (810) is used to receive an encoded image as part of an encoded video sequence and decode the encoded image to generate a reconstructed picture. In an embodiment, the video decoder (810) is used to replace Figure 4 A video decoder (410) of an embodiment.
[0100] exist Figure 8 In one embodiment, the video decoder (810) includes: Figure 8 An entropy decoder (871), an inter-frame decoder (880), a residual decoder (873), a reconstruction module (874) and an intra-frame decoder (872) coupled together are shown in FIG.
[0101] The entropy decoder (871) may be used to reconstruct certain symbols from the encoded picture, which represent syntax elements constituting the encoded picture. Such symbols may include, for example, a mode for encoding the block (e.g., intra mode, inter mode, bidirectional prediction mode, a merged sub-mode of the latter two, or another sub-mode), prediction information (e.g., intra prediction information or inter prediction information) that may identify certain samples or metadata for prediction by the intra decoder (872) or the inter decoder (880), respectively, residual information in the form of, for example, quantized transform coefficients, and the like. In an embodiment, when the prediction mode is inter or bidirectional prediction mode, the inter prediction information is provided to the inter decoder (880); and when the prediction type is an intra prediction type, the intra prediction information is provided to the intra decoder (872). The residual information may be inverse quantized and provided to the residual decoder (873).
[0102] The inter-frame decoder (880) is used to receive the inter-frame prediction information and generate an inter-frame prediction result based on the inter-frame prediction information.
[0103] The intra-frame decoder (872) is used to receive intra-frame prediction information and generate a prediction result based on the intra-frame prediction information.
[0104] The residual decoder (873) is used to perform inverse quantization to extract dequantized transform coefficients, and process the dequantized transform coefficients to convert the residual from the frequency domain to the spatial domain. The residual decoder (873) may also require some control information (to obtain the quantizer parameter QP), and this information can be provided by the entropy decoder (871) (the data path is not indicated because this is only low-volume control information).
[0105] The reconstruction module (874) is used to combine the residual output by the residual decoder (873) with the prediction result (which can be output by the inter-frame prediction module or the intra-frame prediction module) in the spatial domain to form a reconstructed block, which can be part of a reconstructed picture, which in turn can be part of a reconstructed video. It should be noted that other suitable operations such as deblocking operations can be performed to improve visual quality.
[0106] It should be noted that the video encoder (403), video encoder (603) and video encoder (703) and video decoder (410), video decoder (510) and video decoder (810) may be implemented using any suitable technology. In an embodiment, the video encoder (403), video encoder (603) and video encoder (703) and video decoder (410), video decoder (510) and video decoder (810) may be implemented using one or more integrated circuits. In another embodiment, the video encoder (403), video encoder (603) and video encoder (703) and video decoder (410), video decoder (510) and video decoder (810) may be implemented using one or more processors that execute software instructions.
[0107] According to some embodiments of the present application, for intra-frame prediction, the wide-angle mode can be used to compress video and reduce bandwidth or storage space requirements.
[0108] Fig. 9 A schematic diagram (900) is shown that includes an example of a wide angle mode. Typically, the intra prediction is located in the 45 degree direction to the upper right (corresponding to the direction pointing to Fig. 9 34 in the figure, indicating mode 34) to the lower left 45 degree direction (corresponding to the direction pointing Fig. 9 2 in FIG. 1 , which indicates mode 2), these modes are called conventional intra prediction modes. When 35 HEVC intra prediction modes are applied, mode 2 is called lower left diagonal mode and mode 34 is called upper right diagonal mode. A wide angle beyond the range of prediction directions covered by the conventional intra prediction mode may correspond to a wide-angle intra prediction mode.
[0109] In some examples, a Wide Intra prediction direction is associated with a regular Intra prediction direction. For example, a Wide Intra prediction direction and its associated Intra prediction direction capture the same directionality, but use reference samples on opposite sides (left column or top row). In an example, the Wide Intra prediction mode is indicated by sending a 1-bit flag for the associated direction (which has a Wide "flip mode" available). Fig. 9 In the example, the first direction with an arrow pointing to 35 is the wide angle intra prediction direction, which is associated with the second direction with an arrow pointing to 03. Therefore, the first direction may be indicated by sending a 1-bit flag for the second direction.
[0110] In an embodiment, with 33 directional angular intra predictions, the availability of new modes is limited to the 10 directional modes closest to the 45 degree diagonal top right mode (i.e., mode 34 when 35 conventional intra modes are applied) and bottom left mode (i.e., mode 2 when 35 conventional intra modes are applied). The actual sample prediction process follows that in HEVC or VVC.
[0111] exist Fig. 9 In the example, 33 intra prediction directions associated with modes 2 to 34 are shown. In the example, when the width of the block is greater than the height of the block, the directions associated with modes 35 and 36 may be used as wide-angle intra prediction directions. Modes 3 and 4 may then have additional flags to indicate whether to use the indicated mode or to use the flipped wide-angle directions associated with modes 35 and 36. In some examples (e.g., General Video Coding Test Model 1 (VTM1)), both square blocks and non-square blocks are supported in quadtree, binary, and ternary tree (QT+BT+TT) partition structures. When the intra prediction design for square blocks and non-square blocks uses the same intra prediction mode as square blocks (e.g., modes 2 to 34), the intra prediction modes (e.g., Fig. 9 Modes 2 to 34 in the example are not efficient for non-square blocks. Wide-angle prediction modes (e.g., Fig. 9 Modes 35 and 36 in the example can encode non-square blocks more efficiently.
[0112] In some examples, the signaling of wide angle intra prediction depends on the intra prediction mode. Therefore, when parsing the wide angle control flag, there is a parsing dependency problem (the intra prediction mode needs to be reconstructed during the parsing process).
[0113] In some embodiments, some intra-prediction modes for square blocks are remapped to wide-angle prediction modes for non-square blocks. In an example, during the remapping process, some intra-prediction modes for square blocks are removed from a set of intra-prediction modes originally used for square blocks, while the same number of wide-angle prediction modes are added to the set of intra-prediction modes to form a new set of intra-prediction modes for certain non-square blocks. Thus, a certain number of modes in the set of intra-prediction modes are changed, while other modes remain unchanged. In some examples, the certain number of modes that have been changed depends on the block shape, such as the aspect ratio of the block.
[0114] For square blocks, a set of conventional intra prediction modes can be used for intra prediction, and the mode numbers for the set of conventional intra prediction modes can be 35, 67, and the like. For non-square blocks, some modes can be removed from the set of conventional intra prediction modes, and the same number of wide-angle modes (as removed modes) can be added to form a new set of intra prediction modes with the remaining conventional intra prediction modes. Therefore, in the example, the signal mode indexes for non-square blocks and square blocks are the same, and non-square blocks and square blocks share the same mode encoding algorithm. In the case of 35 conventional intra prediction modes, the indices of the added upper right wide-angle modes are mode 35, mode 36, mode 37, mode 38, and the like, and the indices of the added lower left wide-angle modes are mode-1, mode-2, mode-3, mode-4, and the like.
[0115] Fig.10 and Fig.11 Two examples of remapping some conventional intra prediction modes to wide-angle modes are shown. Fig.10 Modes 2 to 34 are Fig.10 Modes 2 to 34 are combined with mode 0 (e.g., planar mode) and mode 1 (e.g., DC mode) to form a set of conventional intra prediction modes for square blocks. Fig.10 In the example, mode 2 and mode 3 are removed from the set of normal intra prediction modes (as indicated by dashed lines). Further, wide angle mode 35 and mode 36 are added (as indicated by dotted lines), wherein the direction of mode 35 is opposite to the direction of mode 3 (as indicated by (1001)), and the direction of mode 36 is opposite to the direction of mode 4 (as indicated by (1002)). Therefore, modes 4 to 36 are combined with mode 0 and mode 1 to form a new set of intra prediction modes for certain non-square blocks.
[0116] exist Fig.11 , mode 33 and mode 34 are removed (as indicated by dashed lines), and wide angle mode-1 and mode-2 are added (as indicated by dotted lines). The direction of mode-1 is opposite to that of mode 33 (as indicated by (1101)), and the direction of mode-2 is opposite to that of mode 32 (as indicated by (1102)). Therefore, mode-2, mode-1, and modes 2 to 32 are combined with mode 0 and mode 1 to form a new set of intra prediction modes for certain non-square blocks.
[0117] In one embodiment, the angular distance between the removed normal mode and the added wide-angle mode is greater than 90 degrees and less than or equal to 180 degrees. For example, there are 35 normal intra-frame prediction modes, and when the width is greater than the height, modes 2 to 5 are removed and wide-angle modes 35 to 38 are added; when the height is greater than the width, modes 31 to 34 are removed and modes -1 to -4 are added. In another example, there are 67 normal intra-frame prediction modes, when the width is greater than the height, modes 2 to 9 are removed and modes 67 to 74 are added; when the height is greater than the width, modes 59 to 66 are removed and modes -1 to -8 are added.
[0118] In an optional embodiment, the removed normal modes and the added wide-angle modes are located in opposite directions. For example, when there are 35 normal intra-frame prediction modes, when the width is greater than the height, modes 3 to 6 are removed and wide-angle modes 35 to 38 are added; when the height is greater than the width, modes 30 to 33 are removed and modes -1 to -4 are added. In another example, when there are 67 normal intra-frame prediction modes, when the width is greater than the height, modes 3 to 10 are removed and wide-angle modes 67 to 74 are added; when the height is greater than the width, modes 58 to 65 are removed and modes -1 to -8 are added.
[0119] In an optional embodiment, when the width is greater than the height, some regular modes are removed from the lower left direction, and the same number of wide-angle modes are added from the upper right direction. Otherwise, when the height is greater than the width, some modes are removed from the upper right direction, and the same number of wide-angle modes are added from the lower left direction.
[0120] For example, when there are 35 normal intra prediction modes and the width is greater than the height, modes 2 to 5 are removed and wide-angle modes 35 to 38 are added; when the height is greater than the width, modes 31 to 34 are removed and modes -1 to -4 are added.
[0121] In an optional embodiment, the number of normal intra prediction modes removed is fixed for all non-square block shapes. For all non-square blocks, N normal intra prediction modes are removed and N wide angle modes are added accordingly. For example, when 35 normal modes are used, N can be 1 to 7; when 67 normal modes are used, N can be 2 to 14, and when 129 normal intra prediction modes are used, N can be 4 to 28.
[0122] In one embodiment, N may be signaled as a high-level syntax element such as in a sequence parameter set (SPS), a picture parameter set (PPS), a slice header, or as a common syntax element or parameter for a region of a picture.
[0123] In one example, when there are 35 regular intra prediction modes, 4 regular intra modes are removed, and when there are 67 regular intra prediction modes, 8 regular intra modes are removed.
[0124] In an alternative embodiment, the number of regular intra prediction modes removed depends on the shape of the non-square block.
[0125] In some examples, when width / height ≤ 2 or height / width ≤ 2 (aspect ratio = width / height, 1 < aspect ratio ≤ 2, or 1 / 2 ≤ aspect ratio < 1), M conventional intra-frame prediction modes are removed. Further, when width / height ≥ 4 or height / width ≥ 4 (aspect ratio ≥ 4 or aspect ratio ≤ 1 / 4), N conventional intra-frame prediction modes are removed. Further, in the example, when 2 < aspect ratio < 4 or 1 / 4 < aspect ratio < 1 / 2, P conventional intra-frame prediction modes are removed. In the example, M is not equal to N. In one example, when there are 35 conventional intra-frame prediction modes, M is equal to 3 and N is equal to 5, and when there are 67 conventional intra-frame prediction modes, M is equal to 6 and N is equal to 10. P may be the same as M or N, or different from M or N.
[0126] In one embodiment, M and N may be signaled as high-level syntax elements in, for example, a sequence parameter set (SPS), a picture parameter set (PPS), a slice header, or as a common syntax element or parameter for a region of a picture. In another example, the number of conventional intra prediction modes removed depends on coding information, including but not limited to block width, block height, and a ratio of block width to height, and block area size.
[0127] In an optional embodiment, the removed regular intra-frame prediction mode starts from the lower left diagonal mode (i.e., mode 2 when 35 modes are applied) or the upper right diagonal mode (i.e., mode 34 when 35 modes are applied), and the added wide-angle mode starts from the nearest angle beyond the lower left diagonal mode or the upper right diagonal mode (i.e., mode -1 or mode 35).
[0128] In some examples, the removed normal modes and added wide-angle modes may be continuous or non-continuous. In one example, when there are 35 normal intra-frame prediction modes and the width is greater than the height, modes 2 to 5 are removed and wide-angle modes 35 to 38 are added. In another example, when there are 35 normal intra-frame prediction modes and the width is greater than the height, modes 2 to 5 are removed and wide-angle modes 35, 37, 38, and 39 are added.
[0129] In an optional embodiment, unused / removed conventional intra prediction modes are used to indicate the added wide angle mode. Therefore, the unused conventional intra prediction modes are still available for signal indication, and the meaning of these unused conventional intra prediction modes is converted to the added wide angle mode. For example, when the width is greater than the height, mode 2 is removed, but mode 2 is still indicated by a signal. For a non-square block, when the decoder decodes mode 2 and the width is greater than the height, the decoder will convert mode 2 to mode 35.
[0130] In an optional embodiment, in order to obtain the most probable mode (MPM) of the current block, when the intra prediction of the neighboring block exceeds the intra prediction direction range of the current block, the mode of the neighboring block will be mapped to the nearest direction covered by the intra prediction direction range of the current block. For example, if the current block is a square block, and its left block is a non-square block and the mode number of the left block is 35. Mode 35 is not covered by the mode range of the current block. Therefore, the mode of the left block is mapped to the nearest mode 34 covered by the mode range of the current block.
[0131] In some embodiments, an intra prediction process is performed using wide-angle prediction for rectangular blocks. The intra prediction process receives inputs such as the intra prediction mode (represented by predModeIntra), the width of the current block (represented by nWidth), the height of the block (represented by nHeight), neighboring samples (represented by p[x][y], where (x=-1, y=-1 to nWidth+nHeight-1)(x=0 to nWidth+nHeight-1, y=-1)), and a variable cIdx specifying the color components of the current block. The intra prediction process can generate prediction samples predSamples[x][y], where x=0 to nWidth-1, and y=0 to nHeight-1.
[0132] In some embodiments, the intra prediction process is performed based on a mapping between an intra prediction mode predModeIntra and an angle parameter intraPredAngle.
[0133] Fig.12 A schematic diagram including 43 intra-frame prediction directions is shown. The 43 intra-frame prediction directions include 33 conventional intra-frame prediction directions corresponding to modes 2 to 34 of conventional intra-frame prediction modes, and include 5 wide-angle directions extending beyond mode 34 (as shown in modes 35 to 39) and 5 wide-angle directions extending beyond mode 2 (as shown in modes -1 to -5).
[0134] Fig.12An upper scale (upper scale) and a left scale (left scale) are also shown. In some examples, the angle parameter intraPredAngle is measured according to the upper scale or the left scale. Table 1 shows a mapping table between the intra prediction mode predModeIntra and the angle parameter intraPredAngle.
[0135] Table 1
[0136]
[0137] In an example, the intra prediction mode predModeIntra in the input is one of the removed regular intra prediction modes, and based on the aspect ratio (nWidth / nHeight) of the current block, the intra prediction mode predModeIntra in the input is converted to the wide mode.
[0138] For example, when nWidth / nHeight=2 and 2≤predModeIntra≤4, predModeIntra←predModeIntra+33, that is, the removed regular intra prediction mode value plus 33 is the added wide-angle mode value. Specifically, when the width nWidth of the block is twice the height nHeight of the block, 3 regular intra prediction modes (mode 2, mode 3, and mode 4) are removed from the set of regular intra prediction modes, and 3 wide-angle modes (mode 35, mode 36, and mode 37) are added to form a new set of intra prediction modes for the block together with the remaining regular intra prediction modes. When the intra prediction mode predModeIntra in the input corresponds to one of the removed modes, the intra prediction mode predModeIntra is converted to a wide-angle mode.
[0139] Further, when nWidth / nHeight≥4 and 2≤predModeIntra≤6, predModeIntra←predModeIntra+33, that is, the removed regular intra prediction mode value plus 33 is the added wide-angle mode value. Specifically, when the width nWidth of the block is equal to or exceeds four times the height nHeight of the block, 5 regular intra prediction modes (mode 2, mode 3, mode 4, mode 5, mode 6) are removed from the set of regular intra prediction modes, and 5 wide-angle modes (mode 35, mode 36, mode 37, mode 38 and mode 39) are added to form a new set of intra prediction modes for the block together with the remaining regular intra prediction modes. When the intra prediction mode predModeIntra in the input corresponds to one of the removed modes, the intra prediction mode predModeIntra is converted to a wide-angle mode.
[0140] Further, when nHeight / nWidth=2 and 32≤predModeIntra≤34, predModeIntra←predModeIntra-35, that is, the removed regular intra prediction mode value minus 35 is the added wide-angle mode value. Specifically, when the height nHeight of the block is twice the width nWidth of the block, 3 regular intra prediction modes (mode 34, mode 33, and mode 32) are removed from the set of regular intra prediction modes, and 3 wide-angle modes (mode-1, mode-2, and mode-3) are added to form a new set of intra prediction modes for the block together with the remaining regular intra prediction modes. When the intra prediction mode predModeIntra in the input corresponds to one of the removed modes, the intra prediction mode predModeIntra is converted to a wide-angle mode.
[0141] Further, when nHeight / nWidth≥4 and 30≤predModeIntra≤34, predModeIntra←predModeIntra–35, that is, the removed regular intra prediction mode value minus 35 is the added wide-angle mode value. Specifically, when the height nHeight of the block is equal to or exceeds four times the width nWidth of the block, 5 regular intra prediction modes (mode 34, mode 33, mode 32, mode 32, mode 30) are removed from the set of regular intra prediction modes, and 5 wide-angle modes (mode-1, mode-2, mode-3, mode-4, and mode-5) are added to form a new set of intra prediction modes for the block together with the remaining regular intra prediction modes. When the intra prediction mode predModeIntra in the input corresponds to one of the removed modes, the intra prediction mode predModeIntra is converted to a wide-angle mode.
[0142] Then, based on the intra prediction mode predModeIntra, the corresponding angle parameter intraPredAngle may be determined based on, for example, Table 1. Then, the prediction samples predSamples[x][y] may be calculated based on the angle parameter intraPredAngle based on a suitable video coding standard such as the HEVC standard.
[0143] In another example, 65 conventional intra prediction directions are used for intra prediction of a square block. These 65 conventional intra prediction directions correspond to Figure 2. Modes 2 to 66 together with Mode 0 (planar mode) and Mode 1 (DC mode) form a set of 67 intra prediction modes for square blocks. In some embodiments, a certain number of conventional intra prediction modes are removed and the same number of wide-angle modes are added to a new set of intra prediction modes for rectangular blocks, and the number depends on the aspect ratio of the rectangular block.
[0144] In some embodiments, intra prediction processing is performed using wide-angle prediction for a rectangular block (current block). The intra prediction processing receives inputs such as the intra prediction mode predModeIntra, the width nWidth of the current block, the height nHeight of the block, and neighboring samples (represented by p[x][y], where (x=-1, y=-1 to nWidth+nHeight-1)(x=0 to nWidth+nHeight-1, y=-1)). The intra prediction processing can generate prediction samples predSamples[x][y], where x=0 to nWidth-1, and y=0 to nHeight-1.
[0145] In the example, the variable whRatio is defined to be equal to min(abs(Log2(nWidth / nHeight)),2). When nWidth is greater than nHeight but less than two times nHeight, whRatio is less than 1. When nWidth is equal to two times nHeight, whRatio is equal to 1. When nWidth is greater than two times nHeight but less than four times nHeight, whRatio is a value in the range of (1, 2). When nWidth is four times nHeight, whRatio is equal to 2. When nWidth exceeds four times nHeight, whRatio is equal to 2.
[0146] Similarly, when nHeight is greater than nWidth but less than two times nWidth, whRatio is less than 1. When nHeight is equal to two times nWidth, whRatio is equal to 1. When nHeight is greater than two times nWidth but less than four times nWidth, whRatio is a value in the range (1, 2). When nHeight is four times nWidth, whRatio is equal to 2. When nHeight exceeds four times nWidth, whRatio is equal to 2. Therefore, whRatio is a function of the shape of the block and does not depend on the orientation of the block.
[0147] In an example, the intra prediction mode predModeIntra in the input is one of the removed regular intra prediction modes, and the intra prediction mode predModeIntra in the input is converted to the wide mode based on the whRatio of the current block.
[0148] For example, when nWidth is greater than nHeight but less than twice nHeight, whRatio is less than 1, and 6 regular intra prediction modes (modes 2 to 7) are removed from the set of regular intra prediction modes, and 6 wide-angle modes (modes 67 to 72) are added to form a new set of intra prediction modes for the block together with the remaining regular intra prediction modes. When the intra prediction mode predModeIntra in the input corresponds to one of the removed modes (greater than or equal to 2 and less than 8), the intra prediction mode predModeIntra is converted to a wide-angle mode by adding 65.
[0149] Further, when nWidth is equal to or exceeds four times of nHeight, 10 regular intra prediction modes (modes 2 to 11) are removed from the set of regular intra prediction modes, and 10 wide-angle modes (modes 67 to 76) are added to form a new set of intra prediction modes for the block together with the remaining regular intra prediction modes. When the intra prediction mode predModeIntra in the input corresponds to one of the removed modes (greater than or equal to 2 and less than 12), the intra prediction mode predModeIntra is converted to a wide-angle mode by adding 65.
[0150] Further, when nHeight is greater than nWidth but less than twice nWidth, whRatio is less than 1, and 6 conventional intra prediction modes (modes 61 to 66) are removed from the set of conventional intra prediction modes, and 6 wide-angle modes (modes -1 to -6) are added to form a new set of intra prediction modes for the block together with the remaining conventional intra prediction modes. When the intra prediction mode predModeIntra in the input corresponds to one of the removed modes (greater than or equal to 61 and less than 67), the intra prediction mode predModeIntra is converted to a wide-angle mode by subtracting 67.
[0151] Further, when nHeight is equal to or exceeds four times of nWidth, 10 normal intra prediction modes (modes 57 to 66) are removed from the set of normal intra prediction modes, and 10 wide-angle modes (modes -1 to -10) are added to form a new set of intra prediction modes for the block together with the remaining normal intra prediction modes. When the intra prediction mode predModeIntra in the input corresponds to one of the removed modes (greater than or equal to 57 and less than 67), the intra prediction mode predModeIntra is converted to a wide-angle mode by subtracting 67.
[0152] Then, based on the intra prediction mode predModeIntra, the corresponding angle parameter intraPredAngle may be determined, for example, based on a lookup table.Then, the prediction samples predSamples[x][y] may be calculated based on the angle parameter intraPredAngle based on a suitable video coding standard such as the HEVC standard.
[0153] Fig.13A A flowchart of a processing method (1300) according to an embodiment of the present application is shown. The processing method (1300) can be used to reconstruct a block encoded in an intra-frame mode, thereby generating a prediction block for the block under reconstruction. In various embodiments, the processing method (1300) is performed by a processing circuit such as a processing circuit in a terminal device (310), (320), (330) and (340), a processing circuit that performs the function of a video encoder (403), a processing circuit that performs the function of a video decoder (410), a processing circuit that performs the function of a video decoder (510), a processing circuit that performs the function of an intra-frame prediction unit (552), a processing circuit that performs the function of a video encoder (603), a processing circuit that performs the function of a predictor (635), a processing circuit that performs the function of an intra-frame encoder (722), a processing circuit that performs the function of an intra-frame decoder (872), and the like. In some embodiments, the processing method (1300) is implemented with software instructions, so when the processing circuit executes the software instructions, the processing circuit performs the processing method (1300). The process starts at step (S1301) and proceeds to step (S1310).
[0154] In step (S1310), prediction information for a block is decoded. In an example, the processing circuit decodes prediction information for a block from an encoded video stream. In some examples, the block is a non-square block, and the prediction information for the block indicates a first intra-prediction mode in a first set of intra-prediction modes for non-square blocks. The first set of intra-prediction modes includes at least one or more additional intra-prediction modes (e.g., wide-angle mode), which additional intra-prediction modes do not belong to a second set of intra-prediction modes for square blocks. The first set of intra-prediction modes does not include at least one or more removed (removed or unused) intra-prediction modes, which belong to the second set of intra-prediction modes. The number of the one or more additional intra-prediction modes and the one or more removed intra-prediction modes is a function of the aspect ratio of the block (which indicates the shape of the block). The number has a first value when the ratio of the longer side to the shorter side of the block is less than or equal to 2, has a second value when the ratio of the longer side to the shorter side is greater than or equal to 4, and the second value is greater than the first value.
[0155] At step (S1320), samples of the block are reconstructed according to the first intra prediction mode. In some examples, based on the first intra prediction mode, corresponding angle parameters may be determined based on, for example, a lookup table. Samples of the block may then be calculated based on the angle parameters according to an appropriate video coding standard such as the HEVC standard. The process then continues to step (S1399) and ends.
[0156] The present application also provides a video decoding device. Fig. 13B As shown, the device includes: a decoding module 1301, used to decode prediction information of a current block from an encoded video code stream, wherein the current block is a non-square block, and the prediction information of the current block indicates a first intra-frame prediction mode in a first set of intra-frame prediction modes for non-square blocks; wherein the first set of intra-frame prediction modes includes a specific number of intra-frame prediction additional modes, the intra-frame prediction additional modes do not belong to a second set of intra-frame prediction modes for square blocks, and the first set of intra-frame prediction modes does not include a specific number of removed intra-frame prediction modes, the removed intra-frame prediction modes belong to the second set of intra-frame prediction modes, and the specific number is associated with a function of the aspect ratio of the current block; and a reconstruction module 1302, used to reconstruct at least one sample of the current block according to the first intra-frame prediction mode.
[0157] The techniques described above may be implemented as computer software using computer-readable instructions and physically stored in one or more computer-readable media. Fig.14 A computer system (1400) suitable for implementing embodiments of the disclosed subject matter is shown.
[0158] Computer software may be encoded using any suitable machine code or computer language which may be assembled, compiled, linked, or similar mechanisms to create code comprising instructions that may be executed directly by one or more computer central processing units (CPUs), graphics processing units (GPUs), etc., or through interpretation, microcode execution, etc.
[0159] The instructions may be executed on various types of computers or components thereof, including, for example, personal computers, tablet computers, servers, smart phones, gaming devices, IoT devices, etc.
[0160] Fig.14 The components of the computer system (1400) shown in the example are exemplary and are not intended to impose any limitation on the scope of use or functionality of the computer software implementing the embodiments of the present application. The configuration of the components should not be interpreted as having any dependency or requirement on any one or combination of the components illustrated in the exemplary embodiment of the computer system (1400).
[0161] The computer system (1400) may include certain human-computer interface input devices. Such human-computer interface input devices may respond to input by one or more human users through, for example, tactile input (such as: keystrokes, swipes, data glove movements), audio input (such as: voice, high fives), visual input (such as: gestures), olfactory input (not depicted). Human-computer interface input devices may also be used to capture certain media that are not necessarily directly related to human conscious input, such as audio (such as: voice, music, ambient sound), images (such as: scanned images, photographic images obtained from a still image camera), video (such as two-dimensional video, three-dimensional video including stereoscopic video).
[0162] The human-machine interface input devices may include one or more of the following (only one of each is depicted): keyboard (1401), mouse (1402), trackpad (1403), touch screen (1410), data gloves (not shown), joystick (1405), microphone (1406), scanner (1407), camera (1408).
[0163] The computer system (1400) may also include certain human-computer interface output devices. Such human-computer interface output devices may stimulate one or more human user senses through, for example, tactile output, sound, light, and smell / taste. Such human-computer interface output devices may include tactile output devices (e.g., tactile feedback through a touch screen (1410), a data glove (not shown), or a joystick (1405), although there may also be tactile feedback devices that do not act as input devices), audio output devices (such as: speakers (1409), headphones (not depicted)), visual output devices (such as screens (1410) including CRT screens, LCD screens, plasma screens, OLED screens, each with or without touch screen input capabilities, each with or without tactile feedback capabilities - some of which may output two-dimensional visual output or more than three-dimensional output through means such as stereoscopic photography output; virtual reality glasses (not depicted), holographic displays, and smoke generators (not depicted)), and printers (not depicted).
[0164] The computer system (1400) may also include human accessible storage devices and media associated therewith, such as optical media including CD / DVD ROM / RW (1420) with CD / DVD or similar media (1421), thumb drives (1422), removable hard disks or solid state drives (1423), traditional magnetic media such as tapes and floppy disks (not shown), dedicated ROM / ASIC / PLD based devices such as security dongles (not shown),
[0165] etc.
[0166] Those of ordinary skill in the art should also understand that the term "computer-readable media" used in connection with the presently disclosed subject matter does not include transmission media, carrier waves, or other transitory signals.
[0167] The computer system (1400) may also include an interface to connect one or more communication networks. The network may be, for example, a wireless network, a wired network, an optical network. Further, the network may be local, wide, metropolitan, vehicle-mounted and industrial, real-time, delay-tolerant, and the like. Examples of networks include local area networks such as Ethernet, wireless LAN, and the like, cellular networks including GSM, 3G, 4G, 5G, LTE, and the like, TV wireline or wireless wide area digital networks including cable TV, satellite, and terrestrial broadcast TV, vehicle-mounted and industrial networks including CAN bus, and the like. Some networks typically require an external network interface adapter that is attached to some universal data port or peripheral bus (1449) (such as a USB port of the computer system (1400)); other networks are typically integrated into the kernel of the computer system (1400) by attaching to the system bus as described below (for example, an Ethernet interface is integrated into a PC computer system and a cellular network interface is integrated into a smart phone computer system). Using any of these networks, the computer system (1400) can communicate with other entities. Such communications may be one-way receive-only (e.g. broadcast TV), one-way send-only (e.g. CAN bus to certain CAN bus devices), or two-way (e.g. to other computer systems using a local area network or wide area digital network). Certain protocols and protocol stacks may be used on each of those networks and network interfaces as described above.
[0168] The above-mentioned human-machine interface devices, human-accessible storage devices, and network interfaces can be attached to the kernel (1440) of the computer system (1400).
[0169] The core (1440) may include one or more central processing units (CPUs) (1441), graphics processing units (GPUs) (1442), specialized programmable processing units in the form of field programmable gate arrays (FPGAs) (1443), hardware accelerators (1444) for certain tasks, and the like. These devices may be connected through a system bus (1448) along with a read-only memory (ROM) (1445), a random access memory (1446), an internal mass storage device (1447) such as an internal user-inaccessible hard drive, SSD, and the like. In some computer systems, the system bus (1448) may be accessed in the form of one or more physical sockets to enable expansion through additional CPUs, GPUs, and the like. Peripheral devices may be attached directly to the core's system bus (1448), or may be attached to the core's system bus (1448) through a peripheral bus (1449). Architectures for peripheral buses include PCI, USB, and the like.
[0170] The CPU (1441), GPU (1442), FPGA (1443), and accelerator (1444) can execute instructions, and the combination of the instructions can constitute the aforementioned computer code. The computer code can be stored in ROM (1445) or RAM (1446). Transition data can also be stored in RAM (1446), while permanent data can be stored in, for example, internal mass storage (1447). Fast storage and retrieval of any memory device can be achieved by using a cache memory, which can be closely associated with one or more CPUs (1441), GPUs (1442), mass storage (1447), ROM (1445), RAM (1446), and the like.
[0171] The computer readable medium may have computer codes thereon for performing various computer-implemented operations. The medium and computer codes may be those specially designed and constructed for the purpose of the present application, or they may be of well-known type and available to those skilled in the art of computer software.
[0172] As an example and not by way of limitation, a computer system has an architecture (1400), and specifically, a kernel (1440) is capable of providing functionality as a result of a processor (including a CPU, GPU, FPGA, accelerator, etc.) executing software embodied in one or more tangible computer-readable media. Such a computer-readable medium may be a medium associated with the user-accessible mass storage described above, as well as certain memories of the kernel (1440) having a non-transitory nature (such as a kernel internal mass storage (1447) or ROM (1445)). Software implementing various embodiments of the present application may be stored in such a device and executed by the kernel (1440). As desired, the computer-readable medium may include one or more memory devices or chips. The software may enable the kernel (1440) and specifically the processor therein (including a CPU, GPU, FPGA, etc.) to perform a specific process or a specific portion of a specific process described herein, including defining a data structure stored in RAM (1446) according to a process defined by the software and modifying such a data structure. In addition or in the alternative, the computer system may provide functionality as a result of logic hardwired or otherwise embodied in circuitry (e.g., accelerator (1444)) that may operate in place of or in conjunction with software to perform a particular process or a particular portion of a particular process described herein. Where appropriate, reference to software includes logic, and vice versa. Where appropriate, reference to a computer-readable medium includes circuitry (such as an integrated circuit (IC)) storing software for execution, circuitry embodying logic for execution, or both. The present application includes any suitable combination of hardware and software.
[0173] Appendix: Acronyms
[0174] JEM: Joint Development Model
[0175] VVC: Versatile Video Coding
[0176] BMS: Benchmark Set
[0177] HEVC: High Efficiency Video Coding
[0178] SEI: Supplemental Enhancement Information
[0179] VUI: Video Availability Information
[0180] GOP: Group of Pictures
[0181] TU: Transformation Unit,
[0182] PU: prediction unit
[0183] CTU: Coding Tree Unit
[0184] CTB: Coding Tree Block
[0185] PB: prediction block
[0186] HRD: Hypothesized Reference Decoder
[0187] SNR: Signal to Noise Ratio
[0188] CPU: Central Processing Unit
[0189] GPU: Graphics Processing Unit
[0190] CRT: cathode ray tube
[0191] LCD: Liquid Crystal Display
[0192] OLED: Organic Light Emitting Diode
[0193] CD: Compact disc
[0194] DVD: Digital Video Disc
[0195] ROM: Read Only Memory
[0196] RAM: Random Access Memory
[0197] ASIC: Application-Specific Integrated Circuit
[0198] PLD: Programmable Logic Device
[0199] LAN: Local Area Network
[0200] GSM: Global System for Mobile Communications
[0201] LTE: Long Term Evolution
[0202] CAN bus: Controller Area Network bus
[0203] USB: Universal Serial Bus
[0204] PCI: Peripheral Component Interconnect
[0205] FPGA: Field Programmable Gate Array
[0206] SSD: Solid State Drive
[0207] IC: Integrated Circuit
[0208] CU: Coding Unit
[0209] Although the present application has described several exemplary embodiments, there are permutations, arrangements, and various alternative equivalents that fall within the scope of the present application. It is therefore understood that those skilled in the art may design many systems and methods that, although not explicitly shown or described herein, embody the principles of the present application and are within its spirit and scope.
Claims
1. A method for video decoding, characterized in that: include: Decoding prediction information of a current block from an encoded video bitstream, wherein the current block is a non-square block, and the prediction information of the current block indicates a first intra-prediction mode in a first set of intra-prediction modes for non-square blocks; wherein the first set of intra-prediction modes includes a specific number N of intra-prediction additional modes, the intra-prediction additional modes do not belong to a second set of intra-prediction modes for square blocks, and the first set of intra-prediction modes does not include the specific number N of removed intra-prediction modes, the removed intra-prediction modes belong to the second set of intra-prediction modes, and the specific number N is associated with a function of an aspect ratio of the current block; and reconstructing at least one sample of the current block according to the first intra prediction mode; The method further comprises: When the width of the current block is greater than or equal to 4 times the height of the current block, and the value range of the function of the aspect ratio of the current block is greater than 1, the first intra-frame prediction mode corresponds to one of the N modes removed from the second set, and the removed N modes are intra-frame prediction modes greater than or equal to 2 and less than 12, and the first intra-frame prediction mode is converted to a first wide-angle mode by adding 65 to the first intra-frame prediction mode; When the height of the current block is greater than or equal to 4 times the width of the current block, and the value range of the function of the aspect ratio of the current block is greater than 1, the first intra-frame prediction mode corresponds to one of N modes removed from the second set, and the removed N modes are intra-frame prediction modes greater than or equal to 57 and less than 67, and the first intra-frame prediction mode is converted to a second wide-angle mode by subtracting 67 from the first intra-frame prediction mode.
2. The method according to claim 1, characterized in that The second set of intra prediction modes includes directional modes from a lower-left diagonal mode to an upper-right diagonal mode, and the first set of intra prediction modes does not include one of the lower-left diagonal mode and the upper-right diagonal mode.
3. The method according to claim 1, characterized in that The second set of intra prediction modes includes directional modes from a lower left diagonal mode to an upper right diagonal mode, and the first set of intra prediction modes includes additional modes having angles beyond one of the lower left diagonal mode and the upper right diagonal mode.
4. The method according to claim 1, characterized in that: The second set of intra-frame prediction modes includes directional modes from a lower-left diagonal mode to an upper-right diagonal mode, the width of the current block is greater than the height of the current block, and the first set of intra-frame prediction modes does not include the lower-left diagonal mode but includes additional modes whose angles exceed the upper-right diagonal mode.
5. The method according to claim 1, characterized in that The second set of intra-frame prediction modes includes directional modes from a lower-left diagonal mode to an upper-right diagonal mode, the height of the current block is greater than the width of the current block, and the first set of intra-frame prediction modes does not include the upper-right diagonal mode but includes additional modes whose angles exceed the lower-left diagonal mode.
6. The method according to claim 1, characterized in that The second set of intra-frame prediction modes includes directional modes from a lower-left diagonal mode to an upper-right diagonal mode, and the first set of intra-frame prediction modes does not include a subset of the second set of intra-frame prediction modes, the subset including continuous mode values from the lower-left diagonal mode to the upper-right diagonal mode.
7. The method according to claim 1, characterized in that The second set of intra prediction modes includes directional modes from a lower-left diagonal mode to an upper-right diagonal mode, and the additional mode includes consecutive mode values beyond one of the lower-left diagonal mode and the upper-right diagonal mode.
8. The method according to claim 1, characterized in that The second set of intra-frame prediction modes includes directional modes from a lower-left diagonal mode to an upper-right diagonal mode, and the first set of intra-frame prediction modes does not include a subset of the second set of intra-frame prediction modes, the subset including non-contiguous mode values from one of the lower-left diagonal mode and the upper-right diagonal mode.
9. The method according to claim 1, characterized in that: The second set of intra prediction modes includes directional modes from a lower-left diagonal mode to an upper-right diagonal mode, and the additional modes include non-contiguous mode values beyond one of the lower-left diagonal mode and the upper-right diagonal mode.
10. The method according to claim 1, characterized in that The specific number N has a first value when the ratio of the longer side to the shorter side is less than or equal to 2, and has a second value when the ratio of the longer side to the shorter side is greater than or equal to 4, and the second value is greater than the first value.
11. The method according to claim 1, characterized in that , when the width of a block is twice the height of the block, 3 regular intra prediction modes are removed from the set of regular intra prediction modes, and 3 wide-angle modes are added to form a new set of intra prediction modes for the block together with the remaining regular intra prediction modes.
12. The method according to claim 1, characterized in that ,When the width of the block is equal to or exceeds four times the height of the block, 5 regular intra prediction modes are removed from the set of regular intra prediction modes, and 5 wide-angle modes are added to form a new set of intra prediction modes for the block together with the remaining regular intra prediction modes.
13. The method according to claim 1, characterized in that An angular distance between the removed intra prediction mode and the converted wide-angle mode is greater than 90 degrees and less than or equal to 180 degrees.
14. The method according to claim 1, characterized in that When the second set includes 67 intra-frame prediction modes, the value range of N is 2 to 14; when the second set includes 129 intra-frame prediction modes, the value range of N is 4 to 28.
15. The method according to claim 1, characterized in that When the second set includes 67 intra prediction modes and the width is greater than the height, the N modes removed are mode 2 to mode 9, and the first wide-angle modes obtained by conversion are mode 67 to mode 74; When the second set includes 67 intra prediction modes and the height is greater than the width, the removed N modes are mode 59 to mode 66, and the converted second wide-angle modes are mode-1 to mode-8.
16. The method according to claim 1, characterized in that When the second set includes 67 intra-frame prediction modes and the width is greater than the height, the N modes removed are mode 3 to mode 10, and the first wide-angle mode obtained by conversion is mode 67 to mode 74; when the height is greater than the width, the N modes removed are mode 58 to mode 65, and the second wide-angle mode obtained by conversion is adding mode -1 to mode -8.
17. The method according to claim 1, characterized in that When width / height ≤ 2 or height / width ≤ 2, remove M regular intra prediction modes; When width / height ≥ 4 or height / width ≥ 4, remove the intra prediction modes in the N second sets; When 2<aspect ratio<4 or 1 When / 4<aspect ratio<1 / 2, P regular intra prediction modes are removed, and the aspect ratio=width / height, where M is not equal to N.
18. The method according to any one of claims 1 to 17, characterized in that: When the intra prediction of the neighboring block exceeds the intra prediction direction range of the current block, the mode of the neighboring block will be mapped to the nearest direction covered by the intra prediction direction range of the current block.
19. A video encoding method, characterized in that: include: Confirming prediction information of a current block according to a video sequence, wherein the current block is a non-square block, and the prediction information of the current block indicates a first intra-prediction mode in a first set of intra-prediction modes for non-square blocks; wherein the first set of intra-prediction modes includes a specific number N of intra-prediction additional modes, the intra-prediction additional modes do not belong to a second set of intra-prediction modes for square blocks, and the first set of intra-prediction modes does not include the specific number N of removed intra-prediction modes, the removed intra-prediction modes belong to the second set of intra-prediction modes, and the specific number N is associated with a function of an aspect ratio of the current block; and reconstructing at least one sample of the current block according to the first intra prediction mode; The method further comprises: When the width of the current block is greater than or equal to 4 times the height of the current block, and the value range of the function of the aspect ratio of the current block is greater than 1, the first intra-frame prediction mode corresponds to one of the N modes removed from the second set, and the removed N modes are intra-frame prediction modes greater than or equal to 2 and less than 12, and the first intra-frame prediction mode is converted to a first wide-angle mode by adding 65 to the first intra-frame prediction mode; When the height of the current block is greater than or equal to 4 times the width of the current block, and the value range of the function of the aspect ratio of the current block is greater than 1, the first intra-frame prediction mode corresponds to one of N modes removed from the second set, and the removed N modes are intra-frame prediction modes greater than or equal to 57 and less than 67, and the first intra-frame prediction mode is converted to a second wide-angle mode by subtracting 67 from the first intra-frame prediction mode.
20. A video decoding device, characterized in that: include: A decoding module, configured to decode prediction information of a current block from an encoded video bitstream, wherein the current block is a non-square block, and the prediction information of the current block indicates a first intra-prediction mode in a first set of intra-prediction modes for non-square blocks; wherein the first set of intra-prediction modes includes a specific number N of intra-prediction additional modes, the intra-prediction additional modes do not belong to a second set of intra-prediction modes for square blocks, and the first set of intra-prediction modes does not include the specific number N of removed intra-prediction modes, the removed intra-prediction modes belong to the second set of intra-prediction modes, and the specific number N is associated with a function of an aspect ratio of the current block; and a reconstruction module, configured to reconstruct at least one sample of the current block according to the first intra prediction mode; The reconstruction module is further configured to, when the width of the current block is greater than or equal to 4 times the height of the current block and the value range of the function of the aspect ratio of the current block is greater than 1, the first intra-frame prediction mode corresponds to one of the N modes removed from the second set, and the removed N modes are intra-frame prediction modes greater than or equal to 2 and less than 12, convert the first intra-frame prediction mode into a first wide-angle mode by adding 65 to the first intra-frame prediction mode; Alternatively, when the height of the current block is greater than or equal to 4 times the width of the current block, and the value range of the function of the aspect ratio of the current block is greater than 1, the first intra-frame prediction mode corresponds to one of the N modes removed from the second set, and the removed N modes are intra-frame prediction modes greater than or equal to 57 and less than 67, and the first intra-frame prediction mode is converted to the second wide-angle mode by subtracting 67 from the first intra-frame prediction mode.
21. A computer device comprising one or more processors and a memory, wherein the memory stores instructions, and when the instructions are executed by the processor, the processor executes the method according to any one of claims 1 to 19.
22. A non-transitory computer readable medium, characterized in that Instructions are stored thereon, and when the instructions are executed by a computer used for video decoding, the computer is caused to execute the method according to any one of claims 1 to 19.
23. A method for processing a video code stream, characterized in that: The video code stream is generated according to the encoding method according to claim 19, or is decoded based on the decoding method according to any one of claims 1 to 18.
Citation Information
Patent Citations
Chrominance processing in video coding and decoding
CN104247425A
An intra-prediction apparatus for extending a set of predetermined directional intra-prediction modes
WO2018117892A1
