Video coding and decoding method and device and storage medium
By employing multiple reference lines for intra-frame prediction in video coding, including adjacent and non-adjacent reference lines, the problem of intra-frame prediction being limited by the nearest line in existing technologies is solved, thereby improving coding efficiency and compression performance.
Patent Information
- Application Number
- CN202311084734.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Priority Date
- 2018-11-26
- Filing Date
- 2019-02-27
- Publication Date
- 2025-01-07
- Estimated Expiration
- 2039-02-27
AI Technical Summary
Existing video coding techniques are limited by the nearest line in intra-frame prediction, resulting in poor prediction efficiency and failing to fully utilize the reference sample information of line indices other than the nearest line, thus affecting coding efficiency.
Intra-frame prediction is performed using multiple reference lines, including adjacent and non-adjacent reference lines. The number of intra-frame prediction modes in non-adjacent reference lines does not exceed half that in adjacent reference lines, thus utilizing more reference sample information for prediction.
It improves the coding efficiency of intra-frame prediction, reduces the computational complexity of performing intra-frame prediction on blocks, and enhances the compression performance of video coding.
Smart Images

Figure CN119277058A_ABST
Abstract
Description
Cross-references
[0001] The present disclosure claims priority to U.S. Provisional Application No. 62 / 629,519, filed on February 12, 2018, entitled “METHOD AND APPARATUS FOR MULTI-LINE INTRA PREDICTION IN VIDEO COMPRESSION”, and U.S. Application No. 16 / 200,128, filed on November 26, 2018, entitled “METHOD AND APPARATUS FOR MULTI-LINE INTRA PREDICTION IN VIDEO COMPRESSION”, the entire contents of the prior applications being incorporated herein by reference. Technical Field
[0002] The present application relates to the field of video encoding, and in particular to methods, devices and storage media for video encoding and decoding. Background Art
[0003] The background description provided herein is intended to generally present the context of the present application. The work of the presently named inventors is neither explicitly nor implicitly admitted to be prior art to the present invention for the various aspects of the description within the scope of the description in this background section and which were not prior art at the time of filing.
[0004] Video encoding and decoding can be performed using inter-picture prediction with motion compensation. An uncompressed digital video may include a series of pictures, each picture having spatial dimensions of, for example, 1920×1080 luma samples and associated chroma samples. The series of pictures may 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 (1920x1080 luma sample resolution, 60Hz frame rate) with 8 bits per sample requires a bandwidth of nearly 1.5Gbit / s. One hour of such video requires more than 600 gigabytes of storage space.
[0005] One goal 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, as well as combinations of the two, can be employed. Lossless compression refers to techniques in which an exact copy of the original signal can be reconstructed from the compressed original signal. When lossy compression is used, the reconstructed signal may not be the same as the original signal, but the distortion between the original and the reconstructed signal is small enough that the reconstructed signal is useful for the target application. Lossy compression is widely used for video. The amount of distortion tolerated depends on the application; for example, users of certain consumer streaming applications may be able to tolerate higher distortion than users of television distribution applications. The achievable compression ratio can reflect this: higher allowed / tolerated distortion can produce higher compression ratios.
[0006] Video encoders and decoders may utilize techniques from several broad categories including, for example, motion compensation, transforms, quantization, and entropy coding.
[0007] Video coding techniques may include intra-coding techniques. In intra-coding, sample values are represented without reference to samples or other data from previously reconstructed reference pictures. In some video codecs, a picture is spatially subdivided into sample blocks, and when all sample blocks are encoded using intra-mode, the picture can be an intra-picture. Intra-pictures and their derivatives, such as independent decoder refresh pictures, can be used to reset the state of the decoder and can therefore be used as the first picture in an encoded video stream and video session, or as a still image. Samples of intra-blocks can be transformed, and the transform coefficients can be quantized before entropy coding. Intra-prediction is a technique for minimizing sample values in the pre-transform domain. In some cases, the smaller the transformed DC value and the smaller the AC coefficient, the fewer bits are required to represent the entropy-coded block with a specified quantization step size.
[0008] Conventional intra-frame coding, such as known from, for example, MPEG-2 generation coding techniques, does not use intra-frame prediction. However, some newer video compression techniques include techniques that attempt to use intra-frame prediction from, for example, surrounding sample data and / or metadata obtained during encoding / decoding of spatially adjacent, and preceding data blocks in decoding order. Such techniques are hereinafter referred to as "intra-frame prediction" techniques. It should be noted that, at least in some cases, intra-frame prediction uses only reference data from the current image being reconstructed, rather than reference data from reference images.
[0009] Intra-frame prediction can take many different forms. When more than one such technique can be used for a given video coding technique, the technique used can be encoded using the intra-frame prediction mode. In some cases, a mode can have sub-modes and / or parameters, and those can be encoded separately and / or contained in the mode codeword. Which codeword is used for a given mode / sub-mode / parameter combination can have an impact on the coding efficiency gain with intra-frame prediction, and therefore the entropy coding technique that converts the codewords into the bitstream.
[0010] A mode of intra prediction was introduced with H.264, refined in H.265, and further refined in newer coding techniques such as the Joint Development Model (JEM), Next Generation Video Coding (VVC), and Benchmark Set (BMS). A prediction block can be formed from neighboring sample values of available samples. Sample values of neighboring samples are copied to the prediction block according to a certain direction. Reference to the direction used can be encoded in the bitstream, or it can itself be predicted.
[0011] As video coding technology has developed, the number of possible directions has increased. In H.264 (2003), 9 different directions were used. In H.265 (2013), the number of directions increased to 33, and JEM / VVC / BMS, when published, supports up to 65 directions. Experiments have been conducted to identify the most likely directions, and certain techniques in entropy coding have been used to represent those possible directions with fewer bits, while for those less likely directions, some loss can be accepted. Furthermore, the direction itself can sometimes be predicted based on the adjacent directions of adjacent coded blocks.
[0012] The mapping of intra-prediction direction bits representing directions in the encoded video bitstream can vary from video coding technique to video coding technique; for example, it can be a simple direct mapping from prediction directions to intra-prediction modes or to codewords, or it can be a complex adaptive strategy involving most probable modes and similar techniques. Those skilled in the art are readily familiar with those techniques. However, in all cases, there may be some directions that are statistically less likely to appear in the video content than other directions. Since the goal of video compression is to reduce redundancy, in a well-functioning video coding technique, those less likely directions will be represented by a greater number of bits than more likely directions.
[0013] In conventional intra prediction, the intra prediction process is limited to the lines (e.g., rows or columns) closest to the current block being predicted. However, other lines may also contain meaningful information for predicting the current block, thereby improving the prediction. Accordingly, considering lines other than the closest lines when performing intra prediction has a significant beneficial effect. Moreover, reference samples with different line indices may have different characteristics. Accordingly, setting the same number of intra prediction modes for different reference lines may not be optimal. Summary of the invention
[0014] According to an embodiment disclosed in the present application, a method for video decoding is provided. The method includes determining a reference line for a current block in a picture from a plurality of reference lines, each of the plurality of reference lines being parallel to one side of the current block; determining an intra-frame prediction mode of the current block according to the reference line determined from the plurality of reference lines; performing intra-frame prediction of the current block according to the determined intra-frame prediction mode and one or more samples contained in the reference line determined from the plurality of reference lines; wherein the plurality of reference lines include adjacent reference lines and at least one non-adjacent reference line, wherein the adjacent reference line is adjacent to the current block, the at least one non-adjacent reference line is not adjacent to the current block, and the number of intra-frame prediction modes associated with each of the at least one non-adjacent reference line is equal to or less than half of the number of intra-frame prediction modes associated with the adjacent reference line.
[0015] According to an embodiment disclosed in the present application, a video decoder for video decoding is provided, comprising a processing circuit for determining a reference line for a current block in a picture from a plurality of reference lines, each of the plurality of reference lines being parallel to a side of the current block; determining an intra-frame prediction mode of the current block according to the reference line determined from the plurality of reference lines; performing intra-frame prediction of the current block according to the determined intra-frame prediction mode and one or more samples contained in the reference line determined from the plurality of reference lines; wherein the plurality of reference lines comprise adjacent reference lines and at least one non-adjacent reference line, wherein the adjacent reference lines are adjacent to the current block, the at least one non-adjacent reference line is not adjacent to the current block, and the number of intra-frame prediction modes associated with each non-adjacent reference line of the at least one non-adjacent reference line is equal to or less than half of the number of intra-frame prediction modes associated with the adjacent reference lines. BRIEF DESCRIPTION OF THE DRAWINGS
[0016] Further features, properties and various advantages of the subject matter disclosed in this application will become more apparent from the following detailed description and accompanying drawings, in which:
[0017] Figure 1 A simplified block diagram of a communication system according to an embodiment of the present application is schematically shown;
[0018] Figure 2 A simplified block diagram of a communication system according to an embodiment of the present application is schematically shown;
[0019] Figure 3 A simplified block diagram of a decoder according to an embodiment of the present application is schematically shown;
[0020] Figure 4 A schematic diagram of a simplified block diagram of an encoder according to one embodiment of the present application is shown;
[0021] Figure 5 A block diagram of an encoder according to another embodiment of the present application is shown;
[0022] Figure 6 A block diagram of a decoder according to another embodiment of the present application is shown;
[0023] Fig. 7A and 7B Various angular modes of 35 prediction modes are shown;
[0024] Fig. 8A and 8B Various angular modes of 67 prediction modes are shown;
[0025] Fig. 9 is a schematic illustration of an exemplary intra-frame prediction mode;
[0026] Fig.10 A schematic diagram of multi-line intra-frame prediction according to an embodiment;
[0027] Fig.11 The process performed by an encoder or a decoder of an embodiment is shown;
[0028] Fig.12 It is a schematic diagram of a computer system according to an embodiment of the present application. DETAILED DESCRIPTION
[0029] Figure 1 The simplified block diagram of a communication system (100) according to an embodiment of the present application is schematically shown. The communication system (100) includes a plurality of terminal devices, which can communicate with each other through, for example, a network (150). For example, the communication system (100) includes a terminal device (110) and a terminal device (120) interconnected through the network (150). Figure 1 In an embodiment, the terminal device (110) and the terminal device (120) perform unidirectional data transmission. For example, the terminal device (110) may encode video data (e.g., a video picture stream collected by the terminal device (110)) for transmission to another terminal device (120) via the network (150). The encoded video data is transmitted in the form of one or more encoded video code streams. The terminal device (120) may receive the encoded video data from the network (150), 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.
[0030] In another embodiment, the communication system (100) includes a terminal device (130) and a terminal device (140) 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 (130) and the terminal device (140) can encode video data (e.g., a video picture stream collected by the terminal device) to transmit to the other terminal device (130) and the terminal device (140) through a network (150). Each of the terminal devices (130) and the terminal device (140) can also receive the encoded video data transmitted by the other terminal device (130) and the terminal device (140), 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.
[0031] exist Figure 1In the embodiment of the present invention, the terminal device (110), the terminal device (120), the terminal device (130) and the terminal device (140) 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 (150) represents any number of networks that transmit encoded video data between the terminal devices (110), the terminal devices (120), the terminal devices (130) and the terminal devices (140), including, for example, wired (wired) and / or wireless communication networks. The communication network (150) 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 purposes of the present application, unless explained below, the architecture and topology of the network (150) may be irrelevant to the operations disclosed in the present application.
[0032] As an example, Figure 2 The 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.
[0033] The streaming system may include an acquisition subsystem (213), which may include a video source (201) such as a digital camera, which creates an uncompressed video picture stream (202). In an embodiment, the video picture stream (202) includes samples taken by a digital camera. Compared to the encoded video data (204) (or the encoded video bitstream), the video picture stream (202) is depicted as a thick line to emphasize the high data volume of the video picture stream, and the video picture stream (202) can be processed by an electronic device (220), which includes a video encoder (203) coupled to the video source (201). The video encoder (203) 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 (202), the encoded video data (204) (or the encoded video bitstream (204)) is depicted as a thin line to emphasize the lower amount of data of the encoded video data (204) (or the encoded video bitstream (204)), which can be stored on the streaming server (205) for future use. One or more streaming client subsystems, such as Figure 2The client subsystem (206) and the client subsystem (208) in the streaming server (205) can access the streaming server (205) to retrieve the copy (207) and the copy (209) of the encoded video data (204). The client subsystem (206) may include, for example, a video decoder (210) in the electronic device (230). The video decoder (210) decodes the incoming copy (207) of the encoded video data and generates an output video picture stream (211) that can be presented on a display (212) (e.g., a display screen) or another presentation device (not depicted). In some streaming systems, the encoded video data (204), the video data (207), and the video data (209) (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.
[0034] It should be noted that the electronic device (220) and the electronic device (230) may include other components (not shown). For example, the electronic device (220) may include a video decoder (not shown), and the electronic device (230) may also include a video encoder (not shown).
[0035] Figure 3 1 is a block diagram of a video decoder (310) according to an embodiment disclosed in the present application. The video decoder (310) may be provided in an electronic device (330). The electronic device (330) may include a receiver (331) (e.g., a receiving circuit). The video decoder (310) may be used to replace Figure 2 A video decoder (210) of an embodiment.
[0036] The receiver (331) may receive one or more encoded video sequences to be decoded by the video decoder (310); 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 (301), which may be a hardware / software link to a storage device storing the encoded video data. The receiver (331) 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 (331) may separate the encoded video sequence from the other data. To prevent network jitter, a buffer memory (315) may be coupled between the receiver (331) and the entropy decoder / parser (320) (hereinafter referred to as "parser (320)"). In some applications, the buffer memory (315) is part of the video decoder (310). In other cases, the buffer memory (315) may be provided external to the video decoder (310) (not shown). In other cases, a buffer memory (not shown) is provided outside the video decoder (310) to prevent network jitter, for example, and another buffer memory (315) may be configured inside the video decoder (310) to handle broadcast timing, for example. When the receiver (331) 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 (315), 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 (315) 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 (310).
[0037] The video decoder (310) may include a parser (320) to reconstruct symbols (321) from the encoded video sequence. The types of symbols include information for managing the operation of the video decoder (310) and potential information for controlling a display device such as a display device (312) (e.g., a display screen) that is not part of the electronic device (330) but can be coupled to the electronic device (330), such as Figure 3As shown in . The control information for the display device may be a parameter set fragment (not indicated) of Supplemental Enhancement Information (SEI message) or Video Usability Information (VUI). The parser (320) 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 (320) 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 (320) may also extract information from the encoded video sequence, such as transform coefficients, quantizer parameter values, motion vectors, and so on.
[0038] The parser (320) may perform entropy decoding / parsing operations on the video sequence received from the buffer memory (315) to create symbols (321).
[0039] 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 (321) 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 (320) from the coded video sequence. For the sake of brevity, such subgroup control information flow between the parser (320) and the multiple units below is not described.
[0040] In addition to the functional blocks already mentioned, the video decoder (310) 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.
[0041] The first unit is a sealer / inverse transform unit (351). The sealer / inverse transform unit (351) receives quantized transform coefficients as symbols (321) from the parser (320) and control information, including which transform method to use, block size, quantization factor, quantization scaling matrix, etc. The sealer / inverse transform unit (351) can output a block including sample values, which can be input into an aggregator (355).
[0042] In some cases, the output samples of the scaler / inverse transform unit (351) 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-picture prediction unit (352). In some cases, the intra-picture prediction unit (352) generates surrounding blocks of the same size and shape as the block being reconstructed using reconstructed information extracted from a current picture buffer (358). For example, the current picture buffer (358) buffers a partially reconstructed current picture and / or a fully reconstructed current picture. In some cases, the aggregator (355) adds the prediction information generated by the intra-prediction unit (352) to the output sample information provided by the scaler / inverse transform unit (351) on a per-sample basis.
[0043] In other cases, the output samples of the scaler / inverse transform unit (351) may belong to an inter-frame coded and potentially motion compensated block. In this case, the motion compensated prediction unit (353) may access the reference picture memory (357) to extract samples for prediction. After the extracted samples are motion compensated according to the symbols (321), these samples may be added to the output of the scaler / inverse transform unit (351) (in this case referred to as residual samples or residual signals) by the aggregator (355) to generate output sample information. The acquisition of the predicted samples by the motion compensated prediction unit (353) from the address in the reference picture memory (357) may be controlled by a motion vector, and the motion vector is provided to the motion compensated prediction unit (353) in the form of the symbols (321), for example, including X, Y and reference picture components. Motion compensation may also include interpolation of sample values extracted from the reference picture memory (357) when using sub-sample accurate motion vectors, motion vector prediction mechanisms, and the like.
[0044] The output samples of the aggregator (355) may be used by various loop filtering techniques in a loop filter unit (356). The video compression techniques may include in-loop filter techniques that are controlled by parameters included in the encoded video sequence (also referred to as the encoded video bitstream) and that are available to the loop filter unit (356) as symbols (321) from the parser (320). 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.
[0045] The output of the loop filter unit (356) may be a sample stream that may be output to a display device (312) and stored in a reference picture memory (357) for subsequent inter-picture prediction.
[0046] 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 (320)), the current picture buffer (358) may become part of the reference picture memory (357), and a new current picture buffer may be reallocated before starting to reconstruct a subsequent coded picture.
[0047] The video decoder (310) 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 metadata of the HRD buffer management signaled in the encoded video sequence.
[0048] In an embodiment, the receiver (331) 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 (310) 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.
[0049] Figure 4 4 is a block diagram of a video encoder (403) according to an embodiment disclosed in the present application. The video encoder (403) is provided in an electronic device (420). The electronic device (420) includes a transmitter (440) (e.g., a transmission circuit). The video encoder (403) can be used to replace Figure 2 A video encoder (203) in an embodiment.
[0050] The video encoder (403) can be used to obtain the video source (401) (not Figure 4 In another embodiment, the video source (401) is a part of the electronic device (420) to receive video samples, and the video source can collect video images to be encoded by the video encoder (403). In another embodiment, the video source (401) is a part of the electronic device (420).
[0051] The video source (401) may provide a source video sequence in the form of a digital video sample stream to be encoded by the video encoder (403), 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 (401) may be a storage device storing previously prepared videos. In a video conferencing system, the video source (401) 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.
[0052] According to an embodiment, the video encoder (403) may encode and compress pictures of a source video sequence into an encoded video sequence (443) in real time or under any other time constraints required by the application. Implementing an appropriate encoding speed is a function of the controller (450). In some embodiments, the controller (450) controls other functional units as described below and is functionally coupled to these units. For the sake of simplicity, couplings are not shown in the figure. The parameters set by the controller (450) 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 (450) can be used to have other suitable functions that are related to the video encoder (403) optimized for a certain system design.
[0053] In some embodiments, the video encoder (403) operates in an encoding loop. As a simple description, in embodiments, the encoding loop may include a source encoder (430) (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 (433) embedded in the video encoder (403). The decoder (433) 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 (434). 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 (434) 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.
[0054] The operation of the "local" decoder (433) may be combined with, for example, Figure 3 The "remote" decoder described in detail for the video decoder (310) is identical. However, additional brief reference is made to Figure 3 , when symbols are available and the entropy encoder (445) and parser (320) are capable of losslessly encoding / decoding the symbols into an encoded video sequence, the entropy decoding portion of the video decoder (310), including the buffer memory (315) and the parser (320), may not be fully implemented in the local decoder (433).
[0055] 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.
[0056] During operation, in some embodiments, the source encoder (430) 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 (432) 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.
[0057] The local video decoder (433) 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 (430). The operation of the encoding engine (432) may be a lossy process. When the encoded video data is available at the video decoder ( Figure 4 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 (433) 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 (434). In this way, the video encoder (403) may locally store a copy of the reconstructed reference picture that has common content (absent transmission errors) with the reconstructed reference picture that will be obtained by the remote video decoder.
[0058] The predictor (435) may perform a prediction search for the encoding engine (432). That is, for a new picture to be encoded, the predictor (435) may search the reference picture memory (434) 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 (435) 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 (435), 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 (434).
[0059] The controller (450) may manage encoding operations of the source encoder (430), including, for example, setting parameters and subgroup parameters for encoding video data.
[0060] The outputs of all the above functional units may be entropy encoded in an entropy encoder (445). The entropy encoder (445) performs lossless compression on the symbols generated by the various functional units according to techniques known to those skilled in the art, such as Huffman coding, variable length coding, arithmetic coding, etc., thereby converting the symbols into a coded video sequence.
[0061] The transmitter (440) may buffer the encoded video sequence created by the entropy encoder (445) in preparation for transmission over a communication channel (460), which may be a hardware / software link to a storage device where the encoded video data will be stored. The transmitter (440) may combine the encoded video data from the video encoder (403) with other data to be transmitted, such as encoded audio data and / or ancillary data streams (source not shown).
[0062] The controller (450) may manage the operation of the video encoder (403). During encoding, the controller (450) 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:
[0063] An intra picture (I-frame) 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 variations of I-frames and their corresponding applications and features.
[0064] Predictive pictures (P-frames), which may be pictures 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.
[0065] Bidirectional predictive pictures (B-frames), 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.
[0066] 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 I frames may be non-predictively coded, or they may be predictively coded (spatial prediction or intra-frame prediction) with reference to already coded blocks of the same picture. Blocks of pixels of P frames may be predictively coded by spatial prediction with reference to one previously coded reference picture or by temporal prediction. Blocks of B frames may be predictively coded by spatial prediction with reference to one or two previously coded reference pictures or by temporal prediction.
[0067] The video encoder (403) 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 (403) 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.
[0068] In an embodiment, the transmitter (440) may transmit additional data when transmitting the encoded video. The source encoder (430) 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 (Supplementary Enhancement Information) messages, VUI (Visual Usability Information) parameter set fragments, etc.
[0069] 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.
[0070] 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.
[0071] In addition, merge mode technology can be used in inter-picture prediction to improve coding efficiency. In merge mode, a block in the current picture can inherit the motion vector of a neighboring block in the current picture (e.g., sharing boundaries with a block in the current picture, and being placed in a larger partitioned area with a block in the current picture).
[0072] 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.
[0073] Figure 51 is a diagram of a video encoder (503) according to another embodiment disclosed in the present application. The video encoder (503) 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 (503) is used to replace Figure 2 A video encoder (203) in an embodiment.
[0074] In an HEVC embodiment, a video encoder (503) receives a matrix of sample values for a processing block, such as a prediction block of 8×8 samples. The video encoder (503) 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 (503) 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 (503) 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 (503) includes other components, such as a mode decision module (not shown) for determining the processing block mode.
[0075] exist Figure 5 In an embodiment of the present invention, the video encoder (503) includes: Figure 5 Shown are an inter-frame encoder (530), an intra-frame encoder (522), a residual calculator (523), a switch (526), a residual encoder (524), a general controller (521), and an entropy encoder (525) coupled together.
[0076] The inter-frame encoder (530) is used to receive a sample 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, motion vector, merge mode information according to the inter-frame coding technology), and calculate an inter-frame prediction result (e.g., a predicted block) based on the inter-frame prediction information using any suitable technology.
[0077] The intra encoder (522) 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).
[0078] The general controller (521) is used to determine the general control data and control other components of the video encoder (503) based on the general control data. In an embodiment, the general controller (521) determines the mode of the block and provides a control signal to the switch (526) based on the mode. For example, when the mode is intra mode, the general controller (521) controls the switch (526) to select the intra mode result for use by the residual calculator (523) and controls the entropy encoder (525) to select the intra prediction information and add the intra prediction information to the bitstream; and when the mode is inter mode, the general controller (521) controls the switch (526) to select the inter prediction result for use by the residual calculator (523) and controls the entropy encoder (525) to select the inter prediction information and add the inter prediction information to the bitstream.
[0079] The residual calculator (523) is used to calculate the difference (residual data) between the received block and the prediction result selected from the intra-frame encoder (622) or the inter-frame encoder (530). The residual encoder (524) is used to operate based on the residual data to encode the residual data to generate transform coefficients. In an embodiment, the residual encoder (524) is used to convert the residual data from the time domain to the frequency domain and generate transform coefficients. The transform coefficients are then quantized to obtain quantized transform coefficients.
[0080] The entropy encoder (525) is used to format the code stream to produce an encoded block. The entropy encoder (525) generates various information according to a suitable standard such as the HEVC standard. In an embodiment, the entropy encoder (525) 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.
[0081] Figure 6 FIG. 6 is a diagram of a video decoder (610) according to another embodiment disclosed in the present application. The video decoder (610) 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 (610) is used to replace Figure 2 A video decoder (210) of an embodiment.
[0082] exist Figure 6 In one embodiment, the video decoder (610) includes: Figure 6 An entropy decoder (671), an inter-frame decoder (680), a residual decoder (673), a reconstruction module (674) and an intra-frame decoder (672) coupled together are shown in FIG.
[0083] The entropy decoder (671) 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 (672) or the inter decoder (780), 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 (680); and when the prediction type is an intra prediction type, the intra prediction information is provided to the intra decoder (672). The residual information may be inverse quantized and provided to the residual decoder (673).
[0084] The inter-frame decoder (680) is used for receiving the inter-frame prediction information and generating an inter-frame prediction result based on the inter-frame prediction information.
[0085] The intra-frame decoder (672) is used to receive intra-frame prediction information and generate a prediction result based on the intra-frame prediction information.
[0086] The residual decoder (673) 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 (673) may also require some control information (to obtain the quantizer parameter QP), and this information can be provided by the entropy decoder (671) (the data path is not indicated because this is only low-volume control information).
[0087] The reconstruction module (674) is used to combine the residual output by the residual decoder (673) 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.
[0088] It should be noted that the video encoder (203), video encoder (403) and video encoder (503) and video decoder (210), video decoder (310) and video decoder (610) may be implemented using any suitable technology. In an embodiment, the video encoder (203), video encoder (403) and video encoder (503) and video decoder (210), video decoder (310) and video decoder (610) may be implemented using one or more integrated circuits. In another embodiment, the video encoder (203), video encoder (403) and video encoder (503) and video decoder (210), video decoder (310) and video decoder (610) may be implemented using one or more processors that execute software instructions.
[0089] Fig. 7A and 7B An embodiment of a total of 35 intra prediction modes including 33 angular modes is shown. Mode 0 is an intra-frame plane (INTRA-PLANAR) prediction mode, and mode 1 is an intra-frame mean (INTRA_DC) prediction mode. Moreover, modes 2-34 represent intra-frame angular modes. As understood by those skilled in the art, mode 10 is a horizontal angular mode, and mode 26 is a vertical mode.
[0090] Fig. 8A and 8B A total of 67 intra prediction modes including 65 angular modes are shown. Mode 0 is the intra plane (INTRA_PLANAR) prediction mode, and mode 1 is the intra mean (INTRA_DC) prediction mode. Moreover, modes 2-66 represent the intra angular modes INTRA_ANGULAR2-INTRA_ANGULAR66, respectively. As understood by those skilled in the art, mode 18 is a horizontal mode and mode 50 is a vertical mode.
[0091] Fig. 9 An embodiment of an exemplary angular mode for intra prediction is shown. Fig. 9 In the figure, the lower right corner depicts an example including 9 prediction directions, which can be from 35 possible prediction directions of H.265. The point (901) where the arrows converge represents the sample being predicted. The arrow represents the prediction direction of the sample. For example, arrow (902) represents the prediction of sample (901) based on one or more samples at an angle of 45 degrees to the upper right of sample (901) from the horizontal axis. Similarly, arrow (903) represents the prediction of sample (901) based on one or more samples at an angle of 22.5 degrees to the lower left of sample (901) from the horizontal axis.
[0092] Still reference Fig. 9, a square block (904) containing 4x4 samples is depicted in the upper left (shown by the dashed thick line). The square block (904) includes 16 samples, each of which is labeled with "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) in the square block (904). Similarly, sample S44 is the fourth sample in the X dimension and the Y dimension in the square block (904). Since the size of the square block (904) is 4x4 samples, sample S44 is in the lower right corner. Fig. 9 Reference samples are further shown that follow a similar numbering strategy. Each reference sample is labeled with "R", its Y position relative to the square block (904) (e.g., row index), and its X position relative to the square block (904) (column index). Intra-picture prediction can work by copying reference sample values from adjacent samples according to a signaled prediction direction. For example, assume that the encoded video code stream includes a signal for this block that indicates a prediction direction consistent with arrow (902) - that is, the sample is predicted based on one or more prediction samples to the upper right of sample (901) and at a 45 degree angle from the horizontal axis. In this case, samples S41, S32, S23, and S14 are predicted based on the same reference sample R05. Next, sample S44 is predicted based on reference sample R08.
[0093] In some cases, the values of multiple reference samples may be combined, for example by interpolation, to calculate the reference sample; in particular, when the directions are not evenly divisible into 45 degree angles.
[0094] Fig.10 An embodiment of multiple candidate reference lines for a current block 1000 is shown. The block 1000 and the associated candidate reference lines may be part of a larger picture. Fig.10 As shown, for the intra directional mode, the number of candidate reference rows (e.g., rows or columns) ranges from 1 (i.e., the line closest to block 1000) to N, where in one embodiment, N is an integer greater than 1, and in another embodiment, N is equal to or greater than 1. Each reference row can be indexed from 1 to N (e.g., reference row (i)). For example, reference row (1) refers to reference rows 1002a and 1002b that are closest to block 1000. Reference row (2) refers to reference rows 1004a and 1004b. Reference row (3) refers to reference rows 1006a and 1006b. Reference row (N) refers to reference rows 1008a and 1008b that are farthest from block 1000.
[0095] The current block 1000 may be a 4x4 prediction unit (PU). One of the N reference lines may be selected to calculate the prediction value. For example, the prediction value p(x, y) may be generated based on reference samples S1, S2, ... SN, depending on which reference line is selected to perform intra prediction. In some embodiments, a flag is signaled to indicate which reference line is selected for intra directional mode. For example, if N is equal to 4, a 2-bit flag may be used to indicate one of the following 4 different reference lines: 00 = 1st reference row (e.g., 1002a, 1002b) 01 = 2nd reference row (e.g., 1004a, 1004b) 10 = 3rd reference row (e.g., 1006a, 1006b) 11 = 4th reference row (e.g., 1008a, 1008b)
[0096] In some embodiments, for smooth regions, the first reference row (eg, 1002a, 1002b) takes precedence over other reference rows.
[0097] According to some embodiments, each reference line is associated with a different number of intra prediction modes. Fig.10 , when N is equal to 4, the 1st reference row (e.g., 1002a, 1002b) is associated with 67 patterns, the 2nd reference row (e.g., 1004a, 1004b) is associated with 35 patterns, the 3rd reference row (e.g., 1006a, 1006b) is associated with 17 patterns, and the 4th reference row (e.g., 1008a, 1008b) is associated with 9 patterns.
[0098] According to some embodiments, reference lines with indices greater than 1 (e.g., reference lines other than the reference line closest to the current block) are associated with the same number of inter-frame prediction modes, but less than the number of intra-frame prediction modes of the first reference line (e.g., 1002a, 1002b). For example, the first reference line (e.g., 1002a, 1002b) may be associated with 67 intra-frame prediction modes, and each of the other reference lines may be associated with 35 intra-frame prediction modes. As another example, the first reference line (e.g., 1002a, 1002b) may be associated with 67 intra-frame prediction modes, and each of the other reference lines may be associated with 17 intra-frame prediction modes. By specifying fewer prediction modes for reference lines other than the first reference line (e.g., 1002a, 1002b), a significant advantageous feature of reducing computational complexity when performing intra-frame prediction on a block is achieved.
[0099] In some embodiments, a look-up table (LUT) may be used to store the relationship between each reference line and a number of intra prediction modes associated with each reference line. For example, when there are 4 reference lines (e.g., N=4), the LUT may specify that the first reference line (e.g., 1002a, 1002b) is associated with 67 intra prediction modes, and each of the second to fourth reference lines is associated with 35 intra prediction modes.
[0100] Fig.11 1 shows a process performed by an encoder or decoder, such as the intra-frame encoder 522 or the intra-frame decoder 672, in an embodiment. The process generally starts at step S1100, where a reference line is determined for a current block in a picture from a plurality of reference lines. The plurality of reference lines may be two or more reference lines. For example, reference lines Fig.10 , a mark can be used to represent any one of reference lines 1 (e.g., 1002a, 1002b) to N (1008a, 1008b).
[0101] The process continues to step S1102, where an intra prediction mode of the current block is determined based on the reference line determined from the plurality of reference lines. For example, the number of intra prediction modes associated with the determined reference line can be determined by querying a LUT that indicates the number of intra prediction modes associated with each reference line. When the number of intra prediction modes for the determined reference line is determined, the number of angle modes is also known in addition to the INTRA_PLANAR and INTRA_DC modes. For example, the reference line Fig. 7A and 7B , when the LUT indicates that the number of intra prediction modes of the determined reference row is 35, the intra prediction mode of the current block can be any angle mode from angular modes 2 to 34. Fig.12 The specified process and the corresponding written description of U.S. Patent Application No. 16 / 147,544, entitled “Most Probable Mode Derivation Method and Apparatus”, filed on September 28, 2018, can perform a process of determining an intra-frame prediction mode for a current block. The entire contents of the U.S. Patent Application are incorporated herein by reference.
[0102] The process continues to step S1104, performing intra-frame prediction of the current block according to the determined intra-frame prediction mode and one or more samples contained in the reference line determined from the multiple reference lines. The multiple reference lines include adjacent reference lines and at least one non-adjacent reference line, wherein the adjacent reference line is adjacent to the current block, the at least one non-adjacent reference line is not adjacent to the current block, and the number of intra-frame prediction modes associated with each non-adjacent reference line in the at least one non-adjacent reference line is equal to or less than half of the number of intra-frame prediction modes associated with the adjacent reference line. For example, the reference line Fig.10 , when the determined reference line is the second reference line (e.g., 1004a, 1004b), the reference line may be associated with 35 intra-frame prediction modes. Accordingly, if the intra-frame prediction mode of block 1000 is determined to be 18 (see, e.g., Figure 7B ), then sample S2 can be used to predict p(x,y).
[0103] The above techniques may be implemented as computer software via computer-readable instructions and physically stored in one or more computer-readable media. Fig.12 A computer system (1200) suitable for implementing certain embodiments of the disclosed subject matter is shown.
[0104] The computer software may be encoded in any suitable machine code or computer language, and may be assembled, compiled, linked, or the like to create a code comprising instructions, which may be directly executed by one or more computer central processing units (CPUs), graphics processing units (GPUs), etc., or executed by decoding, microcode, or the like.
[0105] The instructions may be executed on various types of computers or components thereof, including, for example, personal computers, tablets, servers, smartphones, gaming devices, IoT devices, etc.
[0106] Fig.12 The components shown for the computer system (1200) are exemplary in nature and are not intended to suggest any limitation on the scope of use or functionality of computer software implementing embodiments of the invention. Nor should the configuration of components be interpreted as having any dependency or requirement on any one or combination of components illustrated in the exemplary embodiment of the computer system (1200).
[0107] The computer system (1200) may include certain human-computer interface input devices. The human-computer interface input devices may respond to input from one or more human users through tactile input (e.g., keyboard input, sliding, data glove movement), audio input (e.g., sound, applause), visual input (e.g., gestures), and olfactory input (not shown). The human-computer interface devices may also be used to capture certain media that are not necessarily directly related to human conscious input, such as audio (e.g., voice, music, ambient sound), images (e.g., scanned images, photographic images obtained from a still image camera), and videos (e.g., two-dimensional video, three-dimensional video including stereoscopic video).
[0108] The human-computer interface input device may include one or more of the following (only one of which is depicted): keyboard (1201), mouse (1202), touchpad (1203), touch screen (1210), data gloves (not shown), joystick (1205), microphone (1206), scanner (1207), camera (1208).
[0109] The computer system (1200) may also include certain human-computer interface output devices. The human-computer interface output devices may stimulate one or more human user senses through, for example, tactile output, sound, light, and smell / taste. The human-computer interface output devices may include tactile output devices (e.g., tactile feedback through a touch screen (1210), a data glove (not shown), or a joystick (1205), but there may also be tactile feedback devices that are not input devices), audio output devices (e.g., speakers (1209), headphones (not shown)), visual output devices (e.g., screens (1210) including cathode ray tube screens, liquid crystal screens, plasma screens, organic light emitting diode screens, each of which may or may not have a touch screen input function, tactile feedback function - some of which may output two-dimensional visual output or output of more than three dimensions through means such as stereoscopic image output; virtual reality glasses (not shown), holographic displays, and smoke boxes (not shown)) and printers (not shown).
[0110] The computer system (1200) may also include human-accessible storage devices and their associated media, such as optical media including media (1221) such as CD / DVD ROM / RW (1220) with CD / DVD, thumb drives (1222), removable hard drives or solid-state drives (1223), traditional magnetic media such as tapes and floppy disks (not shown), dedicated ROM / ASIC / PLD-based devices such as security software protectors (not shown), and the like.
[0111] Those skilled in the art will also appreciate that the term "computer-readable media" used in conjunction with the subject matter of the present invention does not include transmission media, carrier waves, or other transient signals.
[0112] The computer system (1200) may also include an interface to one or more communication networks. For example, the network may be wireless, wired, or optical. The network may also be a local area network, a wide area network, a metropolitan area network, an in-vehicle network, an industrial network, a real-time network, a delay-tolerant network, and the like. The network also includes local area networks such as Ethernet, wireless local area networks, cellular networks (GSM, 3G, 4G, 5G, LTE, etc.), television wired or wireless wide area digital networks (including cable television, satellite television, and terrestrial broadcast television), in-vehicle and industrial networks (including CANBus), and the like. Some networks typically require an external network interface adapter connected to some universal data port or peripheral bus (1249) (e.g., a USB port of the computer system (1200)); other systems are typically integrated into the core of the computer system (1200) by connecting to a system bus as described below (e.g., an Ethernet interface integrated into a PC computer system or a cellular network interface integrated into a smart phone computer system). By using any of these networks, the computer system (1200) can communicate with other entities. The communication can be one-way, for receiving only (e.g., wireless television), one-way for sending only (e.g., CAN bus to certain CAN bus devices), or two-way, such as to other computer systems via a local or wide area digital network. Each of the above networks and network interfaces can use certain protocols and protocol stacks.
[0113] The aforementioned human-machine interface devices, human-accessible storage devices, and network interfaces may be connected to the core (1240) of the computer system (1200).
[0114] The core (1240) may include one or more central processing units (CPUs) (1241), graphics processing units (GPUs) (1242), dedicated programmable processing units in the form of field programmable gate arrays (FPGAs) (1243), hardware accelerators for specific tasks (1244), etc. The above devices as well as read-only memory (ROM) (1245), random access memory (1246), internal large-capacity storage (e.g., internal non-user accessible hard disk drives, SSDs, etc.) (1247), etc. may be connected via a system bus (1248). In some computer systems, the system bus (1248) may be accessed in the form of one or more physical plugs for expansion by additional central processing units, graphics processing units, etc. Peripheral devices may be directly attached to the system bus (1248) of the core, or connected via a peripheral bus (1249). The architecture of the peripheral bus includes a peripheral controller interface PCI, a universal serial bus USB, etc.
[0115] The CPU (1241), GPU (1242), FPGA (1243) and accelerator (1244) can execute certain instructions, which can be combined to form the above-mentioned computer code. The computer code can be stored in ROM (1245) or RAM (1246). Transition data can also be stored in RAM (1246), while permanent data can be stored in, for example, internal mass storage (1247). Fast storage and retrieval of any memory device can be achieved by using a cache, which can be closely associated with one or more CPUs (1241), GPUs (1242), mass storage (1147), ROM (1145), RAM (1146), etc.
[0116] The computer readable medium may have computer codes for performing various computer-implemented operations. The medium and computer codes may be specially designed and constructed for the purpose of the present invention, or may be medium and codes well known and available to those skilled in the art of computer software.
[0117] As an example and not limitation, a computer system having the architecture (1200), in particular the core (1240), can provide functionality as a processor (including a CPU, GPU, FPGA, accelerator, etc.) to execute software contained in one or more tangible computer-readable media. Such computer-readable media can be media associated with a user-accessible mass storage as described above, as well as a specific memory of the core (1240) having a non-transient nature, such as a core internal mass storage (1247) or ROM (1245). Software implementing various embodiments of the present invention can be stored in such a device and executed by the core (1240). Depending on specific needs, the computer-readable medium may include one or more storage devices or chips. The software can cause the core (1240), in particular the processor therein (including a CPU, GPU, FPGA, etc.) to perform a specific process or a specific part of a specific process described herein, including defining a data structure stored in RAM (1246) and modifying such a data structure according to a software-defined process. Additionally or alternatively, the computer system may provide functionality hardwired in logic or otherwise contained in circuitry (e.g., accelerator (1244)) that may operate in place of or in conjunction with software to perform specific processes or specific portions of specific processes described herein. Where appropriate, references to software may include logic and vice versa. Where appropriate, references to computer-readable media may include circuitry (such as an integrated circuit (IC)) storing execution software, circuitry containing execution logic, or both. The present invention includes any suitable combination of hardware and software. Appendix A: Acronyms MV:Motion Vector HEVC:High Efficiency Video Coding SEI:Supplementary Enhancement Information VUI:Video Usability Information GOPs:Groups of Pictures TUs:Transform Units, PUs:Prediction Units CTUs:Coding Tree Units CTBs:Coding Tree Blocks PBs:Prediction Blocks HRD:Hypothetical Reference Decoder SNR:Signal Noise Ratio CPUs:Central Processing Units GPUs:Graphics Processing Units CRT:Cathode Ray Tube LCD:Liquid-Crystal Display OLED:Organic Light-Emitting Diode CD:Compact Disc DVD:Digital Video Disc ROM:Read-Only Memory RAM:Random Access Memory ASIC:Application-Specific Integrated Circuit PLD:Programmable Logic Device LAN:Local Area Network GSM:Global System for Mobile communications LTE:Long-Term Evolution CANBus:Controller Area Network Bus USB: Universal Serial Bus PCI: Peripheral Component Interconnect FPGA:Field Programmable Gate Areas SSD: solid-state drive IC: Integrated Circuit
[0118] Although the present invention has been described for a number of exemplary embodiments, various changes, permutations and various substitutions of the embodiments are within the scope of the present invention. It should therefore be understood that those skilled in the art are capable of designing a variety of systems and methods that, although not explicitly shown or described herein, embody the principles of the present invention and are therefore within the spirit and scope of the present invention.
[0119] (1) A method for video decoding, characterized in that it includes: determining a reference line for a current block in a picture from a plurality of reference lines, each reference line in the plurality of reference lines being parallel to a side of the current block; determining an intra-frame prediction mode of the current block according to the reference line determined from the plurality of reference lines; performing intra-frame prediction of the current block according to the determined intra-frame prediction mode and one or more samples contained in the reference line determined from the plurality of reference lines; wherein the plurality of reference lines include adjacent reference lines and at least one non-adjacent reference line, wherein the adjacent reference lines are adjacent to the current block, the at least one non-adjacent reference line is not adjacent to the current block, and the number of intra-frame prediction modes associated with each non-adjacent reference line in the at least one non-adjacent reference line is equal to or less than half of the number of intra-frame prediction modes associated with the adjacent reference lines.
[0120] (2) The method according to feature (1), wherein for each non-adjacent reference line in the at least one non-adjacent reference line, the number of intra prediction modes associated therewith is the same.
[0121] (3) A method according to feature (1), wherein, for each non-adjacent reference line of the at least one non-adjacent reference line, the number of intra-frame prediction modes associated therewith decreases as the distance from the current block increases.
[0122] (4) A method according to any one of features (1) to (3), wherein the number of intra-frame prediction modes associated with the adjacent reference lines is 67, and the number of intra-frame prediction modes associated with each non-adjacent reference line in the at least one non-adjacent reference line is equal to or less than 33.
[0123] (5) A method according to any one of features (1) to (4), wherein each of the multiple reference lines is a line above the current block.
[0124] (6) A method according to any one of features (1) to (5), wherein each of the multiple reference rows is a column to the left of the current block.
[0125] (7) A video decoder for video decoding, comprising: a processing circuit, configured to: determine a reference line for a current block in a picture from a plurality of reference lines, each reference line in the plurality of reference lines being parallel to a side of the current block; determine an intra-frame prediction mode of the current block according to the reference line determined from the plurality of reference lines; perform intra-frame prediction of the current block according to the determined intra-frame prediction mode and one or more samples contained in the reference line determined from the plurality of reference lines; wherein the plurality of reference lines include adjacent reference lines and at least one non-adjacent reference line, wherein the adjacent reference lines are adjacent to the current block, the at least one non-adjacent reference line is not adjacent to the current block, and the number of intra-frame prediction modes associated with each non-adjacent reference line in the at least one non-adjacent reference line is equal to or less than half the number of intra-frame prediction modes associated with the adjacent reference lines.
[0126] (8) The video decoder according to feature (7), wherein for each non-adjacent reference line in the at least one non-adjacent reference line, the number of associated intra-frame prediction modes is the same.
[0127] (9) A video decoder according to feature (7), wherein for each of the at least one non-adjacent reference lines, the number of intra prediction modes associated therewith decreases as the distance from the current block increases.
[0128] (10) A video decoder according to any one of features (7) to (9), wherein the number of intra-frame prediction modes associated with the adjacent reference lines is 67, and the number of intra-frame prediction modes associated with each non-adjacent reference line in the at least one non-adjacent reference line is equal to or less than 33.
[0129] (11) A video decoder according to any one of features (7) to (10), wherein each reference line of the plurality of reference lines is a line above the current block.
[0130] (12) A video decoder according to any one of features (7) to (11), wherein each of the multiple reference lines is a column to the left of the current block.
[0131] (13) A non-volatile computer-readable storage medium storing a plurality of instructions, wherein when the instructions are executed by a processor in a video decoder, the processor executes a method comprising: determining a reference line for a current block in a picture from a plurality of reference lines, each of the plurality of reference lines being parallel to a side of the current block; determining an intra-frame prediction mode of the current block based on the reference line determined from the plurality of reference lines; performing intra-frame prediction of the current block based on the determined intra-frame prediction mode and one or more samples contained in the reference line determined from the plurality of reference lines; wherein the plurality of reference lines include adjacent reference lines and at least one non-adjacent reference line, wherein the adjacent reference lines are adjacent to the current block, the at least one non-adjacent reference line is not adjacent to the current block, and the number of intra-frame prediction modes associated with each of the at least one non-adjacent reference lines is equal to or less than half of the number of intra-frame prediction modes associated with the adjacent reference lines.
[0132] (14) The non-transitory computer-readable medium of feature (13), wherein for each of the at least one non-adjacent reference lines, the number of associated intra prediction modes is the same.
[0133] (15) A non-volatile computer-readable medium according to feature (13), wherein, for each non-adjacent reference line of the at least one non-adjacent reference line, the number of intra-frame prediction modes associated therewith decreases as the distance from the current block increases.
[0134] (16) A non-volatile computer-readable medium according to any one of features (13) to (15), wherein the number of intra-frame prediction modes associated with the adjacent reference lines is 67, and the number of intra-frame prediction modes associated with each of the at least one non-adjacent reference lines is equal to or less than 33.
[0135] (17) A non-volatile computer-readable medium according to any one of features (13) to (16), wherein each of the plurality of reference lines is a line above the current block.
[0136] (18) A non-volatile computer-readable medium according to any one of features (13) to (17), wherein each of the plurality of reference rows is a column to the left of the current block.
Claims
1. A video decoding method, characterized in that: include: receiving a flag for a current block, the flag indicating a reference line of a plurality of reference lines, each reference line of the plurality of reference lines being parallel to a side of the current block; determining the one reference line among the plurality of reference lines according to the mark; determining an intra prediction mode for the current block according to the one reference line determined from the plurality of reference lines; Performing intra prediction of the current block according to the determined intra prediction mode and one or more samples included in the reference line determined from the plurality of reference lines; The multiple reference lines include an adjacent reference line and at least one non-adjacent reference line, wherein the adjacent reference line is adjacent to the current block, and the at least one non-adjacent reference line is not adjacent to the current block, and for each non-adjacent reference line of the at least one non-adjacent reference line, the number of associated first intra-frame prediction modes is the same, and the number of first intra-frame prediction modes of each non-adjacent reference line is less than the number of second intra-frame prediction modes associated with the adjacent reference line.
2. The method according to claim 1, characterized in that: When the number of second intra prediction modes associated with the adjacent reference line is 67, the number of first intra prediction modes associated with each of the at least one non-adjacent reference line is equal to or less than 33.
3. The method according to claim 1, characterized in that For each non-adjacent reference line of the at least one non-adjacent reference line, as the distance from the current block increases, the number of intra prediction modes associated therewith decreases.
4. The method according to claim 1, characterized in that Each of the plurality of reference lines is a line above the current block.
5. The method according to any one of claims 1 to 2, characterized in that: Each of the plurality of reference lines is a column on the left side of the current block.
6. A video decoder for video decoding, characterized in that include: Processing circuitry for: receiving a flag for a previous block, the flag indicating a reference line of a plurality of reference lines, each reference line of the plurality of reference lines being parallel to a side of the current block; Determine the one reference line among the multiple reference lines according to the flag; determining an intra prediction mode for the current block according to the one reference line determined from the plurality of reference lines; Performing intra prediction of the current block according to the determined intra prediction mode and one or more samples included in the reference line determined from the plurality of reference lines; The multiple reference lines include an adjacent reference line and at least one non-adjacent reference line, wherein the adjacent reference line is adjacent to the current block, and the at least one non-adjacent reference line is not adjacent to the current block, and for each non-adjacent reference line of the at least one non-adjacent reference line, the number of associated first intra-frame prediction modes is the same, and the number of first intra-frame prediction modes of each non-adjacent reference line is less than the number of second intra-frame prediction modes associated with the adjacent reference line.
7. The video decoder according to claim 6, characterized in that When the number of second intra prediction modes associated with the adjacent reference line is 67, the number of first intra prediction modes associated with each of the at least one non-adjacent reference line is equal to or less than 33.
8. The video decoder according to claim 6, characterized in that For each non-adjacent reference line of the at least one non-adjacent reference line, as the distance from the current block increases, the number of intra prediction modes associated therewith decreases.
9. The video decoder according to claim 6, characterized in that Each reference line of the plurality of reference lines is a line above the current block.
10. The video decoder according to any one of claims 6 to 8, characterized in that: Each of the plurality of reference lines is a column on the left side of the current block.
11. A video decoder for video decoding, characterized in that: include: A processing module, configured to: receive a flag for a current block, the flag indicating a reference line among a plurality of reference lines, each of the plurality of reference lines being parallel to a side of the current block; determine the reference line among the plurality of reference lines according to the flag; and determine an intra-frame prediction mode for the current block according to the reference line determined from the plurality of reference lines; And performing intra-frame prediction of the current block according to the determined intra-frame prediction mode and one or more samples contained in the reference line determined from the multiple reference lines; wherein the multiple reference lines include an adjacent reference line and at least one non-adjacent reference line, wherein the adjacent reference line is adjacent to the current block, and the at least one non-adjacent reference line is not adjacent to the current block, and for each non-adjacent reference line of the at least one non-adjacent reference line, the number of associated first intra-frame prediction modes is the same, and the number of first intra-frame prediction modes of each non-adjacent reference line is less than the number of second intra-frame prediction modes associated with the adjacent reference line.
12. A video encoding method, comprising: determining a flag for a current block of a picture, the flag indicating a reference line from a plurality of reference lines, each reference line from the plurality of reference lines being parallel to a side of the current block; Determine the one reference line among the multiple reference lines according to the flag; determining an intra prediction mode for the current block according to the one reference line determined from the plurality of reference lines; Performing intra prediction of the current block according to the determined intra prediction mode and one or more samples included in the reference line determined from the plurality of reference lines; The multiple reference lines include an adjacent reference line and at least one non-adjacent reference line, wherein the adjacent reference line is adjacent to the current block, and the at least one non-adjacent reference line is not adjacent to the current block, and for each non-adjacent reference line of the at least one non-adjacent reference line, the number of associated first intra-frame prediction modes is the same, and the number of first intra-frame prediction modes of each non-adjacent reference line is less than the number of second intra-frame prediction modes associated with the adjacent reference line.
13. The method according to claim 12, characterized in that When the number of second intra prediction modes associated with the adjacent reference line is 67, the number of first intra prediction modes associated with each of the at least one non-adjacent reference line is equal to or less than 33.
14. A computer-readable recording medium storing video encoding and decoding performed by a video codec, characterized in that: The video codec comprises: a processing circuit for performing the method as claimed in any one of claims 1-5 or 12-13.
Citation Information
Patent Citations
Methods and apparatus for most probable mode derivation
US20200021851A1
Method and device for video decoding and method and device for video encoding
CN108293116A
Method and apparatus for coefficient induced intra prediction in image coding system
CN108370441A
Method and apparatus for multiple line intra prediction in video compression
CN111989918A
Image processing apparatus and image processing method
JP2013141187A