Video decoding method, device and medium

By implementing the single-value string matching mode in the video decoder, the problem of low video encoding and decoding efficiency in the existing technology is solved, and the data compression and transmission efficiency is improved.

CN114503358BActive Publication Date: 2024-08-23TENCENT AMERICA LLC
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202180005476.2
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Priority Date
2021-04-15
Filing Date
2021-04-28
Publication Date
2024-08-23
Estimated Expiration
2041-04-28

AI Technical Summary

Technical Problem

When existing video encoding and decoding technology processes encoded video streams, it is difficult to efficiently utilize single-value string matching patterns to improve encoding and decoding efficiency, resulting in low data transmission and storage efficiency.

Method used

By implementing the single-valued string matching mode in the video decoder, using at least one processor to decode the encoded video bitstream, determining to enable the single-valued string matching mode, and obtaining an index indicating the reference sample, thereby based on the reference indicated by the index Sample determines the color value of the sample in the current block and reconstructs the current string to reconstruct the current block.

Benefits of technology

It improves the data compression efficiency in the video encoding and decoding process, reduces signaling costs, and improves the efficiency of video transmission and storage.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114503358B_ABST
    Figure CN114503358B_ABST
Patent Text Reader

Abstract

The embodiment of the present application discloses a method, device and medium for video decoding. A method for decoding an encoded video bitstream includes: determining to enable a single-value string matching mode based on the encoded video bitstream; obtaining an index indicating a reference sample from the encoded video bitstream, the reference sample being within a set including multiple reference samples; determining a color value to be used for a sample included in a current string of a current block based on the reference sample indicated by the index; reconstructing the sample included in the current string based on the determined color value; and reconstructing the current block using the reconstructed current string.
Need to check novelty before this filing date? Find Prior Art

Description

[0001] CROSS-REFERENCE TO RELATED APPLICATIONS

[0002] This application claims priority to U.S. patent application No. 17 / 231,737, filed on April 15, 2021, and entitled “String Matching with Monochrome Values,” which claims priority under 35 U.S.C. §119 to U.S. Provisional Application No. 63 / 036,354, filed in the U.S. Patent and Trademark Office on June 8, 2020, and entitled “String Matching with Monochrome Values,” the disclosures of which are incorporated herein by reference in their entirety. Technical Field

[0003] The disclosed subject matter relates to video encoding and decoding and, more particularly, to signaling picture headers in encoded video streams. Background Art

[0004] ITU-T VCEG (Q6 / 16) and ISO / IEC MPEG (JTC 1 / SC 29 / WG 11) released the H.265 / HEVC (High Efficiency Video Codec) standard in 2013 (version 1), 2014 (version 2), 2015 (version 3), and 2016 (version 4). In 2015, the two standards organizations jointly established JVET (Joint Video Exploration Team) to explore the potential of developing the next video codec standard beyond HEVC. In October 2017, they released a joint call for proposals (CfP) for video compression with capabilities beyond HEVC. As of February 15, 2018, 22 CfP responses for standard dynamic range (SDR), 12 CfP responses for high dynamic range (HDR), and 12 CfP responses for 360 video categories have been submitted. All received CfP responses were evaluated at the 122nd MPEG / 10th JVET meeting in April 2018. As a result of this meeting, JVET formally launched the standardization process for the next generation video codec beyond HEVC. The new standard was named Versatile Video Codec (VVC), and JVET was renamed the Joint Video Experts Group. Summary of the invention

[0005] In an embodiment, a method for decoding an encoded video bitstream using at least one processor is provided, comprising: determining to enable a single-value string matching mode based on the encoded video bitstream; obtaining an index indicating a reference sample from the encoded video bitstream, the reference sample being within a set including a plurality of reference samples; determining a color value to be used for a sample included in a current string of a current block based on the reference sample indicated by the index; reconstructing the sample included in the current string based on the determined color value; and reconstructing the current block using the reconstructed current string.

[0006] In an embodiment, a device for decoding an encoded video bit stream is provided, comprising: at least one memory configured to store program code; and at least one processor configured to read the program code and operate according to the instructions of the program code to execute the method described in the above embodiment.

[0007] In an embodiment, a device for decoding an encoded video bitstream is provided, comprising: a first determination module, configured to determine to enable a single-value string matching mode based on the encoded video bitstream; an acquisition module, configured to acquire an index indicating a reference sample from the encoded video bitstream, wherein the reference sample is within a set including multiple reference samples; a second determination module, configured to determine a color value to be used for a sample included in a current string of a current block based on the reference sample indicated by the index; a first reconstruction module, configured to reconstruct the samples included in the current string based on the determined color value; and a second reconstruction module, configured to reconstruct the current block using the reconstructed current string.

[0008] In an embodiment, a non-volatile computer-readable medium is provided for storing instructions, the instructions comprising one or more instructions which, when executed by one or more processors of a device that decodes an encoded video bitstream, cause the one or more processors to: determine, based on the encoded video bitstream, to enable a single-value string matching mode; obtain an index indicating a reference sample from the encoded video bitstream, the reference sample being within a set including a plurality of reference samples; determine, based on the reference sample indicated by the index, a color value to be used for a sample included in a current string of a current block; reconstruct the samples included in the current string based on the determined color value; and reconstruct the current block using the reconstructed current string. BRIEF DESCRIPTION OF THE DRAWINGS

[0009] Other features, properties and various advantages of the disclosed subject matter will become more apparent from the following detailed description and accompanying drawings,

[0010] in:

[0011] Figure 1 is a schematic diagram of a simplified block diagram of a communication system according to an embodiment.

[0012] Figure 2 is a schematic diagram of a simplified block diagram of a communication system according to an embodiment.

[0013] Figure 3 is a schematic diagram of a simplified block diagram of a decoder according to an embodiment.

[0014] Figure 4 is a schematic diagram of a simplified block diagram of an encoder according to an embodiment.

[0015] Figure 5 is a schematic diagram of intra-picture block compensation according to an embodiment.

[0016] Figures 6A-6D FIG. 4 is a diagram of intra picture block compensation with a CTU size search range according to an embodiment.

[0017] Figure 7 is a schematic diagram of positions of spatial merging candidates according to an embodiment.

[0018] Figure 8 is a schematic diagram of a string matching pattern according to an embodiment.

[0019] Fig. 9 is a schematic diagram of performing single-value string matching using adjacent reference samples according to an embodiment.

[0020] Fig.10 is a flow chart of an example process for decoding an encoded video bitstream according to an embodiment.

[0021] Fig.11 is a schematic diagram of a computer system according to an embodiment. DETAILED DESCRIPTION

[0022] Figure 1 A simplified block diagram of a communication system (100) according to an embodiment of the present disclosure is shown. The communication system (100) may include at least two terminal devices (110, 120) interconnected via a network (150). For unidirectional data transmission, a first terminal device (110) may encode video data at a local location for transmission to another terminal device (120) via the network (150). A second terminal device (120) may receive encoded video data from another terminal device from the network (150), decode the encoded video data, and display the recovered video data. Unidirectional data transmission is more common in applications such as media services.

[0023] Figure 1A second pair of terminal devices (130, 140) is shown that supports bidirectional transmission of encoded video, which can occur, for example, during a video conference. For bidirectional data transmission, each terminal device (130, 140) can encode video data collected at a local location for transmission to the other terminal device via a network (150). Each terminal device (130, 140) can also receive encoded video data transmitted by the other terminal device, and can decode the encoded video data and display the recovered video data on a local display device.

[0024] exist Figure 1 In the embodiment of the present disclosure, the terminal devices (110-140) may be servers, personal computers, and smart phones, but the principles of the present disclosure may not be limited thereto. Embodiments of the present disclosure 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-140), including, for example, wired and / or wireless communication networks. The communication network (150) may exchange data in circuit switching and / or packet switching channels. Representative networks include telecommunication networks, local area networks, wide area networks, and / or the Internet. For the purposes of this discussion, unless explained below, the architecture and topology of the network (150) may be irrelevant to the operation of the present disclosure.

[0025] As an application example of the disclosed subject matter, Figure 2 The placement of the video decoder and encoder in a streaming environment is shown. The disclosed subject matter 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., and the like.

[0026] The streaming system may include an acquisition subsystem (213), which may include a video source (201), such as a digital camera, which creates, for example, an uncompressed video sample stream (202). The sample stream (202) is depicted as a thick line compared to an encoded video bitstream to emphasize that it is a high data volume video sample stream, and the sample stream (202) may be processed by an encoder (203) coupled to the camera (201). The 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. The encoded video bitstream (204) is depicted as a thin line compared to the sample stream (202) to emphasize the lower data volume of the encoded video bitstream, which may be stored on a streaming server (205) for future use. One or more streaming clients (206, 208) may access the streaming server (205) to retrieve a copy (207, 209) of the encoded video bitstream (204). The client (206) may include a video decoder (210). The video decoder (210) decodes an incoming copy of an encoded video bitstream (207) and produces an output video sample stream (211) that can be presented on a display (212) or another presentation device (not shown). In some streaming systems, the video bitstream (204, 207, 209) may be encoded according to certain video codec / compression standards. Examples of these standards include ITU-T Recommendation H.265. The video codec standard under development is informally referred to as Versatile Video Codec (VVC). The disclosed subject matter may be used in the context of VVC.

[0027] Figure 3 is a functional block diagram of a video decoder (210) according to an embodiment of the present disclosure.

[0028] The receiver (310) may receive one or more encoded video sequences to be decoded by the video decoder (210); 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 (312), which may be a hardware / software link to a storage device storing the encoded video data. The receiver (310) 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 (310) may separate the encoded video sequence from the other data. To prevent network jitter, a buffer memory (315) may be coupled between the receiver (310) and an entropy decoder / parser (320) (hereinafter referred to as "parser"). When the receiver (310) receives data from a storage / forward device with sufficient bandwidth and controllability or from an isochronous synchronous network, it may not be necessary to configure the buffer memory (315), or the buffer memory may be made smaller. Of course, for use over a packet network such as the Internet, a buffer memory (315) may also be required, which may be relatively large and may advantageously be of an adaptive size.

[0029] The video decoder (210) may include a parser (320) to reconstruct symbols (321) from an entropy coded video sequence. The categories of these symbols include information for managing the operation of the video decoder (210) and potentially information for controlling a display device such as display 212 that is not part of the decoder but may be coupled to the decoder, such as Figure 3As shown in . The control information for the display device may be in the form of a parameter set fragment (not indicated) of Supplementary Enhancement Information (SEI message) or Video Usability Information (VUI). The parser (320) may parse / entropy decode the received encoded video sequence. The encoding and decoding of the encoded video sequence may be performed according to a video encoding and decoding technique or standard, and may follow principles well known to those skilled in the art, including variable length encoding and decoding, Huffman coding, arithmetic coding and decoding with or without context sensitivity, and the like. The parser (320) may extract a subgroup parameter set for at least one subgroup of the subgroups of pixels in the video decoder from the encoded video sequence based on at least one parameter corresponding to the group. Subgroups may include Group of Pictures (GOP), pictures, sub-pictures, tiles, slices, bricks, macroblocks, Coding Tree Units (CTU), Coding Units (CU), blocks, Transform Units (TU), Prediction Units (PU), and the like. A tile may indicate a rectangular area of ​​a CU / CTU within a specific tile column and row in a picture. A brick may indicate a rectangular area of ​​a CU / CTU row within a specific tile. A slice may indicate one or more tiles of a picture, which are contained in a NAL unit. A sub-picture may indicate a rectangular area of ​​one or more slices in a picture. The entropy decoder / parser may also extract information such as transform coefficients, quantizer parameter values, motion vectors, and the like from an encoded video sequence.

[0030] The parser (320) may perform entropy decoding / parsing operations on the video sequence received from the buffer memory (315) to create symbols (321).

[0031] 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.

[0032] In addition to the functional blocks already mentioned, the video decoder (210) can be conceptually subdivided into several functional units as described below. In actual implementations operating under commercial constraints, many of these units interact closely with each other and may be at least partially integrated with each other. However, for the purposes of describing the disclosed subject matter, the conceptual subdivision into the following functional units is appropriate.

[0033] 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).

[0034] 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 a block of the same size and shape as the block being reconstructed using surrounding reconstructed information extracted from the (partially reconstructed) current picture (358). 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.

[0035] 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 (in this case referred to as residual samples or residual signals) by the aggregator (355) to generate output sample information. The motion compensated prediction unit's retrieval of predicted samples from addresses within the reference picture memory may be controlled by motion vectors, and the motion vectors are 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.

[0036] The output samples of the aggregator (355) may be employed by various loop filtering techniques in a loop filter unit (356). The video compression techniques may include in-loop filter techniques controlled by parameters included in the encoded video bitstream and available to the loop filter unit (356) as symbols (321) from the parser (320). However, 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, and to previously reconstructed and loop filtered sample values.

[0037] The output of the loop filter unit (356) may be a sample stream that may be output to a display device (212) and stored in a reference picture memory for subsequent inter-picture prediction.

[0038] Once fully reconstructed, certain coded pictures may be used as reference pictures for future prediction. Once a coded picture is fully reconstructed, and the coded picture is identified as a reference picture (e.g., by the parser (320)), the current picture (358) may become part of the reference picture memory (357), and a new current picture memory may be reallocated before starting reconstruction of a subsequent coded picture.

[0039] The video decoder (210) may perform decoding operations according to a predetermined video compression technique as documented, for example, 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 as specified in the video compression technique document or standard, in particular, in a profile. For compliance, the complexity of the encoded video sequence is also required to be within the limits defined by the hierarchy of the video compression technique or standard. In some cases, the hierarchy limits the maximum picture size, maximum frame rate, maximum reconstruction sampling rate (measured in, for example, mega samples per second), 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.

[0040] In an embodiment, the receiver (310) 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 (210) 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.

[0041] Figure 4 is a functional block diagram of a video encoder (203) according to an embodiment of the present disclosure.

[0042] The video encoder (203) may receive video samples from a video source (201) (not a part of the encoder) that may capture video images to be encoded by the video encoder (203).

[0043] The video source (201) may provide a source video sequence in the form of a digital video sample stream to be encoded by the video encoder (203), 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 (201) may be a storage device storing previously prepared videos. In a video conferencing system, the video source (201) 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.

[0044] According to an embodiment, the video encoder (203) 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 a controller (450). The controller controls other functional units as described below and is functionally coupled to these units. For the sake of brevity, couplings are not shown in the figure. Parameters set by the controller may include rate control related parameters (e.g., picture skipping, quantizer, lambda value of rate-distortion optimization techniques, etc.), picture size, group of pictures (GOP) layout, maximum motion vector search range, etc. Those skilled in the art can easily identify other functions of the controller (450) because they may belong to a video encoder (203) optimized for a specific system design.

[0045] Some video encoders operate in a manner that is readily recognizable to those skilled in the art as a "coding loop". As a simple description, the coding loop may include an encoding portion of an encoder (430) (hereinafter referred to as a "source encoder", which is responsible for creating symbols based on an input picture to be encoded and a reference picture), and a (local) decoder (433) embedded in the video encoder (203). The "local" 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 techniques contemplated by the disclosed subject matter, any compression between the symbols and the encoded video code stream is lossless). The reconstructed sample stream 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 also correspond bit-by-bit between the local encoder and the remote encoder. In other words, the reference picture samples "seen" by the prediction portion of the encoder are exactly the same sample values ​​that the decoder will "see" when using the prediction during decoding. Such basic principles of reference picture synchronization (and the resulting drift when synchronization cannot be maintained, eg due to channel errors) are well known to those skilled in the art.

[0046] The operation of the "local" decoder (433) can be combined with the above Figure 3 The "remote" decoder (210) is identical to the one described in detail. However, additional brief reference is made to Figure 4 , when symbols are available and the entropy encoder (445) and the parser (320) are capable of losslessly encoding / decoding the symbols into an encoded video sequence, the entropy decoding portion of the video decoder (210) (including the channel (312), the receiver (310), the buffer memory (315), and the parser (320)) may not be fully implemented in the local decoder (433).

[0047] At this point it can be observed that any decoder techniques other than 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 disclosed subject matter focuses on decoder operation. The description of encoder techniques can be abbreviated because they are inverse to the fully described decoder techniques. A more detailed description is only required in certain areas and is provided below.

[0048] As part of the operation, the source encoder (430) may perform motion compensated predictive coding. The motion compensated predictive coding predictively encodes the input frame with reference to one or more previously encoded frames from the video sequence designated as "reference frames." In this manner, the encoding engine (432) encodes the differences between the pixel blocks of the input frame and the pixel blocks of the reference frame, which may be selected as a prediction reference for the input frame.

[0049] The local video decoder (433) may decode the encoded video data of the frame that may be designated as the reference frame based on the symbol created by the source encoder (430). The operation of the encoding engine (432) may advantageously 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 frame and may cause the reconstructed reference frame to be stored in the reference picture memory (434). In this way, the encoder (203) may store a copy of the reconstructed reference frame locally that has common content (absent transmission errors) with the reconstructed reference frame to be obtained by the remote video decoder.

[0050] The predictor (435) may perform a prediction search for the encoding engine (432). That is, for a new frame 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).

[0051] The controller (450) may manage encoding operations of the source encoder (430), including, for example, setting parameters and subgroup parameters for encoding video data.

[0052] The outputs of all the above functional units may be entropy encoded in an entropy encoder (445). The entropy encoder may perform 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.

[0053] 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 source encoder (430) with other data to be transmitted, such as encoded audio data and / or ancillary data streams (source not shown).

[0054] The controller (450) can manage the operation of the video encoder (203). During encoding, the controller (450) can 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 can generally be assigned to any of the following picture types.

[0055] An intra picture (I picture) may be a picture that can be encoded and decoded without using any other frame 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 those variants of I pictures and their respective applications and features.

[0056] 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.

[0057] 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.

[0058] 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.

[0059] The video encoder (203) 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 (203) 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.

[0060] In an embodiment, the transmitter (440) may transmit additional data along with the encoded video. The source encoder (430) may include such data as a portion 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.

[0061] Intra Block Copy

[0062] Block-based compensation from different pictures is called motion compensation. Similarly, block compensation can also be done from previously reconstructed areas within the same picture. This is called intra-picture block compensation, current picture reference (CPR) or intra-block copy (IBC). The displacement vector indicating the offset between the current block and the reference block is called a block vector (BV). Unlike the motion vector in motion compensation, which can be any value (positive or negative in the x-direction or y-direction), this block vector can have some constraints to ensure that the reference block pointed to is available and has been reconstructed. Moreover, for the sake of parallel processing, some reference areas that are tile boundaries or wavefront trapezoid boundaries are also excluded.

[0063] The coding of block vectors can be either explicit or implicit. In explicit mode (which may be called Advanced Motion Vector Prediction (AMVP) mode in inter-frame coding), the difference between the block vector and its prediction value is signaled; in implicit mode, the block vector is completely recovered from its prediction value, in a similar way to motion vectors in merge mode. In some embodiments, the resolution of block vectors is restricted to integer positions; in other systems, it may be allowed to point to fractional positions.

[0064] A block level flag (e.g., an IBC flag) may be used to signal the use of intra block copying at the block level. In an embodiment, the flag is signaled when the current block is not encoded in merge mode. Alternatively, the flag may be signaled by means of a reference index. This is done by treating the current decoded picture as a reference picture. In HEVC SCC (Screen Content Coding), such reference pictures are placed at the last position of the list. This special reference picture is also managed with other temporal reference pictures in the decoder picture buffer (DPB).

[0065] There are also some changes for intra block copy, such as treating intra block copy as a third mode different from intra or inter prediction modes. By doing so, block vector prediction in merge mode and AMVP mode is separated from regular inter mode. For example, a separate merge candidate list is defined for intra block copy mode, where all entries in this list are block vectors. Similarly, the block vector prediction list in intra block copy AMVP mode consists only of block vectors. The general rule that applies to these two lists is that they can follow the same logic as the inter merge candidate list or AMVP prediction value list in terms of the candidate derivation process. For example, 5 spatial neighbors in HEVC or VVC inter merge mode are accessed for intra block copy to derive its own merge candidate list.

[0066] Figure 5 An example of intra block copy is shown showing a current picture 500 where a current block 502 is decoded based on a reference block 504 , the location of which is indicated by a block vector 506 .

[0067] Currently in VVC, the search range of CPR mode is limited to the current CTU. The effective memory requirement to store reference samples for CPR mode is 1 CTU size of samples.

[0068] Examples of this are in Figures 6A-6D For example, in Fig. 6A In , the reference sample 612a marked with X is not available for the current sample 611. Similarly, in Figure 6B In , reference samples 622a and 622b are not available for current sample 621. Figure 6C In , reference samples 632a, 632b and 632c are not available for the current sample 631. Fig.6D , reference samples 642a, 642b, 642c and 642d are not available for current sample 641.

[0069] Considering that the existing reference sample memory stores the reconstructed samples in the current 64×64 area, another 3 reference sample memories of 64×64 size are required. Therefore, some embodiments discussed in more detail below can extend the effective search range of the CPR mode to a certain part of the left CTU, while the total memory requirement for storing reference pixels remains unchanged (1 CTU size, a total of 4 64×64 reference sample memories).

[0070] An example of possible bitstream conformance conditions for a valid block vector (mvL, 1 / 16 pixel resolution) is listed below:

[0071] The luma motion vector mvL shall obey the following constraints, which may be a requirement for bitstream conformance:

[0072] -A1: When the block availability derivation process [adjacent block availability check process] specified in section 6.4.X is called with the current luma position (xCurr, yCurr) set equal to (xCb, yCb) and the adjacent luma positions (xCb+(mvL[0]>>4), yCb+(mvL[1]>>4)) as input, and the output shall be equal to TRUE.

[0073] -A2: When the block availability derivation process [adjacent block availability check process] specified in section 6.4.X is called with the current luma position (xCurr, yCurr) set equal to (xCb, yCb) and the adjacent luma position (xCb+(mvL[0]>>4)+cbWidth-1, yCb+(mvL[1]>>4)+cbHeight-1) as input, and the output shall be equal to TRUE.

[0074] -B1: One or both of the following conditions should be true:

[0075] The value of -(mvL[0]>>4)+cbWidth is less than or equal to 0.

[0076] The value of -(mvL[1]>>4)+cbHeight is less than or equal to 0.

[0077] -C1: The following conditions should be true:

[0078] (yCb+(mvL[1]>>4))>>CtbLog2SizeY=yCb>>CtbLog2SizeY

[0079] (yCb+(mvL[1]>>4)+cbHeight-1)>>CtbLog2SizeY=yCb>>CtbLog2SizeY

[0080] (xCb+(mvL[0]>>4))>>CtbLog2SizeY>=(xCb>>CtbLog2SizeY)-1

[0081] (xCb+(mvL[0]>>4)+cbWidth-1)>>CtbLog2SizeY<=(xCb>>CtbLog2SizeY)(8-975)

[0082] -C2: When (xCb+(mvL[0]>>4))>>CtbLog2SizeY is equal to (xCb>>CtbLog2SizeY)-1, the block availability derivation process [Neighboring Block Availability Check Process] specified in Section 6.4.X is called with the current luma position (xCurr,yCurr) set equal to (xCb,yCb) and the neighboring luma positions (((xCb+(mvL[0]>>4)+CtbSizeY)>>(CtbLog2SizeY-1))<<(CtbLog2SizeY-1),((yCb+(mvL[1]>>4))>>(CtbLog2SizeY-1))<<(CtbLog2SizeY-1)) as input and the output shall be equal to FALSE.

[0083] VVC / HEVC spatial merge candidates

[0084] Figure 7 The positions of the five spatial merge candidates for HEVC and VVC are shown. The order in which the candidate list is formed from these positions is: A0->B0->B1->A1->B2

[0085] History-based Motion Vector Prediction

[0086] When motion vector prediction (MVP) is performed, a history-based motion vector prediction (HMVP) merge candidate can be added to the merge list after spatial MVP and temporal MVP (TMVP). In this method, the motion information of the previously coded block is stored in a table and used as the MVP of the current CU. A table containing multiple HMVP candidates is maintained during the encoding / decoding process. The table is reset (cleared) when a new CTU row is encountered. Whenever there is a non-sub-block inter-coded CU, the relevant motion information is added as a new HMVP candidate to the last entry of the table.

[0087] In VTM3, the HMVP table size S is set to 6, which means that up to 6 history-based MVP (HMVP) candidates can be added to the table. When inserting a new motion candidate into the table, a constrained first-in-first-out (FIFO) rule is used, where a redundancy check is first applied to find if the same HMVP exists in the table. If found, the same HMVP is deleted from the table, and then all HMVP candidates are moved forward.

[0088] HMVP candidates can be used in the construction process of the merge candidate list. The latest HMVP candidates in the table are checked in turn and inserted into the candidate list after the TMVP candidate. Redundancy check is applied to HMVP candidates to spatial or temporal merge candidates.

[0089] To reduce the number of redundant checking operations, the following simplification can be introduced:

[0090] 1) Set the number of HMVP candidates for merge list generation to (N<=4) × M:(8–N), where N represents the number of existing candidates in the merge list and M represents the number of HMVP candidates available in the table.

[0091] 2) Once the total number of available merge candidates reaches the maximum allowed merge candidate minus 1, the construction process of the merge candidate list from HMVP is terminated.

[0092] When Intra-BC is run as a mode separate from Inter-mode, a separate history buffer (called HBVP) is used to store previously encoded Intra-BC block vectors.

[0093] As a mode separated from inter prediction, it may be desirable to have a simplified block vector derivation process for intra block copy mode. A similar history-based block vector prediction value buffer can be used to perform BV prediction. In the following, some information is provided for some specific uses of such HBVP.

[0094] Class-based history-based block vector prediction

[0095] A HBVP buffer is established to record the BV information of the previous IBC coded block, including some other auxiliary information, such as block size, block position, etc.

[0096] Based on the recorded information, for each current block, the BVs in the HBVP that meet the following conditions are divided into corresponding categories:

[0097] Category 0: The area (width * height) of the coding block is greater than or equal to the threshold (64 pixels);

[0098] Category 1: The frequency of BV is greater than or equal to 2;

[0099] Category 2: The coding block coordinates (upper left corner) are to the left of the current block;

[0100] Category 3: The coding block coordinates (upper left corner) are above the current block;

[0101] Category 4: The coding block coordinates (upper left corner) are on the upper left side of the current block;

[0102] Category 5: The coding block coordinates (upper left corner) are on the upper right side of the current block;

[0103] Category 6: The coding block coordinates (upper left corner) are at the lower left side of the current block.

[0104] For each class, the BV of the most recently coded block is derived as the BV predictor candidate. A CBVP list is constructed by appending the BV predictors of each class in order from 0 to 6.

[0105] String matching (string copying)

[0106] A coded block can be divided into several consecutive strings, each followed by the next string in the scan order. The scan order can be raster scan or traverse scan. The scan direction can be vertical or horizontal. For each string, the string offset vector (SV) and string length (SL) are signaled. SV is used to indicate the position of the reference string in the reference area. Length is used to indicate the length of the current / reference string.

[0107] Figure 8 An example of a string matching or string copying mode is shown, where a CU 802 (which may be an 8×8 CU) is divided into two strings, such as string 804 and string 806, using a raster scan order. String 804 includes the first 29 samples, and string 806 includes the last 35 samples. The references of string 804 and string 806 are indicated by corresponding string offset vectors. For example, reference string 808 is indicated by string offset vector 810, and reference string 812 is indicated by string offset vector 814. Figure 8 The dotted area in is the reconstructed area that can be used for reference. If a sample in the current block cannot find a matching sample in the reference area, an escape sample is signaled and its value is directly encoded.

[0108] In some of the previous methods, a special string matching mode, called single-value string, was mentioned to improve encoding and decoding efficiency. In this mode, SV and SL are still signaled, but the samples in the entire string share the same color value. Therefore, SV is used to indicate which value in the reference area will be used for this string, rather than copying it sample by sample from the reference area.

[0109] In the single-value string mode, the signaling cost of SV encoding and decoding can be reduced to further improve the encoding and decoding efficiency.

[0110] Palette Mode Mode)

[0111] Due to the specific characteristics of screen content, some coding tools have been developed for the screen coding extensions of HEVC and VVC. These tools have demonstrated significant improvements in coding efficiency. Among them, the palette mode uses the index of the palette (MajorColor) to represent the pixel block, and encodes the palette and index using spatial redundancy. The typical palette mode coding method includes two parts: the coding method of the palette and the coding method of the sample using the palette. The latter part includes palette index coding, run length coding, and escape pixel coding. The following is a summary of the palette coding process. Detailed information can be found in General Video Codec (Draft 2), ISO / IEC JTC1 / SC29 / WG11JVET-K1001, the entire content of which is incorporated into this article.

[0112] Select a primary color

[0113] Pixels are classified using a very simple but effective histogram-based algorithm. Specifically, the most significant L peaks in the histogram are selected as the dominant colors, and the pixel values ​​close to the dominant colors are quantized to the dominant colors. Other pixels that do not belong to any dominant color set are outlier pixels, which are also quantized before encoding. For lossless encoding, the quantization process is not used. For each pixel, a color index is assigned to indicate which color set it belongs to. For convenience, the color index can also be called an index when the terminology does not cause any confusion. If L dominant colors are used, the values ​​of the dominant colors 0 to (L-1) are signaled for the set of L dominant colors, and the value of the dominant color N is signaled for the outlier pixel set. The palette is usually implemented as a color lookup table, in which each color entry is associated with an index. A palette is used to encode the brightness component and the chrominance component. Each entry represents a specific RGB (YUV) color. For example, entry 1 with (R, G, B) = (0, 0, 0) represents pure black, and entry 0 with (R, G, B) = (2, 10, 200) represents bluish. When the video format is 420, the chroma planes are upsampled to generate a palette.

[0114] Palette mode encoding

[0115] Palette-based encoding is performed on a CU basis.

[0116] Encoding palette entries

[0117] In order to encode the current palette using the palette prediction value list as a reference, a binary vector is used to indicate whether each entry in the palette prediction value list is reused in the current palette. Reused entries are placed at the beginning of the current palette, maintaining their order in the palette prediction value list. This is followed by new palette entries that are not in the palette prediction value list. It is possible to choose to initialize the palette prediction value list using a palette initializer with predefined entries, thereby improving encoding and decoding efficiency in this case. The palette initializer can be signaled in a picture parameter set (PPS) or a sequence parameter set (SPS).

[0118] The maximum allowed palette prediction value size and the palette size are either signaled in the high-level syntax (e.g. in the SPS) or are defined values ​​agreed upon by the encoder and decoder.

[0119] For example, in SPS, the maximum prediction value palette size is signaled as 63, and the maximum palette size is signaled as 31. In another example, these two values ​​are assumed by the encoder and decoder without signaling.

[0120] Coded color index

[0121] After classification, the pixels of the block can be converted into color indexes according to the selected set of dominant colors. A predictive coding method is applied to the index, where a pixel line can be predicted by three different modes, including horizontal mode (i.e., copy index mode), vertical mode (i.e., copy above mode) and normal mode (i.e., escape mode). In the literature, two index scanning orders are used when encoding color indexes, namely horizontal traversal scan and vertical traversal scan. An index rotation flag is signaled to indicate which scanning order is used.

[0122] Copy Index Pattern

[0123] In copy index mode, starting from the first pixel, copy one or more consecutive indices from the first pixel. Signal the index of the first pixel.

[0124] Copy the above pattern

[0125] In this mode, one or more consecutive indices are copied from the upper pixel line.

[0126] Escape Mode

[0127] Then an outlier pixel (represented by the largest index in the primary color set) is encountered, and its corresponding pixel value is encoded after this index. There may be more than 1 outlier pixel in a CU and with different color values. For different outlier pixel positions, the pixel value of the outlier pixel can be different.

[0128] For each copy index pattern, the index value is signaled. Index signaling is grouped in the front to improve context-based adaptive binary arithmetic coding (CABAC) throughput. For the same reason, escape values ​​are signaled in the back. Copy index mode and copy above mode are signaled between index coding and escape coding.

[0129] Separate coding tree structures for luma and chroma components

[0130] Traditionally, a coding unit contains samples of luma components and chroma components. JVET proposed that samples of chroma components can have an independent or separate partition tree structure (also called dual tree) compared to luma components. Typically, this independent coding tree structure starts at the CTU level. Therefore, a chroma CU (a CU containing only two chroma components) may be larger than its luma counterpart at the corresponding sample position. In another case, in order to avoid using small chroma blocks (such as CUs with less than 4×4 chroma samples), a "local dual tree" method is proposed, which separates luma and chroma coding starting from a coding tree level that is lower than the CTU level of the dual tree. When certain conditions are met (such as the parent CU size is less than or equal to a certain threshold), the local dual tree will be triggered, and then the luma and chroma coding are separated in a manner similar to the dual tree at the CTU level.

[0131] String matching with monochrome values

[0132] In the following, the term "block" may refer to a prediction block, a coding block or a coding unit, ie, a CU. A string may refer to a group of consecutive samples along the scan direction within a block, a single sample or an entire block.

[0133] Embodiments involve using a set of selected samples or samples with predefined positions for prediction in a single value string pattern.Instead of signaling a SV to indicate which color to use, an index pointing to an entry in the set is signaled.

[0134] Specific examples 1-3 are discussed below, however these embodiments are merely examples and are not intended to be limiting.

[0135] Example 1

[0136] In an embodiment, spatially adjacent reconstructed samples of the current block may be used to form a set to predict a single-value string. Fig. 9, which shows a set of top reference samples (TL-T) of a current block 902 having an MxN size. M ) and the left reference sample (TL-L N ).exist Fig. 9 In the example shown, M=N=8, however this is not intended to be limiting. Fig. 9 In the example shown, index 904 indicates that T1 is to be used as a reference for the current string 906 .

[0137] In an embodiment, the left column and top row of the current block for performing intra prediction may be used as a candidate set. An index may be used to select one from them. Fig. 9 In , the set may refer to samples at TL, Tx (x=0, 1, ..., M, M+1, ...) and Ly (y=0, 1, ..., N, N+1, ...).

[0138] In an embodiment, a subset of representation positions from those top / left neighbors may be selected to form a prediction set. Fig. 9 In this case, the subset can refer to TL, T0, T [M / 2] (or T [M / 2 -1]), T M (or T [M-1] ) and L0, L [N / 2] (or L [N / 2-1] )、L N (or L [N-1] ) and other locations.

[0139] In an embodiment, the neighboring positions may not need to be directly adjacent to the current block, they may be from, for example Fig. 9 Medium T X The upper row, Fig. 9 Medium Y The left column etc.

[0140] In an embodiment, a sorting rule may be established for the selected samples to form a prediction set. In an embodiment, the samples selected from the top are first arranged in a left-to-right order; the samples selected from the left are secondly arranged in a top-to-bottom order, and so on.

[0141] In an embodiment, for a selected sample position, if it is not available, several rules may be applied to indicate its value. Examples of such rules are:

[0142] Use the rules applied to intra prediction reference samples

[0143] · Extend the valid references from its neighbors (e.g. Figure 5 In T [M] If it is not available, T [M] =T [M-1] )

[0144] Assign a default value

[0145] In an embodiment, the index of the selected set of samples may be signaled to indicate which sample to use to predict the current single-valued string.

[0146] In an embodiment, a fixed length encoding (with N bits) may be used, and the number of samples in the prediction set may be less than or equal to 2^N (where N is an integer value). In one example above, T0, T [M / 2-1] , T [M / 2] , T [M-1] , L0, L [N / 2-1] , L [N / 2-1] and L [N-1] ; In another example, similar rules in the cross-component linear model (CCLM) neighbor sample selection can be applied. That is, when the top neighbor block is not available, the top sample may not be selected, but twice the number of samples may be selected from the left neighbor column; when the left neighbor block is not available, the left sample is not selected, but twice the number of samples may be selected from the top neighbor row; when both neighbors are unavailable, this mode may not be used.

[0147] Example 2

[0148] In an embodiment, the last sample of the previous string can be used as a predicted sample in the current single-value string. This may be helpful when the previous string is not a single-value string, so such a condition can be imposed to use such a sample.

[0149] In an embodiment, if the current string is the first string in a block, the last sample may refer to Fig. 9 Specifically, when the horizontal scanning order is used, L0 can be used; when the vertical scanning order is used, T0 can be used.

[0150] In an embodiment, if combined with other prediction samples to form a set, an entry in the prediction sample set may be reserved for the sample, for example, the first entry or the last entry in the prediction set.

[0151] Example 3

[0152] In an embodiment, a buffer of fixed size may be used to store previously reconstructed samples to form a set of predicted single-value strings.

[0153] In an embodiment, those reconstructed samples may be from within the current coding block.

[0154] In an embodiment, those reconstructed samples may come from outside the current coding block.

[0155] In an embodiment, those reconstructed samples may be derived in a similar manner as the palette prediction values.

[0156] Fig.10 is a flow chart of an example process 1000 for decoding an encoded video bitstream. In some embodiments, Fig.10 One or more process blocks of may be performed by decoder 210. In some implementations, Fig.10 One or more process blocks of may be performed by another device or a group of devices separate from or including the decoder 210 , such as the encoder 203 .

[0157] like Fig.10 As shown, process 1000 may include determining to enable a single-value string matching mode based on an encoded video bitstream (block 1010 ).

[0158] like Fig.10 As further shown, process 1000 may include obtaining an index indicating a reference sample from the encoded video bitstream, the reference sample being within a set including a plurality of reference samples (block 1020).

[0159] like Fig.10 As further shown, process 1000 may include determining, based on the reference sample indicated by the index, a color value to be used for a sample included in a current string of characters of the current block (block 1030).

[0160] like Fig.10 As further shown, process 1000 may include reconstructing samples included in the current string based on the determined color values ​​(block 1040).

[0161] like Fig.10 As further shown, process 1000 may include reconstructing the current block using the reconstructed current string (block 1050).

[0162] In an embodiment, the current character string may include a plurality of samples positioned consecutively along a scan line within the current block.

[0163] In an embodiment, the set may include reconstructed samples that are spatially adjacent to the current block.

[0164] In an embodiment, the reconstructed samples are selected from representative positions located at least one above the current block or to the left of the current block.

[0165] In an embodiment, the representative position is not directly adjacent to the current block.

[0166] In an embodiment, the set may include the last sample of a string preceding the current block.

[0167] In an embodiment, the last sample of the previous character string is included at a predetermined position within the set.

[0168] In an embodiment, the set is stored in a buffer of fixed size.

[0169] Although Fig.10 An example block diagram of process 1000 is shown, but in some implementations, process 1000 may include more Fig.10 More blocks, fewer blocks, different blocks, or differently arranged blocks as depicted in the process 1000 may be used. Additionally or alternatively, two or more blocks of process 1000 may be executed in parallel.

[0170] In addition, the proposed method can be implemented by a processing circuit (eg, one or more processors or one or more integrated circuits). In one example, the one or more processors execute a program stored in a non-transitory computer readable medium to perform one or more of the proposed methods.

[0171] The above techniques may be implemented as computer software via computer-readable instructions and physically stored in one or more computer-readable media. Fig.11 A computer system 1100 is shown that is suitable for implementing certain embodiments of the disclosed subject matter.

[0172] The computer software may be encoded in any suitable machine code or computer language, and may be assembled, compiled, linked, or other mechanisms to create a code comprising instructions, which may be directly executed by a computer central processing unit (CPU), graphics processing unit (GPU), or the like, or executed by decoding, microcode, or the like.

[0173] The instructions may be executed on various types of computers or components thereof, including, for example, personal computers, tablet computers, servers, smartphones, gaming devices, IoT devices, etc.

[0174] Fig.11 The components shown for computer system 1100 are exemplary in nature and are not intended to impose any limitations on the scope of use or functionality of computer software implementing embodiments of the present disclosure. Nor should the configuration of components be interpreted as having any dependency or requirement on any component or combination of components shown in the exemplary embodiment of computer system 1100.

[0175] The computer system 1100 may include certain human-computer interface input devices. Such 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 conscious human input, such as audio (e.g., speech, 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).

[0176] The human-machine interface input devices may include one or more of the following (only one of which is depicted): keyboard 1101 , mouse 1102 , touchpad 1103 , touch screen 1110 and associated graphics adapter 1150 , data gloves, joystick 1105 , microphone 1106 , scanner 1107 , camera 1108 .

[0177] The computer system 1100 may also include certain human-computer interface output devices. Such human-computer interface output devices may stimulate the senses of one or more human users 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 1110, a data glove, or a joystick 1105, but there may also be tactile feedback devices that are not used as input devices), audio output devices (e.g., speakers 1109, headphones (not shown)), visual output devices (e.g., screens 1110 including cathode ray tube (CRT) screens, liquid crystal display (LCD) screens, plasma screens, organic light emitting diode (OLED) screens, each of which has or does not have a touch screen input function, each of which has or does not have a tactile feedback function - some of which may output two-dimensional visual outputs or outputs of more than three dimensions by means such as stereoscopic picture output; virtual reality glasses (not shown), holographic displays, and smoke boxes (not shown)) and printers (not shown).

[0178] The computer system 1100 may also include human-accessible storage devices and their associated media, such as optical media including high-density read-only / rewritable optical disks (CD / DVD ROM / RW) 1120 with CD / DVD or similar media 1121, a thumb drive 1122, a removable hard disk drive or solid state drive 1123, traditional magnetic media such as tapes and floppy disks (not shown), special-purpose ROM / ASIC / PLD-based devices such as security software protectors (not shown), and the like.

[0179] Those skilled in the art should also understand that the term "computer-readable media" used in connection with the disclosed subject matter does not include transmission media, carrier waves, or other transient signals.

[0180] The computer system 1100 may also include one or more interfaces to one or more communication networks (1155). 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. Examples of networks also include local area networks such as Ethernet, wireless local area networks, cellular networks (global system for mobile communications (GSM), third generation (3G), fourth generation (4G), fifth generation (5G), long term evolution (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 (1154) for connecting to some universal data ports or peripheral buses (1149) (e.g., a universal serial bus (USB) port of the computer system 1100); other systems are typically integrated into the core of the computer system 1100 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). As an example, the network 1155 can be connected to the peripheral bus 1149 using the network interface 1154. By using any of these networks, the computer system 1100 can communicate with other entities. The communication can be one-way, only for receiving (e.g., wireless television), one-way only for sending (e.g., CAN bus to certain CAN bus devices), or two-way, such as through a local or wide area digital network to other computer systems. Each of the above networks and network interfaces (1154) can use certain protocols and protocol stacks.

[0181] The above-mentioned human-machine interface devices, human-accessible storage devices, and network interfaces can be connected to the core 1140 of the computer system 1100.

[0182] The core 1140 may include one or more central processing units (CPUs) 1141, graphics processing units (GPUs) 1142, dedicated programmable processing units in the form of field programmable gate arrays (FPGAs) 1143, hardware accelerators for specific tasks 1144, and the like. These devices, as well as read-only memory (ROM) 1145, random access memory (RAM) 1146, internal mass storage (e.g., internal non-user accessible hard disk drive, solid state drive (SSD)), and the like 1147, and the like, may be connected via a system bus 1148. In some computer systems, the system bus 1148 may be accessed in the form of one or more physical plugs so that it may be expanded by additional central processing units, graphics processing units, and the like. Peripheral devices may be attached directly to the core's system bus 1148, or connected via a peripheral bus 1149. The architecture of the peripheral bus includes peripheral component interconnect (PCI), USB, and the like.

[0183] The CPU 1141, GPU 1142, FPGA 1143, and accelerator 1144 may execute certain instructions, which in combination may constitute the above-mentioned computer code. The computer code may be stored in ROM 1145 or RAM 1146. Transitional data may also be stored in RAM 1146, while permanent data may be stored in, for example, internal mass storage 1147. Fast storage and retrieval of any memory device may be achieved by using a cache memory, which may be closely associated with one or more CPUs 1141, GPUs 1142, mass storage 1147, ROM 1145, RAM 1146, and the like.

[0184] The computer readable medium may have computer code thereon for performing various computer-implemented operations. The medium and computer code may be specially designed and constructed for the purposes of the present disclosure, or may be the medium and code well known and available to those skilled in the art of computer software.

[0185] As an embodiment and not limitation, a computer system 1100 having an architecture, in particular a core 1140, can be provided as a processor (including a CPU, a GPU, an FPGA, an accelerator, etc.) to execute the software contained in one or more tangible computer-readable media. Such a computer-readable medium can be a medium associated with the above-mentioned user-accessible mass storage, and a specific memory of the core 1140 having non-volatility, such as a core internal mass storage 1147 or a ROM 1145. The software implementing various embodiments of the present disclosure can be stored in such a device and executed by the core 1140. According to specific needs, the computer-readable medium may include one or more storage devices or chips. The software can enable the core 1140, in particular the processor therein (including a CPU, a GPU, an FPGA, etc.) to perform a specific process or a specific part of a specific process described herein, including defining a data structure stored in the RAM 1146 and modifying such a data structure according to a software-defined process. Additionally or alternatively, a computer system may provide functionality hardwired in logic or otherwise contained in circuitry (e.g., accelerator 1144) 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. References to software may include logic, and vice versa, where appropriate. References to computer-readable media may include circuitry (e.g., an integrated circuit (IC)) storing execution software, circuitry containing execution logic, or both, where appropriate. The present disclosure includes any suitable combination of hardware and software.

[0186] Although the present disclosure has described a number of exemplary embodiments, various changes, arrangements and various equivalent substitutions of the embodiments are within the scope of the present disclosure. It should therefore be understood that those skilled in the art are capable of designing a variety of systems and methods, which, although not explicitly shown or described herein, embody the principles of the present disclosure and are therefore within the spirit and scope of the present disclosure.

Claims

1. A method for decoding a coded video bit stream, characterized in that: The method comprises: Determining based on the encoded video bitstream to enable a single-value string matching mode, wherein samples in the string share the same color value; Obtaining an index indicating a reference sample from the encoded video bitstream, and replacing it with a string offset vector SV, wherein the reference sample is within a set including a plurality of reference samples; Determining, based on the reference sample indicated by the index, a color value to be used by a sample included in a current string of the current block; reconstructing samples included in the current character string based on the determined color value; and reconstructing the current block using the current string including the reconstructed samples; The set includes reconstructed samples that are spatially adjacent to the current block, the reconstructed samples being selected from representative positions located at least one above the current block or to the left of the current block, wherein, In response to the reconstructed sample at the representative position above the current block being unavailable, selecting reconstructed samples at the representative position on the left side of the current block, the number of which is twice the character string encoding length; In response to the reconstructed samples at the representative positions on the left side of the current block being unavailable, reconstructed samples at the representative positions above the current block whose number is twice the character string encoding length are selected.

2. The method according to claim 1, characterized in that: The current character string includes a plurality of samples positioned consecutively along a scan line within the current block.

3. The method according to claim 1, characterized in that The representative position is not directly adjacent to the current block.

4. The method according to claim 1, characterized in that: The set includes the last sample of the previous string of the current block.

5. The method according to claim 4, characterized in that The last sample of the previous character string is included at a predetermined position within the set.

6. The method according to any one of claims 1 to 5, characterized in that: The collection is stored in a buffer of fixed size.

7. A device for decoding a coded video bit stream, characterized in that The device comprises: at least one memory configured to store program code; and At least one processor is configured to read the program code and operate according to instructions of the program code to execute the method according to any one of claims 1 to 6.

8. A device for decoding a coded video bit stream, characterized in that: The device comprises: A first determination module is configured to determine, based on the encoded video bitstream, to enable a single-value string matching mode, wherein samples in the string share the same color value; An acquisition module is configured to acquire an index indicating a reference sample from the encoded video bitstream, and replace the obtained string offset vector SV, wherein the reference sample is in a set including a plurality of reference samples; A second determination module is configured to determine a color value to be used for a sample included in a current character string of a current block based on the reference sample indicated by the index; a first reconstruction module configured to reconstruct a sample included in the current character string based on the determined color value; and a second reconstruction module configured to reconstruct the current block using a current string including the reconstructed samples; The set includes reconstructed samples that are spatially adjacent to the current block, the reconstructed samples being selected from representative positions located at least one above the current block or to the left of the current block, wherein, In response to the reconstructed sample at the representative position above the current block being unavailable, selecting reconstructed samples at the representative position on the left side of the current block, which is twice the number of the character string encoding length; In response to the reconstructed samples at the representative positions on the left side of the current block being unavailable, reconstructed samples at the representative positions above the current block whose number is twice the character string encoding length are selected.

9. The device according to claim 8, characterized in that The current character string includes a plurality of samples positioned consecutively along a scan line within the current block.

10. The device according to claim 8, characterized in that The representative position is not directly adjacent to the current block.

11. The device according to claim 8, characterized in that The set includes the last sample of the previous string of the current block.

12. The device according to claim 11, characterized in that The last sample of the previous character string is included at a predetermined position within the set.

13. The device according to claim 8, characterized in that The collection is stored in a buffer of fixed size.

14. A non-volatile computer readable medium, characterized in that: Used to store instructions, the instructions comprising one or more instructions, when the one or more instructions are executed by one or more processors of a device for decoding a coded video bit stream, the one or more processors are caused to execute the method according to any one of claims 1 to 6.