Video frame processing method and related device

The first video processing device and the second video processing device negotiate to determine the appropriate picture quality algorithm level, and process the video frames, solving the problem of poor picture effects when the TV and the set-top box are interconnected, and achieving high-quality display of video frames.

WO2025055670A1PCT designated stage expired Publication Date: 2025-03-20HUAWEI TECH CO LTD
View PDF 5 Cites 0 Cited by

Patent Information

Application Number
PCT/CN2024/113048
Authority / Receiving Office
WO · WO
Patent Type
Applications
Current Assignee / Owner
Priority Date
2023-09-14
Filing Date
2024-08-19
Publication Date
2025-03-20

AI Technical Summary

Technical Problem

In the scene where the TV and set-top box are interconnected, the picture quality is processed one after another, resulting in the picture effect being worse.

Method used

Through the negotiation between the first video processing device and the second video processing device, a suitable image quality algorithm level is determined to process the video frames, avoid over-processing, and thereby improve the display quality of the video frames.

Benefits of technology

It effectively avoids over-processing of video frames, improves the display quality of video frames, and ensures the optimization of picture effects.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN2024113048_20032025_PF_FP_ABST
    Figure CN2024113048_20032025_PF_FP_ABST
Patent Text Reader

Abstract

The present application relates to the field of video processing, and in particular to a video frame processing method and a related device. The method comprises: a first video processing device acquiring a first video frame, and acquiring, from a second video processing device, an image quality algorithm supported by the second video processing device and the level of the image quality algorithm; on the basis of an image quality algorithm supported by the first video processing device and the level of the image quality algorithm, and the image quality algorithm supported by the second video processing device and the level of the image quality algorithm, the first video processing device processing the first video frame to obtain a second video frame; and transmitting the second video frame, an image quality algorithm used for processing the first video frame, and the level of the image quality algorithm to the second video processing device. The second video processing device processes the second video frame on the basis of the image quality algorithm used by the first video processing device to process the first video frame and the level of the image quality algorithm, and the image quality algorithm supported by the second video processing device and the level of the image quality algorithm. By using embodiments of the present application, the display quality of video frames is improved.
Need to check novelty before this filing date? Find Prior Art

Description

Video frame processing method and related equipment

[0001] This application claims priority to the Chinese patent application filed with the State Intellectual Property Office of China on September 14, 2023, with application number 202311188208.6 and invention name “Video frame processing method and related equipment”, the entire contents of which are incorporated by reference into this application. Technical Field

[0002] The present application relates to the field of video, and in particular to a video frame processing method and related equipment. Background Art

[0003] Current mainstream TVs and set-top boxes are equipped with image quality processing technology, the main purpose of which is to improve the image quality of the playback content, such as clarity, contrast, color performance, noise suppression, etc.

[0004] When a TV and set-top box are connected, the front-end set-top box processes the video source. The set-top box and TV are connected via a high-definition multimedia interface (HDMI) cable. After receiving the processed image from the set-top box via the HDMI cable, the back-end TV typically also processes the image quality. This double processing, performed by the set-top box and the TV, can cause side effects and degrade the visual quality.

[0005] Summary of the Invention

[0006] The embodiments of the present application provide a video frame processing method and related equipment, and the use of the embodiments of the present application is conducive to improving the display quality of video frames.

[0007] In a first aspect, an embodiment of the present application provides a video frame processing method, which is applied to a first video processing device.

[0008] The first video processing device obtains the first video frame and the capability information of the second video processing device, the capability information including the first picture quality algorithm supported by the second video processing device and the first level of the first picture quality algorithm. The higher the level of the first picture quality algorithm, the higher the display quality of the video frame processed using the first picture quality algorithm; the first video processing device traverses the picture quality algorithms supported by the first video processing device according to the first picture quality algorithm, and when it is determined that the first video processing device supports the first picture quality algorithm, obtains the second level of the first picture quality algorithm supported by the first video processing device; if the first level of the first picture quality algorithm supported by the second video processing device is not lower than the second level of the first picture quality algorithm supported by the first video processing device, the first video processing device processes the first video frame according to the first picture quality algorithm of the third level, and the third level is not higher than the second level of the first picture quality algorithm supported by the first video processing device.

[0009] The first video processing device determines the appropriate level of image quality algorithm to process the first video frame by comparing the level of the image quality algorithm supported by the first video processing device with the level of the image quality algorithm supported by the second video processing device, which helps to avoid excessive processing of the video frame and thereby improve the display quality of the video frame.

[0010] In combination with the first aspect, in one possible implementation, if the first level of the first image quality algorithm supported by the second video processing device is lower than the second level of the first image quality algorithm supported by the first video processing device, the first video processing device processes the first video frame according to the first image quality algorithm of the second level.

[0011] The first video processing device determines the appropriate level of image quality algorithm to process the first video frame by comparing the level of the image quality algorithm supported by the first video processing device with the level of the image quality algorithm supported by the second video processing device. This is beneficial to avoid excessive processing of the video frame and to improve the display quality of the video frame.

[0012] In combination with the first aspect, in one possible implementation, the first image quality algorithm is a clarity enhancement algorithm, a contrast enhancement algorithm, a color enhancement algorithm or a noise reduction algorithm, and the display quality of the video frame processed using the first image quality algorithm is characterized by the clarity, contrast, color vividness or noise of the video frame.

[0013] In combination with the first aspect, in one possible implementation, the first video processing device sends processing method information and a second video frame to the second video processing device. The processing method information includes the image quality algorithm and its level used by the first video processing device to process the first video frame. The second video frame is obtained by the first video processing device processing the first video frame using the supported image quality algorithm.

[0014] By sending processing method information to the second video processing device, the second video processing device can obtain the image quality algorithm and its level used by the first video processing device to process the first video frame, thereby determining the appropriate level of image quality algorithm to process the second video frame, avoiding excessive processing, and thereby improving the display quality of the video frame.

[0015] In a second aspect, an embodiment of the present application provides another video frame processing method, which is applied to a second video processing device.

[0016] The second video processing device obtains a second video frame and processing method information. The second video frame is obtained by the first video processing device using a supported image quality algorithm to process the first video frame. The processing method information includes the second image quality algorithm used by the first video processing device to process the first video frame and the first level of the second image quality algorithm; the higher the level of the second image quality algorithm, the higher the display quality of the video frame processed using the second image quality algorithm; the second video processing device traverses the image quality algorithms supported by the second video processing device, and when it is determined that the second video processing device supports the second image quality algorithm, obtains the second level of the second image quality algorithm supported by the second video processing device; if the second level of the second image quality algorithm supported by the second video processing device is higher than the first level of the second image quality algorithm used by the first video processing device to process the first video frame, and the first level is not 0, the second video processing device uses a second image quality algorithm of the third level to process the second video frame, and the third level is lower than the second level of the second image quality algorithm supported by the second video processing device.

[0017] Before processing the second video frame, the second video processing device determines a suitable level of image quality algorithm to process the second video frame by comparing the level of the image quality algorithm used by the first video processing device when processing the first video frame with the level of the image quality algorithm supported by the second video processing device. This is beneficial to avoid excessive processing of the video frame, thereby improving the display quality of the video frame.

[0018] In combination with the second aspect, in one possible implementation, if the second level of the second image quality algorithm supported by the second video processing device is higher than the first level of the second image quality algorithm used by the first video processing device to process the first video frame, and the first level is 0, the second video processing device uses the second image quality algorithm of the second level to process the second video frame; the first level of the second image quality algorithm is 0, indicating that the first video processing device does not use the second image quality algorithm to process the first video frame.

[0019] When the first video processing device does not use the second image quality algorithm to process the first video frame, the second video processing device uses the second image quality algorithm to process the second video frame, which is beneficial to improving the display quality of the video frame.

[0020] In combination with the second aspect, in one possible implementation, if the second level of the second image quality algorithm supported by the second video processing device is not higher than the first level of the second image quality algorithm used by the first video processing device to process the first video frame, the second video processing device uses a second image quality algorithm with a level of 0 to process the second video frame, thereby avoiding excessive processing and reducing the display quality of the video frame; wherein, the level of the second image quality algorithm is 0, indicating that the second video processing device does not use the second image quality algorithm to process the second video frame.

[0021] In combination with the second aspect, in one possible implementation, the second image quality algorithm is a clarity enhancement algorithm, a contrast enhancement algorithm, a color enhancement algorithm or a noise reduction algorithm, and the display quality of the video frame processed using the second image quality algorithm is characterized by the clarity, contrast, color vividness or noise of the processed video frame.

[0022] In combination with the second aspect, in one possible implementation, the second video processing device packages the image quality algorithms and their levels supported by the second video processing device into the capability information of the second video processing device, so that the first video processing device obtains the image quality algorithms and their levels supported by the second video processing device, thereby determining the appropriate level of image quality algorithm to process the video frame, thereby improving the display quality of the video frame.

[0023] In a third aspect, an embodiment of the present application provides a first video processing device, comprising a unit or module for executing the method provided in the first aspect or any possible implementation manner of the first aspect.

[0024] In a fourth aspect, an embodiment of the present application provides a second video processing device, comprising a unit or module for executing the method provided in the second aspect or any possible implementation manner of the second aspect.

[0025] In a fifth aspect, embodiments of the present application provide a video processing device comprising a processor and a memory. The memory is configured to store program code. The processor is configured to invoke the program code stored in the memory to execute the method provided in the first aspect or any possible implementation of the first aspect, or the method provided in the second aspect or any possible implementation of the second aspect.

[0026] In a sixth aspect, an embodiment of the present application provides a computer storage medium comprising computer instructions, which, when executed on an electronic device, enables the electronic device to execute a method as provided in any possible implementation of the first aspect, or a method as provided in any possible implementation of the second aspect.

[0027] In the seventh aspect, an embodiment of the present application provides a computer program product. When the computer program product is run on a computer, it enables the computer to execute the method provided in the first aspect or any possible implementation of the first aspect, or the method provided in the second aspect or any possible implementation of the second aspect.

[0028] It can be understood that the first video processing device described in the third aspect provided above is used to execute the method provided in the first aspect or any one of the first aspects, the second video processing device described in the fourth aspect provided above is used to execute the method provided in the second aspect or any one of the second aspects, and the video processing device described in the fifth aspect, the computer storage medium described in the sixth aspect, and the computer program product described in the seventh aspect are all used to implement the method provided in the first aspect or any possible implementation of the first aspect, or the method provided in the second aspect or any possible implementation of the second aspect. Therefore, the beneficial effects that can be achieved can refer to the beneficial effects in the corresponding methods and will not be repeated here. BRIEF DESCRIPTION OF THE DRAWINGS

[0029] FIG1 is a schematic diagram of a system architecture provided by an embodiment of the present application;

[0030] FIG2 is a flow chart of a video frame processing method provided in an embodiment of the present application;

[0031] FIG3 is a schematic diagram of a decision flow of an image quality algorithm and its level provided in an embodiment of the present application;

[0032] FIG4 is a flow chart of another video frame processing method provided in an embodiment of the present application;

[0033] FIG5 is a schematic diagram of another image quality algorithm and its level decision flow provided in an embodiment of the present application;

[0034] FIG6 is a schematic structural diagram of a first video processing device provided in an embodiment of the present application;

[0035] FIG7 is a schematic structural diagram of a second video processing device provided in an embodiment of the present application;

[0036] FIG8 is a schematic structural diagram of a video processing device provided in an embodiment of the present application. DETAILED DESCRIPTION

[0037] The terms "first", "second", "third" and "fourth" in the specification, claims and drawings of this application are used to distinguish different objects rather than to describe a specific order.

[0038] "Multiple" refers to two or more. "And / or" describes the relationship between related objects, indicating the existence of three relationships. For example, "A and / or B" means: A exists alone, A and B exist simultaneously, and B exists alone. The character " / " generally indicates that the related objects are in an "or" relationship.

[0039] The embodiments of the present application are described below with reference to the accompanying drawings.

[0040] 1 , which is a schematic diagram of a system architecture provided by an embodiment of the present application. As shown in FIG1 , the system architecture includes a first video processing device 101 and a second video processing device 102 .

[0041] The first video processing device 101 is connected to the second video processing device 102 via an interconnection interface. Optionally, the interconnection interface is HDMI, display port (DP) or other high-speed video interface.

[0042] The first video processing device 101 is a device capable of processing and outputting video signals, and the second video processing device 102 is a device capable of receiving, processing, and outputting video signals. Optionally, the first video processing device 101 is a set-top box, a split TV (box end), a smart mid-screen, a set-top box with a screen, a smart speaker, etc.; the second video processing device 102 is a TV, a split TV (TV end), a monitor, a large-screen device, etc.

[0043] Optionally, the first video processing device 101 and the second video processing device 102 are connected in a wired manner or a wireless manner.

[0044] The first video processing device 101 obtains a first video frame and obtains capability information of the second video processing device 102 from the second video processing device 102, where the capability information includes an image quality algorithm supported by the second video processing device 102 and the level of the image quality algorithm; wherein, a higher level of the image quality algorithm, a higher display quality of the video frame processed using the image quality algorithm; the first video processing device 101 processes the first video frame according to the image quality algorithm and its level supported by the first video processing device 101 and the image quality algorithm and its level supported by the second video processing device 102 to obtain a second video frame; the first video processing device 101 transmits the second video frame and the image quality algorithm and its level used to process the first video frame to the second video processing device 102.

[0045] The second video processing device 102 processes the second video frame according to the image quality algorithm and its level adopted by the first video processing device 101 to process the first video frame, and the image quality algorithm and its level supported by the second video processing device 102; the second video processing device 102 displays the processed second video frame, or transmits the processed second video frame to a display device (not shown in Figure 1).

[0046] It can be seen that the first video processing device 101 and the second video processing device 102 process the video frames through negotiation, such as clarity enhancement processing, contrast enhancement processing, color enhancement processing, noise reduction processing, etc., which is conducive to improving the display quality of the video frames.

[0047] Referring to FIG2 , FIG2 is a flow chart of a video frame processing method provided in an embodiment of the present application. The method is applied to the first video processing device 101 in FIG1 . As shown in FIG2 , the method includes:

[0048] S201: A first video processing device obtains capability information of a second video processing device and a first video frame.

[0049] The capability information of the second video processing device includes the image quality algorithms supported by the second video processing device and their levels. The higher the level of the image quality algorithm, the higher the display quality of the video frame processed by the image quality algorithm.

[0050] In an example, the first video frame obtained by the first video processing device is obtained by the first video processing device from another device, or obtained from a local storage of the first video processing device.

[0051] In one example, when the interconnection interface is an HDMI interface, the capability information of the second video processing device is extended display identification data (EDID) information. When the first video processing device and the second video processing device perform an HDMI handshake, the first video processing device obtains the EDID information from the second video processing device and parses it to obtain the image quality algorithm and its level supported by the second video processing device. Of course, when the interconnection interface is DP, the capability information of the second video processing device is the information corresponding to DP, such as displayID information or EDID information. It should be understood that the interconnection interface can of course also be other high-speed video interfaces.

[0052] In one possible embodiment, the image quality algorithm includes but is not limited to a clarity enhancement algorithm, a contrast enhancement algorithm, a color enhancement algorithm, and a noise reduction algorithm; correspondingly, the display quality of the video frame processed by the image quality algorithm is characterized by the clarity, contrast, color vividness and noise of the processed video frame.

[0053] In one example, the image quality algorithms here are classified according to their functions, that is, the image quality algorithms include a class of image quality algorithms that implement the same function. This class of image quality algorithms includes a variety of specific image quality algorithms, and these specific image quality algorithms have corresponding levels. The level of the image quality algorithm supported by the video processing device (including the first video processing device and the second video processing device) refers to the maximum value of the level of this class of image quality algorithms. For example, the first image quality algorithm is used to enhance clarity, and the first image quality algorithm includes a first clarity enhancement algorithm, a second clarity enhancement algorithm, and a third clarity enhancement algorithm. Among them, the level of the first clarity enhancement algorithm is 1, the level of the second clarity enhancement algorithm is 2, and the level of the third clarity enhancement algorithm is 3. At this time, the level of the first image quality algorithm supported by the video processing device is 3.

[0054] It should be understood that the implementation logic of multiple specific image quality algorithms included in a category of image quality algorithms may be the same or different. For multiple specific image quality algorithms with the same implementation logic, the display quality of the video frames obtained using the specific image quality algorithm is adjusted by modifying the parameters in the specific image quality algorithm based on the specific image quality algorithm, thereby obtaining specific image quality algorithms of different levels.

[0055] In one example, the levels of the image quality algorithm are divided into 0, 1, 2, 3, 4, and 5. The larger the number, the higher the level. 0 means that the image quality algorithm is turned off, or it can be understood that the image quality algorithm is not used to process the video frame. In a specific example, the image quality algorithm is a clarity enhancement algorithm; when the clarity of the video frame processed by the image quality algorithm is higher than the first threshold and not higher than the second threshold, the level of the image quality algorithm is 1; when the clarity of the video frame processed by the image quality algorithm is higher than the second threshold and not higher than the third threshold, the level of the image quality algorithm is 2; when the clarity of the video frame processed by the image quality algorithm is higher than the third threshold and not higher than the fourth threshold, the level of the image quality algorithm is 3.

[0056] In another example, the image quality algorithm here is a specific algorithm for implementing a function.

[0057] It should be understood that the second video processing device may support one or more image quality algorithms, that is, the second video processing device supports one or more image quality processing on video frames.

[0058] S202: The first video processing device traverses the image quality algorithms supported by the first video processing device, and when it is determined that the first video processing device supports the first image quality algorithm, obtains a second level of the first image quality algorithm supported by the first video processing device.

[0059] The image quality algorithm supported by the second video processing device includes a first image quality algorithm, and the level of the first image quality algorithm is level 1. It should be understood that the first image quality algorithm is one of the image quality algorithms supported by the second video processing device.

[0060] Specifically, the first video processing device traverses the image quality algorithms supported by the first video processing device according to the first image quality algorithm to determine whether the first video processing device supports the first image quality algorithm; if it is determined that the first video processing device supports the first image quality algorithm, that is, the first video processing device and the second video processing device both have functions corresponding to the first image quality algorithm, then the first video processing device obtains the second level of the first video processing device's support for the first image quality algorithm.

[0061] S203. When the first level of the first image quality algorithm supported by the second video processing device is not lower than the second level of the first image quality algorithm supported by the first video processing device, the first video processing device processes the first video frame based on the first image quality algorithm of the third level.

[0062] Among them, the third level is not higher than the second level.

[0063] Specifically, the first video processing device processes the first video frame based on the first image quality algorithm of the third level, including three situations:

[0064] 1. The first video processing device processes the first video frame based on a first image quality algorithm of the second level;

[0065] 2. The first video processing device uses a first image quality algorithm with a level of 0 to process the first video frame, that is, the first video processing device turns off the first image quality algorithm and does not perform processing corresponding to the first image quality algorithm on the video frame; for example, the first image quality algorithm is a contrast enhancement algorithm, and the first video processing device does not perform processing corresponding to the first image quality algorithm on the first video frame, which means that the first video processing device does not perform contrast enhancement processing on the first video frame.

[0066] It should be understood that not performing the processing corresponding to the first image quality algorithm on the first video frame is a special way of processing the first video frame using the first image quality algorithm, which is to process the first video frame using the first image quality algorithm with level 0.

[0067] 3. The first video processing device selects a first picture quality algorithm whose level is lower than the second level and higher than 0 to process the first video frame, or adjusts parameters in the first picture quality algorithm whose level is the second level so that the display quality of the video frame processed by the first picture quality algorithm after adjusting the parameters is lower than the display quality of the video frame processed by the first picture quality algorithm whose level is the second level, and processes the first video frame using the first picture quality algorithm after adjusting the parameters.

[0068] When the first level of the first image quality algorithm supported by the second video processing device is lower than the second level of the first image quality algorithm supported by the first video processing device, the first video processing device processes the first video frame according to the first image quality algorithm of the second level. The processing effect of the first video processing device on the first image quality algorithm is better than that of the second video processing device, so the first video processing device uses the first image quality algorithm of the highest level to process the first video frame to improve the display quality of the video frame.

[0069] If it is determined that the first video processing device does not support the first image quality algorithm, the first video processing device traverses the image quality algorithms supported by the first video processing device according to other image quality algorithms supported by the second video processing device until the first video processing device has traversed all image quality algorithms supported by the first video processing device using all image quality algorithms supported by the second video processing device.

[0070] In one possible implementation, when it is determined that the first video processing device supports the third image quality algorithm and the second video processing device does not support the third image quality algorithm, the first video processing device processes the second video frame based on the first video processing device's support for the third image quality algorithm, and the first video processing device selects a level other than 0 for the adopted third image quality algorithm. The function of the third image quality algorithm is different from that of the first image quality algorithm.

[0071] In the above manner, the first video processing device processes the first video frame using a supported image quality algorithm to obtain a second video frame. For example, if the image quality algorithm supported by the first video processing device includes a contrast enhancement algorithm and a noise reduction algorithm, the first video processing device performs contrast enhancement and noise reduction processing on the first video frame using the contrast enhancement and noise reduction algorithms determined in the above manner to obtain the second video frame.

[0072] In one possible implementation, before adopting the first image quality algorithm to process the first video frame, the first video processing device determines whether it is necessary to adopt the first image quality algorithm to process the first video frame. Specifically, the first video processing device determines whether the display quality corresponding to the first image quality algorithm of the first video frame meets the preset requirements. If not, the first video processing device adopts the first image quality algorithm to process the first video frame; if so, the first video processing device does not adopt the first image quality algorithm to process the first video frame, thereby avoiding excessive processing and reducing the display quality of the video frame. In one example, the first image quality algorithm is a contrast enhancement algorithm. If the contrast of the first video frame is less than the contrast threshold, it is determined to adopt the first image quality algorithm to process the first video frame; if the contrast of the first video frame is not less than the contrast threshold, the first video processing device does not adopt the first image quality algorithm to process the first video frame.

[0073] S204: The first video processing device sends the second video frame and processing mode information to the second video processing device.

[0074] The second video frame is obtained by processing the first video frame by the first video processing device using a supported image quality algorithm.

[0075] Specifically, after the second video frame, the first video processing device packages the image quality algorithm and its level used by the first video processing device to process the first video frame into processing mode information. After a path (e.g., an HDMI path) is established between the first video processing device and the second video processing device, the first video processing device sends the second video frame and the corresponding processing mode information to the second video processing device, thereby informing the second video processing device of the image quality algorithm and its level used by the first video processing device for the first video frame.

[0076] It should be noted that the first video processing device processes each acquired video frame in the above manner, which will not be described again here.

[0077] It should be noted that when the interconnection interface between the first video processing device and the second video processing device is HDMI, the processing mode information is packaged in the information frame packet. When the interconnection interface is DP, the processing mode information is packaged in the information frame packet or the auxiliary packet. Of course, the interconnection interface can also be other high-speed video interfaces.

[0078] In a specific embodiment, the first video processing device is a set-top box and the second video processing device is a television. As shown in FIG3 :

[0079] S301: The set-top box obtains EDID information from the TV and parses the EDID information to obtain the image quality algorithm and level supported by the TV.

[0080] S302: The set-top box traverses the image quality algorithms supported by the TV.

[0081] S303: Check whether the set-top box has traversed all the image quality algorithms supported by the TV.

[0082] If the set-top box has not yet completed the traversal of the image quality algorithms supported by the television, the set-top box executes S304. If the set-top box has completed the traversal of the image quality algorithms supported by the television, the process of determining the image quality algorithm and its level to be used for processing the video frame ends. The set-top box processes the first video frame using the image quality algorithm and its level determined in the manner described in FIG3 to obtain a second video frame. The image quality algorithm and level used to process the first video frame are packaged into an information frame packet, and the information frame packet and the second video frame are transmitted to the television.

[0083] The television may support one or more picture quality algorithms, and the set-top box may support one or more picture quality algorithms.

[0084] S304: The set-top box determines whether the set-top box supports the first image quality algorithm.

[0085] The set-top box traverses the picture quality algorithms supported by the TV. For the first picture quality algorithm supported by the TV, the set-top box determines whether the set-top box supports the first picture quality algorithm. If the set-top box supports the first picture quality algorithm, the set-top box obtains the second level of the first picture quality algorithm supported by the set-top box and executes S305. If the set-top box does not support the first picture quality algorithm, the set-top box executes S302.

[0086] S305: The set-top box determines whether the first level of the first image quality algorithm supported by the television is not lower than the second level of the first image quality algorithm supported by the set-top box.

[0087] When the first level of the first picture quality algorithm supported by the TV is not lower than the second level of the first picture quality algorithm supported by the set-top box, the set-top box executes S307; when the first level of the first picture quality algorithm supported by the TV is lower than the second level of the first picture quality algorithm supported by the set-top box, the set-top box executes S306.

[0088] S306: The set-top box starts the first image quality algorithm normally.

[0089] It should be understood that the set-top box normally turns on the first picture quality algorithm, which means that when the set-top box uses the second-level first picture quality algorithm to process the first video frame, it does not adjust the parameters in the first picture quality algorithm, thereby achieving the goal of not reducing the display quality of the second video frame processed using the first picture quality algorithm.

[0090] S307: The set-top box turns off, weakens, or normally starts the first image quality algorithm.

[0091] It should be understood that the set-top box turning off the first picture quality algorithm means that the set-top box does not use the first picture quality algorithm to process the first video frame; the set-top box weakening the first picture quality algorithm means that when the set-top box uses the first picture quality algorithm to process the first video frame, it adjusts the parameters in the first picture quality algorithm to lower the level of the first picture quality algorithm, or selects a picture quality algorithm with a level lower than the second level to process the first video frame, so as to achieve the purpose of reducing the display quality of the second video frame processed by the first picture quality algorithm.

[0092] There are three image quality processing methods shown in S307: turning off the first image quality algorithm, weakening the first image quality algorithm, and normally turning on the first image quality algorithm. When it is determined to use the S307 method to process the video frame, the set-top box can choose one of the three methods to process the video frame for subsequent received video frames; for different video frames, the image quality processing methods used can be the same or different.

[0093] After executing S306 and S307, the set-top box executes S302.

[0094] It can be seen that in the solution of the present application, the first video processing device determines the appropriate level of image quality algorithm to process the video frame by comparing the level of the image quality algorithm supported by the first video processing device with the level of the image quality algorithm supported by the second video processing device, which is conducive to avoiding excessive processing of the video frame and thereby improving the display quality of the video frame.

[0095] Referring to FIG4 , FIG4 is a flow chart of another video frame processing method provided in an embodiment of the present application. The method is applied to the second video processing device 102 in FIG1 . As shown in FIG4 , the method includes:

[0096] S401: A second video processing device obtains a second video frame and processing mode information.

[0097] The second video frame is obtained by processing the first video frame using a supported image quality algorithm by the first video processing device. The processing mode includes the image quality algorithm used by the first video processing device to process the first video frame and its corresponding level. The second image quality algorithm is one of the image quality algorithms used by the first video processing device to process the first video frame. The higher the level of the second image quality algorithm, the higher the display quality of the video frame processed using the second image quality algorithm.

[0098] In one example, after a path is established between a first video processing device and a second video processing device, the second video processing device receives a second video frame and corresponding processing method information, and parses the processing method information to obtain the image quality algorithm and its level adopted by the first video processing device for the first video frame.

[0099] In one example, image quality algorithms include, but are not limited to, clarity enhancement algorithms, contrast enhancement algorithms, color enhancement algorithms, and noise reduction algorithms. Accordingly, the display quality of video frames processed using these image quality algorithms is characterized by the clarity, contrast, color vividness, and noise of the processed video frames. It should be understood that the image quality algorithms herein are categorized by function.

[0100] In one example, the levels of the image quality algorithm are divided into 0, 1, 2, 3, 4, and 5. The larger the number, the higher the level. 0 means turning off the image quality algorithm or it can be understood that the image quality algorithm is not used to process the video frame. In a specific example, the image quality algorithm is a clarity enhancement algorithm; when the clarity of the video frame processed by the image quality algorithm is higher than the first threshold and not higher than the second threshold, the level of the image quality algorithm is 1; when the clarity of the video frame processed by the image quality algorithm is higher than the second threshold and not higher than the third threshold, the level of the image quality algorithm is 2; when the clarity of the video frame processed by the image quality algorithm is higher than the third threshold and not higher than the fourth threshold, the level of the image quality algorithm is 3.

[0101] S402: The second video processing device traverses the image quality algorithms supported by the second video processing device, and when it is determined that the second video processing device supports the second image quality algorithm, obtains a second level of the second image quality algorithm supported by the second video processing device.

[0102] The image quality algorithm used by the first video processing device to process the first video frame includes a second image quality algorithm, and the level of the second image quality algorithm is the first level.

[0103] It should be understood that the image quality algorithms here are classified according to function, that is, the image quality algorithms include a class of image quality algorithms that implement the same function, and the level of the image quality algorithm supported by the second video processing device refers to the maximum level of this class of image quality algorithms.

[0104] Specifically, the second video processing device traverses the image quality algorithms supported by the second video processing device according to the second image quality algorithm to determine whether the second video processing device supports the second image quality algorithm; if it is determined that the second video processing device supports the second image quality algorithm, the second video processing device obtains the second level of support for the second image quality algorithm by the second video processing device.

[0105] S403. If the second level of the second image quality algorithm supported by the second video processing device is higher than the first level of the second image quality algorithm used by the first video processing device to process the first video frame, and the first level is not 0, the second video processing device uses a second image quality algorithm of a third level to process the second video frame, wherein the third level is lower than the second level.

[0106] Specifically, the second video processing device processes the second video frame based on the second image quality algorithm of the third level, including three situations:

[0107] 1. The second video processing device processes the second video frame based on a second image quality algorithm with a second level;

[0108] 2. The second video processing device uses a second image quality algorithm with a level of 0 to process the second video frame, that is, the second video processing device turns off the second image quality algorithm and does not perform processing corresponding to the second image quality algorithm on the second video frame; for example, the second image quality algorithm is a contrast enhancement algorithm, and the first video processing device does not perform processing corresponding to the second image quality algorithm on the second video frame, which means that the second video processing device does not perform contrast enhancement processing on the second video frame.

[0109] It should be understood that not performing the processing corresponding to the second image quality algorithm on the second video frame is a special way of processing the second video frame using the second image quality algorithm, and is processing the second video frame using the second image quality algorithm with level 0.

[0110] 3. The second video processing device selects a second image quality algorithm whose level is lower than the second level and higher than 0 to process the second video frame, or adjusts the parameters in the second image quality algorithm whose level is the second level, so that the display quality of the video frame processed by the second image quality algorithm after adjusting the parameters is lower than the display quality of the video frame processed by the second image quality algorithm whose level is the second level, and processes the second video frame using the second image quality algorithm after adjusting the parameters.

[0111] In one possible implementation, if the second level of the second image quality algorithm supported by the second video processing device is higher than the first level of the second image quality algorithm used by the first video processing device to process the first video frame, and the first level is 0, the second video processing device uses the second image quality algorithm of the second level to process the second video frame. It should be understood that the fact that the first level of the second image quality algorithm used by the first video processing device to process the first video frame is 0 essentially means that the first video processing device does not use the second image quality algorithm to process the first video frame. Since the first video processing device does not use the second image quality algorithm to process the first video frame, the second video processing device can choose to use the second image quality algorithm of the second level to process the video frame to enhance the display quality of the video frame.

[0112] In one possible implementation, if the second level of the second image quality algorithm supported by the second video processing device is not higher than the first level of the second image quality algorithm used by the first video processing device to process the first video frame, the second video processing device uses a second image quality algorithm with a level of 0 to process the second video frame, that is, the second video processing device does not use the second image quality algorithm to process the second video frame. Since the level of the second image quality algorithm supported by the second video processing device is lower than the level of the second image quality algorithm used by the first video processing device to process the first video frame, that is, the first video processing device can process the display quality of the first video frame very well, and the second video processing device does not need to perform further processing on the processing result of the first video processing device, the second video processing device does not need to use the second image quality algorithm to process the second video frame.

[0113] In one possible implementation, if it is determined that the second video processing device does not support the second image quality algorithm, the second video processing device traverses the image quality algorithms supported by the second video processing device according to other image quality algorithms used by the first video processing device to process the first video frame, until the second video processing device has traversed the image quality algorithms supported by the second video processing device using all image quality algorithms used by the first video processing device to process the first video frame.

[0114] In one possible implementation, when the image quality algorithm used by the first video processing device to process the first video frame does not include the fourth image quality algorithm, and the second video processing device supports the fourth image quality algorithm, the second video processing device processes the second video frame based on the fourth image quality algorithm. The second video processing device may select a level other than 0 for the fourth image quality algorithm. The function of the fourth image quality algorithm is different from that of the second image quality algorithm.

[0115] In one possible implementation, before using the second image quality algorithm to process the second video frame, the second video processing device determines whether the second image quality algorithm needs to be used to process the second video frame. Specifically, the second video processing device determines whether the display quality corresponding to the second image quality algorithm of the second video frame meets preset requirements. If not, the second video processing device processes the second video frame using the second image quality algorithm; if so, the second video processing device does not process the second video frame using the second image quality algorithm, thereby avoiding excessive processing that may degrade the display quality of the video frame.

[0116] In one possible implementation, the method of the present application further includes:

[0117] The second video processing device packages the image quality algorithms and their levels supported by the second video processing device into the capability information of the second video processing device, so that the first video processing device can obtain the image quality algorithms and their levels supported by the second video processing device, thereby determining the appropriate level of image quality algorithm to process the video frame, thereby improving the display quality of the video frame.

[0118] In a specific embodiment, the first video processing device is a set-top box and the second video processing device is a television. As shown in FIG5 :

[0119] S501: A television receives an information frame packet and a second video frame from a set-top box, and parses the information frame packet to obtain an image quality algorithm and level used by the set-top box to process the first video frame.

[0120] S502: The television traverses the image quality algorithm used by the set-top box to process the first video frame.

[0121] S503: Whether the television has traversed the image quality algorithm used by the set-top box to process the first video frame.

[0122] If the television has not yet completed the image quality algorithm used by the set-top box to process the first video frame, the television executes S504. If the television has completed the image quality algorithm used by the set-top box to process the first video frame, the television ends the process of determining the image quality algorithm and its level to be used for processing the video frame. The television processes the second video frame using the image quality algorithm and its level determined in the manner shown in FIG5.

[0123] The television may support one or more picture quality algorithms, and the set-top box may use one or more picture quality algorithms to process video frames.

[0124] S504: The TV determines whether the TV supports the second image quality algorithm.

[0125] The TV traverses the picture quality algorithms used by the set-top box to process the video frames. For the second picture quality algorithm used by the set-top box to process the video frames, the TV determines whether the TV supports the second picture quality algorithm. If the TV supports the second picture quality algorithm, the TV box obtains the second level of the second picture quality algorithm supported by the TV and executes S505. If the TV does not support the first picture quality algorithm, the TV executes S502.

[0126] S505: The television determines whether the second level of the second image quality algorithm supported by the television is higher than the first level of the second image quality algorithm used by the set-top box to process the first video frame.

[0127] If the second level of the second picture quality algorithm supported by the TV is not higher than the first level of the second picture quality algorithm used by the set-top box to process the first video frame, the TV executes step S506; if the second level of the second picture quality algorithm supported by the TV is higher than the first level of the second picture quality algorithm used by the set-top box to process the first video frame, the TV executes step S507.

[0128] S506: The television turns off the second image quality algorithm.

[0129] It should be understood that turning off the second image quality algorithm by the television means that the television does not use the second image quality algorithm to process the second video frame.

[0130] S507: The television determines whether the level of the second image quality algorithm used by the set-top box to process the first video frame is 0.

[0131] If the level of the second image quality algorithm used by the top box to process the first video frame is 0, the TV executes S508; if the level of the second image quality algorithm used by the top box to process the first video frame is not 0, the TV executes S509.

[0132] S508: The TV starts the second image quality algorithm normally.

[0133] It should be understood that the TV normally turns on the second picture quality algorithm, which means that when the TV uses the second-level second picture quality algorithm to process the second video frame, it does not adjust the parameters in the second picture quality algorithm, thereby achieving the goal of not reducing the display quality of the video frame processed using the second picture quality algorithm.

[0134] S509: The TV adjusts the second image quality algorithm to a weaker level.

[0135] It should be understood that the TV weakening the second picture quality algorithm means that when the TV uses the second picture quality algorithm to process the second video frame, it adjusts the parameters in the second picture quality algorithm, or selects a second picture quality algorithm with a level lower than the second level, thereby reducing the display quality of the video frame processed by the second picture quality algorithm.

[0136] After executing S506 , S508 , and S509 , the TV executes S502 .

[0137] It can be seen that in the solution of the present application, before processing the second video frame, the second video processing device determines the appropriate level of image quality algorithm to process the second video frame by comparing the level of the image quality algorithm used by the first video processing device when processing the video frame with the level of the image quality algorithm supported by the second video processing device, which is conducive to avoiding excessive processing of the video frame and thereby improving the display quality of the video frame.

[0138] It should be understood that this application uses the image quality algorithm as an example to illustrate that the first video processing device and the second video processing device adjust the display quality of the video frame in an adaptive manner provided by this application. The protection scope of this application is not limited to the image quality algorithm disclosed in this application, and other strategies that change the display quality of the video frame also fall within the protection scope of this application.

[0139] 6 is a schematic diagram illustrating the structure of a first video processing device provided in an embodiment of the present application. The first video processing device 600 is the first video processing device 101 in FIG1 . As shown in FIG6 , the first video processing device 600 includes an acquisition unit 601 , a determination unit 602 , a processing unit 603 , and a sending unit 604 .

[0140] An acquiring unit 601 is configured to acquire the first video frame and capability information of the second video processing device, where the capability information includes a first image quality algorithm supported by the second video processing device and a first level of the first image quality algorithm. A higher level of the first image quality algorithm indicates a higher display quality of the video frame processed using the first image quality algorithm.

[0141] A determining unit 602 is configured to traverse image quality algorithms supported by the first video processing device according to the first image quality algorithm, and when it is determined that the first video processing device supports the first image quality algorithm, obtain a second level of the first image quality algorithm supported by the first video processing device;

[0142] Processing unit 603 is used to process the first video frame according to the first image quality algorithm with a third level if the first level of the first image quality algorithm supported by the second video processing device is not lower than the second level of the first image quality algorithm supported by the first video processing device, and the third level is not higher than the second level of the first image quality algorithm supported by the first video processing device.

[0143] In combination with the first aspect, in one possible implementation, the processing unit 603 is also used to process the first video frame according to the first image quality algorithm with the second level if the first level of the first image quality algorithm supported by the second video processing device is lower than the second level of the first image quality algorithm supported by the first video processing device.

[0144] In combination with the first aspect, in one possible implementation, the first image quality algorithm is a clarity enhancement algorithm, a contrast enhancement algorithm, a color enhancement algorithm or a noise reduction algorithm, and the display quality of the video frame processed using the first image quality algorithm is characterized by the clarity, contrast, color vividness or noise of the processed video frame.

[0145] In conjunction with the first aspect, in one possible implementation, the first video processing device 600 further includes:

[0146] A sending unit 604 is configured to send the second video frame and processing mode information to the second video processing device. The processing mode information includes the image quality algorithm and its level used by the first video processing device to process the first video frame. The second video frame is obtained by the first video processing device processing the first video frame using the supported image quality algorithm.

[0147] It is worth noting that, for the specific functional implementation of the first video processing device 600, please refer to the description of the video frame processing method shown in Figure 2 above, such as the acquisition unit 601 is used to implement the relevant content of executing S201, the determination unit 602 is used to implement the relevant content of executing S202, the processing unit 603 is used to implement the relevant content of executing S203, and the sending unit 604 is used to implement the relevant content of executing S204. The various units or modules in the first video processing device 600 can be individually or completely merged into one or several other units or modules to form, or some (some) of the units or modules can be further divided into multiple smaller units or modules in function to form, which can achieve the same operation without affecting the realization of the technical effects of the embodiments of the present invention. The above-mentioned units or modules are divided based on logical functions. In actual applications, the functions of one unit (or module) are implemented by multiple units (or modules), or the functions of multiple units (or modules) are implemented by one unit (or module).

[0148] 7 is a schematic diagram illustrating the structure of a second video processing device provided in an embodiment of the present application. The second video processing device 700 is the second video processing device 102 in FIG1 . As shown in FIG7 , the second video processing device 700 includes an acquisition unit 701 , a determination unit 702 , a processing unit 703 , and a packaging unit 704 .

[0149] an acquiring unit 701 configured to obtain, from a second video frame and processing mode information, the second video frame being obtained by processing the first video frame using a supported image quality algorithm by the first video processing device, the processing mode information including a second image quality algorithm used by the first video processing device to process the first video frame and a first level of the second image quality algorithm; a higher level of the second image quality algorithm indicates higher display quality of the video frame processed using the second image quality algorithm;

[0150] The determining unit 702 is configured to traverse the image quality algorithms supported by the second video processing device, and when it is determined that the second video processing device supports the second image quality algorithm, obtain a second level of the second image quality algorithm supported by the second video processing device;

[0151] The processing unit 703 is used to, if the second level of the second image quality algorithm supported by the second video processing device is higher than the first level of the second image quality algorithm adopted by the first video processing device to process the first video frame, and the first level is not 0, then the second video processing device adopts the second image quality algorithm of the third level to process the second video frame, and the third level is lower than the second level of the second image quality algorithm supported by the second video processing device.

[0152] In one possible implementation, the processing unit 703 is further used to process the second video frame using the second image quality algorithm of the second level if the second level of the second image quality algorithm supported by the second video processing device is higher than the first level of the second image quality algorithm used by the first video processing device to process the first video frame, and the first level is 0; the first level of the second image quality algorithm is 0, indicating that the first video processing device does not use the second image quality algorithm to process the first video frame.

[0153] In one possible implementation, the processing unit 703 is further used to process the second video frame using a second image quality algorithm with a level of 0 if the second level of the second image quality algorithm supported by the second video processing device is not higher than the first level of the second image quality algorithm used by the first video processing device to process the first video frame, thereby avoiding excessive processing and reducing the display quality of the video frame; wherein, the level of the second image quality algorithm being 0 indicates that the second video processing device does not use the second image quality algorithm to process the second video frame.

[0154] In combination with the second aspect, in one possible implementation, the second image quality algorithm is a clarity enhancement algorithm, a contrast enhancement algorithm, a color enhancement algorithm or a noise reduction algorithm, and the display quality of the video frame processed using the second image quality algorithm is characterized by the clarity, contrast, color vividness or noise of the processed video frame.

[0155] In conjunction with the second aspect, in one possible implementation, the second video processing device further includes:

[0156] The packaging unit is used to package the image quality algorithms and their levels supported by the second video processing device into capability information of the second video processing device.

[0157] It is worth noting that, among them, the specific functional implementation method of the second video processing device 700 refers to the description of the video frame processing method shown in Figure 4 above, such as the acquisition unit 701 is used to implement the relevant content of executing S401, the determination unit 702 is used to implement the relevant content of executing S402, and the processing unit 703 and the packaging unit 704 are used to implement the relevant content of executing S403. Each unit or module in the second video processing device 700 can be separately or completely merged into one or several other units or modules to constitute, or some (some) units or modules therein can also be further split into multiple smaller units or modules in function to constitute, which can achieve the same operation without affecting the realization of the technical effects of the embodiments of the present invention. The above-mentioned units or modules are divided based on logical functions. In actual applications, the function of one unit (or module) is implemented by multiple units (or modules), or the function of multiple units (or modules) is implemented by one unit (or module).

[0158] Based on the description of the above method embodiments and related device embodiments, please refer to Figure 8, which shows a schematic structural diagram of a video processing device 800 provided in an embodiment of the present invention. The video processing device 800 shown in Figure 8 includes a memory 801, a processor 802, a communication interface 803, and a bus 804. The memory 801, processor 802, and communication interface 803 are interconnected via bus 804.

[0159] Optionally, the memory 801 is a ROM, a static storage device, a dynamic storage device or a RAM.

[0160] The memory 801 can store programs. When the program stored in the memory 801 is executed by the processor 802, the processor 802 and the communication interface 803 are used to perform each step of the video frame processing method of the embodiment shown in FIG. 2 .

[0161] The processor 802 uses a general-purpose CPU, a microprocessor, an application-specific integrated circuit ASIC, a GPU or one or more integrated circuits to execute relevant programs to perform the image quality processing method of the embodiment of the method of the present application.

[0162] Processor 802 can also be an integrated circuit chip with signal processing capabilities. During implementation, each step of the video frame processing method of the present application can be completed by hardware integrated logic circuits in processor 802 or by software instructions. Optionally, processor 802 is a general-purpose processor, DSP, ASIC, FPGA, or other programmable logic device, discrete gate or transistor logic device, or discrete hardware component. The processor can implement or execute the various methods, steps, and logic block diagrams disclosed in the embodiments of this application. A general-purpose processor is a microprocessor or any conventional processor. The steps of the methods disclosed in conjunction with the embodiments of this application can be directly implemented and executed by a hardware decoding processor, or by a combination of hardware and software modules in the decoding processor. The optional software modules are located in random access memory, flash memory, read-only memory, programmable read-only memory, electrically erasable programmable memory, registers, or other storage media well-known in the art. The storage medium is located in the memory 801, and the processor 802 reads the information in the memory 801 and combines its hardware to complete the functions required to be performed by the units included in the first video processing device 600 or the second video processing device 700 of the embodiment of the present application, or executes the video frame processing method of the method embodiment of the present application.

[0163] The communication interface 803 uses, for example but not limited to, a transceiver or other transceiver-related device.

[0164] The bus 804 may include a path for transmitting information between various components of the video processing device 800 (eg, the memory 801 , the processor 802 , and the communication interface 803 ).

[0165] It should be noted that although the video processing device 800 shown in FIG8 only shows a memory, a processor, and a communication interface, in a specific implementation, those skilled in the art will understand that the video processing device 800 also includes other components necessary for normal operation. Furthermore, based on specific needs, those skilled in the art will understand that the video processing device 800 may also include hardware components that implement other additional functions. Furthermore, those skilled in the art will understand that the video processing device 800 may also include only the components necessary to implement the embodiments of the present application, and need not include all of the components shown in FIG8.

[0166] An embodiment of the present application further provides a chip, which includes a processor and a data interface. The processor reads instructions stored in a memory through the data interface to implement the video frame processing method of the embodiment of the present application.

[0167] Optionally, as an implementation method, the chip further includes a memory, in which instructions are stored, and the processor is used to execute the instructions stored in the memory. When the instructions are executed, the processor is used to execute the video frame processing method.

[0168] An embodiment of the present application also provides a computer-readable storage medium, which stores instructions. When the computer-readable storage medium is executed on a computer or a processor, the computer or processor executes one or more steps in any of the above methods.

[0169] The present application also provides a computer program product comprising instructions, which, when executed on a computer or processor, causes the computer or processor to execute one or more steps in any of the above methods.

[0170] Those skilled in the art will appreciate that the functions described in conjunction with the various illustrative logic blocks, modules, and algorithm steps disclosed herein can be implemented by hardware, software, firmware, or any combination thereof. If implemented in software, the functions described by the various illustrative logic blocks, modules, and steps may be stored or transmitted as one or more instructions or codes on a computer-readable medium and executed by a hardware-based processing unit. Computer-readable media may include computer-readable storage media, which corresponds to tangible media, such as data storage media, or communication media including any media that facilitates the transfer of computer programs from one place to another (e.g., based on a communication protocol). In this manner, computer-readable media may generally correspond to (1) non-transitory tangible computer-readable storage media, or (2) communication media, such as signals or carrier waves. Data storage media may be any available media that can be accessed by one or more computers or one or more processors to retrieve instructions, codes, and / or data structures for implementing the techniques described in this application. A computer program product may include computer-readable media.

[0171] By way of example, and not limitation, such computer-readable storage media include RAM, ROM, EEPROM, CD-ROM or other optical disk storage devices, magnetic disk storage devices or other magnetic storage devices, flash memory, or any other medium that can be used to store desired program code in the form of instructions or data structures and that can be accessed by a computer. Furthermore, any connection is properly referred to as a computer-readable medium. For example, if instructions are transmitted from a website, server, or other remote source using a coaxial cable, fiber optic cable, twisted pair, digital subscriber line (DSL), or wireless technologies such as infrared, radio, and microwaves, then the coaxial cable, fiber optic cable, twisted pair, DSL, or wireless technologies such as infrared, radio, and microwaves are included in the definition of media. However, it should be understood that the computer-readable storage media and data storage media do not include connections, carrier waves, signals, or other transient media, but are actually directed to non-transitory tangible storage media. As used herein, disk and disc include compact disc (CD), laser disc, optical disc, digital versatile disc (DVD), and Blu-ray disc. Disks usually reproduce data magnetically, while discs reproduce data optically with lasers. Combinations of the above are also intended to be included within the scope of computer-readable media.

[0172] Instructions may be executed by one or more processors, such as one or more DSPs, general-purpose microprocessors, ASICs, FPGAs, or other equivalent integrated or discrete logic circuits. Thus, the term "processor," as used herein, may refer to any of the aforementioned structures or any other structure suitable for implementing the techniques described herein. Additionally, in some aspects, the functionality described by the various illustrative logical blocks, modules, and steps described herein is provided within dedicated hardware and / or software modules configured for encoding and decoding, or incorporated into a combined codec. Furthermore, the techniques may be fully implemented in one or more circuits or logic elements.

[0173] In the several embodiments provided in this application, it should be understood that the disclosed systems, devices, and methods can be implemented in other ways. For example, the division of the unit is only a logical function division, and there are other division methods in actual implementation. For example, multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Optionally, the mutual coupling, direct coupling, or communication connection shown or discussed is an indirect coupling or communication connection through some interfaces, devices or units, such as electrical, mechanical or other forms.

[0174] Optionally, the units described as separate components may or may not be physically separate, and the components shown as units may or may not be physical units, i.e., located in one place, or distributed across multiple network units. Some or all of the units may be selected based on actual needs to achieve the purpose of the solution of this embodiment.

[0175] In the above embodiments, all or part of the embodiments can be implemented using software, hardware, firmware, or any combination thereof. When implemented using software, all or part of the embodiments can be implemented in the form of a computer program product. The computer program product includes one or more computer instructions. When the computer program instructions are loaded and executed on a computer, the processes or functions according to the embodiments of the present application are generated in whole or in part.

[0176] The above description is merely a specific embodiment of the present invention, but the scope of protection of the present invention is not limited thereto. Any changes or substitutions within the technical scope disclosed in the present invention should be included in the scope of protection of the present invention. Therefore, the scope of protection of the present invention should be based on the scope of protection of the claims.

Claims

1. A video frame processing method, characterized in that: The method is applied to a first video processing device, and the method includes: Acquire the first video frame and capability information of the second video processing device, wherein the capability information includes a first image quality algorithm supported by the second video processing device and a first level of the first image quality algorithm, wherein the higher the level of the first image quality algorithm, the higher the display quality of the video frame processed by using the first image quality algorithm; Traversing the image quality algorithms supported by the first video processing device according to the first image quality algorithm, and when it is determined that the first video processing device supports the first image quality algorithm, acquiring a second level of the first image quality algorithm supported by the first video processing device; If the first level is not lower than the second level, the first video frame is processed according to the first image quality algorithm of a third level, and the third level is not higher than the second level.

2. The method according to claim 1, characterized in that The method further comprises: If the first level is lower than the second level, the first video frame is processed according to the first image quality algorithm having the second level.

3. The method according to claim 1 or 2, characterized in that: The first image quality algorithm is a clarity enhancement algorithm, a contrast enhancement algorithm, a color enhancement algorithm or a noise reduction algorithm. The display quality of the video frame obtained by processing using the first image quality algorithm is characterized by the clarity, contrast, color vividness or noise of the video frame obtained by the processing.

4. The method according to any one of claims 1 to 3, characterized in that: The method further comprises: Send processing method information and a second video frame to the second video processing device, the processing method information including the image quality algorithm and its level used by the first video processing device to process the video frame, and the second video frame is obtained by the first video processing device processing the first video frame using a supported image quality algorithm.

5. A video frame processing method, characterized in that: The method is applied to a second video processing device, and the method includes: Acquire a second video frame and processing mode information, where the second video frame is obtained by processing the first video frame by the first video processing device using a supported image quality algorithm; the processing mode information includes a second image quality algorithm used by the first video processing device to process the first video frame and a first level of the second image quality algorithm; the higher the level of the second image quality algorithm, the higher the display quality of the video frame processed by using the second image quality algorithm; Traversing the image quality algorithms supported by the second video processing device, and when it is determined that the second video processing device supports the second image quality algorithm, acquiring a second level of the second image quality algorithm supported by the second video processing device; If the second level is higher than the first level and the first level is not 0, the second video frame is processed using the second image quality algorithm of a third level, and the third level is lower than the second level.

6. The method according to claim 5, characterized in that The method further comprises: If the second level is higher than the first level and the first level is 0, the second image quality algorithm with the second level is used to process the second video frame; the first level of the second image quality algorithm is 0, indicating that the first video processing device does not use the second image quality algorithm to process the first video frame.

7. The method according to claim 5 or 6, characterized in that: The method further comprises: If the second level is not higher than the first level, the second image quality algorithm with level 0 is used to process the second video frame; the level of the second image quality algorithm is 0, indicating that the second video processing device does not use the second image quality algorithm to process the second video frame.

8. The method according to any one of claims 5 to 7, characterized in that: The second image quality algorithm is a clarity enhancement algorithm, a contrast enhancement algorithm, a color enhancement algorithm or a noise reduction algorithm. The display quality of the video frame obtained by processing using the second image quality algorithm is characterized by the clarity, contrast, color vividness or noise of the video frame obtained by the processing.

9. The method according to any one of claims 5 to 8, characterized in that: The method further comprises: The image quality algorithms and their levels supported by the second video processing device are packaged into capability information of the second video processing device.

10. A first video processing device, characterized in that: include: an acquisition unit, configured to acquire the first video frame and capability information of the second video processing device, wherein the capability information includes a first image quality algorithm supported by the second video processing device and a first level of the first image quality algorithm, wherein the higher the level of the first image quality algorithm, the higher the display quality of the video frame obtained by processing with the first image quality algorithm; a determining unit, configured to traverse the image quality algorithms supported by the first video processing device according to the first image quality algorithm, and when it is determined that the first video processing device supports the first image quality algorithm, obtain a second level of the first image quality algorithm supported by the first video processing device; A processing unit is configured to process the first video frame according to the first image quality algorithm of a third level if the first level is not lower than the second level, and the third level is not higher than the second level.

11. The video processing device according to claim 10, characterized in that: The processing unit is further configured to process the first video frame according to the first image quality algorithm having the second level if the first level is lower than the second level.

12. The video processing device according to claim 10 or 11, characterized in that: The first image quality algorithm is a clarity enhancement algorithm, a contrast enhancement algorithm, a color enhancement algorithm or a noise reduction algorithm. The display quality of the video frame obtained by processing using the first image quality algorithm is characterized by the clarity, contrast, color vividness or noise of the video frame obtained by the processing.

13. The video processing device according to any one of claims 10 to 12, characterized in that: The first video processing device also includes: A sending unit is used to send processing mode information and a second video frame to the second video processing device, wherein the processing mode information includes an image quality algorithm and its level adopted by the first video processing device to process the first video frame, and the second video frame is obtained by the first video processing device processing the first video frame using a supported image quality algorithm.

14. A second video processing device, characterized in that: include: an acquisition unit, configured to acquire a second video frame and processing mode information, wherein the second video frame is obtained by processing the first video frame by the first video processing device using a supported image quality algorithm; the processing mode information includes a second image quality algorithm used by the first video processing device to process the video frame and a first level of the second image quality algorithm; the higher the level of the second image quality algorithm, the higher the display quality of the video frame processed by using the second image quality algorithm; a determining unit, configured to traverse the image quality algorithms supported by the second video processing device, and when determining that the second video processing device supports the second image quality algorithm, obtain a second level of the second image quality algorithm supported by the second video processing device; A processing unit is configured to process the second video frame using the second image quality algorithm of a third level if the second level is higher than the first level and the first level is not 0, and the third level is lower than the second level.

15. The video processing device according to claim 14, characterized in that: The processing unit is also used to process the second video frame using the second image quality algorithm of the second level if the second level is higher than the first level and the first level is 0; the first level of the second image quality algorithm is 0, indicating that the first video processing device does not use the second image quality algorithm to process the first video frame.

16. The video processing device according to claim 14 or 15, characterized in that: The processing unit is also used to process the second video frame using the second image quality algorithm with a level of 0 if the second level is not higher than the first level; the level of the second image quality algorithm being 0 indicates that the second video processing device does not use the second image quality algorithm to process the second video frame.

17. The video processing device according to any one of claims 14 to 16, characterized in that: The second image quality algorithm is a clarity enhancement algorithm, a contrast enhancement algorithm, a color enhancement algorithm or a noise reduction algorithm. The display quality of the video frame obtained by processing using the second image quality algorithm is characterized by the clarity, contrast, color vividness or noise of the video frame obtained by the processing.

18. The video processing device according to any one of claims 14 to 17, characterized in that: The second video processing device also includes: A packaging unit, configured to package the image quality algorithms and their levels supported by the second video processing device into a capable image quality image processing unit. Force information.

19. A video processing device, characterized in that: The method comprises a processor and a memory, wherein the memory is used to store program codes, and the processor is used to execute the program codes to implement the method according to any one of claims 1 to 9.

20. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the method according to any one of claims 1 to 9 is implemented.

Citation Information

Patent Citations

  • Video image quality enhanced playing method and on-demand terminal

    CN102811354A

  • Data processing method and device, equipment and storage medium

    CN115706828A

  • Image quality enhancement method and device, and electronic equipment

    CN116567287A

  • Method, apparatus and machine-readable medium for video processing capability communication between a video source device and a video sink device

    US20090153734A1

  • Video processing method and apparatus, device, and system

    WO2023024519A1