Coding method, decoding method, and related device
By using the mask information obtained from the predicted frame and the current frame in video encoding to dynamically adjust the bit rate, the problem of irregular motion or poor reconstruction of occluded areas in video encoding is solved, and the encoding quality is improved.
Patent Information
- Application Number
- PCT/CN2024/074645
- Authority / Receiving Office
- WO · WO
- Patent Type
- Applications
- Current Assignee / Owner
- Priority Date
- 2023-04-25
- Filing Date
- 2024-01-30
- Publication Date
- 2024-10-31
AI Technical Summary
When end-to-end video encoding is used in irregular motion areas or occluded areas, the decoder cannot obtain effective information, resulting in poor reconstruction results.
The mask information is obtained through the predicted frame and the current frame, which is used to determine the code rate of each area in the image to be encoded during the encoding process, thereby improving the encoding quality of areas with irregular motion or occlusion.
By dynamically adjusting the bit rate, the reconstruction effect of irregular motion or occluded areas is improved, the waste of bit rate is reduced, and the overall encoding quality of the image is improved.
Smart Images

Figure CN2024074645_31102024_PF_FP_ABST
Abstract
Description
A coding method, a decoding method and related equipment
[0001] This application claims priority to the Chinese patent application filed with the State Intellectual Property Office on April 25, 2023, with application number 202310473660.0 and invention name “A coding method, a decoding method and related equipment”, the entire contents of which are incorporated by reference into this application. Technical Field
[0002] The embodiments of the present application relate to the field of image processing, and in particular to an encoding method, a decoding method, and related devices. Background Art
[0003] In recent years, video content has become a major component of internet traffic, and video compression is crucial for video storage and transmission within limited internet bandwidth. Over the past few decades, traditional video coding standards, such as advanced video coding (AVC), high-efficiency video coding (HEVC), and versatile video coding (VVC), have been handcrafted based on block segmentation, inter-frame prediction, and linear transformations. However, deep learning compression methods based on autoencoders, with their powerful nonlinear transformation capabilities, have achieved outstanding results in image compression, even outperforming the best traditional image codecs. Consequently, deep learning-based compression methods have begun to attract the attention of researchers and are widely used in the field of video compression.
[0004] Currently, deep learning-based video compression methods replace the modules in traditional hybrid frameworks with deep modules. In deep learning-based encoder models, all key components of video compression, including motion estimation, motion compensation, residual compression, motion compression, quantization, and bitrate estimation, are implemented through end-to-end neural networks. By using a single loss function to balance distortion and bitrate, this method jointly optimizes key components of video compression, such as motion estimation, motion compression, and residual compression. Specifically, the encoder obtains the optical flow of the current frame and the reference frame based on the image optical flow estimation module. Then, based on the motion compensation module, the reference frame, and the optical flow, it obtains the residual between the current frame and the predicted frame, encodes the residual to obtain a bitstream, and sends this bitstream to the decoder. After receiving the bitstream, the decoder decodes the bitstream to obtain the residual, and then uses the residual and the reference frame to reconstruct the current frame, thereby achieving reconstruction of the current frame.
[0005] However, for end-to-end video coding, due to irregular motion or occluded areas, the decoder cannot obtain effective information from the reference frame, the reconstruction cost is high, and the reconstruction effect is poor during the optimization process.
[0006] Summary of the Invention
[0007] The present application provides an encoding method, a decoding method and related devices, which are used to determine the bit rate of irregularly moving areas or occluded areas in second image information based on a mask, thereby improving the encoding quality of these areas.
[0008] The first aspect of the embodiment of the present application provides a coding method that can be applied to coding and decoding scenarios. The method can be executed by a coding device, or by a component of the coding device (such as a processor, a chip, or a chip system, etc.). The method includes: obtaining two frames of image information that have a front-to-back correlation in a time series, and the two frames of image information include reference frame information (also referred to as first image information, such as a reference frame image or an image feature of a reference frame) and current frame information (also referred to as second image information, such as a current frame image or an image feature of a current frame). According to the reference frame information and the motion information, the predicted frame information of the current frame is obtained (also referred to as the third image information, such as a predicted frame image or an image feature of a predicted frame), and the motion information is used to describe the transformation difference between the reference frame information and the current frame information; based on the current frame information and the predicted frame information, mask information is obtained, and the mask information is used to indicate the code rate allocation information of the current frame information; based on the code rate allocation information, the current frame information is encoded to obtain a code stream.
[0009] In this embodiment of the present application, mask information is obtained from the predicted frame and the current frame, and the bitrate of each region in the image to be encoded is determined during the encoding process using this mask information. Because the mask information is obtained based on the predicted frame and the current frame, it can better reflect which regions in the predicted frame have poor or good reconstruction effects, and thus allocate bitrates to the corresponding regions in the current frame. For example, more bitrate can be allocated to regions with poor predicted quality, thereby improving the encoding quality of regions with erratic motion or occluded areas.
[0010] Optionally, in a possible implementation of the first aspect, the above-mentioned step of: obtaining mask information based on the current frame information and the predicted frame information includes: obtaining difference image information between the current frame information and the predicted frame information; processing the difference image information to obtain mask information, and the processing includes downsampling processing.
[0011] In this possible implementation, the difference image information between the predicted frame information and the current frame information is calculated, and the mask information is obtained by downsampling or other processing based on the difference image information. For example, more bit rate is allocated to areas with poor reconstruction quality to improve their quality.
[0012] Optionally, in a possible implementation manner of the first aspect, the above processing further includes binarization processing.
[0013] In this possible implementation, the size of the mask information can be reduced by further performing a binarization process, thereby facilitating subsequent transmission.
[0014] Optionally, in a possible implementation of the first aspect, the bitrate allocation information includes a first bitrate for a first region in the second image (i.e., the current frame), the first region being associated with a second region of the difference image, the pixel value of the second region being greater than or equal to a first preset threshold, and the first bitrate being greater than or equal to the second preset threshold. The first region being associated with the second region can be understood as meaning that the second region of the difference image is obtained by subtracting the first region of the second image from a region of the third image. It can also be understood that, based on the second region in the difference image, it can be inferred that the second region corresponds to the first region in the second image.
[0015] In this possible implementation, more bitrate is allocated to the area with poor reconstruction quality to improve its quality.
[0016] Optionally, in a possible implementation of the first aspect, the bitrate allocation information includes a second bitrate for a third region in the second image, the third region is associated with a fourth region in the difference image, the pixel values in the fourth region are less than a first preset threshold, and the first bitrate is greater than the second bitrate. The third region is associated with the fourth region, which can be understood as meaning that the fourth region of the difference image is obtained by subtracting the third region of the second image from a region of the third image. It can also be understood that, based on the fourth region in the difference image, it can be inferred that the fourth region corresponds to the third region in the second image.
[0017] In this possible implementation, a lower bit rate is allocated to the area with better reconstruction quality to reduce bit rate transmission.
[0018] Optionally, in a possible implementation manner of the first aspect, the step of encoding the second image information based on the bit rate allocation information to obtain a bit stream includes encoding the second image information and mask information based on the bit rate allocation information to obtain a bit stream.
[0019] In this possible implementation, by placing the mask information in the bitstream, the decoding device can reconstruct the irregularly moving area or the occluded area in the second image according to the mask information, thereby improving the reconstruction effect.
[0020] Optionally, in a possible implementation of the first aspect, the above-mentioned transformation difference is a pixel difference, and the first image information, the second image information, and the third image information are all video frames (or called image data, the specific form of which can be a two-dimensional array or a three-dimensional array, etc.).
[0021] In this possible implementation, the transformation difference indicated by the motion information may be an image domain dimension, which is applicable to image-level encoding and decoding scenarios.
[0022] Optionally, in a possible implementation manner of the first aspect, the above-mentioned transformation difference is a feature difference, and the first image information, the second image information, and the third image information are all image features.
[0023] In this possible implementation, the transformation difference indicated by the motion information may be a feature domain dimension, which is applicable to encoding and decoding scenarios at the image feature level.
[0024] A second aspect of the present application provides a decoding method that can be applied to encoding and decoding scenarios. The method can be performed by a decoding device or a component of the decoding device (e.g., a processor, chip, or chip system). The method includes: obtaining a bitstream; obtaining mask information, the mask information being used to determine the bitrate of the second image information; and decoding the bitstream based on the bitrate to obtain the second image information.
[0025] In an embodiment of the present application, the decoding device reconstructs the irregularly moving area or the occluded area in the second image information according to the mask information, thereby improving the reconstruction effect.
[0026] Optionally, in a possible implementation manner of the first aspect, the step of obtaining the mask information includes decoding the code stream to obtain the mask information.
[0027] In this possible implementation, by placing the mask information in the bitstream, the decoding device can reconstruct the irregularly moving area or the occluded area in the second image according to the mask information, thereby improving the reconstruction effect.
[0028] Optionally, in a possible implementation manner of the first aspect, the second image information is a video frame or an image feature.
[0029] In this possible implementation, the method can be applied to both feature domain dimensions and image domain dimensions, thereby increasing the application scenarios to which the method is applicable.
[0030] A third aspect of the embodiments of the present application provides an encoding device. The encoding device includes: an acquisition unit for acquiring first image information and second image information, the first image information and the second image information having a chronological correlation; a prediction unit for predicting third image information based on the first image information and motion information, the motion information being used to describe the transformation difference between the first image information and the second image information; the acquisition unit is further configured to acquire mask information based on the second image information and the third image information, the mask information being used to indicate bit rate allocation information for the second image information; and an encoding unit for encoding the second image information based on the bit rate allocation information to obtain a bitstream.
[0031] Optionally, in a possible implementation of the third aspect, the above-mentioned acquisition unit is specifically used to obtain difference image information between the second image information and the third image information; the acquisition unit is specifically used to process the difference image information to obtain mask information, and the processing includes downsampling processing.
[0032] Optionally, in a possible implementation manner of the third aspect, the above processing also includes binarization processing.
[0033] Optionally, in a possible implementation of the third aspect, the above-mentioned bit rate allocation information includes a first bit rate of a first area in the second image, the first area is related to the second area of the difference image, the pixel value of the second area is greater than or equal to a first preset threshold, and the first bit rate is greater than or equal to a second preset threshold.
[0034] Optionally, in a possible implementation of the third aspect, the above-mentioned bit rate allocation information includes a second bit rate of a third area in the second image, the third area is related to a fourth area of the difference image, the pixel value of the fourth area is less than a first preset threshold, and the first bit rate is greater than the second bit rate.
[0035] Optionally, in a possible implementation manner of the third aspect, the encoding unit is specifically configured to encode the second image information and the mask information based on the bit rate allocation information to obtain a bit stream.
[0036] Optionally, in a possible implementation manner of the third aspect, the above-mentioned transformation difference is a pixel difference, and the first image information, the second image information, and the third image information are all video frames.
[0037] Optionally, in a possible implementation manner of the third aspect, the above-mentioned transformation difference is a feature difference, and the first image information, the second image information, and the third image information are all image features.
[0038] A fourth aspect of the present application provides a decoding device. The decoding device includes: an acquisition unit configured to acquire a bitstream; the acquisition unit further configured to acquire mask information, the mask information being used to determine a bitrate of second image information; and a decoding unit configured to decode the bitstream based on the bitrate to obtain the second image information.
[0039] Optionally, in a possible implementation manner of the fourth aspect, the acquisition unit is specifically configured to decode the code stream to obtain the mask information.
[0040] Optionally, in a possible implementation manner of the fourth aspect, the second image information is a video frame or an image feature.
[0041] The fifth aspect of an embodiment of the present application provides a coding device, including: a processor, the processor is coupled to a memory, the memory is used to store programs or instructions, when the program or instructions are executed by the processor, the coding device implements the method in the above-mentioned first aspect or any possible implementation of the first aspect.
[0042] The sixth aspect of an embodiment of the present application provides a decoding device, including: a processor, the processor is coupled to a memory, the memory is used to store programs or instructions, when the program or instructions are executed by the processor, the decoding device implements the method in the above-mentioned second aspect or any possible implementation of the second aspect.
[0043] A seventh aspect of an embodiment of the present application provides a coding and decoding system, including: the coding device of the fifth aspect above, and / or the decoding device of the sixth aspect above.
[0044] An eighth aspect of an embodiment of the present application provides a computer-readable medium having a computer program or instruction stored thereon. When the computer program or instruction runs on a computer, the computer executes the method of the aforementioned first aspect or any possible implementation of the first aspect, or the computer executes the method of the aforementioned second aspect or any possible implementation of the second aspect.
[0045] A ninth aspect of an embodiment of the present application provides a computer program product, which, when executed on a computer, enables the computer to execute the method of the aforementioned first aspect or any possible implementation of the first aspect, or enables the computer to execute the method of the aforementioned second aspect or any possible implementation of the second aspect.
[0046] A tenth aspect of an embodiment of the present application provides a readable storage medium, on which is stored a code stream encoded according to the method in the aforementioned first aspect or any possible implementation of the first aspect.
[0047] In an eleventh aspect of an embodiment of the present application, a device for storing a code stream is provided, characterized in that it includes at least one storage medium and a communication interface; the communication interface is used to receive or send the code stream; the at least one storage medium is used to store the code stream; the code stream is encoded by an encoder according to the method in the aforementioned first aspect or any possible implementation of the first aspect.
[0048] A twelfth aspect of an embodiment of the present application provides a method for storing a code stream, the method comprising: receiving a code stream through a communication interface; storing the code stream in one or more storage media, wherein the code stream is encoded by an encoder according to the method in the aforementioned first aspect or any possible implementation of the first aspect.
[0049] A thirteenth aspect of an embodiment of the present application provides a system for distributing code streams, the system comprising at least one storage medium and a video streaming device; the at least one storage medium is used to store the code stream, which is encoded by an encoder according to the method in the aforementioned first aspect or any possible implementation of the first aspect; the video streaming device is used to respond to a request from a decoder so that the target code stream in the at least one storage medium can be sent to the decoder.
[0050] A fourteenth aspect of an embodiment of the present application provides a method for distributing a bitstream, the method comprising: receiving a first request; selecting a target bitstream from at least one storage medium in response to the first request; and sending the target bitstream to a destination device; the at least one storage medium being used to store the bitstream, where the bitstream is encoded by an encoder according to the method of the first aspect or any possible implementation of the first aspect.
[0051] A fifteenth aspect of an embodiment of the present application provides a system for processing a code stream, the system comprising an image source device, an encoder device, one or more storage media, and a destination device; the image source device is used to provide image data; the encoder device is used to obtain image data from the image source device through an interface, and encode the image data to obtain one or more code streams, where the code streams are encoded by the encoder according to the method in the aforementioned first aspect or any possible implementation of the first aspect; the encoder device is used to store the one or more code streams in one or more storage media; or the encoder device is used to encapsulate the one or more code streams to obtain a transmission code stream; the encoder device is used to transmit the transmission code stream to the destination device via a communication link or a communication network; the destination device is used to decapsulate the transmission code stream to obtain one or more code streams; and the destination device is used to decode the one or more code streams to obtain decoded data.
[0052] As can be seen from the above technical solution, the present application has the following advantages: mask information is obtained through the predicted frame and the current frame, and the bit rate of each area in the image to be encoded is determined by the mask information during the encoding process. Since the mask information is obtained based on the predicted frame and the current frame, it can better reflect which areas in the predicted frame have poor or good reconstruction effects, and then the bit rate can be allocated to the corresponding areas in the current frame. For example, more bit rate can be allocated to areas with poor prediction quality, thereby improving the encoding quality of areas with irregular motion or occluded areas. BRIEF DESCRIPTION OF THE DRAWINGS
[0053] FIG1 is a schematic diagram of optical flow mapping provided in an embodiment of the present application;
[0054] FIG2 is a schematic diagram of convolution provided in an embodiment of the present application;
[0055] FIG3 is a schematic diagram of the structure of the system architecture provided in an embodiment of the present application;
[0056] FIG4 is a schematic diagram of a chip hardware structure provided in an embodiment of the present application;
[0057] Figures 5 to 8 are schematic diagrams of several application scenarios provided by embodiments of the present application;
[0058] FIG9 is a schematic diagram of another system architecture provided in an embodiment of the present application;
[0059] FIG10 is a schematic diagram of a codec architecture provided in an embodiment of the present application;
[0060] FIG11 is a schematic diagram of the structure of an encoder provided in an embodiment of the present application;
[0061] FIG12 is a schematic diagram of the encoding and decoding process provided in an embodiment of the present application;
[0062] FIG13 is another schematic diagram of the encoding and decoding process provided by an embodiment of the present application;
[0063] FIG14 is a schematic diagram of the structure of a decoder provided in an embodiment of the present application;
[0064] FIG15 is a flow chart of an encoding method provided in an embodiment of the present application;
[0065] FIG16 is an example diagram of a first image provided in an embodiment of the present application;
[0066] FIG17 is an example diagram of a second image provided in an embodiment of the present application;
[0067] FIG18 is an example diagram of a third image provided in an embodiment of the present application;
[0068] FIG19 is an example diagram of a difference image provided by an embodiment of the present application;
[0069] FIG20 is an example diagram of mask information provided in an embodiment of the present application;
[0070] FIG21 is another schematic diagram of a flow chart of the encoding and decoding method provided in an embodiment of the present application;
[0071] FIG22 is an example diagram of an image obtained by decoding at a decoding end according to an embodiment of the present application;
[0072] FIG23 is a comparison diagram of the reconstruction effects of the method provided by an embodiment of the present application and the prior art;
[0073] FIG24 is another comparison diagram of the reconstruction effects of the method provided by an embodiment of the present application and the prior art;
[0074] FIG25 is a schematic structural diagram of an encoding device provided in an embodiment of the present application;
[0075] FIG26 is a schematic structural diagram of a decoding device provided in an embodiment of the present application;
[0076] FIG27 is another schematic diagram of the structure of the encoding device provided in an embodiment of the present application;
[0077] Figure 28 is another structural schematic diagram of the decoding device provided in an embodiment of the present application. DETAILED DESCRIPTION
[0078] The present application provides an encoding method, a decoding method and related devices, which are used to determine the bit rate of irregularly moving areas or occluded areas in second image information based on a mask, thereby improving the encoding quality of these areas.
[0079] The following describes the technical solutions in the embodiments of the present invention in conjunction with the accompanying drawings. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without making creative efforts are within the scope of protection of the present invention.
[0080] To facilitate understanding, the following first introduces the relevant terms and concepts mainly involved in the embodiments of this application.
[0081] 1. Neural Networks
[0082] A neural network can be composed of neural units, which can be represented by X s and intercept b as inputs, the output of the operation unit can be:
[0083] Where, s = 1, 2, ... n, n is a natural number greater than 1, W s For X sThe weight of the neural unit, b is the bias of the neural unit. f is the activation function of the neural unit, which is used to introduce nonlinear characteristics into the neural network to convert the input signal in the neural unit into the output signal. The output signal of the activation function can be used as the input of the next convolutional layer. The activation function can be a sigmoid function. A neural network is a network formed by connecting many of the above-mentioned single neural units together, that is, the output of one neural unit can be the input of another neural unit. The input of each neural unit can be connected to the local receptive field of the previous layer to extract the features of the local receptive field. The local receptive field can be an area composed of several neural units.
[0084] 2. Loss Function
[0085] During the training of a deep neural network, because we want the output of the deep neural network to be as close as possible to the desired predicted value, we can compare the current network's predicted value with the desired target value, and then update the weight vector of each layer of the neural network based on the difference between the two. (Of course, there is usually an initialization process before the first update, which is to pre-configure the parameters for each layer in the deep neural network.) For example, if the network's predicted value is too high, the weight vector is adjusted to make it predict a lower value. This adjustment is continued until the neural network can predict the desired target value. Therefore, it is necessary to predefine "how to compare the difference between the predicted value and the target value." This is the loss function or objective function, which is an important equation used to measure the difference between the predicted value and the target value. Among them, taking the loss function as an example, the higher the output value (loss) of the loss function, the greater the difference. Therefore, training a deep neural network becomes a process of minimizing this loss as much as possible.
[0086] 3. Codec
[0087] A codec is a device or program that encodes or decodes a signal or data stream. A codec typically consists of an encoder and a decoder. An encoder encodes a signal or digital stream (usually for transmission, storage, or encryption) or extracts a coded stream. A decoder converts the coded stream back into a signal or digital stream.
[0088] 4. Feature map
[0089] A feature map refers to a set of data output by the convolutional layer, activation layer, pooling layer, batch normalization layer, etc. in a convolutional neural network, generally represented as a matrix of dimension [n, c, h, w].
[0090] 5. Sports information
[0091] Motion information is used to describe the transformation difference between two images, which may refer to pixel difference, feature difference, etc. Specifically, the motion information may refer to information such as the optical flow (image domain optical flow or feature domain optical flow) or displacement map of the two images.
[0092] Optical flow describes the speed and direction of movement of each pixel between two adjacent image frames. In other words, optical flow refers to the displacement of pixel positions between two images. For two images with temporal correlation, the optical flow of a pixel in one image points to the corresponding pixel position in the next image. Optical flow can be understood as a method that uses the correlation between images to find correspondences between pixels, thereby calculating the motion information of objects between the two images.
[0093] In the embodiments of the present application, the motion information is only illustrated by taking the image domain optical flow as an example. It can be understood that in actual applications, the motion information can also be a displacement map or feature domain optical flow, etc., which is not limited here.
[0094] The following describes optical flow, optical flow mapping (Warping), and feature alignment (Align):
[0095] Optical flow has two directions in the time dimension, namely the optical flow from the previous frame to the next frame and the optical flow from the next frame to the previous frame. The optical flow in one direction is usually represented digitally, and it is generally represented by a three-dimensional array ([2,h,w]). The first channel represents the offset direction and size of the image in the x direction; the second channel represents the offset direction and size of the image in the y direction, where h and w represent the height and width of the image respectively. In the x direction, a positive value indicates that the object moves to the left, while a negative value indicates that the object moves to the right; in the y direction, a positive value indicates that the object moves up, while a negative value indicates that the object moves down. Optical flow is usually generated by various algorithms, and the input reference frame x t-1 and the current frame x t , output the optical flow v between the two frames t It is understandable that the relationship between the above directions and positive and negative values is only an example, and in practical applications, it can be set according to actual needs, and is not specifically limited here.
[0096] The method of predicting the current frame by using the reference frame and the optical flow between two frames is called optical flow mapping warping, which is usually expressed as . Obviously, given the reference frame and the optical flow, we can infer the position of the pixel points of the current frame corresponding to the reference frame. By interpolating according to the position of the corresponding reference frame, we can get the estimated value of the pixel value of the current frame. Common warping methods include forward warping and backward warping. Forward warping is shown in A of Figure 1, that is, the next frame is predicted by inputting the optical flow between the previous frame and the previous and next frames. Backward warping is shown in B of Figure 1, that is, the previous frame is predicted by inputting the next frame and the optical flow between the previous and next frames.
[0097] The method of predicting the current frame based on the reference frame and optical flow can also be applied to the feature domain. Predicting the features of the current frame based on the features of the reference frame and the optical flow of the feature domain is generally called feature alignment or feature prediction. Common alignment operations include warping and deformable convolutional networks (DCNs). Warping treats features as images and performs optical flow mapping. DCNs implement the alignment operation as a convolution.
[0098] The mathematical expression of common convolution is as follows:
[0099] Among them, n is the convolution kernel size, w is the convolution kernel weight, F is the input feature map, p is the convolution position, and p k is an enumeration of the position of the convolution kernel relative to p. DCN is based on a network learning offset, which makes the convolution kernel shift the sampling point of the input feature map to focus on the preset area of interest or target. Its mathematical expression is as follows:
[0100] Where Δp k Relative to p k The offset of , so that the convolution sampling position becomes an irregular position.
[0101] In addition, the DCN mathematical expression with mask is as follows:
[0102] Among them, m(p k ) represents the position p k The mask value is the value of position p kThe penalty term is . As shown in Figure 2, the convolution operation of the most central point is performed by convolving the points in the neighborhood. Figure 2 (a) shows the sampling method of a common 3×3 convolution kernel. Figure 2 (b) shows the change in the sampling point after sampling deformable convolution and adding the offset. Figures 2 (c) and (d) are special forms of deformable convolution.
[0103] The offset Δp in DCN k As an optical flow, DCN realizes the feature F t+1 And optical flow offset predicts the current frame features method.
[0104] 6. Bitrate
[0105] Bitrate refers to the number of bits used to encode each pixel.
[0106] Currently, deep learning-based video compression methods replace the modules in traditional hybrid frameworks with deep modules. Specifically, the encoder uses the image optical flow estimation module, the current frame, and the reference frame to obtain the optical flow of the current frame and the reference frame. It then uses the motion compensation module, the reference frame, and the optical flow to obtain a predicted frame. The residual between the current and predicted frames is then encoded to generate a bitstream, which is then sent to the decoder. Upon receiving the bitstream, the decoder decodes the bitstream to obtain the residual, then uses this residual and the reference frame to reconstruct the current frame, thereby achieving reconstruction of the current frame.
[0107] However, for end-to-end video coding, due to irregular motion or occluded areas, the decoder cannot obtain effective information from the reference frame, the reconstruction cost is high, and the reconstruction effect is poor during the optimization process.
[0108] To address the above technical issues, an embodiment of the present application provides an encoding method that obtains mask information from a predicted frame and a current frame, and uses the mask information to determine the bitrate of each region in the image to be encoded during the encoding process. Because the mask information is obtained based on the predicted frame and the current frame, it can better reflect which areas in the predicted frame have poor or good reconstruction effects, and then allocate bitrates to the corresponding areas in the current frame. For example, more bitrate can be allocated to areas with poor prediction quality, thereby improving the encoding quality of areas with irregular motion or occluded areas.
[0109] The following describes the system architecture provided by the embodiments of the present application.
[0110] Referring to FIG3 , an embodiment of the present invention provides a system architecture 300. As shown in the system architecture 300, the data acquisition device 360 is used to collect training data. In the embodiment of the present application, the training data includes: training videos. The training data is stored in the database 330, and the training device 320 obtains the target model / rule 301 based on the training data maintained in the database 330. The target model / rule 301 can be used to implement the encoding and decoding and other related processing applied by the method provided in the embodiment of the present application. The target model / rule 301 in the embodiment of the present application may specifically include an encoder and / or a decoder, etc. It should be noted that in actual applications, the training data maintained in the database 330 does not necessarily come from the collection of the data acquisition device 360, but may also be received from other devices. It should also be noted that the training device 320 does not necessarily train the target model / rule 301 entirely based on the training data maintained in the database 330, and may also obtain training data from the cloud or other places for model training. The above description should not be used as a limitation of the embodiment of the present application.
[0111] The target model / rule 301 obtained through training with the training device 320 can be applied to different systems or devices, such as the execution device 310 shown in FIG3 . The execution device 310 can be a terminal, such as a mobile phone terminal, a tablet computer, a laptop computer, an augmented reality (AR) device / virtual reality (VR) device, a vehicle-mounted terminal, etc. Of course, the execution device 310 can also be a server or a cloud, etc. In FIG3 , the execution device 310 is configured with an I / O interface 312 for data interaction with an external device. The user can input data to the I / O interface 312 through the client device 340. The input data can include: at least two images (such as video data) in the embodiment of the present application. In addition, the input data can be input by the user, or uploaded by the user through a shooting device, or can come from a database, which is not limited here.
[0112] The preprocessing module 313 is configured to preprocess the input data received by the I / O interface 312. In the embodiment of the present application, the preprocessing module 313 can be configured to split the input data into subsets. For example, if the input data is at least two images, the preprocessing module 313 can be configured to split the images into multiple image blocks.
[0113] When the execution device 310 preprocesses the input data, or when the computing module 311 of the execution device 310 performs calculations and other related processing, the execution device 310 can call the data, code, etc. in the data storage system 150 for corresponding processing, and can also store the data, instructions, etc. obtained from the corresponding processing in the data storage system 150.
[0114] Finally, the I / O interface 312 returns the processing result, such as the obtained code stream corresponding to the at least two images, to the client device 340, so as to provide it to the user for decoding to obtain the at least two restored images.
[0115] It is worth noting that the training device 320 can generate corresponding target models / rules 301 based on different training data for different goals or different tasks. The corresponding target models / rules 301 can be used to achieve the above goals or complete the above tasks, thereby providing users with the desired results.
[0116] In the scenario shown in FIG. 3 , the user can manually input data, which can be performed through the interface provided by I / O interface 312. Alternatively, client device 340 can automatically send input data to I / O interface 312. If automatic transmission of input data by client device 340 requires user authorization, the user can set the corresponding permissions in client device 340. The user can view the results output by execution device 310 on client device 340 and, after decoding the results, restore at least two images. Specific presentation formats can include display, sound, and motion. Client device 340 can also serve as a data acquisition terminal, collecting input data and output results from I / O interface 312 as new sample data and storing them in database 330. Of course, collection can also be performed without client device 340, with I / O interface 312 directly storing the input data and output results from I / O interface 312 as new sample data in database 330.
[0117] It is worth noting that Figure 3 is only a schematic diagram of a system architecture provided by an embodiment of the present invention. The positional relationship between the devices, components, modules, etc. shown in the figure does not constitute any limitation. For example, in Figure 3, the data storage system 150 is an external memory relative to the execution device 310. In other cases, the data storage system 150 can also be placed in the execution device 310.
[0118] The following describes a chip hardware structure provided by an embodiment of the present application.
[0119] FIG4 illustrates a chip hardware structure provided by an embodiment of the present invention, which includes a neural network processor 40. The chip can be provided in the execution device 310 shown in FIG3 to perform the computational work of the computation module 311. The chip can also be provided in the training device 320 shown in FIG3 to perform the training work of the training device 320 and output the target model / rule 301.
[0120] The neural network processor 40 can be a neural network processing unit (NPU), a tensor processing unit (TPU), or a graphics processing unit (GPU), any processor suitable for large-scale XOR operation processing. Taking the NPU as an example: the neural network processor 40 is mounted on the main central processing unit (CPU) (host CPU) as a coprocessor, and the main CPU assigns tasks. The core part of the NPU is the operation circuit 403, and the controller 404 controls the operation circuit 403 to extract data from the memory (weight memory or input memory) and perform operations.
[0121] In some implementations, arithmetic circuit 403 includes multiple processing engines (PEs). In some implementations, arithmetic circuit 403 is a two-dimensional systolic array. Arithmetic circuit 403 can also be a one-dimensional systolic array or other electronic circuitry capable of performing mathematical operations such as multiplication and addition. In some implementations, arithmetic circuit 403 is a general-purpose matrix processor.
[0122] For example, assume there are input matrix A, weight matrix B, and output matrix C. Operation circuit 403 retrieves the corresponding data of matrix B from weight memory 402 and caches it on each PE in the operation circuit. The operation circuit retrieves the data of matrix A from input memory 401 and performs a matrix operation on matrix B. The partial or final matrix result is stored in accumulator 408.
[0123] The vector calculation unit 407 can further process the output of the operation circuit, such as vector multiplication, vector addition, exponential operation, logarithmic operation, size comparison, etc. For example, the vector calculation unit 407 can be used for network calculations of non-convolutional / non-FC layers in a neural network, such as pooling, batch normalization, local response normalization, etc.
[0124] In some implementations, the vector calculation unit 407 stores the processed output vector to the unified memory 406. For example, the vector calculation unit 407 can apply a nonlinear function to the output of the operation circuit 403, such as a vector of accumulated values, to generate an activation value. In some implementations, the vector calculation unit 407 generates a normalized value, a merged value, or both. In some implementations, the processed output vector can be used as an activation input to the operation circuit 403, for example, for use in a subsequent layer in a neural network.
[0125] The unified memory 406 is used to store input data and output data.
[0126] The weight data is directly transferred from the external memory to the input memory 401 and / or the unified memory 406 through the direct memory access controller (DMAC) 405, the weight data in the external memory is stored in the weight memory 402, and the data in the unified memory 406 is stored in the external memory.
[0127] The bus interface unit (BIU) 410 is used to implement interaction between the main CPU, DMAC and instruction fetch memory 209 through the bus.
[0128] An instruction fetch buffer 409 connected to the controller 404 is used to store instructions used by the controller 404 .
[0129] The controller 404 is used to call the instructions cached in the instruction fetch memory 409 to control the working process of the computing accelerator.
[0130] Generally, the unified memory 406, the input memory 401, the weight memory 402 and the instruction fetch memory 409 are all on-chip memories, and the external memory is a memory outside the NPU, which can be a double data rate synchronous dynamic random access memory (DDR SDRAM), a high bandwidth memory (HBM) or other readable and writable memory.
[0131] The following describes the application scenarios to which the method provided in the embodiments of the present application is applicable.
[0132] The method provided in the embodiments of the present application can be applied to business scenarios such as public cloud, private cloud, video surveillance, live broadcast technology, storage, and transmission.
[0133] Figure 5 is an example of an application scenario provided by an embodiment of the present application, which can also be understood as a coding and decoding application scenario. The application scenario includes: an AI video encoding module, a storage / transmission module, and an AI video decoding module. The method provided in the embodiment of the present application can be applied to the AI video encoding module / AI video decoding module. The storage / transmission module is used to store (terminal, video surveillance, public cloud, private cloud, etc.) or transmit (public cloud, private cloud, live broadcast technology, etc.) compressed video files for different services.
[0134] The application scenarios mentioned above have multiple situations, which are described in detail below:
[0135] The first one is the storage application scenario.
[0136] The storage application scenarios include: terminal photo album, video surveillance, etc. The schematic diagram of this scenario is shown in Figure 6, which includes: AI encoding unit, entropy encoding module, file saving module, file loading module, entropy decoding module and AI decoding unit.
[0137] Optionally, the application side captures video images. The AI encoding unit is primarily responsible for transforming video image data into less complex and easier-to-encode features and generating a probability distribution for each feature point. The entropy encoding and decoding modules are primarily responsible for losslessly encoding and decoding features based on the features and probability distribution. The AI decoding unit is primarily responsible for generating a probability distribution for each feature point on the decoding side to serve the entropy decoding module. Finally, the original image is parsed based on the decoded features. The saving module is used to save and load binary files output by the entropy encoding module. The file loading module is used to load binary files output by the entropy encoding module.
[0138] The second type is the live broadcast scenario.
[0139] The schematic diagram of this scenario is shown in Figure 7. This scenario includes: an AI encoding unit, an entropy encoding module, a service cluster, an entropy decoding module, and an AI decoding unit.
[0140] Optionally, taking the terminal-cloud interaction as an example, the terminal collects video images. And obtains the code stream through the AI encoding unit and entropy coding. The terminal sends the code stream to the cloud, and the cloud collects the encoded code stream and distributes it to the terminal for the user to watch. Among them, the AI encoding unit is mainly responsible for transforming the video image data into features with lower complexity and easier to encode, and generating the probability distribution of each point of the feature. The entropy encoding module / entropy decoding module is mainly responsible for lossless encoding / decoding features based on features and probability distribution. The AI decoding unit is mainly responsible for generating the probability distribution of each feature point at the decoding end to serve the entropy decoding module, and finally parsing the original image based on the decoded features. The service cluster is used to collect the encoded video stream and distribute it to the terminal.
[0141] The third type is the video post-processing scenario.
[0142] The schematic diagram of this scenario is shown in FIG8 , and the scenario includes: an AI video enhancement unit.
[0143] Optionally, the AI video enhancement unit first obtains a low-quality video, and then enhances the quality of the low-quality video through video super-resolution, video enhancement, and video post-processing technology to obtain an enhanced video.
[0144] It is understandable that the above scenarios are just examples, and there may be other scenarios in actual applications, which are not specifically limited here.
[0145] 9 , another system architecture provided by an embodiment of the present application, which can also be understood as an overall framework for end-to-end video compression, includes a motion estimation module, a motion information compression module, a prediction module, and a residual compression module.
[0146] The motion estimation module is mainly used to predict the motion information between two images (such as image optical flow or feature optical flow, etc.) based on the two images or the features of the two images.
[0147] The motion information compression module is mainly used to obtain the motion information obtained by the motion estimation module and compress the running information to obtain
[0148] The prediction module is mainly used to predict the third image based on the motion information and the first image, or to predict the features of the third image based on the motion information and the features of the first image.
[0149] The residual compression module is mainly used to obtain residual information and compress the residual information to obtain The residual information can be understood as a prediction error, specifically, the difference between the features of the third image obtained by the prediction module and the features of the second image, or the difference between the third image obtained by the prediction module and the first image.
[0150] Optionally, when the prediction module predicts image features, the system architecture may further include a feature extraction module and a feature transformation module. The feature extraction module is configured to extract features of the first image and features of the second image. The feature transformation module is configured to obtain a feature sum of features of the third image and feature differences, and convert the feature sum into an image. Accordingly, the motion estimation module is configured to output feature optical flow. The residual compression module is primarily configured to compress the feature differences between the features of the third image and the features of the second image.
[0151] Furthermore, the motion information compression module and the residual compression module in the above system architecture are mainly used in the encoding process of the codec architecture shown in Figure 10. The codec architecture includes: an encoding network module, a gain unit module, a quantization module, an arithmetic coding module, an entropy estimation network module, an arithmetic decoding module, an inverse gain unit, and a decoding network module.
[0152] Among them, the encoding network module is used to encode the input image through a neural network (such as a convolutional neural network) to obtain image features.
[0153] The gain unit module is used to amplify or attenuate the image features output by the encoding network module.
[0154] Quantization module, used to quantize eigenvalues.
[0155] The entropy estimation network module is used to perform probability estimation on each point in the output feature to obtain a probability distribution, or it can be understood as being used for bit rate estimation.
[0156] The arithmetic coding module uses the probability distribution obtained by the entropy estimation network module to encode the output features into a bitstream. Alternatively, it can be understood as reducing the coding redundancy of the output features and further reducing the amount of data transmitted during the image compression process.
[0157] The arithmetic decoding module is used to use the probability distribution obtained by the entropy estimation network module to decode the bit stream to obtain output features.
[0158] The anti-gain unit is used to attenuate or amplify the output features to ensure normal image analysis.
[0159] The decoding network module is used to decode the features output by the anti-gain unit to restore the image.
[0160] For example, the structure of the motion information compression module and the residual compression module (also referred to as an encoder) can be shown in FIG11 . The compression structure includes three downsampling modules (DS Block), each of which includes a convolutional layer and three residual modules. Each residual module includes two convolutional layers and an activation layer. The residual module adopts a residual skip connection method. The input of the downsampling module is [c in ,h in ,w in ], c in Indicates the number of input channels, h in Indicates the height of the input feature, w in Indicates the width of the input feature. For example, [c in ,h in ,w in] is [64,128,128]. If the number of intermediate channels and output channels of the last two downsampling modules and the residual module are both set to 128, the output of the encoder is [128,16,16].
[0161] The activation layer may be a rectified linear unit (RELU), a leaky linear unit (LReLU), or the like.
[0162] The following is a brief description of the encoding and decoding processes.
[0163] 1. Coding process:
[0164] The output of the above motion information compression module The output of the residual information compression module The latent features y are obtained by the encoder respectively mt with y rt . And after the code rate is distributed through the gain unit module, we can get and (Or it can be understood as selecting the corresponding gain vector according to the mask information). and After quantification, we get and The entropy estimation module then uses the probability estimates for each point in the output features to perform arithmetic coding on the output features, achieving lossless compression of the output features and generating a binary bitstream. This bitstream is then sent to the decoder. The above-mentioned bitrate allocation information is indicated by mask information, which will be described in detail in subsequent embodiments and will not be further elaborated here.
[0165] In one possible implementation, the encoder uses mask information to allocate the rate allocation information of the image to be encoded, and places the mask information / rate allocation information into the bitstream for transmission. The decoder restores the image using the decoded mask information / rate allocation information. Alternatively, both the encoder and decoder use the mask information / rate allocation information and place the mask information / rate allocation information into the bitstream. For example, the encoding and decoding process in this case can be shown in Figure 12, where the mask information / rate allocation information is used in both the encoding and decoding processes. The gain unit is placed before the quantization operation and is used for the last layer output result of the motion information / residual information encoder.
[0166] In another possible implementation, the encoder uses mask information / rate allocation information to allocate rate information for the image to be encoded, and uses this rate allocation information to encode the image to generate a bitstream. The decoder then restores the image by decoding the bitstream. Alternatively, the encoder uses mask information / rate allocation information, while the decoder does not, and the mask information does not need to be included in the bitstream. For example, the encoding and decoding process in this case can be shown in Figure 13, where the mask information is used during encoding but not during decoding. In this case, the gain unit can be located in any of positions 1 to 4 in Figure 13. Compared to the approach shown in Figure 12, the gain unit in this approach only operates at the encoder. This reduces the transmission of mask information. However, the need to transmit mask information in Figure 12 limits the size of the mask information, resulting in a less granular rate allocation. In this approach, however, mask information does not need to be transmitted, allowing the size of the mask information to be increased at the encoder, achieving more fine-grained rate allocation.
[0167] 2. Decoding process:
[0168] The decoder used in the decoding process can be shown in Figure 14. The decoder includes three upsampling modules (US blocks), each of which includes three residual modules and a deconvolution layer. Each residual module includes two convolution layers and one activation layer. The residual modules use residual skip connections.
[0169] In one possible implementation, the mask information is used in both the encoding and decoding processes. After the decoder receives the code stream, it uses an arithmetic decoder to decode the binary code stream and obtain the reconstructed output features. And mask information. Then select the corresponding inverse gain vector according to the mask information and multiply it channel by channel to get the feature and Will and The video frame is obtained by Align processing using the residual information and motion information. The gain vector and the inverse gain vector are reciprocals of each other.
[0170] In another possible implementation, the mask information is not used in the decoding process. After the decoder receives the code stream, it uses the arithmetic decoder to decode the binary code stream and obtain the reconstructed output features. Will The video frame is obtained by Align processing using the residual information and motion information.
[0171] In addition, the gain vector used for amplification or attenuation in the above-mentioned gain unit module can be determined during the training of the gain unit module. The loss function during the training process can be as follows: Loss = target bit rate value + β * (output value - label value);
[0172] Here, β represents the gain vector. A larger β indicates a higher target bitrate. For example, a gain vector consisting of three vectors has three preset values for β. It is understood that the number and value of β can be set based on actual needs and are not limited here. The output value represents the codec's predicted image for the current frame, while the label value represents the actual current frame.
[0173] The method provided by the embodiment of the present application is described below. The method can be performed by an image processing device, or by a component of the image processing device (such as a processor, chip, or chip system, etc.). The image processing device can be a cloud device or a terminal device. Of course, the method can also be performed by a system consisting of a cloud device and a terminal device. Optionally, the method can be processed by a processor such as a CPU, NPU, GPU in the image processing device, and this application does not limit it.
[0174] The above-mentioned terminal devices can be mobile phones, tablet computers (pads), portable game consoles, personal digital assistants (PDAs), laptops, ultra mobile personal computers (UMPCs), handheld computers, netbooks, in-vehicle media playback devices, wearable electronic devices, virtual reality (VR) terminal devices, augmented reality (AR) terminal devices and other digital display products.
[0175] Please refer to Figure 15, which is a flowchart of a coding method provided by an embodiment of the present application. The method is mainly applicable to coding and decoding scenarios, etc. The method may include steps 1501 to 1504. Steps 1501 to 1504 are described in detail below.
[0176] Step 1501: Acquire first image information and second image information.
[0177] In the embodiment of the present application, there are multiple ways for the encoding device to obtain the first image information and the second image information, which can be through collection / shooting, receiving information sent by other devices, or selecting from a database, etc., which are not limited here.
[0178] The first image information and the second image information have a temporal correlation. For example, the first image information and the second image information are adjacent frames in the video data. For another example, the first image information and the second image information are separated by one or more frames.
[0179] The image information in the embodiments of the present application (such as the first image information, the second image information, and the subsequent difference image information, etc.) can be a video frame image of the image domain dimension (or called image data, the specific expression form can be a two-dimensional array or a three-dimensional array, etc.), or it can be an image feature of the feature domain dimension (the specific expression form can be a vector, etc.), which is not limited here. For the convenience of description, the subsequent examples only use the image information as an example for illustrative explanation. Among them, the image feature refers to the feature obtained by extracting the features of the image using a feature extraction network. For example, the feature can be used to represent at least one of the following: color features, shape features, texture features, and spatial relationship features of the image.
[0180] Optionally, the first image information and the second image information may be images collected at different collection times for the same scene. For example, the first image information is generated earlier than the second image information.
[0181] For example, for the convenience of description, the first image is the previous frame image x t-1 , the second image is the current frame x t In practical applications, the first image and the second image may be separated by one or more frames. The first image is shown in FIG16 , and the second image is shown in FIG17 .
[0182] Step 1502: predict third image information based on the first image information and the motion information.
[0183] After obtaining the first image information and the second image information, the encoding device can predict the third image information based on the first image information and the motion information. The description of the motion information can refer to the description of the related terms above and will not be repeated here.
[0184] The transformation difference in the embodiment of the present application can be a feature difference or a pixel difference. The transformation difference can be expressed in the form of optical flow or displacement map, etc., which is not limited here.
[0185] In the embodiments of the present application, there are multiple ways for the encoding device to obtain motion information, which may be through its own processing, by receiving information sent by other devices, or by selecting information from a database, etc., and the specific methods are not limited here. For example, the encoding device inputs the first image information and the second image information into a motion estimation network to obtain the optical flow between the first image information and the second image information. For another example, the encoding device sends the first image information and the second image information to a cloud server, and the cloud server inputs the first image information and the second image information into a motion estimation network to obtain the optical flow between the first image information and the second image information, and sends the optical flow to the encoding device.
[0186] After obtaining the motion information, the encoding device can predict third image information based on the first image information and the motion information. The third image information is associated with the second image information. Alternatively, the data processing device predicts the second image information as best as possible based on the first image information and the motion information, and the image information actually predicted is the third image information.
[0187] Optionally, the encoding device predicting the third image information based on the first image information and the motion information specifically includes: the encoding device adding the motion information to the first image information to obtain the third image information. This process can be understood as warping, and the description of the related terms mentioned above can be referred to and will not be repeated here.
[0188] For example, taking the motion information as the optical flow of the first image and the second image, the encoder uses the previous frame image x t- 1 and optical flow prediction to get the third image x warp The encoding device obtains the third image shown in FIG18 according to the first image shown in FIG16 and the optical flow prediction shown in FIG17 .
[0189] Step 1503: Obtain mask information based on the second image information and the third image information.
[0190] After obtaining the third image information, the encoding device obtains mask information based on the second image information and the third image information. The mask information is used to indicate the bit rate allocation information of the second image information. The bit rate allocation information can be understood as the bit rate allocation for different regions in the second image information.
[0191] The bit rate allocation information in the embodiment of the present application can be for areas with high pixel values in the second image information, or for areas with low pixel values in the second image information, or for areas with high pixel values and areas with low pixel values in the second image information.
[0192] Optionally, the specific form of the mask information can be a matrix, an array, a mask, etc. By processing the image through the mask information, some specific elements can be shielded or selected, and it can also be understood as a filter. The mask information generally includes two values: 0 and 1. Optionally, the encoding device first obtains the difference image information between the second image information and the third image information, and processes the difference image information to obtain the mask information. The processing includes at least one of the following: downsampling processing, binarization processing, filtering processing (such as mean filtering, maximization filtering, etc.). Among them, the difference image information is similar to the aforementioned image information, and can be the image itself or an image feature. For the convenience of description, the subsequent examples only use the difference image information as an example for illustrative explanation.
[0193] As can be seen from the above, the mask information is obtained based on the difference image information. The area with 0 in the mask information indicates that a certain area of the third image information has a good reconstruction effect, and the area with 1 in the mask information indicates that a certain area of the third image information has a poor reconstruction effect.
[0194] Exemplarily, processing the difference image information to obtain the mask information specifically includes: performing mean filtering on the difference image information to obtain a result image, and binarizing the result image to obtain the mask information. Furthermore, to reduce the size of the mask information, a maximum value filtering process may be added after the binarization process.
[0195] For example, continuing the above example, the current frame x t (ie the second image) and the predicted frame x warp (i.e. the third image) is subtracted to obtain the difference image x t-diff . For the difference image x t-diff The resulting image is obtained by performing a mean filter with a kernel size of 8×8 and a step size of 8. The resulting image is then binarized, for example, with a binarization threshold of 0.12. That is, if the mean of the 8×8 difference image subblock is greater than 0.12, it is set to 1; otherwise, it is set to 0. Next, the binarized image is subjected to a 2×2 maximum filtering with a step size of 2. This takes the maximum value of the 2×2 subblock of the image, resulting in a mask size of (256 / 16)×(256 / 16)=16×16. The difference image is shown in Figure 19, and the mask information is shown in Figure 20.
[0196] Exemplarily, taking the case where the second image information includes the second image and the difference image information includes the difference image as an example, the bit rate allocation information in the embodiment of the present application includes at least one of the following:
[0197] 1. A first bit rate of a first region in the second image. For example, a region with a value of 0 in the mask information indicates that the first bit rate is used.
[0198] The first region is associated with the second region of the difference image, the pixel value of the second region is greater than or equal to a first preset threshold, and the first bit rate is greater than or equal to a second preset threshold. The first region is associated with the second region, and it can be understood that the second region of the difference image is obtained by subtracting the first region of the second image from a region of the third image. It can also be understood that, based on the second region in the difference image, it can be reversely inferred that the second region corresponds to the first region in the second image.
[0199] 2. The second coding rate of the third region in the second image. For example, the region with a value of 1 in the mask information indicates that the second coding rate is used.
[0200] The third region is associated with the fourth region of the difference image, the pixel value of the fourth region is less than a first preset threshold, and the first bitrate is greater than the second bitrate. The third region is associated with the fourth region, and it can be understood that the fourth region of the difference image is obtained by subtracting the third region of the second image from a certain region of the third image. It can also be understood that, based on the fourth region in the difference image, it can be inferred that the fourth region corresponds to the third region in the second image.
[0201] It is understandable that the above-mentioned bit rate allocation information is only an example. In actual applications, the bit rate allocation information may be different bit rates for one or more regions (such as pixel regions or feature regions, etc.). The embodiment of the present application does not limit the specific bit rate allocation information.
[0202] For example, when the embodiment shown in FIG. 14 is applied to the architecture shown in FIG. 10 , the gain unit in FIG. 10 may include multiple vectors (eg, 3, respectively, gu low 、gu mid 、gu high Among them, gu low Corresponding to low encoding rate, gu mid Corresponding to the encoding rate, gu high Corresponding to high encoding bit rate. The dimension is 128, acting on 128 channels respectively).
[0203] Step 1504: Encode the second image information based on the bit rate allocation information to obtain a bit stream.
[0204] After acquiring the mask information, the encoding device encodes the second image information based on the bit rate allocation information indicated by the mask information to obtain a bit stream.
[0205] Exemplarily, continuing the above example, the encoding device determines the encoding rate of the first region in the second image information as the first rate according to the rate allocation information, and determines the encoding rate of the third region in the second image information as the second rate.
[0206] This process can be understood as allocating a higher bitrate to areas with larger difference image information, and a lower bitrate to areas with smaller difference image information. In other words, areas with smaller differences indicate more accurate predictions (more regular motion, no occlusions), while areas with larger differences indicate less accurate predictions. Therefore, a higher bitrate is allocated to areas with inaccurate predictions, while a lower bitrate is allocated to areas with accurate predictions.
[0207] Exemplarily, taking the mask information as mask, the pixel value corresponding to 0 in the second image uses a smaller code rate during the encoding process, and the pixel value corresponding to 1 in the second image uses a larger code rate during the encoding process. Further, in the case where the embodiment shown in Figure 14 is applied to the architecture shown in Figure 10 above. For example, the area where mask is 0 uses a low encoding code rate, and the area where mask is 1 uses a high encoding code rate. For another example, the area where mask is 0 uses a low encoding code rate, and the area where mask is 1 uses a medium encoding code rate. For another example, the area where mask is 0 uses a medium encoding code rate, and the area where mask is 1 uses a high encoding code rate.
[0208] Furthermore, after the encoding device obtains the code stream, it can send the code stream to another device (also called a decoding end) so that the other device or user can decode the code stream to restore the second image.
[0209] In one possible implementation, the encoder uses mask information to allocate bitrate information for the image to be encoded and includes the mask information in the bitstream for transmission. The decoder then uses the decoded mask information to restore the image information. Alternatively, both the encoder and decoder use the mask information and include it in the bitstream.
[0210] It is understandable that the decoding end can also obtain the mask information in other ways, for example, receiving mask information sent by other devices, or deriving mask information according to preset rules, or pre-defined mask information with the encoding end, etc., which is not limited here.
[0211] In another possible implementation, the encoder uses mask information to allocate bitrate information for the image to be encoded. This bitrate information is then used to encode the image to generate a bitstream. The decoder then decodes the bitstream to restore the image information. Alternatively, the encoder uses mask information, while the decoder does not, and the mask information is not included in the bitstream.
[0212] In an embodiment of the present application, mask information is obtained from a third image and a second image, and the bitrate of each region in the second image is determined during the encoding process using the mask information. Since the mask information is obtained based on the third image and the second image, it can better reflect which regions in the third image have poor or good reconstruction effects, and thus the bitrate can be allocated to the corresponding regions in the second image. For example, more bitrate can be allocated to regions with poor prediction quality, thereby improving the encoding quality of regions with irregular motion or occlusion. In one possible implementation, by placing the mask information in the bitstream, the decoding device can reconstruct regions with irregular motion or occlusion in the image to be encoded based on the mask information, thereby improving the reconstruction effect. In another possible implementation, by using the mask information only at the encoding end, on the one hand, the bitrate waste caused by mask information transmission is reduced. On the other hand, since the mask information does not need to be placed in the bitstream, the mask information obtained by the encoding end can be used for more precise bitrate allocation.
[0213] It is understood that Figure 15 above is described in the image domain. In practical applications, it can also be applied in the feature domain. That is, first obtain the first image and the second image. Then obtain the feature domain optical flow of the first image and the second image. Based on the features of the first image and the feature domain optical flow, predict the features of the third image. Determine the mask information based on the difference between the features of the second image and the features of the third image. Then, encode the features of the second image according to the bit rate allocation information indicated by the mask information to obtain a bitstream. In other words, this method can be applied to processing objects at the image level or at the image feature level, and the specific processing is not limited here.
[0214] The following describes another encoding and decoding method provided in an embodiment of the present application. This method can be performed by an image processing device or by a component of the image processing device (e.g., a processor, chip, or chip system). The image processing device includes: an encoding end (also referred to as an encoding device) and / or a decoding end (also referred to as a decoding device).
[0215] Please refer to Figure 21, which is another flowchart of the encoding and decoding method provided by an embodiment of the present application. The method is mainly applicable to encoding and decoding scenarios, etc. It can include steps 2101 to 2106. Steps 2101 to 2106 are described below.
[0216] In step 2101, the encoding end obtains first image information and second image information.
[0217] In step 2102 , the encoder predicts third image information based on the first image information and the motion information.
[0218] In step 2103 , the encoder obtains mask information based on the second image information and the third image information.
[0219] In step 2104 , the encoder encodes the second image information based on the bit rate allocation information to obtain a bit stream.
[0220] Among them, steps 2101 to 2104 are similar to steps 1501 to 1504 in the embodiment shown in Figure 15 above, and will not be repeated here.
[0221] Step 2105: The encoder sends a code stream to the decoder.
[0222] After the encoder obtains the bitstream, it sends it to the decoder. Correspondingly, the decoder receives the bitstream sent by the encoder.
[0223] Similar to the description of the bitstream in the embodiment shown in FIG15 , both the encoder and decoder use mask information and include it in the bitstream. Alternatively, the encoder uses mask information while the decoder does not, and the mask information need not be included in the bitstream.
[0224] Step 2106: The decoding end obtains second image information based on the code stream.
[0225] After obtaining the code stream, the decoding end obtains the second image information based on the code stream.
[0226] In one possible implementation, the decoder first obtains the mask information and decodes the bitstream based on the mask information to obtain the second image information. In this approach, the decoder can obtain the mask information in a variety of ways, including decoding the bitstream, receiving mask information sent by another device, deriving the mask information based on preset rules, or using mask information pre-determined with the encoder, etc., without limitation here.
[0227] In another possible implementation, the decoding end directly decodes the code stream to obtain the second image information.
[0228] Illustratively, the second image restored by the decoding end is shown in FIG22 .
[0229] Optionally, the decoding end may perform the decoding process as shown in FIG. 14 .
[0230] In this embodiment of the present application, the encoder obtains mask information based on motion information between the first and second image information and the predicted image information, and uses the mask to determine the bit rate for each region in the second image information to be encoded. The decoder can then reconstruct regions with irregular motion or occlusion in the second image information based on the mask, improving the reconstruction effect.
[0231] In order to more intuitively see the effect of the method provided in the embodiment of the present application in the encoding and decoding reconstruction process, the following uses the high efficiency video coding (HEVC) standard test set and the first 100 frames of each video test as an example to demonstrate the effect.
[0232] In one possible implementation, mask information is used during both encoding and decoding. The resulting image reconstruction is shown in Figure 23. The left image in Figure 23 shows the image before occlusion improvement (i.e., prior art), with a bitrate of 0.044 bits per pixel (bpp). The right image in Figure 23 shows the image after occlusion improvement, with a bitrate of 0.049 bpp. It can be seen that using only a small bitrate can make the girl's facial details clearer, significantly improving subjective quality.
[0233] In another possible implementation, the mask information is not used during the decoding process. The resulting image reconstruction in this case is shown in Figure 24. The left image in Figure 24 shows the image before occlusion improvement (i.e., the prior art) with a bitrate of 0.030 bpp, while the right image in Figure 24 shows the image after occlusion improvement with a bitrate of 0.035 bpp. It can be seen that using only a small bitrate can make the girl's facial details clearer, significantly improving the subjective quality.
[0234] The encoding and decoding method in the embodiment of the present application is described above. The image processing device in the embodiment of the present application is described below. Please refer to Figure 25. An embodiment of the encoding device in the embodiment of the present application includes:
[0235] An acquiring unit 2501 is configured to acquire first image information and second image information, where the first image information and the second image information are in a sequential relationship in time sequence.
[0236] A prediction unit 2502 is configured to predict third image information based on the first image information and motion information, where the motion information is used to describe a transformation difference between the first image information and the second image information;
[0237] The acquiring unit 2501 is further configured to acquire mask information based on the second image information and the third image information, where the mask information is used to indicate bit rate allocation information of the second image information;
[0238] The encoding unit 2503 is configured to encode the second image information based on the bit rate allocation information to obtain a bit stream.
[0239] Optionally, the acquisition unit 2501 is specifically configured to acquire difference image information between the second image information and the third image information; the acquisition unit 2501 is specifically configured to process the difference image information to obtain mask information, wherein the processing includes downsampling processing.
[0240] Optionally, the processing further includes binarization.
[0241] Optionally, the second image information includes a second image, the difference image information includes a difference image, the bit rate allocation information includes a first bit rate of a first area in the second image, the first area is related to the second area of the difference image, the pixel value of the second area is greater than or equal to a first preset threshold, and the first bit rate is greater than or equal to a second preset threshold.
[0242] Optionally, the bit rate allocation information includes a second bit rate of a third area in the second image, the third area is related to a fourth area of the difference image, a pixel value of the fourth area is less than a first preset threshold, and the first bit rate is greater than the second bit rate.
[0243] Optionally, the above-mentioned transformation difference is a pixel difference, and the first image information, the second image information and the third image information are all video frames.
[0244] Optionally, the above-mentioned transformation difference is a feature difference, and the first image information, the second image information and the third image information are all image features.
[0245] Optionally, the encoding unit 2503 is specifically configured to encode the second image information and the mask information based on the bit rate allocation information to obtain a bit stream.
[0246] In this embodiment, the operations performed by each unit in the encoding device are similar to those described in the embodiments shown in Figures 1 to 24 above, and will not be repeated here.
[0247] In this embodiment, acquisition unit 2501 obtains mask information from the third image and the second image, and encoding unit 2503 uses the mask information to determine the bitrate for each region in the second image during the encoding process. Because the mask information is obtained based on the third image and the second image, it can better reflect which regions in the third image have poor or good reconstruction effects, and thus allocate bitrates to corresponding regions in the second image. For example, more bitrate can be allocated to regions with poor prediction quality, thereby improving the encoding quality of areas with erratic motion or occlusion.
[0248] Referring to FIG. 26 , an embodiment of a decoding device in an embodiment of the present application includes:
[0249] An acquisition unit 2601 is used to acquire a code stream;
[0250] The acquiring unit 2601 is further configured to acquire mask information, where the mask information is used to determine a bit rate of the second image information;
[0251] The decoding unit 2602 is configured to decode the code stream based on a code rate to obtain second image information.
[0252] Optionally, the acquiring unit 2601 is specifically configured to decode the code stream to obtain the mask information.
[0253] Optionally, the second image information is a video frame or an image feature.
[0254] In this embodiment, the operations performed by each unit in the decoding device are similar to those described in the embodiments shown in Figures 1 to 24 above, and will not be repeated here.
[0255] In this embodiment, the decoding unit 2602 reconstructs the region with irregular motion or the occluded region in the second image according to the mask information, thereby improving the reconstruction effect.
[0256] Referring to Figure 27, a schematic diagram of the structure of another encoding device provided herein is provided. The encoding device may include a processor 2701, a memory 2702, and a communication interface 2703. The processor 2701, the memory 2702, and the communication interface 2703 are interconnected via a circuit. The memory 2702 stores program instructions and data.
[0257] The memory 2702 stores program instructions and data corresponding to the steps executed by the encoding device in the corresponding implementation modes shown in Figures 1 to 24 above.
[0258] The processor 2701 is configured to execute the steps performed by the encoding device as shown in any of the embodiments shown in FIG. 1 to FIG. 24 .
[0259] The communication interface 2703 can be used to receive and send data, and to execute the steps related to acquisition, sending, and receiving in any of the embodiments shown in Figures 1 to 24 above.
[0260] In one implementation, the encoding device may include more or fewer components relative to FIG. 27 . This application is merely an illustrative description and is not intended to be limiting.
[0261] Referring to Figure 28, a schematic diagram of the structure of another decoding device provided herein is provided. The decoding device may include a processor 2801, a memory 2802, and a communication interface 2803. The processor 2801, the memory 2802, and the communication interface 2803 are interconnected via a circuit. The memory 2802 stores program instructions and data.
[0262] The memory 2802 stores program instructions and data corresponding to the steps executed by the decoding device in the corresponding implementation modes shown in Figures 1 to 24 above.
[0263] The processor 2801 is configured to execute the steps performed by the decoding device as shown in any of the embodiments shown in FIG. 1 to FIG. 24 .
[0264] The communication interface 2803 can be used to receive and send data, and to execute the steps related to acquisition, sending, and receiving in any of the embodiments shown in Figures 1 to 24 above.
[0265] In one implementation, the decoding device may include more or fewer components relative to FIG. 28 . This application is merely an illustrative description and does not limit this.
[0266] An embodiment of the present application also provides a computer-readable storage medium storing one or more computer-executable instructions. When the computer-executable instructions are executed by a processor, the processor executes the method described in the possible implementation method of the image processing device (such as an encoding device or a decoding device) in the aforementioned embodiment.
[0267] An embodiment of the present application also provides a computer program product (or computer program) storing one or more computers. When the computer program product is executed by the processor, the processor executes the method of the possible implementation method of the above-mentioned image processing device.
[0268] An embodiment of the present application also provides a chip system, which includes at least one processor for supporting a terminal device to implement the functions involved in the possible implementation of the above-mentioned image processing device. Optionally, the chip system also includes an interface circuit, which provides program instructions and / or data to the at least one processor. In one possible design, the chip system may also include a memory for storing the necessary program instructions and data for the terminal device. The chip system can be composed of a chip, or it can include a chip and other discrete devices.
[0269] An embodiment of the present application further provides a readable storage medium, which stores a code stream encoded according to the method in the embodiments shown in Figures 1 to 24 above.
[0270] An embodiment of the present application also provides a device for storing a code stream, characterized in that it includes at least one storage medium and a communication interface; the communication interface is used to receive or send the code stream; the at least one storage medium is used to store the code stream; the code stream is encoded by the encoder according to the method in the embodiments shown in Figures 1 to 24 above.
[0271] An embodiment of the present application also provides a method for storing a code stream, the method comprising: receiving a code stream through a communication interface; storing the code stream in one or more storage media, wherein the code stream is encoded by an encoder according to the method in the embodiments shown in Figures 1 to 24 above.
[0272] An embodiment of the present application also provides a system for distributing code streams, the system comprising at least one storage medium and a video streaming device; the at least one storage medium is used to store the code stream, which is encoded by the encoder according to the method in the embodiments shown in Figures 1 to 24 above; the video streaming device is used to respond to the request of the decoder so that the target code stream in the at least one storage medium can be sent to the decoder.
[0273] An embodiment of the present application further provides a method for distributing a bitstream, the method comprising: receiving a first request; selecting a target bitstream from at least one storage medium in response to the first request; and sending the target bitstream to a destination device; the at least one storage medium being used to store the bitstream, where the bitstream is encoded by an encoder according to the method in the embodiments shown in FIG. 1 to FIG. 24 .
[0274] An embodiment of the present application also provides a system for processing a code stream, which includes an image source device, an encoder device, one or more storage media, and a destination device; the image source device is used to provide image data; the encoder device is used to obtain image data from the image source device through an interface, and encode the image data to obtain one or more code streams, where the code streams are encoded by the encoder according to the method in the embodiments shown in Figures 1 to 24 above; the encoder device is used to store the one or more code streams in one or more storage media; or the encoder device is used to encapsulate the one or more code streams to obtain a transmission code stream; the encoder device is used to transmit the transmission code stream to the destination device via a communication link or communication network; the destination device is used to decapsulate the transmission code stream to obtain one or more code streams; and the destination device is used to decode the one or more code streams to obtain decoded data.
[0275] Those skilled in the art will clearly understand that, for the convenience and brevity of description, the specific working processes of the systems, devices and units described above can refer to the corresponding processes in the aforementioned method embodiments and will not be repeated here.
[0276] In the several embodiments provided in this application, it should be understood that the disclosed systems, devices and methods can be implemented in other ways. For example, the device embodiments described above are merely schematic. For example, the division of the units is merely a logical function division. In actual implementation, there may be other division methods, such as multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be an indirect coupling or communication connection through some interfaces, devices or units, which can be electrical, mechanical or other forms.
[0277] The units described as separate components may or may not be physically separate, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed across multiple network units. Some or all of these units may be selected to achieve the purpose of the solution of this embodiment according to actual needs.
[0278] In addition, the functional units in the various embodiments of the present application may be integrated into a single processing unit, or each unit may exist physically separately, or two or more units may be integrated into a single unit. The aforementioned integrated units may be implemented in the form of hardware or software functional units.
[0279] If the integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present application is essentially or the part that contributes to the prior art or all or part of the technical solution can be embodied in the form of a software product, and the computer software product is stored in a storage medium, including a number of instructions for enabling a computer device (which can be a personal computer, a server, or a network device, etc.) to execute all or part of the steps of the method described in each embodiment of the present application. The aforementioned storage medium includes: various media that can store program codes, such as a USB flash drive, a mobile hard disk, a read-only memory (ROM), a random access memory (RAM), a magnetic disk or an optical disk.
Claims
1. A coding method, characterized in that: The method comprises: Acquire first image information and second image information, wherein the first image information and the second image information have a chronological correlation relationship; predicting third image information based on the first image information and motion information, where the motion information is used to describe a transformation difference between the first image information and the second image information; acquiring mask information based on the second image information and the third image information, where the mask information is used to indicate bit rate allocation information of the second image information; The second image information is encoded based on the bit rate allocation information to obtain a bit stream.
2. The method according to claim 1, characterized in that The acquiring mask information based on the second image information and the third image information includes: Acquire difference image information between the second image information and the third image information; The difference image information is processed to obtain the mask information, wherein the processing includes downsampling processing.
3. The method according to claim 2, characterized in that The processing also includes binarization processing.
4. The method according to claim 2 or 3, characterized in that: The bit rate allocation information includes a first bit rate of a first area in the second image, the first area is related to a second area in the difference image, a pixel value of the second area is greater than or equal to a first preset threshold, and the first bit rate is greater than or equal to a second preset threshold.
5. The method according to claim 4, characterized in that The bit rate allocation information also includes a second bit rate of a third area in the second image, where the third area is related to a fourth area in the difference image, a pixel value of the fourth area is less than the first preset threshold, and the first bit rate is greater than the second bit rate.
6. The method according to any one of claims 1 to 5, characterized in that The step of encoding the second image information based on the bit rate allocation information to obtain a bit stream includes: The second image information and the mask information are encoded based on the bit rate allocation information to obtain the bit stream.
7. The method according to any one of claims 1 to 6, characterized in that The transformation difference is a pixel difference, and the first image information, the second image information, and the third image information are all video frames.
8. The method according to any one of claims 1 to 6, characterized in that The transformation difference is a feature difference, and the first image information, the second image information, and the third image information are all image features.
9. A decoding method, characterized in that: The method comprises: Get the code stream; Acquire mask information, where the mask information is used to determine a bit rate of the second image information; The code stream is decoded based on the code rate to obtain the second image information.
10. The method according to claim 9, characterized in that The obtaining of mask information includes: The code stream is decoded to obtain the mask information.
11. The method according to claim 9 or 10, characterized in that: The second image information is a video frame or an image feature.
12. A coding device, characterized in that: The encoding device comprises: An acquisition unit, used to acquire first image information and second image information, wherein the first image information and the second image information have a chronological correlation relationship; a prediction unit, configured to predict a third image based on the first image information and motion information, wherein the motion information is used to describe a transformation difference between the first image information and the second image information; The acquisition unit is further used to acquire mask information based on the second image information and the third image information, wherein the mask information is used to indicate bit rate allocation information of the second image information; An encoding unit is used to encode the second image based on the bit rate allocation information to obtain a bit stream.
13. The encoding device according to claim 12, characterized in that The acquisition unit is specifically used to acquire difference image information between the second image information and the third image information; The acquisition unit is specifically used to process the difference image information to obtain the mask information, and the processing includes downsampling deal with.
14. The encoding device according to claim 13, characterized in that The processing also includes binarization processing.
15. The encoding device according to claim 13 or 14, characterized in that The bit rate allocation information includes a first bit rate of a first area in the second image, the first area is related to a second area of the difference image, a pixel value of the second area is greater than or equal to a first preset threshold, and the first bit rate is greater than or equal to a second preset threshold.
16. The encoding device according to claim 15, characterized in that The bit rate allocation information includes a second bit rate of a third area in the second image, the third area is related to a fourth area of the difference image, a pixel value of the fourth area is less than the first preset threshold, and the first bit rate is greater than the second bit rate.
17. The encoding device according to any one of claims 12 to 16, characterized in that The encoding unit is specifically configured to encode the second image information and the mask information based on the bit rate allocation information to obtain the bit stream.
18. The encoding device according to any one of claims 12 to 17, characterized in that The transformation difference is a pixel difference, and the first image information, the second image information, and the third image information are all video frames.
19. The encoding device according to any one of claims 12 to 17, characterized in that The transformation difference is a feature difference, and the first image information, the second image information, and the third image information are all image features.
20. A decoding device, characterized in that: The decoding device comprises: An acquisition unit, used for acquiring a code stream; The acquisition unit is further used to acquire mask information, where the mask information is used to determine a bit rate of the second image information; A decoding unit is used to decode the code stream based on the code rate to obtain the second image information.
21. The decoding device according to claim 20, characterized in that The acquisition unit is specifically configured to decode the bit stream to obtain the mask information.
22. The decoding device according to claim 20 or 21, characterized in that The second image information is a video frame or an image feature.
23. A coding device, characterized in that: include: A processor, the processor is coupled to a memory, the memory is used to store programs or instructions, when the program or instructions are executed by the processor, the encoding device executes the method according to any one of claims 1 to 8.
24. A decoding device, characterized in that: include: A processor, the processor is coupled to a memory, the memory is used to store programs or instructions, when the program or instructions are executed by the processor, the decoding device performs the method according to any one of claims 9 to 11.
25. A coding and decoding system, characterized in that: The encoding and decoding system comprises the encoding device according to claim 23 and / or the decoding device according to claim 24.
26. A computer-readable storage medium, characterized in that: The medium stores instructions, and when the instructions are executed by a computer, the method according to any one of claims 1 to 11 is implemented.
27. A computer program product, characterized in that The method comprises instructions, which, when executed on a computer, cause the computer to execute the method according to any one of claims 1 to 11.
28. A readable storage medium, characterized in that: The readable medium stores a code stream encoded according to any one of the encoding methods of claims 1 to 8.
29. A device for storing a code stream, characterized in that: comprising at least one storage medium and a communication interface; The communication interface is used to receive or send code streams; The at least one storage medium is used to store the code stream; The code stream is obtained by encoding by an encoder according to any encoding method of claims 1 to 8.
30. A method for storing a code stream, characterized in that: include: Receiving a code stream via a communication interface; The code stream is stored in one or more storage media, and the code stream is an encoder Obtained by encoding according to any one of the encoding methods of claims 1 to 8.
31. A system for distributing code streams, characterized in that: including at least one storage medium and a video streaming device; The at least one storage medium is used to store a code stream, wherein the code stream is encoded by the encoder according to any one of the encoding methods of claims 1 to 8. Code obtained; The video stream device is used to respond to a request of a decoder so that the target code stream in the at least one storage medium can be sent to the decoder.
32. A method for distributing code streams, characterized in that: include: receiving a first request; In response to the first request, selecting a target bitstream from at least one storage medium; Sending the target code stream to a destination device; The at least one storage medium is used to store a code stream, where the code stream is encoded by an encoder according to any one of the encoding methods of claims 1 to 8.
33. A system for processing a code stream, characterized in that: It includes an image source device, an encoder device, one or more storage media and a destination device; The image source device is used to provide image data; The encoder device is used to obtain the image data of the image source device through an interface, and encode the image data to obtain one or more code streams, wherein the code streams are encoded by the encoder according to any one of the encoding methods of claims 1 to 8; The encoder device is used to store the one or more code streams in one or more storage media; or The encoder device is used to encapsulate the one or more code streams to obtain a transmission code stream; The encoder device is used to transmit the transmission code stream to the destination device through a communication link or a communication network; The destination device is used to decapsulate the transport code stream to obtain the one or more code streams; The destination device is used to decode the one or more code streams to obtain decoded data.
Citation Information
Patent Citations
Video encoding method, video decoding method, and apparatuses therefor
CN114339238A
Generating prediction frames for video coding by deformable convolution
CN114503576A
Multi-code-rate depth image compression system and method applied to mixed context
CN115866266A
System and method for region of interest quality controllable video coding
WO2022061728A1
Cited By
Method, apparatus and storage medium for collision monitoring in scanning electron microscope
CN119151995A
Vibration information imaging fusion method and device
CN120430955A
Image transmission method and device, equipment, storage medium and program product
CN121151556A
Image processing method and device, equipment, medium and program product
CN122053842A
