Transformation set generation method and device, machine-readable storage medium and machine device
By integrating a subspace approximation transformation set based on adjustment deviations in the video encoder, the problem of insufficient transformation performance in the existing technology is solved, and the compression efficiency and adaptability of the video codec are improved.
Patent Information
- Application Number
- CN202011073947.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2020-09-30
- Publication Date
- 2024-09-13
- Estimated Expiration
- 2040-09-30
AI Technical Summary
Generating Saab transform and integrating it with the prediction residual block transform set have not been considered in existing video encoders, resulting in insufficient transform performance and difficulty in adapting to diverse video frame contents.
By generating multiple optimal prediction residual blocks based on the original video frames, a subspace approximate transformation set based on the adjustment bias is obtained and integrated with the existing transformation set to form a new transformation set.
The transform performance of the transform set is improved, applicable to a variety of prediction residual blocks, and the compression efficiency of the video codec is enhanced.
Smart Images

Figure CN114339217B
Abstract
Description
Technical Field
[0001] The present invention belongs to the field of signal processing technology, and in particular, relates to a method for generating a transform set of a video prediction residual block, a device for generating a transform set of a video prediction residual block, a machine-readable storage medium, and a machine device. Background Art
[0002] At present, the widely used hybrid video coding framework consists of three modules: prediction coding module, transform coding module and entropy coding module. Among them, the prediction coding module includes intra-frame prediction coding module and inter-frame prediction coding module. In this way, the correlation between spatial adjacent blocks and temporal continuous frames is mined through the intra-frame prediction coding module and the inter-frame prediction coding module to eliminate the spatial and temporal redundancy of the video frame. The prediction residual block is compressed into a code stream through transform coding and entropy coding for storage and transmission.
[0003] KLT (Karhunen-Loeve Transform) has optimal energy concentration and decorrelation. It obtains the transform kernel by calculating the co-correlation matrix of each prediction residual block and decomposing it. However, the computational cost and storage cost of KLT limit its wide application and promotion. When the prediction residual conforms to the first-order Markov process, the transformation performance of discrete cosine transform (Discrete Cosine Transform, DCT for short) or discrete sine transform (Discrete Sine Transform, DST for short) is close to KLT, and integer DCT and DST become the main transforms in video encoders. However, the DCT transform kernel is fixed and it is difficult to adapt to the prediction residuals of the content of various video frames.
[0004] At present, the generation and deployment of transform sets mainly rely on large-scale coding and decoding experiments. The distribution of prediction residuals is related to video frames and prediction coding modes. The diversity of video frame content and prediction coding modes adopted by the prediction coding module leads to diverse distribution of prediction residuals. Multiple transforms are more adaptable to the diversity of prediction residuals than single transforms, reducing the number of coding bits required for prediction residual transform coefficients. Considering that multiple transform kernels can better adapt to the diversity of prediction residual block content, the multi-transform selection transform scheme based on DCT / DST is adopted by the latest coding standards. Considering that DCT and KLT can capture a variety of content texture patterns, the latest video coding standards jointly apply the multi-transform selection transform scheme and the KLT-based inseparable secondary transform.
[0005] Data-driven transformation can balance the contradiction between KLT and DCT transformation performance and computational storage cost. In the context of the widespread application of convolutional neural networks, researchers have proposed a data-driven, multi-layer cascade and inseparable transformation, namely, the Subspace Approximation with Adjusted Bias (Saab) transformation, which can capture the diversity of different prediction residual blocks. However, in the video encoder of the prior art, it has not been considered to generate one or more Saab transforms and integrate them with the existing prediction residual block transform set to further improve the transformation performance of the existing transform set. Summary of the invention
[0006] In order to solve the technical problems existing in the above-mentioned prior art, the purpose of the present invention is to provide a method for generating a transform set of a video prediction residual block, an apparatus for generating a transform set of a video prediction residual block, a machine-readable storage medium and a machine device.
[0007] According to one aspect of the present invention, a method for generating a transform set of a video prediction residual block is provided, which includes: generating multiple optimal prediction residual blocks according to an original video frame; obtaining a subspace approximate transform set based on an adjustment deviation according to the multiple optimal prediction residual blocks; storing the subspace approximate transform set based on the adjustment deviation in a video encoder and / or a video decoder; and integrating the subspace approximate transform set based on the adjustment deviation into a transform set of the video encoder and / or the video decoder.
[0008] Further, in the transform set generation method of the video prediction residual block provided according to one aspect of the present invention, the generation of multiple optimal prediction residual blocks based on the original video frame includes: obtaining each prediction residual block of the encoded unit of the original video frame in each prediction mode, the original video frame including multiple encoded units; determining the prediction residual block with the smallest function value among the prediction residual blocks corresponding to the encoded unit as the optimal prediction residual block corresponding to the encoded unit.
[0009] Further, in the method for generating a transformation set of a video prediction residual block provided according to one aspect of the present invention, the obtaining of a subspace approximate transformation set based on an adjustment deviation according to the multiple optimal prediction residual blocks includes: dividing and classifying the multiple optimal prediction residual blocks into multiple optimal prediction residual block sets; obtaining at least one subspace approximate transformation based on an adjustment deviation according to the multiple optimal prediction residual block sets; and dividing and classifying the at least one subspace approximate transformation based on an adjustment deviation into at least one subspace approximate transformation set based on an adjustment deviation.
[0010] Furthermore, in the transform set generation method of the video prediction residual block provided according to one aspect of the present invention, the distance between the optimal prediction residual block in the optimal prediction residual block set and the set clustered average residual block is the smallest, and the set clustered average residual block is the average of all optimal prediction residual blocks in the optimal prediction residual block set.
[0011] According to another aspect of the present invention, a transform set generation device for a video prediction residual block is provided, which includes: an optimal prediction residual block acquisition module, used to generate multiple optimal prediction residual blocks according to an original video frame; a transform set acquisition module, used to acquire a subspace approximate transform set based on an adjustment deviation according to the multiple optimal prediction residual blocks; a transform storage management module, used to store the subspace approximate transform set based on the adjustment deviation in a video encoder and / or a video decoder; a transform set integration module, used to integrate the subspace approximate transform set based on the adjustment deviation into the transform set of the video encoder and / or the video decoder.
[0012] Further, in the transform set generating device of the video prediction residual block provided according to one aspect of the present invention, the optimal prediction residual block acquisition module includes: a prediction residual block acquisition unit, used to obtain each prediction residual block of the encoded unit of the original video frame in each prediction mode, and the original video frame includes a plurality of the encoded units; an optimal prediction residual block determination unit, used to determine the prediction residual block with the smallest function value among the prediction residual blocks corresponding to the encoded unit as the optimal prediction residual block corresponding to the encoded unit.
[0013] Further, in the transform set generating device for the video prediction residual block provided according to one aspect of the present invention, the transform set acquisition module includes: a residual block set unit, used to divide and classify the multiple optimal prediction residual blocks into multiple optimal prediction residual block sets; a transform acquisition unit, used to obtain at least one subspace approximate transform based on the adjustment deviation according to the multiple optimal prediction residual block sets; a transform set unit, used to divide and classify the at least one subspace approximate transform based on the adjustment deviation into at least one subspace approximate transform set based on the adjustment deviation.
[0014] Furthermore, in the transform set generating device of the video prediction residual block provided according to one aspect of the present invention, the distance between the optimal prediction residual block in the optimal prediction residual block set and the set clustered average residual block is the smallest, and the set clustered average residual block is the average of all optimal prediction residual blocks in the optimal prediction residual block set.
[0015] According to another aspect of the present invention, a machine-readable storage medium is provided, which stores executable instructions, and when the instructions are executed, the machine executes the above-mentioned method for generating a transform set of video prediction residual blocks.
[0016] According to another aspect of the present invention, a machine device is provided, which includes: at least one processor, and a memory coupled to the at least one processor, the memory storing instructions, and when the instructions are executed by the at least one processor, the at least one processor executes the above-mentioned method for generating a transform set of video prediction residual blocks.
[0017] The beneficial effect of the present invention is that a new transformation set is formed by integrating the obtained subspace approximate transformation set based on the adjusted deviation with the existing transformation set, thereby further improving the transformation performance of the existing transformation set. BRIEF DESCRIPTION OF THE DRAWINGS
[0018] The above and other aspects, features and advantages of the embodiments of the present invention will become more apparent through the following description in conjunction with the accompanying drawings, in which:
[0019] Figure 1 is a flowchart of a method for generating a transform set of a video prediction residual block according to an embodiment of the present invention;
[0020] Figure 2 is a module diagram of a transform set generating device for a video prediction residual block according to an embodiment of the present invention;
[0021] Figure 3 The block diagram shows a machine device for implementing a method for generating a transform set of a video prediction residual block according to an embodiment of the present invention. DETAILED DESCRIPTION
[0022] Hereinafter, specific embodiments of the present invention will be described in detail with reference to the accompanying drawings. However, the present invention may be implemented in many different forms, and the present invention should not be construed as being limited to the specific embodiments set forth herein. On the contrary, these embodiments are provided to explain the principles of the present invention and their practical applications, so that other persons skilled in the art can understand the various embodiments of the present invention and various modifications suitable for specific intended applications.
[0023] As used herein, the term "including" and its variations represent open terms, meaning "including but not limited to". The terms "based on", "according to", etc. mean "based at least in part on", "based at least in part on". The terms "one embodiment" and "an embodiment" mean "at least one embodiment". The term "another embodiment" means "at least one other embodiment". The terms "first", "second", etc. may refer to different or the same objects. Other definitions may be included below, whether explicit or implicit. Unless the context clearly indicates otherwise, the definition of a term is consistent throughout the specification.
[0024] As described in the background technology, in the video encoder (and / or video decoder) of the prior art, it has not been considered to generate one or more Saab (Subspace Approximation with Adjusted Bias, subspace approximation based on adjusted bias) transforms, and integrate the generated one or more Saab transforms with the existing prediction residual block transform set to form a new prediction residual block transform set. The prediction residual block is transformed using the new prediction residual block transform set, which can further improve the transformation performance of the existing transform set. In order to achieve this purpose, according to an embodiment of the present invention, a transform set generation method for a video prediction residual block is provided, which includes: generating multiple optimal prediction residual blocks according to an original video frame; obtaining a subspace approximation transform set based on adjusted bias according to the multiple optimal prediction residual blocks; storing the subspace approximation transform set based on adjusted bias in a video encoder and / or video decoder; and integrating the subspace approximation transform set based on adjusted bias into the transform set of the video encoder and / or the video decoder.
[0025] Therefore, in the method, the obtained Saab transform set is integrated with the existing transform set to form a new transform set, thereby further improving the transform performance of the existing transform set. In addition, further, the method can be applicable to different versions of video codecs including prediction modules (intra-frame prediction modules and / or inter-frame prediction modules), and the Saab transforms calculated from different prediction residual block sets are integrated with the existing transform set, thereby being applicable to the transform of various prediction residual blocks (intra-frame prediction residual blocks and / or inter-frame prediction modules), thereby further improving the compression efficiency of the video codec.
[0026] A method and apparatus for generating a transform set of a video prediction residual block according to an embodiment of the present invention will be described in detail below with reference to the accompanying drawings.
[0027] The method for generating a transform set of a video prediction residual block according to an embodiment of the present invention may be performed by a machine device, which may be communicatively connected to other devices. The machine device may include a smart phone, a tablet computer, a personal computer, a cloud service device, a service device, etc.
[0028] Figure 1 The present invention is a flowchart of a method for generating a transform set of a video prediction residual block according to an embodiment of the present invention.
[0029] Reference Figure 1 , in block 101, an original video frame is obtained, and a plurality of optimal prediction residual blocks are generated according to the original video frame.
[0030] In one example, the original video frame includes a plurality of coded units (or coded blocks). That is, one frame of original video may include a plurality of coded units, which will be encoded in various prediction modes to generate prediction residual blocks. In one example, the prediction residual block may be an intra-frame prediction residual block. In another example, the prediction residual block may also be an inter-frame prediction residual block.
[0031] In one example, there are usually multiple, for example, 35 prediction modes used when encoding a frame of original video. It should be noted that the prediction modes are different, so the prediction residual blocks obtained in each prediction mode are also different. In this case, a coded unit of the original video frame is encoded in a prediction mode to generate a prediction residual block. In this way, a coded unit is encoded in multiple prediction modes to generate corresponding multiple prediction residual blocks. For example, a coded unit is encoded in 35 prediction modes to generate corresponding 35 prediction residual blocks.
[0032] In one example, after obtaining multiple prediction residual blocks corresponding to a coded unit, the function values of the multiple prediction residual blocks corresponding to a coded unit are compared, and the prediction residual block with the smallest function value is selected as the optimal prediction residual block corresponding to the coded unit. It should be noted that the prediction mode corresponding to the optimal detection prediction residual block is the optimal prediction mode corresponding to the coded unit. In addition, when the above-mentioned acquisition is an intra-frame prediction residual block, the corresponding optimal prediction residual block here is the optimal intra-frame prediction residual block; and when the above-mentioned acquisition is an inter-frame prediction residual block, the corresponding optimal prediction residual block here is the optimal inter-frame prediction residual block.
[0033] In this case, each coded unit of the original video frame is encoded to generate a corresponding optimal prediction residual block, so that a plurality of optimal prediction residual blocks can be generated according to the original video frame.
[0034] In block 103, a set of subspace approximation transforms (ie, Saab transforms) based on adjusted deviations are obtained according to the multiple optimal prediction residual blocks.
[0035] In one example, the multiple optimal prediction residual blocks obtained above are divided and classified into multiple optimal prediction residual block sets. Here, it should be further emphasized that after the division and classification, in each optimal prediction residual block set, the distance between the optimal prediction residual block and the set cluster average residual block is the smallest. The set cluster average residual block here is the average of all the optimal prediction residual blocks in each optimal prediction residual block set.
[0036] In another example, the multiple optimal prediction residual blocks obtained above can be first collected into a total set of optimal prediction residual blocks, and then the total set of optimal prediction residual blocks can be divided into multiple optimal prediction residual block subsets. Here, in each optimal prediction residual block subset, the distance between the optimal prediction residual block and the set cluster average residual block is the smallest. The set cluster average residual block here is the average of all optimal prediction residual blocks in each optimal prediction residual block subset. In other words, the optimal prediction residual block subset in another example is equivalent to the optimal prediction residual block set described above.
[0037] After obtaining the multiple optimal prediction residual block sets as described above, in one example, at least one subspace approximate transformation based on adjustment deviation is obtained according to the multiple optimal prediction residual block sets. In one example, a corresponding subspace approximate transformation based on adjustment deviation can be obtained according to one optimal prediction residual block set, so as to obtain subspace approximate transformations based on adjustment deviation equal to the number of optimal prediction residual block sets. In another example, a corresponding subspace approximate transformation based on adjustment deviation can be obtained according to at least two optimal prediction residual block sets.
[0038] Furthermore, it should be noted that the obtained subspace approximate transform based on the adjustment deviation can be a one-layer transform or a cascaded multi-layer transform. Furthermore, when the prediction residual block is transformed using the subspace approximate transform based on the adjustment deviation, the prediction residual block transform coefficient output by the transform is a one-dimensional transform coefficient vector. The realization of a one-dimensional transform coefficient vector is beneficial to the design and implementation of a quantization coding module, an entropy coding coding module, etc., and can further reduce the number of compressed bits.
[0039] For example, the subspace approximation transform based on the adjustment deviation is a one-layer transform, so for a prediction residual block with a resolution of 8*8, it becomes a sub-block with a resolution of 1*64 after passing through the subspace approximation transform based on the adjustment deviation, thereby realizing a one-dimensional transform. For another example, the subspace approximation transform based on the adjustment deviation is a cascaded two-layer transform, wherein the first layer is a 2*2 transform layer and the second layer is a 4*4 transform layer, then for a prediction residual block with a resolution of 8*8, it is first divided into 16 sub-blocks with a resolution of 2*2, and the 16 sub-blocks with a resolution of 2*2 become 4 sub-blocks with a resolution of 4*4 after passing through the 2*2 transform layer, and then these 4 sub-blocks with a resolution of 4*4 become sub-blocks with a resolution of 1*64 after passing through the 4*4 transform layer, thereby realizing a one-dimensional transform.
[0040] After obtaining at least one subspace approximate transformation based on the adjusted deviation as described above, the at least one subspace approximate transformation based on the adjusted deviation is divided and classified into at least one subspace approximate transformation set based on the adjusted deviation.
[0041] In block 105, the set of subspace approximating transforms based on the adjusted deviations is stored in a video encoder and / or a video decoder.
[0042] In one example, the subspace approximate transformation set based on the adjusted deviation is synchronously stored and backed up at the video encoder end and / or the video decoder end to manage the subspace approximate transformation set based on the adjusted deviation.
[0043] In block 107, the set of subspace approximation transforms based on the adjusted deviations is integrated into a set of transforms of the video encoder and / or the video decoder.
[0044] In one example, the subspace approximate transform set based on the adjusted deviation is integrated with an existing transform set in a video encoder and / or a video decoder to form a new transform set for transforming the prediction residual block. It should be noted that the existing transform set here includes at least one existing transform for transforming the prediction residual block.
[0045] Further, the new transform set obtained in block 107 is used to transform the prediction residual blocks. Specifically, in one example, given m1+m2 prediction residual blocks, the m1 prediction residual blocks are transformed using the Saab transform in the new transform set obtained in block 107, and the remaining m2 prediction residual blocks are transformed using the existing transform in the new transform set obtained in block 107.
[0046] In another example, given m1+m2 prediction residual blocks, the m1 prediction residual blocks are transformed using the Saab transform in the new transform set obtained in block 107 and the existing transform, while the remaining m2 prediction residual blocks are transformed using the existing transform in the new transform set obtained in block 107.
[0047] In another example, given m1+m2 prediction residual blocks, the m1 prediction residual blocks are transformed using the Saab transform in the new transform set obtained in block 107 and the existing transform, while the remaining m2 prediction residual blocks are transformed using the Saab transform in the new transform set obtained in block 107 and the existing transform.
[0048] The following describes in detail a transform set generating apparatus for a video prediction residual block according to an embodiment of the present invention. Figure 2 It is a module diagram of a transform set generating device for a video prediction residual block according to an embodiment of the present invention.
[0049] Reference Figure 2 According to an embodiment of the present invention, a transform set generating device 200 for a video prediction residual block includes: an optimal prediction residual block obtaining module 202, a transform set obtaining module 204, a transform storage management module 206 and a transform set integration module 208.
[0050] The optimal prediction residual block acquisition module 202 is used to acquire an original video frame and generate multiple optimal prediction residual blocks according to the original video frame. In one example, the optimal prediction residual block acquisition module 202 may include a prediction residual block acquisition unit and an optimal prediction residual block determination unit.
[0051] In one example, the original video frame includes a plurality of coded units (or coded blocks). That is, one frame of original video may include a plurality of coded units. The prediction residual block acquisition unit is used to encode the coded unit in each prediction mode to generate a prediction residual block. In one example, the prediction residual block may be an intra-frame prediction residual block. In another example, the prediction residual block may also be an inter-frame prediction residual block. In one example, the prediction modes adopted when encoding a frame of original video are usually multiple, for example, 35. It should be noted that each prediction mode is different, so that the prediction residual blocks obtained in each prediction mode are also different. In this case, the prediction residual block acquisition unit encodes one coded unit of the original video frame in one prediction mode to generate a prediction residual block. In this way, the prediction residual block acquisition unit encodes one coded unit in multiple prediction modes to generate corresponding multiple prediction residual blocks. For example, the prediction residual block acquisition unit encodes one coded unit in 35 prediction modes to generate corresponding 35 prediction residual blocks.
[0052] In one example, the optimal prediction residual block determination unit is used to compare the function values of multiple prediction residual blocks corresponding to a coded unit, and to select the prediction residual block with the smallest function value as the optimal prediction residual block corresponding to the coded unit. It should be noted that the prediction mode corresponding to the optimal detection prediction residual block is the optimal prediction mode corresponding to the coded unit. In addition, when the above-mentioned acquisition is an intra-frame prediction residual block, the corresponding optimal prediction residual block here is the optimal intra-frame prediction residual block; and when the above-mentioned acquisition is an inter-frame prediction residual block, the corresponding optimal prediction residual block here is the optimal inter-frame prediction residual block.
[0053] In this case, the optimal prediction residual block acquisition module 202 encodes each coded unit of the original video frame to generate a corresponding optimal prediction residual block, so that multiple optimal prediction residual blocks can be generated according to the original video frame.
[0054] The transform set acquisition module 204 is used to acquire a subspace approximate transform (ie, Saab transform) set based on the adjusted deviation according to the multiple optimal prediction residual blocks. In one example, the transform set acquisition module 204 may include a residual block set unit, a transform acquisition unit, and a transform set unit.
[0055] In one example, the residual block set unit is used to divide and classify the multiple optimal prediction residual blocks obtained above into multiple optimal prediction residual block sets. Here, it should be further emphasized that after the division and classification, in each optimal prediction residual block set, the distance between the optimal prediction residual block and the set cluster average residual block is the smallest. Among them, the set cluster average residual block here is the average of all optimal prediction residual blocks in each optimal prediction residual block set.
[0056] In another example, the residual block set unit may first collect the multiple optimal prediction residual blocks obtained above into a total optimal prediction residual block set, and then divide the total optimal prediction residual block set into multiple optimal prediction residual block subsets. Here, in each optimal prediction residual block subset, the distance between the optimal prediction residual block and the set cluster average residual block is the smallest. The set cluster average residual block here is the average of all optimal prediction residual blocks in each optimal prediction residual block subset. That is to say, the optimal prediction residual block subset in another example is equivalent to the optimal prediction residual block set described above.
[0057] In one example, the transform acquisition unit is used to acquire at least one subspace approximate transform based on the adjustment deviation according to the multiple optimal prediction residual block sets. In one example, the transform acquisition unit can acquire a corresponding subspace approximate transform based on the adjustment deviation according to an optimal prediction residual block set, thereby obtaining subspace approximate transforms based on the adjustment deviation equal to the number of optimal prediction residual block sets. In another example, the transform acquisition unit can also acquire a corresponding subspace approximate transform based on the adjustment deviation according to at least two optimal prediction residual block sets.
[0058] In one example, the transformation set unit is used to divide and classify the at least one subspace approximation transformation based on the adjusted deviation into at least one subspace approximation transformation set based on the adjusted deviation.
[0059] The transform storage management module 206 is configured to store the subspace approximation transform set based on the adjusted deviation in a video encoder and / or a video decoder.
[0060] In an example, the transform storage management module 206 synchronously stores and backs up the subspace approximation transform set based on the adjusted deviation at the video encoder end and / or the video decoder end to manage the subspace approximation transform set based on the adjusted deviation.
[0061] The transform set integration module 208 is configured to integrate the subspace approximation transform set based on the adjusted deviation into a transform set of the video encoder and / or the video decoder.
[0062] In one example, the transform set integration module 208 integrates the subspace approximation transform set based on the adjusted deviation with the existing transform set in the video encoder and / or the video decoder to form a new transform set for transforming the prediction residual block. It should be noted that the existing transform set here includes at least one existing transform for transforming the prediction residual block.
[0063] Reference above Figure 1 and Figure 2 , a method for generating a transform set of a video prediction residual block and a device for generating a transform set of a video prediction residual block according to an embodiment of the present invention are described.
[0064] The transform set generation device of the video prediction residual block according to the embodiment of the present invention can be implemented by hardware, or by software or a combination of hardware and software. Taking software implementation as an example, as a device in a logical sense, it is formed by the processor of the device in which it is located reading the corresponding computer program instructions in the memory into the memory and running them. In the embodiment of the present invention, the device for generating the transform set of the video prediction residual block can be implemented by machine equipment (such as computer equipment).
[0065] Figure 3 The block diagram shows a machine device for implementing a method for generating a transform set of a video prediction residual block according to an embodiment of the present invention.
[0066] Reference Figure 3 , the machine device 300 may include at least one processor 310, a memory (e.g., a non-volatile memory) 320, a memory 330, and a communication interface 340, and the at least one processor 310, the memory 320, the memory 330, and the communication interface 340 are connected together via a bus 350. The at least one processor 310 executes at least one computer-readable instruction stored or encoded in the memory (i.e., the above-mentioned element implemented in the form of software).
[0067] In one example, computer executable instructions are stored in a memory, which when executed cause at least one processor 310 to perform a process: generate multiple optimal prediction residual blocks based on an original video frame; obtain a subspace approximate transform set based on adjusted deviations based on the multiple optimal prediction residual blocks; store the subspace approximate transform set based on adjusted deviations in a video encoder and / or a video decoder; and integrate the subspace approximate transform set based on adjusted deviations into a transform set of the video encoder and / or the video decoder.
[0068] It should be understood that the computer executable instructions stored in the memory, when executed, cause at least one processor 310 to perform the above-mentioned operations in accordance with the embodiments of the present invention. Figure 1 Describes the various operations and functions.
[0069] According to one embodiment, a program product such as a machine-readable medium is provided. The machine-readable medium may have instructions (i.e., the above-mentioned elements implemented in the form of software), which, when executed by a machine, causes the machine to perform the above-mentioned embodiments of the present invention. Figure 1 Describes the various operations and functions.
[0070] Specifically, a system or device equipped with a readable storage medium can be provided, on which software program codes that implement the functions of any of the above-mentioned embodiments are stored, and a computer or processor of the system or device can read and execute instructions stored in the readable storage medium.
[0071] In this case, the program code itself read from the machine-readable medium can realize the function of any one of the above embodiments, so the machine-readable code and the machine-readable storage medium storing the machine-readable code constitute a part of the embodiments of the present invention.
[0072] Examples of readable storage media include floppy disks, hard disks, magneto-optical disks, optical disks (such as CD-ROM, CD-R, CD-RW, DVD-ROM, DVD-RAM, DVD-RW, DVD-RW), magnetic tapes, non-volatile memory cards, and ROMs. Alternatively, the program code may be downloaded from a server computer or a cloud via a communication network.
[0073] The above describes specific embodiments of the present invention. Other embodiments are within the scope of the appended claims. In some cases, the actions or steps recorded in the claims can be performed in an order different from that in the embodiments and still achieve the desired results. In addition, the processes depicted in the accompanying drawings do not necessarily require the specific order or continuous order shown to achieve the desired results. In some embodiments, multitasking and parallel processing are also possible or may be advantageous.
[0074] Not all steps and units in the above-mentioned processes and system structure diagrams are necessary, and some steps or units can be ignored according to actual needs. The execution order of each step is not fixed and can be determined according to needs. The device structure described in the above-mentioned embodiments can be a physical structure or a logical structure, that is, some units may be implemented by the same physical entity, or some units may be implemented by multiple physical entities, or some components in multiple independent devices may be implemented together.
[0075] The terms "exemplary," "example," and the like used throughout this specification mean "used as an example, instance, or illustration" and do not mean "preferred" or "advantageous" over other embodiments. The detailed description includes specific details for the purpose of providing an understanding of the described techniques. However, these techniques can be implemented without these specific details. In some instances, in order to avoid obscuring the concepts of the described embodiments, well-known structures and devices are shown in block diagram form.
[0076] The optional implementation modes of the embodiments of the present invention are described in detail above in conjunction with the accompanying drawings. However, the embodiments of the present invention are not limited to the specific details in the above implementation modes. Within the technical concept of the embodiments of the present invention, various simple modifications can be made to the technical solutions of the embodiments of the present invention, and these simple modifications all belong to the protection scope of the embodiments of the present invention.
[0077] The above description of the contents of this specification is provided to enable any person of ordinary skill in the art to implement or use the contents of this specification. Various modifications to the contents of this specification will be apparent to those of ordinary skill in the art, and the general principles defined herein may be applied to other variations without departing from the scope of protection of the contents of this specification. Therefore, the contents of this specification are not limited to the examples and designs described herein, but are consistent with the widest range of principles and novel features disclosed herein.
Claims
1. A method for generating a transform set of a video prediction residual block, characterized in that: The transformation set generation method comprises: Generate multiple optimal prediction residual blocks according to the original video frame; Acquire a subspace approximate transformation set based on the adjusted deviation according to the multiple optimal prediction residual blocks; Storing the set of subspace approximation transforms based on the adjusted deviations in a video encoder and / or a video decoder; The set of subspace approximation transforms based on the adjusted deviations is integrated into a transform set of the video encoder and / or the video decoder.
2. The method for generating a transformation set according to claim 1, characterized in that: The step of generating a plurality of optimal prediction residual blocks according to the original video frame comprises: Acquire each prediction residual block of the coded unit of the original video frame in each prediction mode, wherein the original video frame includes a plurality of the coded units; A prediction residual block having the smallest function value among the prediction residual blocks corresponding to the coded unit is determined as an optimal prediction residual block corresponding to the coded unit.
3. The method for generating a transformation set according to claim 1 or 2, characterized in that: The step of obtaining a subspace approximate transformation set based on the adjusted deviation according to the multiple optimal prediction residual blocks includes: Dividing and classifying the multiple optimal prediction residual blocks into multiple optimal prediction residual block sets; Acquire at least one subspace approximate transformation based on the adjusted deviation according to the multiple optimal prediction residual block sets; The at least one adjusted deviation-based subspace approximation transformation is divided and classified into at least one adjusted deviation-based subspace approximation transformation set.
4. The method for generating a transformation set according to claim 3, characterized in that: The distance between the best prediction residual block in the best prediction residual block set and the set cluster average residual block is the smallest, and the set cluster average residual block is the average of all the best prediction residual blocks in the best prediction residual block set.
5. A transform set generation device for a video prediction residual block, characterized in that: The transformation set generating device comprises: An optimal prediction residual block acquisition module is used to generate multiple optimal prediction residual blocks according to the original video frame; A transformation set acquisition module, used for acquiring a subspace approximate transformation set based on the adjustment deviation according to the multiple optimal prediction residual blocks; A transform storage management module, used for storing the subspace approximate transform set based on the adjusted deviation in a video encoder and / or a video decoder; A transform set integration module is used to integrate the subspace approximation transform set based on the adjusted deviation into the transform set of the video encoder and / or the video decoder.
6. The transformation set generation device according to claim 5, characterized in that: The optimal prediction residual block acquisition module comprises: A prediction residual block acquisition unit, used to acquire each prediction residual block of the coded unit of the original video frame in each prediction mode, wherein the original video frame includes a plurality of the coded units; The optimal prediction residual block determining unit is used to determine the prediction residual block with the smallest function value among the prediction residual blocks corresponding to the coded unit as the optimal prediction residual block corresponding to the coded unit.
7. The transformation set generation device according to claim 5 or 6, characterized in that: The transformation set acquisition module includes: A residual block set unit, used for dividing and classifying the multiple optimal prediction residual blocks into multiple optimal prediction residual block sets; A transformation acquisition unit, configured to acquire at least one subspace approximate transformation based on the adjustment deviation according to the plurality of optimal prediction residual block sets; The transformation set unit is used to divide and classify the at least one subspace approximate transformation based on the adjusted deviation into at least one subspace approximate transformation set based on the adjusted deviation.
8. The transformation set generating device according to claim 7, characterized in that: The distance between the best prediction residual block in the best prediction residual block set and the set cluster average residual block is the smallest, and the set cluster average residual block is the average of all the best prediction residual blocks in the best prediction residual block set.
9. A machine-readable storage medium storing executable instructions, characterized in that: When the instructions are executed, the machine performs the method for generating a transform set of a video prediction residual block as claimed in any one of claims 1 to 4.
10. A machine device, characterized in that: include: at least one processor, and A memory coupled to the at least one processor, the memory storing instructions, when the instructions are executed by the at least one processor, enables the at least one processor to perform the method for generating a transform set of a video prediction residual block as described in any one of claims 1 to 4.
