Video coding and decoding method and device, readable medium and computer system
By introducing palette-based encoding and decoding modes in the video decoder and disabling palette predictor list updates, the problem of uncommon directional inefficiencies in intra- and inter-frame predictions is solved and the overall coding efficiency of video encoding is improved. .
Patent Information
- Application Number
- CN202410903786.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Priority Date
- 2020-11-13
- Filing Date
- 2021-01-13
- Publication Date
- 2024-09-24
AI Technical Summary
Existing video coding technology has low efficiency in intra prediction, especially for uncommon prediction directions, resulting in reduced coding efficiency.
Optimize coding for intra- and inter-frame predictions by introducing a palette-based encoding and decoding mode in the video decoder, utilizing palette indexes to represent pixel blocks, and disabling palette predictor list updates under a local dual-tree structure process.
It improves the coding efficiency of video coding, especially the coding performance under the local dual-tree structure, reduces the complex update of the palette predictor list, and improves the coding efficiency.
Smart Images

Figure CN118694949A_ABST
Abstract
Description
[0001] This application is a divisional application of the Chinese patent application with application number 202180003920.7 filed with the China Patent Office on January 13, 2021. Technical Field
[0002] This application describes embodiments that generally relate to video encoding and decoding. Background Art
[0003] The background description provided herein is intended to present the background of the present application as a whole. The extent to which the work of the presently named inventors described in the background section and various aspects of this specification is performed does not indicate that it is prior art at the time of filing this application, and it is never explicitly or implicitly admitted that it is prior art for this application.
[0004] Video encoding and decoding are made possible by inter-picture prediction techniques with motion compensation. An uncompressed digital video may include a series of pictures, each picture having a spatial dimension of, for example, 1920×1080 luminance samples and associated chrominance samples. The series of pictures has 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 specific bit rate requirements. For example, 1080p604:2:0 video (1920x1080 luminance sample resolution, 60Hz frame rate) with 8 bits per sample requires close to 1.5Gbit / s bandwidth. One hour of such video requires more than 600GB of storage space.
[0005] One goal of video encoding and decoding is to reduce redundant information in the input video signal through compression. Video compression can help reduce the bandwidth and / or storage space requirements mentioned above, in some cases by two or more orders of magnitude. Both lossless and lossy compression, as well as combinations of the two, can be used. Lossless compression refers to techniques that reconstruct an exact copy of the original signal from the compressed original signal. When lossy compression is used, the reconstructed signal may not be exactly the same as the original signal, but the distortion between the original and the reconstructed signal is small enough that the reconstructed signal can be used for the intended application. Lossy compression is widely used for video. The amount of distortion allowed depends on the application. For example, users of some consumer streaming applications may tolerate higher distortion than users of television distribution applications. The achievable compression ratio reflects that higher allowed / tolerable distortion produces higher compression ratios.
[0006] Video encoders and decoders may utilize several broad categories of techniques including, for example: motion compensation, transforms, quantization, and entropy coding and decoding.
[0007] Video codec techniques may include techniques known as intra-frame coding. In intra-frame coding, sample values are represented without reference to samples or other data of previously reconstructed reference pictures. In some video codecs, pictures are spatially subdivided into blocks of samples. When all sample blocks are encoded in intra-frame mode, the picture may be an intra-frame picture. Intra-frame pictures and their derivatives (e.g., independent decoder refresh pictures) may be used to reset the decoder state, and may therefore be used as the first picture in an encoded video bitstream and video session, or as a static image. Samples of intra-frame blocks may be used for transformation, and transform coefficients may be quantized before entropy coding and decoding. Intra-frame prediction may be a technique for minimizing sample values in the pre-transform domain. In some cases, the smaller the DC value after transformation, and the smaller the AC coefficient, the fewer bits are needed to represent the block after entropy coding and decoding at a given quantization step size.
[0008] Conventional intra-frame coding, as known from codecs such as MPEG-2, does not use intra-frame prediction. However, some newer video compression techniques include techniques that attempt to derive a block of data from, for example, surrounding sample data and / or metadata that is obtained during spatially adjacent encoding / decoding and before the decoding order. This technique is later referred to as "intra-frame prediction" technology. It should be noted that, at least in some cases, intra-frame prediction uses only reference data from the picture currently being reconstructed, and not reference data from reference pictures.
[0009] Intra-frame prediction can take many different forms. When more than one such technique can be used in a given video coding technique, the techniques used can be encoded as intra-frame prediction modes. In some cases, a mode can have sub-modes and / or parameters, and these modes can be encoded separately or included in a mode codeword. Which codeword is used for a given mode / sub-mode / parameter combination can affect the coding efficiency gain through intra-frame prediction, and therefore the entropy coding and decoding technique used to convert the codewords into a bitstream.
[0010] H.264 introduced a certain intra prediction mode, which was improved in H.265 and further improved in newer codecs such as the Joint Exploration Model (JEM), Versatile Video Coding (VVC) and Benchmark Set (BMS). A prediction block can be formed by using neighboring sample values belonging to samples that are already available. The sample values of the neighboring samples are copied into the prediction block in a certain direction. A reference to the direction used can be encoded in the bitstream, or it can be predicted itself.
[0011] Reference Figure 1, the lower right shows a set of eight known prediction directions from the 33 possible prediction directions of H.265 (corresponding to 33 angular modes in 35 internal modes). The point (101) where the arrows converge represents the sample being predicted. The arrows represent the direction based on which the sample is predicted. For example, arrow (102) indicates that sample (101) is predicted based on one or more samples at a 45 degree angle to the horizontal direction at the upper right. Similarly, arrow (103) indicates that sample (101) is predicted based on one or more samples at a 22.5 degree angle to the horizontal direction at the lower left.
[0012] Still reference Figure 1 , a square block (104) including 4×4 samples is shown in the upper left (indicated by the thick dashed line). The square block (104) includes 16 samples, each of which is labeled by "S", and 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 (starting from the top) and the first sample in the X dimension (starting from the left). Similarly, in block (104), sample S44 is the fourth sample in both the X dimension and the Y dimension. Since the block is a 4×4 size sample, S44 is located in the lower right corner. Further, reference samples following a similar numbering scheme are shown. Reference samples are labeled with "R", and their Y position (e.g., row index) and X position (e.g., column index) relative to the block (104). In H.264 and H.265, the prediction samples are adjacent to the block being reconstructed, so there is no need to use negative values.
[0013] Intra-picture prediction can be achieved by copying reference sample values from neighboring samples occupied by a signaled prediction direction. For example, assume that the encoded video bitstream includes signaling for this block that indicates a prediction direction consistent with arrow (102), that is, the sample is predicted based on one or more prediction samples to the upper right at a 45 degree angle to the horizontal direction. In this case, samples S41, S32, S23, and S14 are predicted based on the same R05. Then, sample S44 is predicted based on reference sample R08.
[0014] In some cases, to calculate a reference sample, especially when the direction is not divisible by 45 degrees, the values of multiple reference samples may be combined, for example by interpolation.
[0015] As video coding technology has evolved, the number of possible directions has increased. In H.264 (2003), nine different directions could be represented. In H.265 (2013), that number increased to 33. And, JEM / VVC / BMS, when released, can support up to 65 directions. Experiments have been done to identify the most likely directions, and certain techniques in entropy coding are used to represent those possible directions with a small number of bits, accepting some penalty for less likely directions. In addition, the direction itself can sometimes be predicted based on neighboring directions used in adjacent, already decoded blocks.
[0016] Figure 2 is a schematic diagram (201) depicting 65 intra prediction directions according to JEM to illustrate the increase in the number of prediction directions over time.
[0017] The mapping from intra prediction directions to bits representing the directions in the coded video bitstream may vary from one video coding technique to another, and may, for example, range from a simple direct mapping of prediction directions from intra prediction modes to codewords, to complex adaptive schemes involving the most probable mode, and the like. However, in all cases, there may be certain directions in the video content that are statistically less likely to occur than other directions. Since the goal of video compression is to reduce redundancy, in well-behaved video coding techniques, those less likely directions will be represented using a greater number of bits than more probable directions. Summary of the invention
[0018] Aspects of the present disclosure provide methods, devices, readable media, and computer systems for video decoding. In some examples, the apparatus for video decoding includes a processing circuit. For example, the processing circuit decodes prediction information of a block from an encoded video bitstream, and determines whether a palette-based encoding and decoding mode is allowed to be used for the block based on a comparison of the size of the block with a threshold, and determines whether the block is in a local dual-tree structure based on the prediction information. In addition, the processing circuit decodes the block based on the determination result of whether the palette-based encoding and decoding mode is allowed to be used for the block and the determination result of whether the block is in the local dual-tree structure.
[0019] In some embodiments, the processing circuitry, in response to the size of the block being less than the threshold, does not allow the palette-based codec mode to be used for the block. In some examples, the threshold is defined as not allowing a local dual-tree structure in response to a block being larger than the threshold. In an example, the processing circuitry, in response to the block being a chroma block and the size of the chroma block being less than the threshold, does not allow the palette-based codec mode to be used for the block. In some examples, the processing circuitry, based on a combination of a mode type for the block and a tree type for the block, does not allow the palette-based codec mode to be used for the block, the combination indicating that the block is a chroma block under the local dual-tree structure.
[0020] In some embodiments, in response to allowing the palette-based codec mode, the processing circuit decodes a flag from the encoded video bitstream, the flag indicating whether the palette-based codec mode is used for the block, and in response to the flag indicating that the palette-based codec mode is used for the block, the block is decoded using the palette-based codec mode. In addition, in some examples, in response to the block being in a local dual-tree structure, the processing circuit bypasses updating the palette predictor list. In an example, in response to not triggering the local dual-tree structure, the processing circuit updates the palette predictor list based on the palette used in the decoding of the block.
[0021] In some other embodiments, in response to allowing the palette-based codec mode, the processing circuit decodes a flag from the encoded video bitstream, the flag indicating whether the palette-based codec mode is used for the block, and in response to the flag indicating that the palette-based codec mode is used for the block and the block is in the local dual-tree structure, the block is decoded based on the palette with the reduced maximum size. In addition, the processing circuit can update a palette predictor list based on the palette used in the decoding of the block, and the size of the palette predictor list is limited by the reduced maximum size.
[0022] Aspects of the present disclosure also provide a method for video decoding, including: decoding prediction information of a block from an encoded video stream; determining whether a palette-based encoding and decoding mode is allowed to be used for the block based on a comparison between the size of the block and a threshold; determining whether the block is in a local dual-tree structure based on the prediction information; and decoding the block based on a determination result of whether the palette-based encoding and decoding mode is allowed to be used for the block and a determination result of whether the block is in the local dual-tree structure.
[0023] Aspects of the present disclosure also provide a computer system, the computer system comprising:
[0024] at least one memory configured to store program code; and
[0025] At least one processor is configured to read the program code and operate according to instructions of the program code to execute the video decoding method.
[0026] Aspects of the present disclosure also provide a non-transitory computer-readable medium storing instructions, which, when executed by a computer for video decoding, cause the computer to perform a method for video decoding. BRIEF DESCRIPTION OF THE DRAWINGS
[0027] Other features, properties and various advantages of the disclosed subject matter will become further apparent from the following detailed description and accompanying drawings, in which:
[0028] Figure 1 is a schematic diagram of an illustrative subset of intra prediction modes.
[0029] Figure 2 is a schematic diagram of an exemplary intra-frame prediction model.
[0030] Figure 3 is a schematic diagram of a simplified block diagram of a communication system according to an embodiment.
[0031] Figure 4 is a schematic diagram of a simplified block diagram of a communication system according to an embodiment.
[0032] Figure 5 is a schematic diagram of a simplified block diagram of a decoder according to an embodiment.
[0033] Figure 6 is a schematic diagram of a simplified block diagram of an encoder according to an embodiment.
[0034] Figure 7 A block diagram of an encoder according to another embodiment is shown.
[0035] Figure 8 A block diagram of a decoder according to another embodiment is shown.
[0036] Fig. 9 An example of syntax used in some examples to update a palette predictor list is shown.
[0037] Fig.10 An example of syntax used in some examples to determine the presence of a palette mode flag in a codestream is shown.
[0038] Fig.11 A flowchart outlining an example of a method according to some embodiments of the present disclosure is shown.
[0039] Fig.12 is a schematic diagram of a computer system according to an embodiment. DETAILED DESCRIPTION
[0040] Figure 3 3 is a simplified block diagram of a communication system (300) according to an embodiment disclosed in the present application. The communication system (300) includes a plurality of terminal devices, which can communicate with each other through, for example, a network (350). For example, the communication system (300) includes a first terminal device (310) and a second terminal device (320) interconnected through the network (350). Figure 3 In an embodiment of the present invention, the first terminal device (310) and the second terminal device (320) perform unidirectional data transmission. For example, the first terminal device (310) may encode video data (e.g., a video picture stream collected by the first terminal device (310)) for transmission to the second terminal device (320) via the network (350). The encoded video data is transmitted in the form of one or more encoded video code streams. The second terminal device (320) may receive the encoded video data from the network (350), decode the encoded video data to restore the video data, and display the video picture based on the restored video data. Unidirectional data transmission is more common in applications such as media services.
[0041] In another embodiment, the communication system (300) includes a third terminal device (330) and a fourth terminal device (340) that perform bidirectional transmission of encoded video data, which can occur during a video conference, for example. For bidirectional data transmission, each of the third terminal device (330) and the fourth terminal device (340) can encode video data (e.g., a video picture stream collected by the terminal device) to transmit to the other terminal device of the third terminal device (330) and the fourth terminal device (340) through a network (350). Each of the third terminal device (330) and the fourth terminal device (340) can also receive the encoded video data transmitted by the other terminal device of the third terminal device (330) and the fourth terminal device (340), and can decode the encoded video data to restore the video data, and can display the video picture on an accessible display device based on the restored video data.
[0042] exist Figure 3In the embodiment of the present invention, the first terminal device (310), the second terminal device (320), the third terminal device (330) and the fourth terminal device (340) may be servers, personal computers and smart phones, but the principles disclosed in the present application may not be limited thereto. The embodiments disclosed in the present application are applicable to laptop computers, tablet computers, media players and / or dedicated video conferencing equipment. The network (350) represents any number of networks that transmit encoded video data between the first terminal device (310), the second terminal device (320), the third terminal device (330) and the fourth terminal device (340), including, for example, wired (wired) and / or wireless communication networks. The communication network (350) may exchange data in circuit switching and / or packet switching channels. The network may include a telecommunications network, a local area network, a wide area network and / or the Internet. For the purpose of the present application, unless explained below, the architecture and topology of the network (350) may be irrelevant to the operation disclosed in the present application.
[0043] As an example, Figure 4 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.
[0044] The streaming system may include an acquisition subsystem (413), which may include a video source (401) such as a digital camera, which creates an uncompressed video picture stream (402). In an embodiment, the video picture stream (402) includes samples taken by a digital camera. Compared to the encoded video data (404) (or the encoded video code stream), the video picture stream (402) is depicted as a thick line to emphasize the high data volume of the video picture stream, and the video picture stream (402) can be processed by an electronic device (420), which includes a video encoder (403) coupled to the video source (401). The video encoder (403) may include hardware, software, or a combination of hardware and software to implement or implement various aspects of the disclosed subject matter as described in more detail below. Compared to the video picture stream (402), the encoded video data (404) (or the encoded video code stream (404)) is depicted as a thin line to emphasize the lower data volume, which can be stored on the streaming server (405) for future use. One or more streaming client subsystems, such as Figure 4The client subsystem (406) and the client subsystem (408) in the video transmission system can access the streaming server (405) to retrieve the copy (407) and the copy (409) of the encoded video data (404). The client subsystem (406) may include, for example, a video decoder (410) in the electronic device (430). The video decoder (410) decodes the incoming copy (407) of the encoded video data and generates an output video picture stream (411) that can be presented on a display (412) (e.g., a display screen) or another presentation device (not depicted). In some streaming transmission systems, the encoded video data (404), the video data (407), and the video data (409) (e.g., a video bitstream) can be encoded according to certain video encoding / compression standards. Examples of these standards include ITU-T H.265. In an embodiment, the video coding standard under development is informally referred to as Versatile Video Coding (VVC), and the present application can be used in the context of the VVC standard.
[0045] It should be noted that the electronic device (420) and the electronic device (430) may include other components (not shown). For example, the electronic device (420) may include a video decoder (not shown), and the electronic device (430) may also include a video encoder (not shown).
[0046] Figure 5 is a block diagram of a video decoder (510) according to an embodiment disclosed in the present application. The video decoder (510) may be provided in an electronic device (530). The electronic device (530) may include a receiver (531) (e.g., a receiving circuit). The video decoder (510) may be used to replace Figure 4 A video decoder (410) of an embodiment.
[0047] The receiver (531) may receive one or more encoded video sequences to be decoded by the video decoder (510); in the same or another embodiment, one encoded video sequence is received at a time, wherein the decoding of each encoded video sequence is independent of the other encoded video sequences. The encoded video sequence may be received from a channel (501), which may be a hardware / software link to a storage device storing the encoded video data. The receiver (531) may receive the encoded video data as well as other data, such as encoded audio data and / or auxiliary data streams that may be forwarded to their respective consuming entities (not shown). The receiver (531) may separate the encoded video sequence from the other data. To prevent network jitter, a buffer memory (515) may be coupled between the receiver (531) and the entropy decoder / parser (520) (hereinafter referred to as "parser (520)"). In some applications, the buffer memory (515) is part of the video decoder (510). In other cases, the buffer memory (515) may be provided external to the video decoder (510) (not shown). In other cases, a buffer memory (not shown) is provided outside the video decoder (510) to prevent network jitter, for example, and another buffer memory (515) may be configured inside the video decoder (510) to handle broadcast timing, for example. When the receiver (531) receives data from a storage / forward device with sufficient bandwidth and controllability or from an isochronous network, it may not be necessary to configure the buffer memory (515), or the buffer memory may be made smaller. Of course, in order to use on a service packet network such as the Internet, a buffer memory (515) may also be required, and the buffer memory may be relatively large and have an adaptive size, and may be at least partially implemented in an operating system or a similar element (not shown) outside the video decoder (510).
[0048] The video decoder (510) may include a parser (520) to reconstruct symbols (521) from the encoded video sequence. The types of symbols include information used to manage the operation of the video decoder (510) and potential information used to control a display device such as a display device (512) (e.g., a display screen) that is not part of the electronic device (530) but can be coupled to the electronic device (530), such as Figure 5As 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 (520) may parse / entropy decode the received coded video sequence. The encoding of the coded video sequence may be performed according to a video coding technique or standard, and may follow various principles, including variable length coding, Huffman coding, arithmetic coding with or without context sensitivity, and the like. The parser (520) may extract a subgroup parameter set of at least one subgroup of the subgroups of pixels in the video decoder from the coded video sequence based on at least one parameter corresponding to the group. The subgroup may include a Group of Pictures (GOP), a picture, a tile, a slice, a macroblock, a Coding Unit (CU), a block, a Transform Unit (TU), a Prediction Unit (PU), and the like. The parser (520) may also extract information from the encoded video sequence, such as transform coefficients, quantizer parameter values, motion vectors, and so on.
[0049] The parser (520) may perform entropy decoding / parsing operations on the video sequence received from the buffer memory (515), thereby creating symbols (521).
[0050] Depending on the type of coded video picture or portion of coded video picture (e.g., inter- and intra-pictures, inter- and intra-blocks) and other factors, the reconstruction of the symbol (521) may involve multiple different units. Which units are involved and how they are involved may be controlled by subgroup control information parsed by the parser (520) from the coded video sequence. For the sake of brevity, such subgroup control information flow between the parser (520) and the multiple units below is not described.
[0051] In addition to the functional blocks already mentioned, the video decoder (510) can be conceptually subdivided into several functional units as described below. In a practical embodiment operating under commercial constraints, many of these units interact closely with each other and can be integrated with each other. However, for the purpose of describing the disclosed subject matter, the conceptual subdivision into the following functional units is appropriate.
[0052] The first unit is a sealer / inverse transform unit (551). The sealer / inverse transform unit (551) receives quantized transform coefficients as symbols (521) from the parser (520) and control information, including which transform method to use, block size, quantization factor, quantization scaling matrix, etc. The sealer / inverse transform unit (551) can output a block including sample values, which can be input into an aggregator (555).
[0053] In some cases, the output samples of the sealer / inverse transform unit (551) may belong to an intra-coded block; that is, a block that does not use predictive information from a previously reconstructed picture, but may use predictive information from a previously reconstructed portion of the current picture. Such predictive information may be provided by an intra-picture prediction unit (552). In some cases, the intra-picture prediction unit (552) generates surrounding blocks of the same size and shape as the block being reconstructed using reconstructed information extracted from a current picture buffer (558). For example, the current picture buffer (558) buffers a partially reconstructed current picture and / or a fully reconstructed current picture. In some cases, the aggregator (555) adds the prediction information generated by the intra-picture prediction unit (552) to the output sample information provided by the sealer / inverse transform unit (551) on a per-sample basis.
[0054] In other cases, the output samples of the scaler / inverse transform unit (551) may belong to an inter-frame coded and potentially motion compensated block. In this case, the motion compensated prediction unit (553) may access the reference picture memory (557) to extract samples for prediction. After the extracted samples are motion compensated according to the symbols (521), these samples may be added to the output of the scaler / inverse transform unit (551) (in this case referred to as residual samples or residual signals) by the aggregator (555) to generate output sample information. The acquisition of the predicted samples by the motion compensated prediction unit (553) from the address in the reference picture memory (557) may be controlled by a motion vector, and the motion vector is provided to the motion compensated prediction unit (553) in the form of the symbols (521), for example, including X, Y and reference picture components. Motion compensation may also include interpolation of sample values extracted from the reference picture memory (557) when using sub-sample accurate motion vectors, motion vector prediction mechanisms, and the like.
[0055] The output samples of the aggregator (555) may be employed by various loop filtering techniques in a loop filter unit (556). The video compression techniques may include in-loop filter techniques controlled by parameters included in the encoded video sequence (also referred to as the encoded video bitstream) and available to the loop filter unit (556) as symbols (521) from the parser (520). However, in other embodiments, the video compression techniques may also be responsive to meta-information obtained during decoding of a previous (in decoding order) portion of an encoded picture or encoded video sequence, as well as to previously reconstructed and loop filtered sample values.
[0056] The output of the loop filter unit (556) may be a sample stream that may be output to a display device (512) and stored in a reference picture memory (557) for subsequent inter-picture prediction.
[0057] Once fully reconstructed, certain coded pictures may be used as reference pictures for future prediction. For example, once the coded picture corresponding to the current picture is fully reconstructed, and the coded picture is identified as a reference picture (e.g., by the parser (520)), the current picture buffer (558) may become part of the reference picture memory (557), and a new current picture buffer may be reallocated before starting to reconstruct a subsequent coded picture.
[0058] The video decoder (510) may perform decoding operations according to a predetermined video compression technique, such as in the ITU-T H.265 standard. The encoded video sequence may conform to the syntax specified by the video compression technique or standard used, in the sense that the encoded video sequence follows the syntax of the video compression technique or standard and the profile recorded in the video compression technique or standard. Specifically, the profile may select certain tools from all the tools available in the video compression technique or standard as the only tools available for use under the profile. For compliance, the complexity of the encoded video sequence is also required to be within the range defined by the hierarchy of the video compression technique or standard. In some cases, the hierarchy limits the maximum picture size, the maximum frame rate, the maximum reconstruction sampling rate (measured in, for example, mega samples per second), the maximum reference picture size, etc. In some cases, the limits set by the hierarchy may be further limited by the Hypothetical Reference Decoder (HRD) specification and metadata of the HRD buffer management signaled in the encoded video sequence.
[0059] In an embodiment, the receiver (531) may receive additional (redundant) data along with the encoded video. The additional data may be part of the encoded video sequence. The additional data may be used by the video decoder (510) to properly decode the data and / or more accurately reconstruct the original video data. The additional data may be in the form of, for example, temporal, spatial or signal-to-noise ratio (SNR) enhancement layers, redundant slices, redundant pictures, forward error correction codes, etc.
[0060] Figure 6 6 is a block diagram of a video encoder (603) according to an embodiment disclosed in the present application. The video encoder (603) is provided in an electronic device (620). The electronic device (620) includes a transmitter (640) (e.g., a transmission circuit). The video encoder (603) can be used to replace Figure 4 A video encoder (403) in an embodiment.
[0061] The video encoder (603) can be used to obtain the video source (601) (not Figure 6 In another embodiment, the video source (601) is a part of the electronic device (620) to receive video samples, and the video source can collect video images to be encoded by the video encoder (603). In another embodiment, the video source (601) is a part of the electronic device (620).
[0062] The video source (601) may provide a source video sequence in the form of a digital video sample stream to be encoded by the video encoder (603), wherein the digital video sample stream may have any suitable bit depth (e.g., 8-bit, 10-bit, 12-bit, ...), any color space (e.g., BT.601 Y CrCB, RGB, ...), and any suitable sampling structure (e.g., Y CrCb 4:2:0, Y CrCb 4:4:4). In a media service system, the video source (601) may be a storage device storing previously prepared videos. In a video conferencing system, the video source (601) may be a camera that captures local image information as a video sequence. The video data may be provided as a plurality of separate pictures that are given motion when viewed sequentially. The pictures themselves may be constructed as a spatial pixel array, wherein each pixel may include one or more samples depending on the sampling structure, color space, etc. used. The relationship between pixels and samples may be easily understood by those skilled in the art. The following description focuses on samples.
[0063] According to an embodiment, the video encoder (603) may encode and compress pictures of a source video sequence into an encoded video sequence (643) in real time or under any other time constraints required by the application. Implementing an appropriate encoding speed is a function of the controller (650). In some embodiments, the controller (650) controls other functional units as described below and is functionally coupled to these units. For the sake of brevity, coupling is not indicated in the figure. The parameters set by the controller (650) may include rate control related parameters (picture skipping, quantizer, lambda value of rate distortion optimization technology, etc.), picture size, group of pictures (group of pictures, GOP) layout, maximum motion vector search range, etc. The controller (650) can be used to have other suitable functions that are related to the video encoder (603) optimized for a certain system design.
[0064] In some embodiments, the video encoder (603) operates in an encoding loop. As a simple description, in embodiments, the encoding loop may include a source encoder (630) (e.g., responsible for creating symbols, such as a symbol stream, based on an input picture to be encoded and a reference picture) and a (local) decoder (633) embedded in the video encoder (603). The decoder (633) reconstructs the symbols to create sample data in a manner similar to how the (remote) decoder creates sample data (because in the video compression technology considered in this application, any compression between the symbols and the encoded video code stream is lossless). The reconstructed sample stream (sample data) is input to a reference picture memory (634). Since the decoding of the symbol stream produces bit-accurate results that are independent of the decoder location (local or remote), the contents of the reference picture memory (634) are also bit-accurate between the local encoder and the remote encoder. In other words, the reference picture samples "seen" by the prediction part of the encoder are exactly the same as the sample values that the decoder will "see" when using the prediction during decoding. This basic principle of reference picture synchronization (and the drift that occurs when synchronization cannot be maintained, eg due to channel errors) is also used in some related techniques.
[0065] The operation of the "local" decoder (633) can be combined with the above Figure 5 The "remote" decoder described in detail for the video decoder (510) is identical. However, additional brief reference is made to Figure 5 , when symbols are available and the entropy encoder (645) and parser (520) are capable of losslessly encoding / decoding the symbols into an encoded video sequence, the entropy decoding portion of the video decoder (510), including the buffer memory (515) and the parser (520), may not be fully implemented in the local decoder (633).
[0066] 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.
[0067] During operation, in some embodiments, the source encoder (630) may perform motion compensated predictive coding. The motion compensated predictive coding predictively encodes an input picture with reference to one or more previously encoded pictures from a video sequence designated as "reference pictures." In this manner, the encoding engine (632) encodes the differences between pixel blocks of the input picture and pixel blocks of a reference picture that may be selected as a prediction reference for the input picture.
[0068] The local video decoder (633) may decode the encoded video data of the picture that may be designated as the reference picture based on the symbol created by the source encoder (630). The operation of the encoding engine (632) may be a lossy process. When the encoded video data is available at the video decoder ( Figure 6 When the video sequence is decoded at a remote location (not shown), the reconstructed video sequence may typically be a copy of the source video sequence with some errors. The local video decoder (633) replicates the decoding process that may be performed by the video decoder on the reference picture and may cause the reconstructed reference picture to be stored in the reference picture cache (634). In this way, the video encoder (603) may store a copy of the reconstructed reference picture locally that has common content (absent transmission errors) with the reconstructed reference picture to be obtained by the remote video decoder.
[0069] The predictor (635) may perform a prediction search for the encoding engine (632). That is, for a new picture to be encoded, the predictor (635) may search the reference picture memory (634) for sample data (as candidate reference pixel blocks) or certain metadata, such as reference picture motion vectors, block shapes, etc., that may serve as appropriate prediction references for the new picture. The predictor (635) may operate pixel-by-pixel based on sample blocks to find a suitable prediction reference. In some cases, based on the search results obtained by the predictor (635), it may be determined that the input picture may have prediction references taken from a plurality of reference pictures stored in the reference picture memory (634).
[0070] The controller (650) may manage encoding operations of the source encoder (630), including, for example, setting parameters and subgroup parameters for encoding video data.
[0071] The outputs of all the above functional units may be entropy encoded in an entropy encoder (645). The entropy encoder (645) performs lossless compression on the symbols generated by the various functional units according to techniques such as Huffman coding, variable length coding, arithmetic coding, etc., thereby converting the symbols into a coded video sequence.
[0072] The transmitter (640) may buffer the encoded video sequence created by the entropy encoder (645) in preparation for transmission over a communication channel (660), which may be a hardware / software link to a storage device where the encoded video data will be stored. The transmitter (640) may combine the encoded video data from the video encoder (603) with other data to be transmitted, such as encoded audio data and / or ancillary data streams (source not shown).
[0073] The controller (650) may manage the operation of the video encoder (603). During encoding, the controller (650) may assign a certain coded picture type to each coded picture, but this may affect the coding techniques that can be applied to the corresponding picture. For example, a picture may generally be assigned to any of the following picture types:
[0074] An intra picture (I picture) may be a picture that can be encoded and decoded without using any other picture in the sequence as a prediction source. Some video codecs allow different types of intra pictures, including, for example, Independent Decoder Refresh ("IDR") pictures. Those skilled in the art are aware of the variations of I pictures and their corresponding applications and features.
[0075] 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.
[0076] 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.
[0077] 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.
[0078] The video encoder (603) may perform encoding operations according to a predetermined video encoding technique or standard, such as ITU-T H.265 Recommendation. In operation, the video encoder (603) may perform various compression operations, including predictive encoding operations that exploit temporal and spatial redundancy in an input video sequence. Thus, the encoded video data may conform to the syntax specified by the video encoding technique or standard used.
[0079] In an embodiment, the transmitter (640) may transmit additional data when transmitting the encoded video. The source encoder (630) may include such data as part of the encoded video sequence. The additional data may include other forms of redundant data such as temporal / spatial / SNR enhancement layers, redundant pictures and slices, SEI messages, VUI parameter set fragments, etc.
[0080] 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.
[0081] 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.
[0082] In addition, merge mode technology can be used in inter-picture prediction to improve coding efficiency.
[0083] According to some embodiments disclosed in the present application, predictions such as inter-picture prediction and intra-picture prediction are performed in units of 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.
[0084] Figure 7 is a diagram of a video encoder (703) according to another embodiment disclosed in the present application. The video encoder (703) is used to receive a processed block (e.g., a prediction block) of sample values in a current video picture in a video picture sequence, and encode the processed block into an encoded picture that is part of an encoded video sequence. In this embodiment, the video encoder (703) is used to replace Figure 4A video encoder (403) in an embodiment.
[0085] In an HEVC embodiment, a video encoder (703) receives a matrix of sample values for a processing block, such as a prediction block of 8×8 samples. The video encoder (703) uses, for example, rate-distortion (RD) optimization to determine whether to use intra mode, inter mode, or bidirectional prediction mode to encode the processing block. When encoding the processing block in intra mode, the video encoder (703) may use intra prediction techniques to encode the processing block into an encoded picture; and when encoding the processing block in inter mode or bidirectional prediction mode, the video encoder (703) may use inter prediction or bidirectional prediction techniques to encode the processing block into an encoded picture, respectively. In some video encoding techniques, the merge mode may be an inter picture predictor mode, in which a motion vector is derived from one or more motion vector predictors without the aid of an encoded motion vector component external to the predictor. In some other video encoding techniques, there may be a motion vector component applicable to the subject block. In an embodiment, the video encoder (703) includes other components, such as a mode decision module (not shown) for determining the processing block mode.
[0086] exist Figure 7 In an embodiment of the present invention, the video encoder (703) includes: Figure 7 Shown are an inter-frame encoder (730), an intra-frame encoder (722), a residual calculator (723), a switch (726), a residual encoder (724), a general controller (721), and an entropy encoder (725) coupled together.
[0087] The inter-frame encoder (730) is used to receive samples of a current block (e.g., a processing block), compare the block with one or more reference blocks in a reference picture (e.g., blocks in a previous picture and a subsequent picture), generate inter-frame prediction information (e.g., redundant information description according to an inter-frame coding technique, motion vectors, merge mode information), and calculate an inter-frame prediction result (e.g., a predicted block) based on the inter-frame prediction information using any suitable technique. In some embodiments, the reference picture is a decoded reference picture decoded based on the encoded video information.
[0088] The intra-frame encoder (722) is used to receive samples of a current block (e.g., a processing block), compare the block with an encoded block in the same picture in some cases, generate quantization coefficients after transformation, and in some cases also generate intra-frame prediction information (e.g., intra-frame prediction direction information according to one or more intra-frame coding techniques). In an embodiment, the intra-frame encoder (722) also calculates an intra-frame prediction result (e.g., a predicted block) based on the intra-frame prediction information and a reference block in the same picture.
[0089] The general controller (721) is used to determine the general control data and control other components of the video encoder (703) based on the general control data. In an embodiment, the general controller (721) determines the mode of the block and provides a control signal to the switch (726) based on the mode. For example, when the mode is intra mode, the general controller (721) controls the switch (726) to select the intra mode result for use by the residual calculator (723) and controls the entropy encoder (725) to select intra prediction information and add the intra prediction information to the bitstream; and when the mode is inter mode, the general controller (721) controls the switch (726) to select the inter prediction result for use by the residual calculator (723) and controls the entropy encoder (725) to select the inter prediction information and add the inter prediction information to the bitstream.
[0090] The residual calculator (723) is used to calculate the difference (residual data) between the received block and the prediction result selected from the intra-frame encoder (722) or the inter-frame encoder (730). The residual encoder (724) is used to operate based on the residual data to encode the residual data to generate a transform coefficient. In an embodiment, the residual encoder (724) is used to convert the residual data from the time domain to the frequency domain and generate a transform coefficient. The transform coefficient is then processed by quantization to obtain a quantized transform coefficient. In various embodiments, the video encoder (703) also includes a residual decoder (728). The residual decoder (728) is used to perform an inverse transform and generate decoded residual data. The decoded residual data can be used appropriately by the intra-frame encoder (722) and the inter-frame encoder (730). For example, the inter-frame encoder (730) can generate a decoded block based on the decoded residual data and the inter-frame prediction information, and the intra-frame encoder (722) can generate a decoded block based on the decoded residual data and the intra-frame prediction information. The decoded blocks are appropriately processed to generate a decoded picture, and in some embodiments, the decoded picture may be buffered in a memory circuit (not shown) and used as a reference picture.
[0091] The entropy encoder (725) is used to format the code stream to produce an encoded block. The entropy encoder (725) generates various information according to a suitable standard such as the HEVC standard. In an embodiment, the entropy encoder (725) is used to obtain general control data, selected prediction information (such as intra-frame prediction information or inter-frame prediction information), residual information, and other suitable information in the code stream. It should be noted that according to the disclosed subject matter, when the block is encoded in the inter-frame mode or the merge sub-mode of the bidirectional prediction mode, there is no residual information.
[0092] Figure 8FIG. 8 is a diagram of a video decoder (810) according to another embodiment disclosed in the present application. The video decoder (810) is used to receive an encoded image as part of an encoded video sequence and decode the encoded image to generate a reconstructed picture. In an embodiment, the video decoder (810) is used to replace Figure 4 A video decoder (410) of an embodiment.
[0093] exist Figure 8 In one embodiment, the video decoder (810) includes: Figure 8 An entropy decoder (871), an inter-frame decoder (880), a residual decoder (873), a reconstruction module (874) and an intra-frame decoder (872) coupled together are shown in FIG.
[0094] The entropy decoder (871) may be used to reconstruct certain symbols from the encoded picture, which represent syntax elements constituting the encoded picture. Such symbols may include, for example, a mode for encoding the block (e.g., intra mode, inter mode, bidirectional prediction mode, a merged sub-mode of the latter two, or another sub-mode), prediction information (e.g., intra prediction information or inter prediction information) that may identify certain samples or metadata for prediction by the intra decoder (872) or the inter decoder (880), respectively, residual information in the form of, for example, quantized transform coefficients, and the like. In an embodiment, when the prediction mode is inter or bidirectional prediction mode, the inter prediction information is provided to the inter decoder (880); and when the prediction type is an intra prediction type, the intra prediction information is provided to the intra decoder (872). The residual information may be inverse quantized and provided to the residual decoder (873).
[0095] The inter-frame decoder (880) is used to receive the inter-frame prediction information and generate an inter-frame prediction result based on the inter-frame prediction information.
[0096] The intra-frame decoder (872) is used to receive intra-frame prediction information and generate a prediction result based on the intra-frame prediction information.
[0097] The residual decoder (873) is used to perform inverse quantization to extract dequantized transform coefficients, and process the dequantized transform coefficients to convert the residual from the frequency domain to the spatial domain. The residual decoder (873) may also require certain control information (to obtain the quantizer parameter Quantizer Parameter, QP), and the information may be provided by the entropy decoder (871) (the data path is not indicated because this is only low-volume control information).
[0098] The reconstruction module (874) is used to combine the residual output by the residual decoder (873) with the prediction result (which can be output by the inter-frame prediction module or the intra-frame prediction module) in the spatial domain to form a reconstructed block, which can be part of a reconstructed picture, which in turn can be part of a reconstructed video. It should be noted that other suitable operations such as deblocking operations can be performed to improve visual quality.
[0099] It should be noted that the video encoder (403), video encoder (603) and video encoder (703) and video decoder (410), video decoder (510) and video decoder (810) may be implemented using any suitable technology. In an embodiment, the video encoder (403), video encoder (603) and video encoder (703) and video decoder (410), video decoder (510) and video decoder (810) may be implemented using one or more integrated circuits. In another embodiment, the video encoder (403), video encoder (603) and video encoder (703) and video decoder (410), video decoder (510) and video decoder (810) may be implemented using one or more processors that execute software instructions.
[0100] According to some aspects of the present disclosure, in addition to the inter prediction mode and the intra prediction mode, a coding mode called palette-based coding mode may be used. The present disclosure provides techniques to simplify the palette-based coding mode with a local dual-tree coding structure.
[0101] In some examples, screen content has specific characteristics, and codec tools can be developed for screen codecs. Codec tools for screen codecs can achieve significant gains in codec efficiency. Palette-based codec modes can use indices of a palette to represent pixel blocks. The palette includes the primary colors of the blocks. The palette and index can be encoded by exploiting spatial redundancy.
[0102] Specifically, in some embodiments, the palette is defined as a lookup table of entries that can associate an index with a pixel value. In some examples, the pixel value includes one or more values corresponding to a color component. In one example, the pixel value can include three values representing three color components, respectively. In another example, for a monochrome palette, the pixel value includes a value representing a single color component.
[0103] In some embodiments, the pixel block may be encoded based on a palette, and the coding mode using the palette is referred to as a palette-based coding mode. The palette-based coding mode is adopted in some video coding standards (eg, VVC, etc.).
[0104] According to some embodiments, the palette-based codec mode is an independent codec mode. In an embodiment, the palette-based codec mode is implemented as a codec unit (e.g., a palette-based encoder, a palette-based decoder, etc.) that is separate from the intra-frame encoder (722), the inter-frame encoder (730), the intra-frame decoder (872), and the inter-frame decoder (870). In one example, the palette-based codec mode is implemented as a hardware circuit that is separate from the intra-frame encoder (722), the inter-frame encoder (730), the intra-frame decoder (872), and the inter-frame decoder (870). In another example, the palette-based codec mode is implemented as a software module that is separate from the software modules for the intra-frame encoder (722), the inter-frame encoder (730), the intra-frame decoder (872), and the inter-frame decoder (870). The software module for the palette-based codec mode and other software modules can be executed by the same processor or different processors.
[0105] According to some aspects of the present disclosure, a palette-based coding and decoding mode generally includes two parts: a first part of a coding and decoding method of a palette, and a second part of a coding and decoding method of samples using the palette. The first part may include primary color selection and palette coding and decoding. The second part may include palette index coding and decoding, runlength coding and escape pixel coding and decoding.
[0106] In some examples, a palette-based encoder may encode a block of video data by determining a palette for the block of video data (e.g., explicitly encoding the palette, predicting the palette, a combination of signaling and prediction, etc.), locating an entry in the palette that represents one or more pixel values, and encoding a block with an index value. The index value indicates an entry in the palette that represents the pixel value of the block. In some examples, the palette-based encoder may signal the palette and / or index value in the encoded bitstream. Then, the palette-based decoder may obtain the palette of the block and the index value of each pixel of the block from the encoded bitstream. In some other examples, the palette may be predicted, and the palette-based encoder may signal the index value in the encoded bitstream without signaling the palette, and the palette-based decoder may predict the palette and receive the index value in the encoded bitstream. Then, the palette-based decoder may associate the index value of the pixel with the entry of the palette that provides the pixel value. A palette-based decoder may reconstruct different pixels of a block based on pixel values associated with index values.
[0107] According to some embodiments, the color palette may include the most dominant pixel values in a given block. For example, the most dominant pixel values may include one or more pixel values that occur most frequently within a given block. Additionally, in some examples, a threshold value (e.g., the number of pixels having the most dominant pixel value) may be used to determine whether a pixel value is included as one of the most dominant pixel values in a block.
[0108] In some embodiments, a histogram-based algorithm is used to classify the pixel values of the pixels in the block to form a color palette. In some examples, the most significant L peaks in the histogram can be selected as the primary color (L is a positive integer). In the example, the pixel value close to the primary color can be quantized as the primary color. In some examples, pixels that do not belong to any primary color are called escape pixels. Escape pixels can be quantized before encoding. In some embodiments, for lossless encoding, the quantization process is not performed.
[0109] In addition, in some embodiments, for each pixel, a color index is assigned to indicate which color the pixel belongs to. In some examples, if L primary colors are used, 0 to (L-1) are used as color indices of the primary colors, and 0 to (L-1) may be referred to as a primary color set. For those pixels for which there is no primary color index, special indices (e.g., in addition to the index N from 0 to (L-1)) are assigned to them, and these pixels are referred to as "escape pixels".
[0110] Typically, the palette is implemented as a color lookup table. The color lookup table includes multiple entries. Each entry associates a color index with a color (e.g., a primary color). In some examples, a single palette is used to encode both the luminance component and the chrominance component. Each entry can use three color components to represent a specific RGB (YUV) color. For example, the palette may have entry 1 of (R, G, B) = (0, 0, 0), (R, G, B) = (0, 0, 0) represents pure black, and may have entry 0 of (R, G, B) = (2, 10, 200). (R, G, B) = (2, 10, 200) represents blue. It should be noted that when the video format is 420, the chrominance plane is upsampled to generate a color lookup table for the palette.
[0111] In some embodiments, palette-based encoding and decoding is performed on a CU basis. In an example, for a current CU, a color lookup table including the most important pixel value in the current CU is derived. In some examples, the size and elements of the color lookup table may be sent. In some other examples, the size and / or elements of the color lookup table including the most important pixel value in the current CU may be predictively encoded using the size and / or elements of the color lookup table of other CUs.
[0112] According to some aspects of the present disclosure, palette prediction may be performed based on a palette predictor list. In an example, the palette predictor list may include multiple palettes for other CUs. In order to encode the current palette using the palette predictor list as a reference, a binary vector is used to indicate whether each entry in the palette predictor list is reused in the current palette.
[0113] In some examples (e.g., HEVC SCC (Screen Content Coding)), the palette predictor list stores previously encoded palette entries as references for predicting the current palette. The palette predictor list is updated after each palette mode CU. In the example, the palette predictor list operates similar to a least recently used cache. The latest palette can be inserted at the beginning of the palette predictor list, and if the list size exceeds a threshold, the entry of the farthest CU in the scan order is discarded. In some examples, the maximum allowed palette predictor size and the palette size are either signaled in the high-level syntax or as defined values agreed upon by both the encoder and the decoder. In an embodiment, an upper limit on the size of the palette predictor list is signaled (directly or indirectly) in the SPS. For example, the palette predictor list may have a size approximately twice the size limit of the palette. In some examples, the palette predictor list is also referred to as a history palette predictor list (HPPL). In an example, in the SPS, the maximum predictor 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.
[0114] In some embodiments, the entries in the palette predictor list may each have a reuse flag. When the reuse flag of an entry is true (e.g., "1"), the entry is called a reuse entry. The color components of the reused entries in the palette predictor list are copied to the color lookup table of the current palette. The reused entries are placed at the beginning of the current palette by maintaining the order of the reused entries in the palette prediction list. The reused entries in the current palette may be followed by new palette entries that are not in the palette prediction list. The new palette entries may be signaled. Each new palette entry may include, for example, three color components.
[0115] In some embodiments, a palette initializer with predefined entries can be used to initialize the palette predictor list. In some scenarios, using a palette initializer can lead to improved codec efficiency. The palette initializer can be signaled, for example, in a picture parameter set (PPS), in a sequence parameter set (SPS), etc.
[0116] The color index can be encoded as follows. After classification, the pixels of the block are converted into color indexes according to the selected primary color set. In some examples, the predictive coding and decoding method can be applied to the color index. In the color index, the pixel line can be predicted by multiple different modes (e.g., three different modes), wherein the multiple different modes include a horizontal mode (e.g., a copy index mode), a vertical mode (e.g., a copy above mode), and a normal mode (e.g., an escape mode). In some examples, when encoding the color index, two index scanning orders (e.g., a horizontal traversal scan and a vertical traversal scan) can be used. An index rotation flag can be signaled to indicate which of the two index scanning orders is used.
[0117] In copy index mode, starting from the first pixel, one index or multiple consecutive indices may be copied from the first pixel.The color index of the first pixel may be signaled.
[0118] In the copy above mode, one or more consecutive color indexes may be copied from an above pixel line (eg, a pixel line above a current pixel line).
[0119] In escape mode, when an escape pixel, signaled by, for example, a maximum index (e.g., N) in a primary color set is encountered, the corresponding pixel value may be encoded after the maximum index (e.g., N). There may be multiple escape pixels with different color values in a CU. The pixel value of the escape pixel may be different for different escape pixel positions.
[0120] For each copy index mode, an index value may be signaled. Index signaling may be grouped in the front (or at the beginning), for example to improve context-adaptive binary arithmetic coding (CABAC) throughput. Similarly, pixel values of escaped pixels may be signaled in the back, for example to improve CABAC throughput. Copy index mode and copy above mode may be signaled between index codec and escape codec.
[0121] In an embodiment, the coding tree scheme supports the ability of the luma component and the corresponding chroma component to have a separate block tree structure. In an example, for P and B slices, the luma and chroma CTBs in the CTU share the same coding tree structure (e.g., a single tree). For an I slice, the luma and chroma CTBs in the CTU may have a separate block tree structure (e.g., a dual tree), and the partitioning of the CTU using a separate block tree structure is referred to as dual-tree partitioning. In an example, when dual-tree partitioning is applied, the luma CTB may be partitioned into a luma CU by a luma coding tree structure, and the chroma CTB may be partitioned into a chroma CU by a chroma coding tree structure.
[0122] In some examples, such as in JVET, samples of chroma components can have an independent or separate partition tree structure (or coding tree structure) compared to luma components. The separate coding tree structure can start from the CTU level, and in some examples, the dual tree structure from the CTU level is referred to as a global dual tree structure. In an example, a chroma CU (e.g., a CU that includes only two chroma components) is larger than the corresponding luma of the chroma CU at the corresponding sample position.
[0123] In some examples of CTU level dual tree (global dual tree structure), the maximum allowed predictor palette size and palette size are reduced, for example, by half, so that for each channel (luminance or chrominance), the complexity is reduced. For example, in the case of single tree coding, the luminance and chrominance palette coding blocks are jointly encoded, and the maximum allowed predictor palette size is 63 entries and the maximum allowed palette size is 31 entries. In the case of dual tree coding, for the luminance palette coding block, the maximum allowed predictor palette size is 31 entries and the maximum allowed palette size is 15 entries; and for the chrominance palette coding block, the maximum allowed predictor palette size is 31 entries and the maximum allowed palette size is 15 entries.
[0124] According to some aspects of the present disclosure, a technique called local dual tree is used to avoid using small chroma blocks (e.g., CUs with less than 4×4 chroma samples). In an example, the local dual tree technique may be triggered when certain conditions are met (e.g., the parent CU size is less than or equal to certain thresholds that may cause the chroma block to have less than 4×4 samples). Thus, luma codec and chroma codec may be separated for a CU in a manner similar to the dual tree at the CTU level.
[0125] According to one aspect of the present disclosure, when a partitioned tree structure is used, the luminance component may be encoded in one of an intra prediction mode, an intra block copy (IBC) mode, and a palette-based coding mode, and the chrominance component may be encoded in one of an intra prediction mode and a palette-based coding mode. However, the use of a local dual tree complicates the operation in the palette-based coding mode. For example, a block of a local dual tree structure may have adjacent blocks in a single tree structure. A block of a local dual tree structure and an adjacent block in a single tree structure may use the same palette predictor list. The updating of the palette predictor list may be complex.
[0126] One aspect of the present disclosure provides a simplified palette-based coding technique with a local dual-tree coding structure.
[0127] According to one aspect of the present disclosure, when certain conditions are true, the palette predictor list update process is disabled or bypassed for palette mode codecs. In some examples, when a local dual tree can be triggered and a block of the local dual tree structure is encoded in a palette-based codec mode, the update process of the palette predictor list can be disabled. Therefore, under the local dual tree structure, for luma blocks encoded in a palette-based codec mode and / or chroma blocks encoded in a palette-based codec mode, the palette entries of those blocks are not used to update the palette entries in the palette prediction list.
[0128] In an embodiment, the triggering of a local double tree may be detected. In an example, when the local double tree is triggered, the palette prediction list is not updated based on the chroma block under the local double tree structure, wherein the chroma block is encoded in a palette-based encoding and decoding mode; and the palette prediction list is not updated based on the luma block under the local double tree structure, wherein the luma block is encoded in a palette-based encoding and decoding mode. In another example, when the local double tree is triggered, the palette prediction list is not updated based on the luma block under the local double tree structure, wherein the luma block is encoded in a palette-based encoding and decoding mode; and the palette prediction list may be updated based on the chroma block under the local double tree structure, wherein the chroma block is encoded in a palette-based encoding and decoding mode. In another example, when the local double tree is triggered, the palette prediction list is not updated based on the chroma block under the local double tree structure, wherein the chroma block is encoded in a palette-based encoding and decoding mode; and the palette prediction list may be updated based on the luma block under the local double tree structure, wherein the luma block is encoded in a palette-based encoding and decoding mode.
[0129] Specifically, in the example, a variable represented by localDualTree is used to detect whether the local dual tree can be triggered. In the example, the variable localDualTree is derived according to Equation 1:
[0130] localDualTree=treeType! =SINGLE_TREE&&
[0131] (slice_type!=I||(slice_type==I&&qtbtt_dual_tree_intra_flag==0))? 1:0(equation 1)
[0133] Among them, treeType indicates the type of the partition tree structure (for example, SINGLE_TREE, DUAL_TREE_LUMA, DUAL_TREE_CHROMA, etc.), slice_type indicates the type of the current slice (for example, I, P or B), and qtbtt_dual_tree_intra_flag indicates the flag of the global dual tree. When the variable localDualTree is equal to 1, the local dual tree can be triggered and detected; when the variable localDualTree is equal to 0, the local dual tree is not triggered.
[0134] Fig. 9 A syntax example (900) for updating a palette predictor list in some examples is shown. In some examples, when localDualtree is equal to 0, the palette predictor list can be updated according to the syntax example (900); and when localDualtree is equal to 1, the update process according to the syntax example (900) is skipped.
[0135] In one example, for a palette-encoded block under a single tree structure, the palette predictor list may be updated on a block basis. For example, treeType is equal to SINGLE_TREE, so localDualtree is equal to 0. In addition, a variable startComp (e.g., the starting color component) is set to 0, a variable numComp (e.g., the number of color components) is set to 1 when only the luma component is encoded, and a variable numComp is set to 3 when both the luma component and the chroma component are encoded. Then, the size of the palette predictor list (e.g., represented by PredictorPaletteSize) and the entries of the palette predictor list (e.g., represented by predictorPaletteEntries) may be updated according to syntax (900).
[0136] In another example, for a palette-coded luma block under a global dual tree, the palette predictor list may be updated based on the block. For example, in the case of a CTU-level dual tree (global dual tree), treeType is equal to DUAL_TREE_LUMA, slice_type is equal to 1, the global dual tree flag qtbtt_dual_tree_intra_flag is equal to 1, and therefore localDualtree is equal to 0. In addition, the variable startComp is set to 0 and numComps is set to 1. Then, the size of the palette predictor list (e.g., represented by PredictorPaletteSize) and the entries of the palette predictor list (e.g., represented by predictorPaletteEntries) may be updated according to syntax (900).
[0137] In another example, for a palette-coded chroma block under a global dual tree, the palette predictor list may be updated based on the block. For example, in the case of a CTU-level dual tree (global dual tree), treeType is equal to DUAL_TREE_CHROMA, slice_type is equal to 1, the global dual tree flag qtbtt_dual_tree_intra_flag is equal to 1, and therefore localDualtree is equal to 0. In addition, the variable startComp is set to 1 and numComps is set to 2. Then, the size of the palette predictor list (e.g., represented by PredictorPaletteSize) and the entries of the palette predictor list (e.g., represented by predictorPaletteEntries) may be updated according to syntax (900).
[0138] In another example, for palette coded chroma blocks under local dual tree, the update of palette predictor list can be skipped. For example, treeType is equal to DUAL_TREE_CHROMA, slice_type is equal to 1, global dual tree flag qtbtt_dual_tree_intra_flag is equal to 0, so localDualtree is equal to 1. Then, the update process according to syntax example (900) is skipped.
[0139] According to another aspect of the present disclosure, when a codec configuration that can trigger the use of a local dual tree is used, palette-based codec mode is not allowed to be used for small blocks. Thus, in the case of a local dual tree, the complication of palette predictor list updates can be avoided.
[0140] In an example, when slice_type is not equal to 1, or when slice_type is equal to 1 but the slice-level flag for enabling (global) dual trees (e.g., qtbtt_dual_tree_intra_flag) is equal to 0, a local dual tree may be triggered (e.g., localDualTree is equal to 1). When the local dual tree is triggered, encoding of small blocks (e.g., codec units with width×height<threshold, etc.) by palette-based codec mode is not allowed. In an embodiment, a threshold is defined so that the local dual tree is not used when the block size of the current coding tree is above the threshold. In some examples, the palette-based codec mode is not allowed to be used for small luminance blocks and small chrominance blocks under the local dual tree structure. In some examples, only the palette-based codec mode is not allowed to be used for small chrominance blocks under the local dual tree structure.
[0141] Fig.10 An example of syntax for determining the presence of a flag (pred_mode_plt_flag) in a bitstream indicating whether the palette-based coding mode is used for the current block is shown. Fig.10 In the example of , part (1001) is used to apply the size constraint, and part (1002) is used to apply the chroma block and local dual tree constraints. For example, when the block is small (e.g., width×height is less than 16 for the luma block, or width×height is less than 16×SubWidthC×SubHeightC for the chroma block), part (1001) can be 0, so there is no pre_mode_plt_flag for the block in the codestream, and the palette-based codec mode is not allowed for the block.
[0142] In one example, for a chroma block under a local dual tree structure, modeType is equal to MODE_TYPE_INTRA, and treeType is equal to DUAL_TREE_CHROMA, so the result of part (1002) can be 0. Therefore, there is no pred_mode_plt_flag for the chroma block in the bitstream, and therefore the palette-based coding mode is not allowed to be used for the chroma block. In another example, for a chroma block of a global dual tree, modeType is equal to MODE_TYPE_ALL, and treeType is equal to DUAL_TREE_CHROMA, so the result of part (1002) can be 1. Therefore, the chroma block under the global dual tree structure can be encoded by the palette-based coding mode. In another example, for a luma block under a local dual tree structure, modeType is equal to MODE_TYPE_INTRA, and treeType is equal to DUAL_TREE_LUMA, so the result of part (1002) can be 1. Therefore, the luma block under the local dual tree structure can be encoded by the palette-based coding mode.
[0143] According to another aspect of the present disclosure, when a local dual tree is used, the maximum allowed predictor palette size and palette size are reduced, for example, by half. The reduction in the predictor palette size and palette size can reduce the complexity of updates. In some examples, for each local area (less than a CTU) where luma blocks and chroma blocks are allowed to be encoded separately (e.g., local dual tree), the maximum allowed predictor palette size and palette size are set to half of the case of a joint palette (using a palette with both luma components and chroma components).
[0144] In an embodiment, for the joint palette case, the maximum allowed predictor palette size and palette size are 63 and 31, respectively. Then, under the local dual-tree structure, for the palette-based coding mode of the luma block, the maximum allowed predictor palette size and palette size are set to 31 and 15, respectively; and for the palette-based coding mode of the chroma block, the maximum allowed predictor palette size and palette size are set to 31 and 15, respectively.
[0145] Fig.11A flow chart outlining a method (1100) according to an embodiment of the present disclosure is shown. The process (1100) may be used for reconstruction of a block. In various embodiments, the process (1100) is performed by a processing circuit, such as a processing circuit in a terminal device (310), (320), (330), and (340), a processing circuit that performs the functions of a video encoder (403), a processing circuit that performs the functions of a video decoder (410), a processing circuit that performs the functions of a video decoder (510), a processing circuit that performs the functions of a video encoder (603), and the like. In some embodiments, the process (1100) is implemented in software instructions, so when the processing circuit executes the software instructions, the processing circuit performs the process (1100). The process starts at (S1101) and proceeds to (S1110).
[0146] At (S1110), prediction information of a block is decoded from the encoded video bitstream.
[0147] At (S1120), based on the comparison of the size of the block with a threshold, it is determined whether the palette-based coding mode is allowed for the block.
[0148] At (S1130), based on the prediction information, it is determined whether the block is in a local dual tree structure.
[0149] At (S1140), based on the determination result of whether the palette-based coding mode is allowed for the block and the determination result of whether the block is under the local dual-tree structure, the block is decoded.
[0150] In some embodiments, in response to the size of the block being less than the threshold, the palette-based codec mode is not allowed to be used for the block. For example, when condition (1001) is not satisfied for the block, the palette-based codec mode is not allowed. In some examples, the threshold is defined such that the local dual tree structure is not used when the block is larger than the threshold.
[0151] In one embodiment, the palette-based codec mode is not allowed for the block in response to the block being a chroma block and the size of the chroma block being less than a threshold. In an example, the palette-based codec mode may be used in small luma blocks but not small chroma blocks.
[0152] In another embodiment, the palette-based codec mode is not allowed to be used for the block based on a combination of the mode type of the block and the tree type of the block, the combination indicating that the block is a chroma block under the local dual tree structure. In an example, to decode a block, when the mode type is equal to MODE_TYPE_INTRA and the tree type is equal to DUAL_TREE_CHROMA, the value of the condition (1002) is equal to 0, then the palette-based codec mode is not allowed to be used for the block.
[0153] In some embodiments, when the palette-based codec mode is enabled, a flag (e.g., pred_mode_plt_flag) indicating whether the palette-based codec mode is used for the block is decoded. In response to the flag indicating that the palette-based codec mode is used for the block, the block is decoded using the palette-based codec mode. In some embodiments, in response to the block being in a local dual-tree structure, updating of the palette predictor list can be skipped or bypassed.
[0154] In some examples, in response to not triggering the local dual tree structure, the palette predictor list is updated based on the palette used in the decoding of the block. In the example, the variable localDualTree is used to detect whether the local dual tree is triggered. For example, when the variable localDualTree is 0, an update of the palette predictor list based on the current palette of the block can be performed. In one example, when the variable localDualTree is 1, the update of the palette predictor list based on the current palette of the block is skipped. In another example, when the variable localDualTree is 1, the palette predictor list can be updated when the block is a luminance block, and the palette predictor list can be skipped when the block is a chrominance block.
[0155] In another embodiment, for a block under a local dual-tree structure, the maximum size of the palette and the maximum size of the palette predictor list are reduced by, for example, half. In some examples, when a palette-based codec mode is allowed to be used for the block, a flag indicating whether a palette-based codec mode is used for the block is decoded. Next, when the flag indicates that a palette-based codec mode is used for the block and the block is under a local dual-tree structure, the block is decoded based on a palette with a reduced maximum size for the palette. For example, the conventional maximum size of the palette is 31, and the reduced maximum size of the palette is 15. In addition, the palette predictor list is updated based on the palette used in the decoding of the block, and the size of the palette predictor list is limited by the reduced maximum size of the palette predictor list. For example, the conventional maximum size of the palette predictor list is 63, and the reduced maximum size of the palette predictor list is 31.
[0156] The process then proceeds to (S1199) and terminates.
[0157] 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) is shown that is suitable for implementing certain embodiments of the disclosed subject matter.
[0158] 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.
[0159] 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.
[0160] Fig.12 The components shown for the computer system (1200) are exemplary in nature and are not intended to limit the scope of use or functionality of the computer software implementing the embodiments of the present application. The configuration of the components should not be interpreted as having any dependency or requirement on any component or combination of components shown in the exemplary embodiment of the computer system (1200).
[0161] The computer system (1200) 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 human conscious 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).
[0162] The human-computer interface input device may include one or more of the following (only one of which is drawn): keyboard (1201), mouse (1202), touchpad (1203), touch screen (1210), data gloves (not shown), joystick (1205), microphone (1206), scanner (1207), camera (1208).
[0163] The computer system (1200) may also include certain human-computer interface output devices. Such human-computer interface output devices may stimulate one or more human user senses through, for example, tactile output, sound, light, and smell / taste. Such human-computer interface output devices may include tactile output devices (e.g., tactile feedback through a touch screen (1210), a data glove (not shown), or a joystick (1205), but there may also be tactile feedback devices that are not used as 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 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 can 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).
[0164] The computer system (1200) 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) (1220) with CD / DVD or similar media (1221), thumb drives (1222), removable hard disk drives or solid state drives (1223), 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.
[0165] 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.
[0166] 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 for connecting to some universal data ports or peripheral buses (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.
[0167] The above-mentioned human-machine interface devices, human-accessible storage devices, and network interfaces may be connected to the core (1240) of the computer system (1200).
[0168] 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. These devices, as well as read-only memory (ROM) (1245), random access memory (1246), internal mass storage (e.g., internal non-user accessible hard disk drives, solid-state drives, 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 so that it may be expanded by additional central processing units, graphics processing units, etc. Peripheral devices may be directly attached to the core's system bus (1248), or connected via a peripheral bus (1249). The architecture of the peripheral bus includes PCI, USB, etc.
[0169] 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 memory, which can be closely associated with one or more CPUs (1241), GPUs (1242), mass storage (1247), ROM (1245), RAM (1246), etc.
[0170] 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 purpose of this application, or may be medium and code well known and available to those skilled in the art of computer software.
[0171] As an example and not a limitation, a computer system having an architecture (1200), in particular a core (1240), can be provided as a processor (including a CPU, a GPU, an FPGA, an accelerator, etc.) to execute 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, as well as a specific memory of the core (1240) having non-volatility, such as a core internal mass storage (1247) or a ROM (1245). Software implementing various embodiments of the present application 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 enable the core (1240), 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 (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 a particular process or a particular portion of a particular process described herein. Where appropriate, 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 the executing software, circuitry containing the executing logic, or both. The present application includes any suitable combination of hardware and software.
[0172] Appendix A: Acronyms
[0173] JEM: Joint Exploration Model
[0174] VVC: versatile video coding
[0175] BMS: Benchmark set
[0176] MV: Motion Vector
[0177] HEVC: High Efficiency Video Coding
[0178] SEI: Supplementary Enhancement Information
[0179] VUI: Video Usability Information
[0180] GOPs: Groups of Pictures
[0181] TUs: Transform Units
[0182] PUs: Prediction Units
[0183] CTUs: Coding Tree Units
[0184] CTBs: Coding Tree Blocks
[0185] PBs: Prediction Blocks
[0186] HRD: Hypothetical Reference Decoder
[0187] SNR: Signal Noise Ratio
[0188] CPUs: Central Processing Units
[0189] GPUs: Graphics Processing Units
[0190] CRT: Cathode Ray Tube
[0191] LCD: Liquid-Crystal Display
[0192] OLED: Organic Light-Emitting Diode
[0193] CD: Compact Disc
[0194] DVD: Digital Video Disc
[0195] ROM: Read-Only Memory
[0196] RAM: Random Access Memory
[0197] ASIC: Application-Specific Integrated Circuit
[0198] PLD: Programmable Logic Device
[0199] LAN: Local Area Network
[0200] GSM: Global System for Mobile communications
[0201] LTE: Long-Term Evolution
[0202] CANBus: Controller Area Network Bus
[0203] USB: Universal Serial Bus
[0204] PCI: Peripheral Component Interconnect
[0205] FPGA: Field Programmable Gate Areas
[0206] SSD: solid-state drive
[0207] IC:Integrated Circuit
[0208] CU: Coding Unit
[0209] Although the present application has described a number of exemplary embodiments, various changes, arrangements and various equivalent substitutions of the embodiments are within the scope of the present application. Therefore, it should be understood that those skilled in the art can design a variety of systems and methods, which, although not explicitly shown or described herein, embody the principles of the present application and are therefore within the spirit and scope of the present application.
Claims
1. A video decoding method, characterized in that: include: Decode the prediction information of the block from the encoded video bitstream; Based on the prediction information, determining whether to allow the palette-based encoding and decoding mode to be enabled; wherein, In response to enabling the palette-based encoding and decoding mode, decoding a flag from the encoded video stream, the flag indicating whether the palette-based encoding and decoding mode is used for the block; as well as Based on a combination of the mode type of the block in the prediction information and the tree type of the block, it is determined that the palette-based coding mode is not allowed to be used for the block.
2. The method according to claim 1, wherein: Whether the palette-based encoding and decoding mode is used for the block is determined based on a comparison between the size of the block and a threshold, including: In response to the size of the block being less than the threshold, the palette-based codec mode is not allowed to be used for the block.
3. The method according to claim 1, further comprising: The threshold is defined such that the local dual tree structure is not allowed in response to the block being larger than the threshold.
4. The method according to claim 1, wherein: Whether the palette-based encoding and decoding mode is used for the block is determined based on a comparison between the size of the block and a threshold, including: In response to the block being a chroma block and the size of the chroma block being smaller than the threshold, the palette-based encoding and decoding mode is not allowed to be used for the block.
5. The method according to any one of claims 1 to 4, further comprising: In response to the flag indicating that the palette-based encoding and decoding mode is used for the block, decoding the block using the palette-based encoding and decoding mode; as well as Responsive to the block being under the local dual-tree structure, updating of the palette predictor list is bypassed.
6. The method according to claim 5, further comprising: In response to not triggering the local dual tree structure, updating the palette predictor list based on a palette used in the decoding of the block.
7. The method according to claim 5, further comprising: In response to triggering the local dual tree structure, the palette predictor list is updated when the block is a luma block.
8. The method according to claim 1, further comprising: Based on the palette used in the decoding of the block, a palette predictor list is updated, the size of the palette predictor list being limited by the reduced maximum size.
9. A video encoding method, characterized in that: Used to generate video streams, including: Obtain prediction information of the block from the video data; Based on the prediction information, determining whether to allow the palette-based encoding and decoding mode to be enabled; wherein, In response to enabling the palette-based encoding and decoding mode, encoding a flag indicating whether the palette-based encoding and decoding mode is used for the block; Based on a combination of the mode type of the block in the prediction information and the tree type of the block, it is determined that the palette-based coding mode is not allowed to be used for the block.
10. A video decoding device, characterized in that: include: A processing circuit configured to: execute the method according to any one of claims 1 to 8.
11. A video encoding device, characterized in that: include: The processing circuit is configured to: execute the method according to claim 9.
12. A method for storing a code stream, characterized in that: A video code stream is stored on a non-volatile computer-readable storage medium, and is decoded according to the video decoding method according to any one of claims 1 to 8, or the video code stream is generated according to the video encoding method according to claim 9.
13. A non-volatile computer-readable medium storing instructions, characterized in that: When the instructions are executed by a computer for video encoding and decoding, the computer is caused to execute: executing the method according to any one of claims 1 to 9.
14. A computer system, characterized in that: The computer system 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 9.
