A data processing method, device and computer readable storage medium

By obtaining the pixel accuracy to be selected from the set of sub-pixel accuracy and non-pixel accuracy and comparing the cost of rate distortion, the problem of low pixel accuracy selection efficiency in the prior art is solved, and the encoding and compression efficiency of multimedia data is improved.

CN111918067BActive Publication Date: 2024-12-17TENCENT TECHNOLOGY (SHENZHEN) CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202010717683.8
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2020-07-23
Publication Date
2024-12-17
Estimated Expiration
2040-07-23

AI Technical Summary

Technical Problem

When selecting the pixel accuracy of multimedia data, the prior art needs to traverse the calculation rate distortion cost of each pixel to be selected, resulting in low selection efficiency and low encoding efficiency.

Method used

By obtaining the first pixel to be selected from the pixel accuracy set, obtaining the second pixel to be selected from the non-pixel accuracy set, and comparing the rate distortion cost between the two, determining the target pixel accuracy, avoiding calculating all pixels Rate distortion cost of accuracy.

Benefits of technology

The acquisition efficiency of target pixel accuracy is improved and the encoding and compression efficiency of multimedia data is improved.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN111918067B_ABST
    Figure CN111918067B_ABST
Patent Text Reader

Abstract

The present application discloses a data processing method, device and computer-readable storage medium, which can be applied to the field of data transmission, and comprises: obtaining target multimedia data; obtaining a first candidate pixel precision from a pixel precision set, and obtaining a second candidate pixel precision from a non-pixel precision set; obtaining the rate-distortion cost of the target multimedia data under the first candidate pixel precision, and obtaining the rate-distortion cost of the target multimedia data under the second candidate pixel precision; comparing the rate-distortion cost to which the first candidate pixel precision belongs and the rate-distortion cost to which the second candidate pixel precision belongs, and determining the target pixel precision for the target multimedia data from the pixel precision set or the non-pixel precision set according to the comparison result. The present application can improve the efficiency of obtaining the target pixel precision.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the technical field of data coding, and in particular to a data processing method, device and computer-readable storage medium. Background Art

[0002] In many scenarios, multimedia data transmission is usually involved, and the multimedia data may be audio data or video data. When the multimedia data is transmitted, the multimedia data is usually encoded and compressed for transmission.

[0003] When encoding and compressing multimedia data, it is first necessary to select the most suitable pixel precision for encoding and compressing the multimedia data from a plurality of candidate pixel precisions. Specifically, the rate-distortion cost of the multimedia data under each candidate pixel precision can be calculated respectively, and the rate-distortion cost represents the suitability of the corresponding candidate pixel precision for encoding and compressing the multimedia data. The candidate pixel precision with the smallest rate-distortion cost can be used as the pixel precision for the final encoding and compression of the multimedia data.

[0004] As can be seen from the above, in the prior art, when selecting pixel precision for encoding and compressing multimedia data, it is necessary to traverse each candidate pixel precision and calculate the rate-distortion cost of the multimedia data at each candidate pixel precision in turn, and then select the pixel precision that is most suitable for encoding and compressing the multimedia data from the multiple candidate pixel precisions, resulting in low efficiency in selecting pixel precision for multimedia data, and then resulting in low encoding efficiency for multimedia data. Summary of the invention

[0005] The present application provides a data processing method, device and computer-readable storage medium, which can improve the efficiency of acquiring target pixel accuracy.

[0006] On one hand, the present application provides a data processing method, comprising:

[0007] Acquire target multimedia data;

[0008] Obtain a first pixel precision to be selected from the pixel precision set, and obtain a second pixel precision to be selected from the non-pixel precision set;

[0009] Obtaining a rate-distortion cost of target multimedia data at a first candidate pixel precision, and obtaining a rate-distortion cost of target multimedia data at a second candidate pixel precision; the computational complexity of the rate-distortion cost of target multimedia data at sub-pixel precision in a sub-pixel precision set is greater than the computational complexity of the rate-distortion cost of target multimedia data at non-sub-pixel precision in a non-sub-pixel precision set;

[0010] The rate-distortion cost to which the first candidate pixel precision belongs is compared with the rate-distortion cost to which the second candidate pixel precision belongs, and according to the comparison result, a target pixel precision for the target multimedia data is determined from a pixel-delimited precision set or a non-pixel-delimited precision set.

[0011] On one hand, the present application provides a data processing method, comprising:

[0012] Obtain target multimedia data and pixel precision selection rules; the pixel precision selection rule is a rule determined based on the relationship between the rate-distortion cost of the target multimedia data at a first candidate pixel precision and the rate-distortion cost of the target multimedia data at a second candidate pixel precision; the first candidate pixel precision is obtained from a sub-pixel precision set; the second candidate pixel precision is obtained from a non-sub-pixel precision set; the computational complexity of the rate-distortion cost of the target multimedia data at sub-pixel precision in the sub-pixel precision set is greater than the computational complexity of the rate-distortion cost of the target multimedia data at non-sub-pixel precision in the non-sub-pixel precision set;

[0013] Based on the pixel precision selection rule, a target pixel precision for the target multimedia data is determined from a pixel-by-pixel precision set or a non-pixel-by-pixel precision set.

[0014] On one hand, the present application provides a data processing device, including:

[0015] An acquisition module, used for acquiring target multimedia data;

[0016] A module for obtaining the precision to be selected, used for obtaining a first pixel precision to be selected from a pixel-by-pixel precision set, and obtaining a second pixel precision to be selected from a non-pixel-by-pixel precision set;

[0017] A distortion cost acquisition module is used to acquire the rate-distortion cost of the target multimedia data at a first candidate pixel precision, and acquire the rate-distortion cost of the target multimedia data at a second candidate pixel precision; the computational complexity of the rate-distortion cost of the target multimedia data at the sub-pixel precision in the sub-pixel precision set is greater than the computational complexity of the rate-distortion cost of the target multimedia data at the non-sub-pixel precision in the non-sub-pixel precision set;

[0018] The target precision acquisition module is used to compare the rate-distortion cost of the first candidate pixel precision with the rate-distortion cost of the second candidate pixel precision, and determine the target pixel precision for the target multimedia data from the pixel-by-pixel precision set or the non-pixel-by-pixel precision set according to the comparison result.

[0019] Among them, the selected accuracy acquisition module is used for:

[0020] A sub-pixel precision is selected from the sub-pixel precision set as the first pixel precision to be selected, and non-sub-pixel precisions in the non-sub-pixel precision set are all determined as the second pixel precision to be selected.

[0021] Wherein, the comparison result includes a first comparison result;

[0022] Target accuracy acquisition module, including:

[0023] A first result acquisition unit is used to compare the rate-distortion cost of the first candidate pixel precision with the rate-distortion cost of the second candidate pixel precision, and obtain a first comparison result when the rate-distortion cost of the first candidate pixel precision is smaller than the rate-distortion cost of the second candidate pixel precision;

[0024] The first precision determining unit is used to determine, according to the first comparison result, a first candidate pixel precision in the sub-pixel precision set as a target pixel precision for the target multimedia data.

[0025] Wherein, the comparison result includes a second comparison result;

[0026] Target accuracy acquisition module, including:

[0027] A second result obtaining unit is used to compare the rate-distortion cost to which the first candidate pixel precision belongs and the rate-distortion cost to which the second candidate pixel precision belongs, and obtain a second comparison result when it is found that the rate-distortion cost to which the first candidate pixel precision belongs is greater than the rate-distortion cost to which the second candidate pixel precision belongs;

[0028] The second precision determining unit is configured to determine, according to the second comparison result, the non-fractionated pixel precision with the minimum rate-distortion cost in the non-fractionated pixel precision set as the target pixel precision for the target multimedia data.

[0029] Among them, the selected accuracy acquisition module is used for:

[0030] A sub-pixel precision is selected from the sub-pixel precision set as a first pixel precision to be selected, and a non-sub-pixel precision is selected from the non-sub-pixel precision set as a second pixel precision to be selected.

[0031] Wherein, the comparison result includes a first comparison result;

[0032] Target accuracy acquisition module, including:

[0033] A third result acquisition unit is used to compare the rate-distortion cost of the first candidate pixel precision with the rate-distortion cost of the second candidate pixel precision, and obtain a first comparison result when the rate-distortion cost of the first candidate pixel precision is smaller than the rate-distortion cost of the second candidate pixel precision;

[0034] A first cost acquisition unit, configured to acquire, according to the first comparison result, a rate-distortion cost of the target multimedia data at a sub-pixel precision other than the first candidate pixel precision in the sub-pixel precision set;

[0035] The third precision determining unit is configured to determine the sub-pixel precision with the smallest rate-distortion cost in the sub-pixel precision set as the target pixel precision for the target multimedia data.

[0036] Wherein, the comparison result includes a second comparison result;

[0037] Target accuracy acquisition module, including:

[0038] a fourth result acquisition unit, configured to compare the rate-distortion cost to which the first candidate pixel precision belongs and the rate-distortion cost to which the second candidate pixel precision belongs, and obtain a second comparison result when it is found that the rate-distortion cost to which the first candidate pixel precision belongs is greater than the rate-distortion cost to which the second candidate pixel precision belongs;

[0039] A second cost acquisition unit, configured to acquire, according to the second comparison result, a rate-distortion cost of the target multimedia data at a sub-pixel precision other than a second selected pixel precision in the non-sub-pixel precision set;

[0040] The fourth precision determining unit is configured to determine the non-fractionated pixel precision with the minimum rate-distortion cost in the non-fractionated pixel precision set as the target pixel precision for the target multimedia data.

[0041] Among them, the distortion cost acquisition module includes:

[0042] A first parameter acquisition unit, used to acquire a first bit rate and a first distortion value of target multimedia data at a first selected pixel precision;

[0043] A first weight acquisition unit, configured to acquire a rate weight for a first rate and a distortion weight for a first distortion value;

[0044] A first weighting unit, configured to weight the first bit rate according to the bit rate weight to obtain a first weighted bit rate, and weight the first distortion value according to the distortion weight to obtain a first weighted distortion value;

[0045] The first cost determination unit is used to determine the rate-distortion cost to which the first candidate pixel precision belongs according to the first weighted coding rate and the first weighted distortion value.

[0046] Among them, the distortion cost acquisition module includes:

[0047] A second parameter acquisition unit, used to acquire a second bit rate and a second distortion value of the target multimedia data at a second selected pixel precision;

[0048] A second weight acquisition unit, configured to acquire a rate weight for a second rate and a distortion weight for a second distortion value;

[0049] A second weighting unit, configured to weight the second bit rate according to the bit rate weight to obtain a second weighted bit rate, and weight the second distortion value according to the distortion weight to obtain a second weighted distortion value;

[0050] The second cost determination unit is used to determine the rate-distortion cost to which the second candidate pixel precision belongs according to the second weighted coding rate and the second weighted distortion value.

[0051] The data processing device further includes:

[0052] An encoding module, used for encoding the target multimedia data based on the target pixel precision to obtain encoded data of the target multimedia data;

[0053] The data output module is used to send the encoded data to the user terminal, so that the user terminal decodes the encoded data to obtain decoded multimedia data corresponding to the target multimedia data, and then outputs the decoded multimedia data in the terminal page.

[0054] Wherein, the target multimedia data has at least two multimedia data frames;

[0055] Coding module, including:

[0056] A retrieval unit, used to retrieve motion vector information of target multimedia data at a target pixel accuracy;

[0057] An offset distance determination module, used to determine an offset distance between at least two multimedia data frames according to motion vector information;

[0058] The encoding unit is used to encode the target multimedia data according to the offset distance between at least two multimedia data frames to obtain the encoded data of the target multimedia data.

[0059] On one hand, the present application provides a data processing device, including:

[0060] A rule acquisition module is used to acquire target multimedia data and pixel precision selection rules; the pixel precision selection rule is a rule determined based on the relationship between the rate-distortion cost of the target multimedia data at a first candidate pixel precision and the rate-distortion cost of the target multimedia data at a second candidate pixel precision; the first candidate pixel precision is acquired from a sub-pixel precision set; the second candidate pixel precision is acquired from a non-sub-pixel precision set; the computational complexity of the rate-distortion cost of the target multimedia data at sub-pixel precision in the sub-pixel precision set is greater than the computational complexity of the rate-distortion cost of the target multimedia data at non-sub-pixel precision in the non-sub-pixel precision set;

[0061] The precision selection module is used to determine the target pixel precision for the target multimedia data from a pixel precision set or a non-pixel precision set based on a pixel precision selection rule.

[0062] The first pixel precision to be selected is any sub-pixel precision in the sub-pixel precision set; the second pixel precision to be selected is all non-sub-pixel precisions in the non-sub-pixel precision set;

[0063] Precision selection module, used for:

[0064] Based on the pixel precision selection rule, the pixel precision with the smallest rate-distortion cost among the first candidate pixel precision and the second candidate pixel precision is determined as the target pixel precision.

[0065] The first pixel precision to be selected is any pixel precision in the pixel precision set; the second pixel precision to be selected is any non-pixel precision in the non-pixel precision set;

[0066] Precision selection module, used for:

[0067] When the rate-distortion cost of the first candidate pixel precision is less than the rate-distortion cost of the second candidate pixel precision, based on the pixel precision selection rule, the sub-pixel precision with the smallest rate-distortion cost in the sub-pixel precision set is determined as the target pixel precision.

[0068] The first pixel precision to be selected is any pixel precision in the pixel precision set; the second pixel precision to be selected is any non-pixel precision in the non-pixel precision set;

[0069] Precision selection module, used for:

[0070] When the rate-distortion cost of the first candidate pixel precision is greater than the rate-distortion cost of the second candidate pixel precision, based on the pixel precision selection rule, the sub-pixel precision with the smallest rate-distortion cost in the non-sub-pixel precision set is determined as the target pixel precision.

[0071] In one aspect, the present application provides a computer device, including a memory and a processor, wherein the memory stores a computer program, and when the computer program is executed by the processor, the processor executes a method in one aspect of the present application.

[0072] In one aspect, the present application provides a computer-readable storage medium storing a computer program. The computer program includes program instructions. When the program instructions are executed by a processor, the processor executes the method in the above aspect.

[0073] According to one aspect of the present application, a computer program product or a computer program is provided, the computer program product or the computer program comprising computer instructions, the computer instructions being stored in a computer-readable storage medium. A processor of a computer device reads the computer instructions from the computer-readable storage medium, and the processor executes the computer instructions, so that the computer device executes the method provided in various optional modes such as the above-mentioned one aspect.

[0074] The method proposed in the present application can obtain part of the sub-pixel precision from the sub-pixel precision set as the first candidate pixel precision, and obtain part of the non-pixel precision from the non-pixel precision set as the second candidate pixel precision. Subsequently, the target pixel precision of the target multimedia data can be obtained according to the relationship between the rate-distortion cost belonging to the first candidate pixel precision and the rate-distortion cost belonging to the second candidate pixel precision, without calculating the rate-distortion costs belonging to all pixel precisions in the sub-pixel precision set and the non-pixel precision set. Therefore, the efficiency of obtaining the target pixel precision is improved. BRIEF DESCRIPTION OF THE DRAWINGS

[0075] In order to more clearly illustrate the technical solutions in the present application or the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative work.

[0076] Figure 1 It is a structural diagram of a network architecture provided by an embodiment of the present application;

[0077] Figure 2 It is a schematic diagram of a data encoding scenario provided by this application;

[0078] Figure 3 It is a flowchart of a data processing method provided by this application;

[0079] Figure 4 This is a scene schematic diagram of the pixel precision size relationship provided by this application;

[0080] Figure 5 This is a schematic diagram of a scenario for obtaining coded data provided by the present application;

[0081] Figure 6 This is a schematic diagram of an audio playback scenario provided by this application;

[0082] Figure 7 This is a schematic diagram of a video playback scenario provided by this application;

[0083] Figure 8 It is a flowchart of a method for selecting pixel accuracy provided by the present application;

[0084] Fig. 9 It is a flowchart of a data processing method provided by this application;

[0085] Fig.10 It is a structural schematic diagram of a data processing device provided by the present application;

[0086] Fig.11 It is a structural schematic diagram of a data processing device provided by the present application;

[0087] Fig.12 It is a structural schematic diagram of a computer device provided by this application. DETAILED DESCRIPTION

[0088] The following will be combined with the drawings in this application to clearly and completely describe the technical solutions in this application. Obviously, the described embodiments are only part of the embodiments of this application, not all of them. Based on the embodiments in this application, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of this application.

[0089] Cloud technology refers to a hosting technology that unifies hardware, software, network and other resources within a wide area network or local area network to achieve data computing, storage, processing and sharing.

[0090] Cloud technology is a general term for network technology, information technology, integration technology, management platform technology, application technology, etc. based on the cloud computing business model. It can form a resource pool, which can be used on demand and is flexible and convenient. Cloud computing technology will become an important support. The backend services of the technical network system require a large amount of computing and storage resources, such as video websites, picture websites and more portal websites. With the rapid development and application of the Internet industry, in the future, each item may have its own identification mark, which needs to be transmitted to the backend system for logical processing. Data of different levels will be processed separately. All kinds of industry data need strong system backing support, which can only be achieved through cloud computing.

[0091] The cloud technology involved in this application mainly refers to the technology of realizing data encoding and data transmission of multimedia data through cloud technology.

[0092] See also Figure 1 , Figure 1 Schematic diagram of a network architecture provided by an embodiment of the present application. Figure 1 As shown, the network architecture may include a server 200 and a terminal device cluster, and the terminal device cluster may include one or more terminal devices, and the number of terminal devices is not limited here. Figure 1 As shown, the multiple terminal devices may specifically include a terminal device 100a, a terminal device 101a, a terminal device 102a, ..., a terminal device 103a; Figure 1 As shown, the terminal device 100a, the terminal device 101a, the terminal device 102a, ..., the terminal device 103a can all be connected to the server 200 through a network, so that each terminal device can exchange data with the server 200 through the network connection.

[0093] like Figure 1 The server 200 shown can be an independent physical server, or a server cluster or distributed system composed of multiple physical servers, or a cloud server that provides basic cloud computing services such as cloud services, cloud databases, cloud computing, cloud functions, cloud storage, network services, cloud communications, middleware services, domain name services, security services, CDN, and big data and artificial intelligence platforms. The terminal device can be a smart terminal such as a smart phone, a tablet computer, a laptop computer, a desktop computer, a smart TV, etc. The following takes the communication between the terminal device 100a, the terminal device 101a and the server 200 as an example to describe the specific embodiments of the present application.

[0094] Please also see Figure 2 , Figure 21 is a schematic diagram of a data encoding scenario provided by the present application. When the terminal device 100a obtains a multimedia data and needs to send the multimedia data to another terminal device (for example, the terminal device 101a), the multimedia data may be encoded first. Figure 2 As shown, here, it is assumed that the multimedia data acquired by the terminal device 100a is multimedia data 109b, and the multimedia data 109b can be any audio data or any video data, etc.

[0095] Before encoding the multimedia data 109b, the terminal device 100a needs to select the pixel precision that is most suitable for encoding the multimedia data 109b. When encoding the multimedia data 109b, the ultimate goal is to compress the multimedia data 109b to the minimum data volume (for example, the number of bits contained in the encoded multimedia data 109b is the minimum). However, when compressing the multimedia data 109b to a smaller data volume, the distortion degree of the multimedia data 109b must be within a reasonable range.

[0096] The rate-distortion cost can be used to measure the suitability of using a certain pixel precision to encode and compress the multimedia data 109b. One pixel precision corresponds to a rate-distortion cost. When different pixel precisions are used to encode and compress the multimedia data 109b, different rate-distortion costs are usually used. The rate-distortion cost is obtained by weighted summing the bit rate and the degree of distortion of the multimedia data 109b when encoding and compressing. In other words, the rate-distortion cost simultaneously considers the bit rate and the degree of distortion of the multimedia data 109b when encoding and compressing. The bit rate of the multimedia data 109b represents the amount of data compressed when the multimedia data 109b is encoded and compressed, that is, the degree of compression of the multimedia data 109b. The smaller the bit rate, the greater the degree of compression of the multimedia data 109b, and the smaller the amount of data compressed. Conversely, the larger the bit rate, the smaller the degree of compression of the multimedia data 109b, and the larger the amount of data compressed. Therefore, it is understandable that when the multimedia data 109b is encoded and compressed, it is hoped that the bit rate of the multimedia data 109b can be as small as possible and the degree of distortion can be as small as possible. The following describes how to select the pixel accuracy when encoding and compressing the multimedia data 109b.

[0097] like Figure 2As shown, there are two kinds of pixel precision, one is sub-pixel precision and the other is non-sub-pixel precision. In sub-pixel precision set 100b, three kinds of sub-pixel precision are shown, and the three kinds of sub-pixel precision can be 1 / 16 pixel precision, 1 / 4 pixel precision and 1 / 2 pixel precision. In non-sub-pixel precision set 101b, three kinds of non-sub-pixel precision are also shown, and the three kinds of non-sub-pixel precision can be 1 pixel precision, 2 pixel precision and 4 pixel precision. As can be seen from the above, sub-pixel precision is pixel precision less than 1, and non-sub-pixel precision is pixel precision greater than or equal to 1.

[0098] It should be noted that, when calculating the rate-distortion cost of the pixel precision, since the pixel precision is less than 1, it is necessary to use a differential method to calculate the rate-distortion cost at the pixel precision, while when calculating the rate-distortion cost of the non-pixel precision, it is not necessary to use a differential method to calculate the rate-distortion cost. Therefore, it can be understood that the computational complexity of calculating the rate-distortion cost of the pixel precision is greater than the computational complexity of calculating the rate-distortion cost of the non-pixel precision. Therefore, it is not necessary to calculate the rate-distortion cost of the multimedia data 109b at all pixel precisions, so as to improve the efficiency of selecting pixel precision when encoding and compressing the multimedia data 109b, thereby improving the efficiency of encoding and compressing the multimedia data 109b.

[0099] First, a sub-pixel precision can be randomly obtained from the sub-pixel precision set 100b as the first pixel precision to be selected, assuming that the 1 / 4 pixel precision obtained here is used as the first pixel precision to be selected. Optionally, the first pixel precision to be selected can also be a specified sub-pixel precision, for example, specifying 1 / 2 pixel precision as the first pixel precision to be selected. Among them, all non-sub-pixel precisions in the non-sub-pixel precision set 101b can be used as the second pixel precision to be selected, that is, the second pixel precision to be selected can include 1 pixel precision, 2 pixel precision and 4 pixel precision.

[0100] Next, the rate-distortion cost of the multimedia data 109b at the first candidate pixel precision and the rate-distortion cost of the multimedia data 109b at the second candidate pixel precision can be calculated. The calculated rate-distortion cost of the multimedia data 109b at a certain pixel precision can be referred to as the rate-distortion cost to which the pixel precision belongs, or the pixel precision can be referred to as the pixel precision to which the rate-distortion cost belongs. Here, the calculated rate-distortion cost to which the first candidate pixel precision belongs is the rate-distortion cost 104b, the calculated rate-distortion cost to which the second candidate pixel precision (1 pixel precision) belongs is the rate-distortion cost 105b, the calculated rate-distortion cost to which the second candidate pixel precision (2 pixel precision) belongs is the rate-distortion cost 106b, and the calculated rate-distortion cost to which the second candidate pixel precision (4 pixel precision) belongs is the rate-distortion cost 107b.

[0101] Next, the rate-distortion cost of the first candidate pixel precision and the rate-distortion cost of the second candidate pixel precision can be compared, and the pixel precision corresponding to the smallest rate-distortion cost between the rate-distortion cost of the first candidate pixel precision and the rate-distortion cost of the second candidate pixel precision can be used as the target pixel precision 108b for the multimedia data 109b. The target pixel precision 108b is the pixel precision finally selected for encoding and compressing the multimedia data 109b.

[0102] For example, if the rate-distortion cost 104b, the rate-distortion cost 105b, the rate-distortion cost 106b, and the rate-distortion cost 107b are all small, the first candidate pixel precision (1 / 4 pixel precision) to which the rate-distortion cost 104b belongs can be used as the target pixel precision 108b for the multimedia data 109b. For another example, if the rate-distortion cost 105b, the rate-distortion cost 104b, the rate-distortion cost 106b, and the rate-distortion cost 107b are all small, the second candidate pixel precision (1 pixel precision) to which the rate-distortion cost 105b belongs can be used as the target pixel precision 108b for the multimedia data 109b.

[0103] The following describes how to encode and compress the multimedia data 109b using the target pixel precision 108b: First, the motion vector information of the multimedia data 109b at the target pixel precision 108b can be obtained. Since the multimedia data 109b can include multiple multimedia data frames, the motion vector information of the multimedia data 109b includes the change information between the multiple multimedia data frames of the multimedia data 109b, such as the change information from the previous multimedia data frame to the next adjacent multimedia data frame. The motion vector information of the multimedia data 109b at different pixel precisions has different precisions.

[0104] Then, the terminal device 100a can encode the multimedia data 109b according to the acquired motion vector information of the multimedia data 109b at the target pixel accuracy 108b, and obtain the encoded multimedia data 110b of the multimedia data 109b. When the terminal device 100a sends the encoded multimedia data 110b to the terminal device 101a, the encoded multimedia data 110b can be first sent to the server 200, and the server 200 sends the encoded multimedia data 110b to the terminal device 101a.

[0105] After obtaining the encoded multimedia data 110a, the terminal device 101a can decode the encoded multimedia data 110a to obtain the decoded multimedia data 111b, and the terminal device 101a can output the decoded multimedia data 111b in the terminal page. For example, if the above-mentioned multimedia data 109b is an audio data, then the decoded multimedia data 111b is also an audio data, and the terminal device 101a can play the audio of the decoded multimedia data 111b in the terminal page. For another example, if the above-mentioned multimedia data 109b is a video data, then the decoded multimedia data 111b is also a video data, and the terminal device 101a can play the video of the decoded multimedia data 111b in the terminal page. Compared with the original multimedia data 109b, the decoded multimedia data 111b has a certain degree of distortion, but the degree of distortion is within a reasonable range.

[0106] Through the above process, the terminal device 100a encodes the multimedia data 109b to obtain the encoded multimedia data 110b, and then sends the encoded multimedia data 110b to the terminal device 101a through the server 200. Then, the terminal device 101a decodes the encoded multimedia data 110b and outputs the decoded multimedia data 111b obtained by decoding in the terminal page.

[0107] By adopting the method provided in the present application, since the first candidate pixel precision 102b can be obtained in advance from the sub-pixel set 102b, when selecting the target pixel precision 108b for the multimedia data 109b, it is only necessary to calculate the rate-distortion cost of the multimedia data 109b at the first candidate pixel precision, instead of calculating the rate-distortion cost of the multimedia data 109b at other sub-pixel precisions. Therefore, the calculation complexity of the rate-distortion cost of the multimedia data 109b at the sub-pixel precision is reduced, the selection efficiency of the target pixel precision 108b is improved, and the efficiency of encoding compression for the multimedia data 109b is improved.

[0108] See also Figure 3, Figure 3 This is a flowchart of a data processing method provided by the present application. The execution subject of the data processing method can be a terminal device, a server, or an encoding device. Alternatively, the data processing method can also be executed by the terminal device and the server in collaboration. Here, the execution subject of the data processing method is a terminal device as an example for explanation. Figure 3 As shown, the method may specifically include:

[0109] Step S101, obtaining target multimedia data;

[0110] Specifically, the terminal device can obtain target multimedia data, which can be any multimedia data that needs to be encoded and compressed. For example, the target multimedia data can be multimedia data uploaded by a user in the terminal device, or downloaded by the terminal device on the network, or sent to the terminal device by other terminal devices or servers. The target multimedia data can be audio data or video data. The following describes how to select the target pixel accuracy for the target multimedia data.

[0111] Step S102, obtaining a first pixel precision to be selected from the pixel precision set, and obtaining a second pixel precision to be selected from the non-pixel precision set;

[0112] Specifically, the pixel precision included in the pixel precision set is pixel precision, and the pixel precision included in the non-pixel precision set is non-pixel precision. Wherein, pixel precision refers to pixel precision less than 1, for example, the pixel precision in the pixel precision set may include 1 / 16 pixel precision, 1 / 4 pixel precision and 1 / 2 pixel precision, etc. Non-pixel precision refers to pixel precision greater than or equal to 1, for example, the non-pixel precision in the non-pixel precision set may include 1 times pixel precision, 2 times pixel precision and 4 times pixel precision, etc. Wherein, 1 times pixel precision, 2 times pixel precision and 4 times pixel precision may be referred to as 1 pixel precision, 2 pixel precision and 4 pixel precision, respectively. As can be seen from the above, all pixel precisions may include 1 / 16 pixel precision, 1 / 4 pixel precision, 1 / 2 pixel precision, 1 pixel precision, 2 pixel precision and 4 pixel precision, etc. It can be seen that the size relationship between two adjacent pixel precisions is a 2-fold relationship.

[0113] There are two ways to select the first candidate pixel precision from the pixel precision set and the second candidate pixel precision from the non-pixel precision set, as described below:

[0114] The first selection method: the terminal device can select one sub-pixel precision from the sub-pixel precision set as the first pixel precision to be selected. The first pixel precision to be selected can be any sub-pixel precision in the sub-pixel precision set, or the first pixel precision to be selected can also be a sub-pixel precision in the specified sub-pixel precision set, for example, specifying 1 / 4 pixel precision as the first pixel precision to be selected. In addition, the terminal device can use all non-sub-pixel precisions in the non-sub-pixel precision set as the second pixel precision to be selected.

[0115] The second selection method: the terminal device can select one subpixel precision from the subpixel precision set as the first pixel precision to be selected, and the first pixel precision to be selected can be any subpixel precision in the subpixel precision set, or the first pixel precision to be selected can also be a subpixel precision in the specified subpixel precision set, for example, specifying 1 / 4 pixel precision as the first pixel precision to be selected. The terminal device can select one subpixel precision from the non-subpixel precision set as the second pixel precision to be selected, and the second pixel precision to be selected can be any non-subpixel precision in the non-subpixel precision set, or the second pixel precision to be selected can also be a non-subpixel precision in the specified non-subpixel precision set, for example, specifying 2 times pixel precision as the second pixel precision to be selected.

[0116] Step S103, obtaining the rate-distortion cost of the target multimedia data at the first candidate pixel precision, and obtaining the rate-distortion cost of the target multimedia data at the second candidate pixel precision; the computational complexity of the rate-distortion cost of the target multimedia data at the sub-pixel precision in the sub-pixel precision set is greater than the computational complexity of the rate-distortion cost of the target multimedia data at the non-sub-pixel precision in the non-sub-pixel precision set;

[0117] Specifically, the terminal device may obtain the rate-distortion cost of the target multimedia data at the first candidate pixel precision and the rate-distortion cost of the target multimedia data at the second candidate pixel precision. The rate-distortion cost of the target multimedia data at a certain pixel precision may be referred to as the rate-distortion cost to which the pixel precision belongs, or the pixel precision may be referred to as the pixel precision to which the rate-distortion cost belongs.

[0118] Among them, since the pixel precision is a pixel precision less than 1, when calculating the rate-distortion cost of the target multimedia data at the pixel precision, it is necessary to use a differential method to calculate it. The non-pixel precision is a pixel precision greater than or equal to 1. The computational complexity of using the differential method to calculate the rate-distortion cost is greater than the computational complexity of not using the differential method to calculate the rate-distortion cost. Therefore, the computational complexity of calculating the rate-distortion cost of the target multimedia data at the pixel precision is greater than the computational complexity of calculating the rate-distortion cost of the target multimedia data at the non-pixel precision.

[0119] The following describes how the terminal device calculates the rate-distortion cost of the target multimedia data at the first candidate pixel precision: wherein the rate-distortion cost to which a certain pixel precision belongs is calculated based on the bit rate and distortion value of the target multimedia data at the pixel precision, one pixel precision corresponds to one rate-distortion cost, and one pixel precision corresponds to one bit rate and one distortion value. The above bit rate refers to the data flow per second. The higher the bit rate, the more detailed the description of the data, the smaller the data loss, and the closer the obtained encoded data is to the original data. However, the higher the bit rate, the larger the storage space is required to store the encoded data. It can be understood that the bit rate can be used to indicate the degree of compression of multimedia data. The smaller the bit rate, the greater the degree of compression of multimedia data, indicating that the multimedia data is compressed more, and the smaller the multimedia data is compressed, the smaller the data volume of the compressed multimedia data is. The larger the bit rate, the smaller the degree of compression of multimedia data, indicating that the multimedia data is compressed more, and the larger the multimedia data is compressed, the larger the data volume of the compressed multimedia data is.

[0120] As can be seen from the above, the smaller the bit rate of the target multimedia data, the larger the distortion value of the target multimedia data, and the larger the bit rate of the target multimedia data, the smaller the distortion value of the target multimedia data. The standard for selecting the target pixel accuracy for the target multimedia data is to comprehensively measure the bit rate and distortion value of the target multimedia data at the target pixel accuracy, hoping that the smaller the bit rate of the multimedia data at the target pixel accuracy, the smaller the distortion value. Since the rate-distortion cost is calculated by bit rate and distortion value, the target pixel accuracy for the target multimedia data can be selected by comprehensively considering bit rate and distortion value.

[0121] Therefore, the terminal device can obtain the bit rate and distortion value of the target multimedia data at the first candidate pixel precision, and the bit rate of the target multimedia data at the first candidate pixel precision can be referred to as the first bit rate, and the distortion value of the target multimedia data at the first candidate pixel precision can be referred to as the first distortion value. The first bit rate and the first distortion value are calculated based on the motion vector information of the target multimedia data at the first candidate pixel precision. The motion vector information of the target multimedia data at the first candidate pixel precision can be referred to as the motion vector information belonging to the first candidate pixel precision.

[0122] The target multimedia data may include multiple (at least two) multimedia data frames. For example, if the target multimedia data is audio data, the multiple multimedia data frames of the target multimedia data are multiple audio frames. If the target multimedia data is video data, the multiple multimedia data frames of the target multimedia data are multiple image frames (also referred to as video frames, where video data is composed of frames of images). The motion vector information to which the first candidate pixel precision belongs includes the change information between the multiple multimedia data frames of the target multimedia data, and the accuracy of the change information is the accuracy indicated by the first candidate pixel precision.

[0123] In other words, the motion vector information includes the change information from the previous multimedia data frame to the next multimedia data frame in two adjacent multimedia data frames of the target multimedia data, and the change information may be displacement information. More specifically, each multimedia data frame may be divided into a plurality of image blocks, which do not refer to images, but to the basic block division of the plurality of multimedia data frames obtained after the target multimedia data is preprocessed, and an image block includes part of the data information of the multimedia data frame. Assuming that the previous multimedia data frame includes the image block q1, the image block q2 closest to and most similar to the image block q1 may be obtained from the next multimedia data frame, and the motion vector information may include the displacement information of the image block q1 from its own position to the position of the image block q2, and the displacement information includes the displacement information on the horizontal axis (x-axis) (for example, a distance of 5 pixels is moved on the x-axis) and the displacement information on the vertical axis (y-axis) (for example, a distance of 10 pixels is moved on the y-axis).

[0124] For ease of understanding, the precision of the change information can be described by the number of decimal places. For example, the precision of the change information can be 1 decimal place precision, or 2 decimal places precision, etc. The precision of 2 decimal places is higher than the precision of 1 decimal place. Correspondingly, the smaller the target pixel precision selected for the target multimedia data, the more accurate the motion vector information (which can be understood as displacement information) of the target multimedia data at the target pixel precision. It can be seen that the smaller the target pixel precision of the target multimedia data, the more data volume the target multimedia data will have after encoding.

[0125] See also Figure 4 , Figure 4 This is a scene diagram of the pixel precision size relationship provided by this application. Figure 4 As shown, it is assumed that the image block 105f and the image block 106f are image blocks in two adjacent multimedia data frames among the multiple multimedia data frames of the target multimedia data. In addition, the image block 105f is an image block in the previous multimedia data frame among the two adjacent multimedia data frames, and the image block 106f is an image block in the latter multimedia data frame among the two adjacent multimedia data frames that is most similar to the image block 105f.

[0126] Here, we only take the displacement information between image blocks on the x-axis as an example for explanation. Line 100f represents the displacement information value on the x-axis at 4-pixel accuracy that is closest to image block 106f. Line 101f represents the displacement information value on the x-axis at 2-pixel accuracy that is closest to image block 106f. Line 102f represents the displacement information value on the x-axis at 1-pixel accuracy that is closest to image block 106f. Line 103f represents the displacement information value on the x-axis at 1 / 2-pixel accuracy that is closest to image block 106f. Line 100f represents the displacement information value on the x-axis at 1 / 4-pixel accuracy that is closest to image block 106f. Therefore, Figure 4 It can be seen that when different pixel precisions are selected, the displacement information between image blocks with different precisions will be obtained, and then the motion vector information with different precisions will be obtained. According to the different motion vector information, there will be different rate-distortion costs when encoding the target multimedia data. Figure 4 It can also be seen that when obtaining the displacement information from the image block 105f to the image block 106f, the smaller the pixel precision selected, the more accurate the displacement information from the image block 105f to the image block 106f can usually be obtained.

[0127] Furthermore, the terminal device can also obtain the code rate weight and the distortion weight, the code rate weight is used to weight the code rate, the distortion weight is used to weight the distortion value, and the code rate weight and the distortion weight can be set by itself. Therefore, the terminal device can use the code rate weight to weight the first code rate of the above-mentioned target multimedia data at the first candidate pixel precision to obtain a weighted value (i.e., the weighted first code rate, that is, the product between the first code rate and the code rate weight), and the weighted value can be referred to as the first weighted code rate. The terminal device can also use the distortion weight to weight the first distortion value of the above-mentioned target multimedia data at the first candidate pixel speed to obtain a weighted value (i.e., the weighted first distortion value, that is, the product between the distortion weight and the first distortion value), and the weighted value can be referred to as the first weighted distortion value. The terminal device can use the sum of the first weighted code rate and the first weighted distortion value as the rate-distortion cost of the first candidate pixel precision.

[0128] Similarly, the terminal device can also obtain the bit rate of the target multimedia data at the second pixel precision to be selected, and the distortion value of the target multimedia data at the second pixel precision to be selected. The bit rate of the target multimedia data at the second pixel precision to be selected can be referred to as the second bit rate, and the distortion value of the target multimedia data at the second pixel precision to be selected can be referred to as the second distortion value. Similarly, the terminal device can use the above-mentioned bit rate weight to weight the second bit rate to obtain a weighted value (i.e., the weighted second bit rate, that is, the product between the second bit rate and the bit rate weight), and the weighted value can be referred to as the second weighted bit rate. The terminal device can also use the above-mentioned distortion weight to weight the second distortion value to obtain a weighted value (i.e., the weighted second distortion value, that is, the product between the distortion weight and the second distortion value), and the weighted value can be referred to as the second weighted distortion value. The terminal device can use the sum of the second weighted bit rate and the second weighted distortion value as the rate-distortion cost to which the second pixel precision to be selected belongs. If there are multiple second pixel precisions to be selected, each of the pixel precisions to be selected corresponds to a second bit rate, a second distortion value and a rate-distortion cost.

[0129] Step S104, comparing the rate-distortion cost to which the first candidate pixel precision belongs and the rate-distortion cost to which the second candidate pixel precision belongs, and determining a target pixel precision for the target multimedia data from a sub-pixel precision set or a non-sub-pixel precision set according to the comparison result;

[0130] Specifically, the terminal device may compare the rate-distortion cost to which the first candidate pixel precision belongs and the rate-distortion cost to which the second candidate pixel precision belongs, and obtain a comparison result. The comparison result includes a first comparison result and a second comparison result. If the rate-distortion cost to which the first candidate pixel precision belongs is smaller than the rate-distortion cost to which the second candidate pixel precision belongs, the first comparison result is obtained. On the contrary, if the rate-distortion cost to which the first candidate pixel precision belongs is larger than the rate-distortion cost to which the second candidate pixel precision belongs, the second comparison result is obtained.

[0131] Among them, when the first candidate pixel precision and the second candidate pixel precision are selected by the first selection method in the above step S102, and the comparison result is the above first comparison result, the terminal device can use the first candidate pixel precision in the pixel precision set as the target pixel precision for the target multimedia data. When the first candidate pixel precision and the second candidate pixel precision are selected by the first selection method in the above step S102, and the comparison result is the above second comparison result, the terminal device can use the non-pixel precision with the minimum rate-distortion cost in the non-pixel precision set as the target pixel precision for the target multimedia data. In other words, when the first candidate pixel precision and the second candidate pixel precision are selected by the first selection method in the above step S102, the pixel precision with the minimum rate-distortion cost in the first candidate pixel precision and the second candidate pixel precision can be used as the target pixel precision for the target multimedia data.

[0132] When the first candidate pixel precision and the second candidate pixel precision are selected by the second selection method in the above step S102, and the comparison result is the above first comparison result, the terminal device can calculate the rate-distortion cost of the other sub-pixel precisions except the first candidate pixel precision in the sub-pixel precision set. The terminal device can use the sub-pixel precision with the smallest rate-distortion cost in the sub-pixel precision set as the target pixel precision for the target multimedia data. When the first candidate pixel precision and the second candidate pixel precision are selected by the second selection method in the above step S102, and the comparison result is the above second comparison result, the terminal device can calculate the rate-distortion cost of the other non-sub-pixel precisions except the second candidate pixel precision in the non-sub-pixel precision set. The terminal device can use the non-sub-pixel precision with the smallest rate-distortion cost in the non-sub-pixel precision set as the target pixel precision for the target multimedia data.

[0133] The method provided by the present application can be used by a coding unit-level encoder to select a target pixel precision for target multimedia data when encoding target multimedia data. In other words, the AMVR (adaptive motion vector precision) mode decision of each coding unit (coding unit, cu) can adopt the method provided by the present application to select the target pixel precision for the target multimedia data.

[0134] Furthermore, after obtaining the target pixel accuracy for the target multimedia data, the terminal device may encode the target multimedia data according to the target pixel accuracy. The process of the terminal encoding the target multimedia data by the target pixel accuracy may be as follows: the terminal device may obtain the motion vector information of the target multimedia data at the target pixel accuracy. The target multimedia data may include multiple (at least two) multimedia data frames (e.g., multiple image frames or multiple audio frames), and the terminal device may obtain the offset distance between multiple multimedia data frames of the target multimedia data according to the motion vector information of the target multimedia data, and the offset distance is the displacement information mentioned above, and the offset distance includes the displacement information on the x-axis and the displacement information on the y-axis between the image blocks in the multiple multimedia data frames. The terminal device may implement the encoding of the target multimedia data according to the offset distance between multiple multimedia data frames of the target multimedia data. The data obtained after the terminal device encodes the target multimedia data may be referred to as the encoded data of the target multimedia data.

[0135] See also Figure 5 , Figure 5 This is a schematic diagram of a scenario for obtaining coded data provided by this application. Figure 5 As shown, the target multimedia data may include multiple multimedia data frames, and the multiple multimedia data frames may include multimedia data frame 100e, multimedia data frame 101e and multimedia data frame 102e. Multimedia data frame 100e is the previous multimedia data frame of multimedia data frame 101e, and multimedia data frame 101e is the previous multimedia data frame of multimedia data frame 102e. Multimedia data frame 100e includes image block 106e, and image block 107e in multimedia data 101e is the image block most similar to image block 106e. Therefore, the terminal device can obtain displacement information from the position change of image block 106e to the position of image block 107e, and the displacement information includes displacement information of right shift (i.e., right shift on the x-axis) and displacement information of upward shift (i.e., upward shift on the y-axis).

[0136] Similarly, image block 108e is the image block that is most similar to image block 107e in multimedia data frame 102e. The terminal device can also obtain displacement information from image block 107e to image block 108e. Therefore, it can be understood that a frame of multimedia data may include several image blocks, and the terminal device can obtain displacement information between any two image blocks in adjacent multimedia data frames (one image block belongs to the previous frame, one image block belongs to the next frame, and the two image blocks are the most similar two image blocks). The terminal device can obtain motion vector information 103e of the target multimedia data through the displacement information between the obtained image blocks. Furthermore, the terminal device can realize the encoding of the target multimedia data through the offset distance 104e (i.e., displacement information) between multiple frames of multimedia data contained in the motion vector information 103e, and obtain the encoded data 105e of the target multimedia data.

[0137] Furthermore, the terminal device may send the encoded data of the target multimedia data to a user terminal (which may be any terminal device), and the user terminal may decode the encoded data after receiving the encoded data of the target multimedia data. The data obtained after the user terminal decodes the encoded data of the target multimedia data may be referred to as decoded multimedia data of the target multimedia data. The user terminal may output the decoded multimedia data in a terminal page to display the target multimedia data to the user. The decoded multimedia data has a certain degree of distortion compared to the target multimedia data, but the degree of distortion is guaranteed to be within a reasonable range.

[0138] Specifically, the user terminal inputs the decoded multimedia data in the terminal page: if the target multimedia data is audio data, the decoded multimedia data is also audio data, and the user terminal can play the decoded multimedia data in the terminal page (i.e., realize audio playback). If the target multimedia data is video data, the decoded multimedia data is also video data, and the user terminal can also play the decoded multimedia data in the terminal page (i.e., realize video playback).

[0139] See also Figure 6 , Figure 6 1 is a schematic diagram of an audio playback scenario provided by the present application. Region 101c includes multiple audio frames (i.e., multiple multimedia data frames) of target multimedia data 100c. In fact, the terminal device can obtain motion vector information 102c of the multiple audio frames at each pixel precision. Since the target pixel precision for the target multimedia data 100c has been determined, the terminal device can only obtain motion vector information 103c corresponding to the target pixel precision in the motion vector information 102c.

[0140] Next, the terminal device can obtain the offset distance 104c between two adjacent audio frames of the target multimedia data 100c at the target pixel accuracy according to the motion vector information 103c. Then, the terminal device can encode the target multimedia data 100c according to the offset distance 104c to obtain the encoded data 105c of the target multimedia data 100c. The encoded data 105c can be a bit stream, and the encoded data 105c can include multiple bits.

[0141] The terminal device can send the encoded data 105c to the user terminal 108c. After obtaining the encoded data 105c, the user terminal 108c can decode the encoded data 105c to obtain decoded multimedia data of the target multimedia data 100c. The user terminal 108c can play the decoded multimedia data in the terminal page 106c.

[0142] See also Figure 7 , Figure 7 1 is a schematic diagram of a video playback scene provided by the present application. The region 101d includes multiple video frames (i.e., multiple multimedia data frames) of the target multimedia data 100d. In fact, the terminal device can obtain the motion vector information 102d of the multiple video frames at each pixel precision. Since the target pixel precision for the target multimedia data 100d has been determined, the terminal device can only obtain the motion vector information 103d corresponding to the target pixel precision in the motion vector information 102d.

[0143] Next, the terminal device can obtain the offset distance 104d between two adjacent video frames of the target multimedia data 100d at the target pixel accuracy according to the motion vector information 103d. Then, the terminal device can encode the target multimedia data 100d according to the offset distance 104d to obtain the encoded data 105d of the target multimedia data 100d. The encoded data 105d can be a bit stream, and the encoded data 105d can include multiple bits.

[0144] The terminal device can send the coded data 105d to the user terminal 111d. After obtaining the coded data 105d, the user terminal 111d can decode the coded data 105d to obtain the decoded multimedia data of the target multimedia data 100d. The user terminal 108d can play the decoded multimedia data in the terminal page 111d. The user terminal 108d can also respond to the user's click operation on the control 108d in the terminal page 106d to start playing the decoded multimedia data or pause playing the decoded multimedia data.

[0145] The present application obtains target multimedia data; obtains a first candidate pixel precision from a pixel precision set, and obtains a second candidate pixel precision from a non-pixel precision set; obtains the rate-distortion cost of the target multimedia data at the first candidate pixel precision, and obtains the rate-distortion cost of the target multimedia data at the second candidate pixel precision; compares the rate-distortion cost to which the first candidate pixel precision belongs and the rate-distortion cost to which the second candidate pixel precision belongs, and determines the target pixel precision for the target multimedia data from the pixel precision set or the non-pixel precision set according to the comparison result. It can be seen that the method proposed in the present application can obtain part of the pixel precision from the pixel precision set as the first candidate pixel precision, and obtain part of the non-pixel precision from the non-pixel precision set as the second candidate pixel precision, and subsequently, according to the size relationship between the rate-distortion cost to which the first candidate pixel precision belongs and the rate-distortion cost to which the second candidate pixel precision belongs, the target pixel precision of the target multimedia data can be obtained, without calculating the rate-distortion cost to which all pixel precisions in the pixel precision set and the non-pixel precision set belong, thereby improving the efficiency of obtaining the target pixel precision.

[0146] See also Figure 8 , Figure 8 It is a flowchart of a method for selecting pixel accuracy provided by this application. Figure 8 The method for determining the target pixel precision is described when the first candidate pixel precision and the second candidate pixel precision are selected by the second selection method in the above step S102. Figure 8 As shown, the method includes:

[0147] Step S301, selecting a sub-pixel precision and a non-sub-pixel precision, and calculating their rate-distortion costs;

[0148] Specifically, the terminal device can select any pixel precision (that is, select the first pixel precision to be selected) and any non-pixel precision (that is, select the second pixel precision to be selected), and calculate the rate-distortion cost of the selected pixel precision and the rate-distortion cost of the selected non-pixel precision.

[0149] Step S302, the rate-distortion cost of pixel-by-pixel accuracy is less than the rate-distortion cost of non-pixel-by-pixel accuracy;

[0150] Specifically, the terminal device may determine whether the rate-distortion cost of the selected pixel-by-pixel precision is less than the rate-distortion cost of the selected non-pixel-by-pixel precision. If so, the following step S303 is executed; if so, the following step S305 is executed.

[0151] Step S303, calculating the rate-distortion cost of the remaining sub-pixel accuracy;

[0152] Specifically, the terminal device may calculate the rate-distortion costs of other sub-pixel precisions except the sub-pixel precision selected in step S301.

[0153] Step S304, selecting the precision with the minimum rate-distortion cost from the sub-pixel precisions as the final precision;

[0154] Specifically, the terminal device may use the sub-pixel precision with the smallest rate-distortion cost among all sub-pixel precisions as the final precision, and the final precision is the above-mentioned target pixel precision.

[0155] Step S305, calculating the rate-distortion cost of the remaining non-pixel precision;

[0156] Specifically, the terminal device may calculate the rate-distortion costs of other non-pixel precisions except the non-pixel precision selected in step S301.

[0157] Step S306, selecting the precision with the minimum rate-distortion cost from the non-pixel precisions as the final precision;

[0158] Specifically, the terminal device may use the non-fractionated pixel precision with the smallest rate-distortion cost among all non-fractionated pixel precisions as the final precision, and the final precision is the above-mentioned target pixel precision.

[0159] See also Fig. 9 , Fig. 9 This is a flow chart of a data processing method provided by this application. Fig. 9 As shown, the method may include:

[0160] Step S201, obtaining target multimedia data and a pixel precision selection rule; the pixel precision selection rule is a rule determined based on the relationship between the rate-distortion cost of the target multimedia data at a first candidate pixel precision and the rate-distortion cost of the target multimedia data at a second candidate pixel precision; the first candidate pixel precision is obtained from a sub-pixel precision set; the second candidate pixel precision is obtained from a non-sub-pixel precision set; the computational complexity of the rate-distortion cost of the target multimedia data at the sub-pixel precision in the sub-pixel precision set is greater than the computational complexity of the rate-distortion cost of the target multimedia data at the non-sub-pixel precision in the non-sub-pixel precision set;

[0161] Step S202, determining a target pixel precision for target multimedia data from a pixel precision set or a non-pixel precision set based on a pixel precision selection rule;

[0162] In step S201-step S202, the description of the target multimedia data can refer to the description of the target multimedia data in the above step S101. The pixel precision selection rule specifically refers to how to obtain the target pixel precision for the target multimedia data from the pixel precision set or from the non-pixel precision set according to the size between the rate-distortion cost to which the first candidate pixel precision belongs and the rate-distortion cost to which the second candidate pixel precision belongs. The specific rules of the pixel precision selection rule can be referred to the above Figure 3 Description in the corresponding embodiment.

[0163] The general principle of the pixel precision selection rule is as follows: if the first candidate pixel precision and the second candidate pixel precision are selected according to the first selection method in the above step S102, the target pixel precision of the target multimedia data is the pixel precision with the smallest rate-distortion cost among the first candidate pixel precision and the second candidate pixel precision. If the first candidate pixel precision and the second candidate pixel precision are selected according to the second selection method in the above step S102, and the rate-distortion cost of the first candidate pixel precision is less than the rate-distortion cost of the second candidate pixel precision, the target pixel precision of the target multimedia data is the sub-pixel precision with the smallest rate-distortion cost among the sub-pixel precision set. If the first candidate pixel precision and the second candidate pixel precision are selected according to the second selection method in the above step S102, and the rate-distortion cost of the first candidate pixel precision is greater than the rate-distortion cost of the second candidate pixel precision, the target pixel precision of the target multimedia data is the non-sub-pixel precision with the smallest rate-distortion cost among the non-sub-pixel precision set.

[0164] The present application can obtain the target pixel precision for the target multimedia data according to the pixel precision selection rule, and in this process, part of the sub-pixel precision can be obtained from the sub-pixel precision set as the first pixel precision to be selected, and part of the non-pixel precision can be obtained from the non-sub-pixel precision set as the second pixel precision to be selected. Subsequently, according to the relationship between the rate-distortion cost to which the first pixel precision to be selected belongs and the rate-distortion cost to which the second pixel precision to be selected belongs, the target pixel precision of the target multimedia data can be obtained without calculating the rate-distortion costs to which all pixel precisions in the sub-pixel precision set and the non-sub-pixel precision set, thereby improving the efficiency of obtaining the target pixel precision.

[0165] See also Fig.10 , Fig.10 Schematic diagram of a data processing device provided by this application. Fig.10 As shown, the data processing device 1 may include: an acquisition module 101, a selected accuracy acquisition module 102, a distortion cost acquisition module 103 and a target accuracy acquisition module 104;

[0166] An acquisition module 101 is used to acquire target multimedia data;

[0167] The candidate precision acquisition module 102 is used to acquire a first candidate pixel precision from the pixel precision set and acquire a second candidate pixel precision from the non-pixel precision set;

[0168] The distortion cost acquisition module 103 is used to acquire the rate-distortion cost of the target multimedia data at the first candidate pixel precision, and acquire the rate-distortion cost of the target multimedia data at the second candidate pixel precision; the computational complexity of the rate-distortion cost of the target multimedia data at the sub-pixel precision in the sub-pixel precision set is greater than the computational complexity of the rate-distortion cost of the target multimedia data at the non-sub-pixel precision in the non-sub-pixel precision set;

[0169] The target precision acquisition module 104 is used to compare the rate-distortion cost of the first candidate pixel precision with the rate-distortion cost of the second candidate pixel precision, and determine the target pixel precision for the target multimedia data from the pixel-by-pixel precision set or the non-pixel-by-pixel precision set according to the comparison result.

[0170] The specific functional implementation of the acquisition module 101, the selected precision acquisition module 102, the distortion cost acquisition module 103 and the target precision acquisition module 104 can be found in Figure 3 Steps S101 to S104 in the corresponding embodiment will not be described in detail here.

[0171] The selected precision acquisition module 102 is used for:

[0172] A sub-pixel precision is selected from the sub-pixel precision set as the first pixel precision to be selected, and non-sub-pixel precisions in the non-sub-pixel precision set are all determined as the second pixel precision to be selected.

[0173] Wherein, the comparison result includes a first comparison result;

[0174] The target accuracy acquisition module 104 includes: a first result acquisition unit 10401 and a first accuracy determination unit 10402;

[0175] The first result obtaining unit 10401 is used to compare the rate-distortion cost to which the first candidate pixel precision belongs and the rate-distortion cost to which the second candidate pixel precision belongs, and obtain a first comparison result when it is found that the rate-distortion cost to which the first candidate pixel precision belongs is smaller than the rate-distortion cost to which the second candidate pixel precision belongs;

[0176] The first precision determining unit 10402 is configured to determine, according to the first comparison result, a first candidate pixel precision in the sub-pixel precision set as a target pixel precision for the target multimedia data.

[0177] The specific functional implementation of the first result acquisition unit 10401 and the first accuracy determination unit 10402 can be found in Figure 3 The corresponding step S104 in the embodiment will not be described in detail here.

[0178] Wherein, the comparison result includes a second comparison result;

[0179] The target accuracy acquisition module 104 includes: a second result acquisition unit 10403 and a second accuracy determination unit 10404;

[0180] The second result obtaining unit 10403 is used to compare the rate-distortion cost to which the first candidate pixel precision belongs and the rate-distortion cost to which the second candidate pixel precision belongs, and obtain a second comparison result when it is found that the rate-distortion cost to which the first candidate pixel precision belongs is greater than the rate-distortion cost to which the second candidate pixel precision belongs;

[0181] The second precision determining unit 10404 is configured to determine, according to the second comparison result, the non-fractionated pixel precision with the minimum rate-distortion cost in the non-fractionated pixel precision set as the target pixel precision for the target multimedia data.

[0182] The specific functional implementation of the second result acquisition unit 10403 and the second accuracy determination unit 10404 can be found in Figure 3 The corresponding step S104 in the embodiment will not be described in detail here.

[0183] The selected precision acquisition module 102 is used to:

[0184] A sub-pixel precision is selected from the sub-pixel precision set as a first pixel precision to be selected, and a non-sub-pixel precision is selected from the non-sub-pixel precision set as a second pixel precision to be selected.

[0185] Wherein, the comparison result includes a first comparison result;

[0186] The target accuracy acquisition module 104 includes: a third result acquisition unit 10405, a first cost acquisition unit 10406 ​​and a third accuracy determination unit 10407;

[0187] The third result obtaining unit 10405 is used to compare the rate-distortion cost to which the first candidate pixel precision belongs and the rate-distortion cost to which the second candidate pixel precision belongs, and obtain a first comparison result when it is found that the rate-distortion cost to which the first candidate pixel precision belongs is smaller than the rate-distortion cost to which the second candidate pixel precision belongs;

[0188] A first cost acquisition unit 10406 ​​is used to acquire, according to the first comparison result, a rate-distortion cost of the target multimedia data at a sub-pixel precision other than the first candidate pixel precision in the sub-pixel precision set;

[0189] The third precision determining unit 10407 is configured to determine the sub-pixel precision with the smallest rate-distortion cost in the sub-pixel precision set as the target pixel precision for the target multimedia data.

[0190] The specific functional implementation of the third result acquisition unit 10405, the first cost acquisition unit 10406 ​​and the third accuracy determination unit 10407 can be found in Figure 3 The corresponding step S104 in the embodiment will not be described in detail here.

[0191] Wherein, the comparison result includes a second comparison result;

[0192] The target accuracy acquisition module 104 includes: a fourth result acquisition unit 10408, a second cost acquisition unit 10409 and a fourth accuracy determination unit 10410;

[0193] The fourth result obtaining unit 10408 is used to compare the rate-distortion cost to which the first candidate pixel precision belongs and the rate-distortion cost to which the second candidate pixel precision belongs, and obtain a second comparison result when it is found that the rate-distortion cost to which the first candidate pixel precision belongs is greater than the rate-distortion cost to which the second candidate pixel precision belongs;

[0194] A second cost acquisition unit 10409 is used to acquire, according to the second comparison result, a rate-distortion cost of the target multimedia data at a sub-pixel precision other than a second candidate pixel precision in the non-sub-pixel precision set;

[0195] The fourth precision determining unit 10410 is configured to determine the non-fractionated pixel precision with the minimum rate-distortion cost in the non-fractionated pixel precision set as the target pixel precision for the target multimedia data.

[0196] The specific functional implementation of the fourth result acquisition unit 10408, the second cost acquisition unit 10409 and the fourth accuracy determination unit 10410 can be found in Figure 3 The corresponding step S104 in the embodiment will not be described in detail here.

[0197] The distortion cost acquisition module 103 includes: a first parameter acquisition unit 1031, a first weight acquisition unit 1032, a first weighting unit 1033 and a first cost determination unit 1034;

[0198] A first parameter acquisition unit 1031 is used to acquire a first bit rate and a first distortion value of target multimedia data at a first selected pixel precision;

[0199] A first weight acquisition unit 1032, configured to acquire a rate weight for a first rate and a distortion weight for a first distortion value;

[0200] A first weighting unit 1033, configured to weight the first bit rate according to the bit rate weight to obtain a first weighted bit rate, and weight the first distortion value according to the distortion weight to obtain a first weighted distortion value;

[0201] The first cost determining unit 1034 is configured to determine a rate-distortion cost to which the first candidate pixel precision belongs according to the first weighted coding rate and the first weighted distortion value.

[0202] The specific functional implementation of the first parameter acquisition unit 1031, the first weight acquisition unit 1032, the first weighting unit 1033 and the first cost determination unit 1034 can be found in Figure 3 The corresponding step S103 in the embodiment will not be described in detail here.

[0203] The distortion cost acquisition module 103 includes: a second parameter acquisition unit 1035, a second weight acquisition unit 1036, a second weighting unit 1037 and a second cost determination unit 1038;

[0204] A second parameter acquisition unit 1035, configured to acquire a second bit rate and a second distortion value of the target multimedia data at a second selected pixel precision;

[0205] A second weight acquisition unit 1036, configured to acquire a rate weight for a second rate and a distortion weight for a second distortion value;

[0206] A second weighting unit 1037, configured to weight the second bit rate according to the bit rate weight to obtain a second weighted bit rate, and weight the second distortion value according to the distortion weight to obtain a second weighted distortion value;

[0207] The second cost determining unit 1038 is configured to determine a rate-distortion cost to which the second candidate pixel precision belongs according to the second weighted coding rate and the second weighted distortion value.

[0208] The specific functional implementation of the second parameter acquisition unit 1035, the second weight acquisition unit 1036, the second weighting unit 1037 and the second cost determination unit 1038 can be found in Figure 3 The corresponding step S103 in the embodiment will not be described in detail here.

[0209] The data processing device 1 further includes: an encoding module 105 and a data output module 106;

[0210] The encoding module 105 is used to encode the target multimedia data based on the target pixel accuracy to obtain the encoded data of the target multimedia data;

[0211] The data output module 106 is used to send the encoded data to the user terminal, so that the user terminal decodes the encoded data to obtain decoded multimedia data corresponding to the target multimedia data, and then outputs the decoded multimedia data in the terminal page.

[0212] The specific functional implementation of the encoding module 105 and the data output module 106 can be found in Figure 3 The corresponding step S104 in the embodiment will not be described in detail here.

[0213] Wherein, the target multimedia data has at least two multimedia data frames;

[0214] The encoding module 105 includes: a retrieval unit 1051, an offset distance determination module 1052 and an encoding unit 1053;

[0215] A retrieval unit 1051, used to retrieve motion vector information of target multimedia data at a target pixel accuracy;

[0216] An offset distance determination module 1052, configured to determine an offset distance between at least two multimedia data frames according to the motion vector information;

[0217] The encoding unit 1053 is used to encode the target multimedia data according to the offset distance between at least two multimedia data frames to obtain encoded data of the target multimedia data.

[0218] The specific functional implementation of the retrieval unit 1051, the offset distance determination module 1052 and the encoding unit 1053 can be found in Figure 3 The corresponding step S104 in the embodiment will not be described in detail here.

[0219] The present application obtains target multimedia data; obtains a first candidate pixel precision from a pixel precision set, and obtains a second candidate pixel precision from a non-pixel precision set; obtains the rate-distortion cost of the target multimedia data at the first candidate pixel precision, and obtains the rate-distortion cost of the target multimedia data at the second candidate pixel precision; compares the rate-distortion cost to which the first candidate pixel precision belongs and the rate-distortion cost to which the second candidate pixel precision belongs, and determines the target pixel precision for the target multimedia data from the pixel precision set or the non-pixel precision set according to the comparison result. It can be seen that the method proposed in the present application can obtain part of the pixel precision from the pixel precision set as the first candidate pixel precision, and obtain part of the non-pixel precision from the non-pixel precision set as the second candidate pixel precision, and subsequently, according to the size relationship between the rate-distortion cost to which the first candidate pixel precision belongs and the rate-distortion cost to which the second candidate pixel precision belongs, the target pixel precision of the target multimedia data can be obtained, without calculating the rate-distortion cost to which all pixel precisions in the pixel precision set and the non-pixel precision set belong, thereby improving the efficiency of obtaining the target pixel precision.

[0220] See also Fig.11 , Fig.11 Schematic diagram of a data processing device provided by this application. Fig.11 As shown, the data processing device 2 may include: a rule acquisition module 21 and a precision selection module 22;

[0221] The rule acquisition module 21 is used to acquire target multimedia data and pixel precision selection rules; the pixel precision selection rule is a rule determined based on the relationship between the rate-distortion cost of the target multimedia data at a first candidate pixel precision and the rate-distortion cost of the target multimedia data at a second candidate pixel precision; the first candidate pixel precision is acquired from a sub-pixel precision set; the second candidate pixel precision is acquired from a non-sub-pixel precision set; the computational complexity of the rate-distortion cost of the target multimedia data at the sub-pixel precision in the sub-pixel precision set is greater than the computational complexity of the rate-distortion cost of the target multimedia data at the non-sub-pixel precision in the non-sub-pixel precision set;

[0222] The precision selection module 22 is used to determine the target pixel precision for the target multimedia data from the pixel precision set or the non-pixel precision set based on the pixel precision selection rule.

[0223] The specific functional implementation of the rule acquisition module 21 and the precision selection module 22 can be found in Fig. 9 Steps S201 and S202 in the corresponding embodiment will not be described in detail here.

[0224] The first pixel precision to be selected is any sub-pixel precision in the sub-pixel precision set; the second pixel precision to be selected is all non-sub-pixel precisions in the non-sub-pixel precision set;

[0225] The precision selection module 22 is used for:

[0226] Based on the pixel precision selection rule, the pixel precision with the smallest rate-distortion cost among the first candidate pixel precision and the second candidate pixel precision is determined as the target pixel precision.

[0227] The first pixel precision to be selected is any pixel precision in the pixel precision set; the second pixel precision to be selected is any non-pixel precision in the non-pixel precision set;

[0228] The precision selection module 22 is used for:

[0229] When the rate-distortion cost of the first candidate pixel precision is less than the rate-distortion cost of the second candidate pixel precision, based on the pixel precision selection rule, the sub-pixel precision with the smallest rate-distortion cost in the sub-pixel precision set is determined as the target pixel precision.

[0230] The first pixel precision to be selected is any pixel precision in the pixel precision set; the second pixel precision to be selected is any non-pixel precision in the non-pixel precision set;

[0231] The precision selection module 22 is used for:

[0232] When the rate-distortion cost of the first candidate pixel precision is greater than the rate-distortion cost of the second candidate pixel precision, based on the pixel precision selection rule, the sub-pixel precision with the smallest rate-distortion cost in the non-sub-pixel precision set is determined as the target pixel precision.

[0233] The present application can obtain the target pixel precision for the target multimedia data according to the pixel precision selection rule, and in this process, part of the sub-pixel precision can be obtained from the sub-pixel precision set as the first pixel precision to be selected, and part of the non-pixel precision can be obtained from the non-sub-pixel precision set as the second pixel precision to be selected. Subsequently, according to the relationship between the rate-distortion cost to which the first pixel precision to be selected belongs and the rate-distortion cost to which the second pixel precision to be selected belongs, the target pixel precision of the target multimedia data can be obtained without calculating the rate-distortion costs to which all pixel precisions in the sub-pixel precision set and the non-sub-pixel precision set, thereby improving the efficiency of obtaining the target pixel precision.

[0234] See also Fig.12 , Fig.12 Schematic diagram of the structure of a computer device provided by this application. Fig.12As shown, the computer device 1000 may include: a processor 1001, a network interface 1004 and a memory 1005. In addition, the computer device 1000 may also include: a user interface 1003, and at least one communication bus 1002. The communication bus 1002 is used to realize the connection and communication between these components. The user interface 1003 may include a display screen (Display), a keyboard (Keyboard), and the user interface 1003 may optionally include a standard wired interface and a wireless interface. The network interface 1004 may optionally include a standard wired interface and a wireless interface (such as a WI-FI interface). The memory 1005 may be a high-speed RAM memory, or a non-volatile memory (non-volatile memory), such as at least one disk storage. The memory 1005 may optionally be at least one storage device located away from the aforementioned processor 1001. As Fig.12 As shown, the memory 1005 as a computer storage medium may include an operating system, a network communication module, a user interface module, and a device control application program.

[0235] exist Fig.12 In the computer device 1000 shown in the figure, the network interface 1004 can provide a network communication function; the user interface 1003 is mainly used to provide an input interface for the user; and the processor 1001 can be used to call the device control application stored in the memory 1005 to implement the above Figure 3 and Fig. 9 It should be understood that the computer device 1000 described in this application can also execute the above Fig.10 The description of the data processing device 1 in the corresponding embodiment and the above Fig.11 The description of the data processing device 2 in the corresponding embodiment will not be repeated here. In addition, the description of the beneficial effects of the same method will not be repeated here either.

[0236] In addition, it should be pointed out here that: the present application also provides a computer-readable storage medium, and the computer-readable storage medium stores a computer program executed by the data processing device 1 and the data processing device 2 mentioned above, and the computer program includes program instructions. When the processor executes the program instructions, it can execute the above-mentioned Figure 3 and Fig. 9 The description of the data processing method in any of the corresponding embodiments of the present application will not be repeated here. In addition, the description of the beneficial effects of the same method will not be repeated here. For technical details not disclosed in the computer storage medium embodiment involved in the present application, please refer to the description of the method embodiment of the present application.

[0237] Those skilled in the art can understand that all or part of the processes in the above-mentioned embodiments can be implemented by instructing the relevant hardware through a computer program, and the above-mentioned program can be stored in a computer-readable storage medium, and when the program is executed, it can include the processes of the embodiments of the above-mentioned methods. Among them, the above-mentioned storage medium can be a disk, an optical disk, a read-only memory (ROM) or a random access memory (RAM), etc.

[0238] The above disclosure is only the preferred embodiment of the present application, which certainly cannot be used to limit the scope of rights of the present application. Therefore, equivalent changes made according to the claims of the present application are still within the scope covered by the present application.

Claims

1. A data processing method, characterized in that: include: Acquire target multimedia data; Obtain a first pixel precision to be selected from the pixel precision set, and obtain a second pixel precision to be selected from the non-pixel precision set; Acquire a rate-distortion cost of the target multimedia data at the first candidate pixel precision, and acquire a rate-distortion cost of the target multimedia data at the second candidate pixel precision; The computational complexity of the rate-distortion cost of the target multimedia data at the subpixel precision in the subpixel precision set is greater than the computational complexity of the rate-distortion cost of the target multimedia data at the non-subpixel precision in the non-subpixel precision set; Compare the rate-distortion cost to which the first candidate pixel precision belongs with the rate-distortion cost to which the second candidate pixel precision belongs, and determine, according to the comparison result, a target pixel precision for the target multimedia data from the pixel-by-pixel precision set or the non-pixel-by-pixel precision set.

2. The method according to claim 1, characterized in that: The step of acquiring a first pixel precision to be selected from a pixel precision set and acquiring a second pixel precision to be selected from a non-pixel precision set includes: A sub-pixel precision is selected from the sub-pixel precision set as the first candidate pixel precision, and non-sub-pixel precisions in the non-sub-pixel precision set are all determined as the second candidate pixel precision.

3. The method according to claim 2, characterized in that The comparison result includes a first comparison result; The comparing the rate-distortion cost to which the first candidate pixel precision belongs and the rate-distortion cost to which the second candidate pixel precision belongs, and determining, according to the comparison result, a target pixel precision for the target multimedia data from the pixel-by-pixel precision set or the non-pixel-by-pixel precision set, comprises: Comparing the rate-distortion cost to which the first candidate pixel precision belongs and the rate-distortion cost to which the second candidate pixel precision belongs, and when it is found that the rate-distortion cost to which the first candidate pixel precision belongs is smaller than the rate-distortion cost to which the second candidate pixel precision belongs, obtaining the first comparison result; According to the first comparison result, the first candidate pixel precision in the sub-pixel precision set is determined as the target pixel precision for the target multimedia data.

4. The method according to claim 2, characterized in that: The comparison result includes a second comparison result; The comparing the rate-distortion cost to which the first candidate pixel precision belongs and the rate-distortion cost to which the second candidate pixel precision belongs, and determining, according to the comparison result, a target pixel precision for the target multimedia data from the pixel-by-pixel precision set or the non-pixel-by-pixel precision set, comprises: Comparing the rate-distortion cost to which the first candidate pixel precision belongs and the rate-distortion cost to which the second candidate pixel precision belongs, and when it is found that the rate-distortion cost to which the first candidate pixel precision belongs is greater than the rate-distortion cost to which the second candidate pixel precision belongs, obtaining the second comparison result; According to the second comparison result, the non-fractionated pixel precision with the minimum rate-distortion cost in the non-fractionated pixel precision set is determined as the target pixel precision for the target multimedia data.

5. The method according to claim 1, characterized in that The step of acquiring a first pixel precision to be selected from a pixel precision set and acquiring a second pixel precision to be selected from a non-pixel precision set includes: A sub-pixel precision is selected from the sub-pixel precision set as the first pixel precision to be selected, and a non-sub-pixel precision is selected from the non-sub-pixel precision set as the second pixel precision to be selected.

6. The method according to claim 5, characterized in that The comparison result includes a first comparison result; The comparing the rate-distortion cost to which the first candidate pixel precision belongs and the rate-distortion cost to which the second candidate pixel precision belongs, and determining, according to the comparison result, a target pixel precision for the target multimedia data from the pixel-by-pixel precision set or the non-pixel-by-pixel precision set, comprises: Comparing the rate-distortion cost to which the first candidate pixel precision belongs and the rate-distortion cost to which the second candidate pixel precision belongs, and when it is found that the rate-distortion cost to which the first candidate pixel precision belongs is smaller than the rate-distortion cost to which the second candidate pixel precision belongs, obtaining the first comparison result; According to the first comparison result, obtaining the rate-distortion cost of the target multimedia data at the sub-pixel precision other than the first to-be-selected pixel precision in the sub-pixel precision set; The sub-pixel precision with the smallest rate-distortion cost in the sub-pixel precision set is determined as the target pixel precision for the target multimedia data.

7. The method according to claim 5, characterized in that The comparison result includes a second comparison result; The comparing the rate-distortion cost to which the first candidate pixel precision belongs and the rate-distortion cost to which the second candidate pixel precision belongs, and determining, according to the comparison result, a target pixel precision for the target multimedia data from the pixel-by-pixel precision set or the non-pixel-by-pixel precision set, comprises: Comparing the rate-distortion cost to which the first candidate pixel precision belongs and the rate-distortion cost to which the second candidate pixel precision belongs, and when it is found that the rate-distortion cost to which the first candidate pixel precision belongs is greater than the rate-distortion cost to which the second candidate pixel precision belongs, obtaining the second comparison result; According to the second comparison result, obtaining a rate-distortion cost of the target multimedia data at a sub-pixel precision other than the second to-be-selected pixel precision in the non-sub-pixel precision set; The non-fractionated pixel precision with the minimum rate-distortion cost in the non-fractionated pixel precision set is determined as the target pixel precision for the target multimedia data.

8. The method according to claim 1, characterized in that The obtaining the rate-distortion cost of the target multimedia data at the first selected pixel precision includes: Acquire a first bit rate and a first distortion value of the target multimedia data at the first selected pixel precision; Obtaining a rate weight for the first rate and a distortion weight for the first distortion value; Weighting the first bit rate according to the bit rate weight to obtain a first weighted bit rate, and weighting the first distortion value according to the distortion weight to obtain a first weighted distortion value; A rate-distortion cost to which the first candidate pixel precision belongs is determined according to the first weighted coding rate and the first weighted distortion value.

9. The method according to claim 1, characterized in that: The obtaining the rate-distortion cost of the target multimedia data at the second selected pixel precision includes: Acquire a second bit rate and a second distortion value of the target multimedia data at the second selected pixel precision; Obtaining a rate weight for the second rate and a distortion weight for the second distortion value; Weighting the second bit rate according to the bit rate weight to obtain a second weighted bit rate, and weighting the second distortion value according to the distortion weight to obtain a second weighted distortion value; A rate-distortion cost to which the second selected pixel precision belongs is determined according to the second weighted coding rate and the second weighted distortion value.

10. The method according to claim 1, characterized in that Also includes: Performing encoding processing on the target multimedia data based on the target pixel precision to obtain encoded data of the target multimedia data; The encoded data is sent to a user terminal, so that the user terminal decodes the encoded data to obtain decoded multimedia data corresponding to the target multimedia data, and then outputs the decoded multimedia data in a terminal page.

11. The method according to claim 10, characterized in that The target multimedia data has at least two multimedia data frames; The encoding process of the target multimedia data based on the target pixel precision to obtain the encoded data of the target multimedia data includes: Retrieving motion vector information of the target multimedia data at the target pixel accuracy; Determining an offset distance between the at least two multimedia data frames according to the motion vector information; The target multimedia data is encoded according to the offset distance between the at least two multimedia data frames to obtain the encoded data of the target multimedia data.

12. A data processing method, characterized in that: include: Obtain target multimedia data and a pixel precision selection rule; the pixel precision selection rule is a rule determined based on the relationship between the rate-distortion cost of the target multimedia data at a first candidate pixel precision and the rate-distortion cost of the target multimedia data at a second candidate pixel precision; the first candidate pixel precision is obtained from a subpixel precision set; the second candidate pixel precision is obtained from a non-subpixel precision set; the computational complexity of the rate-distortion cost of the target multimedia data at the subpixel precision in the subpixel precision set is greater than the computational complexity of the rate-distortion cost of the target multimedia data at the non-subpixel precision in the non-subpixel precision set; Based on the pixel precision selection rule, a target pixel precision for the target multimedia data is determined from the pixel-by-pixel precision set or the non-pixel-by-pixel precision set.

13. The method according to claim 12, characterized in that The first pixel precision to be selected is any sub-pixel precision in the sub-pixel precision set; the second pixel precision to be selected is all non-sub-pixel precisions in the non-sub-pixel precision set; The determining, based on the pixel precision selection rule, a target pixel precision for the target multimedia data from the pixel precision set or the non-pixel precision set includes: Based on the pixel precision selection rule, the pixel precision with the smallest rate-distortion cost among the first candidate pixel precision and the second candidate pixel precision is determined as the target pixel precision.

14. The method according to claim 12, characterized in that The first pixel precision to be selected is any sub-pixel precision in the sub-pixel precision set; the second pixel precision to be selected is any non-sub-pixel precision in the non-sub-pixel precision set; The determining, based on the pixel precision selection rule, a target pixel precision for the target multimedia data from the pixel precision set or the non-pixel precision set includes: When the rate-distortion cost of the first candidate pixel precision is less than the rate-distortion cost of the second candidate pixel precision, based on the pixel precision selection rule, the sub-pixel precision with the smallest rate-distortion cost in the sub-pixel precision set is determined as the target pixel precision.

15. The method according to claim 12, characterized in that The first pixel precision to be selected is any sub-pixel precision in the sub-pixel precision set; the second pixel precision to be selected is any non-sub-pixel precision in the non-sub-pixel precision set; The determining, based on the pixel precision selection rule, a target pixel precision for the target multimedia data from the pixel precision set or the non-pixel precision set includes: When the rate-distortion cost of the first candidate pixel precision is greater than the rate-distortion cost of the second candidate pixel precision, based on the pixel precision selection rule, the sub-pixel precision with the smallest rate-distortion cost in the non-sub-pixel precision set is determined as the target pixel precision.

16. A data processing device, characterized in that: include: An acquisition module, used for acquiring target multimedia data; A module for obtaining the precision to be selected, used for obtaining a first pixel precision to be selected from a pixel-by-pixel precision set, and obtaining a second pixel precision to be selected from a non-pixel-by-pixel precision set; A distortion cost acquisition module, configured to acquire a rate-distortion cost of the target multimedia data at the first candidate pixel precision, and acquire a rate-distortion cost of the target multimedia data at the second candidate pixel precision; The computational complexity of the rate-distortion cost of the target multimedia data at the subpixel precision in the subpixel precision set is greater than the computational complexity of the rate-distortion cost of the target multimedia data at the non-subpixel precision in the non-subpixel precision set; A target precision acquisition module is used to compare the rate-distortion cost to which the first candidate pixel precision belongs and the rate-distortion cost to which the second candidate pixel precision belongs, and determine the target pixel precision for the target multimedia data from the pixel-by-pixel precision set or the non-pixel-by-pixel precision set according to the comparison result.

17. A data processing device, characterized in that: include: A rule acquisition module, used for acquiring target multimedia data and pixel precision selection rules; the pixel precision selection rule is a rule determined based on the relationship between the rate-distortion cost of the target multimedia data at a first candidate pixel precision and the rate-distortion cost of the target multimedia data at a second candidate pixel precision; the first candidate pixel precision is acquired from a sub-pixel precision set; the second candidate pixel precision is acquired from a non-sub-pixel precision set; the computational complexity of the rate-distortion cost of the target multimedia data at the sub-pixel precision in the sub-pixel precision set is greater than the computational complexity of the rate-distortion cost of the target multimedia data at the non-sub-pixel precision in the non-sub-pixel precision set; The precision selection module is used to determine the target pixel precision for the target multimedia data from the pixel precision set or the non-pixel precision set based on the pixel precision selection rule.

18. A computer device, characterized in that: The invention comprises a memory and a processor, wherein the memory stores a computer program, and when the computer program is executed by the processor, the processor executes the steps of the method according to any one of claims 1 to 15.

19. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a computer program, wherein the computer program includes program instructions. When the program instructions are executed by a processor, the method according to any one of claims 1 to 15 is executed.