Video image control method and smart television
Technical Field
The application relates to the field of video images, in particular to a video image control method and a smart television.
Background
The video image displayed by the television equipment is comprehensively embodied by the video image information such as backlight brightness, contrast, color saturation and the like contained in a video source, and the video image information in each frame of video image is different, so that the display of the video image needs to be dynamically controlled in real time.
Taking dynamic backlight control as an example, fig. 1 is a schematic structural diagram of a dynamic backlight control system of a television provided in the prior art. As shown in fig. 1, the television system includes a display 1, a CPU2 and a video processor 3, wherein a backlight module and a backlight driving circuit are disposed in the display 1, a backlight 11 is disposed on the backlight module, and the backlight driving circuit drives the backlight 11 to operate; the video processor 3 is provided with a video decoding module, and the CPU2 is provided with a dynamic backlight algorithm module and a backlight control module. Because the video signal state of the video frame has a normal state and an abnormal state such as no signal, no identification or no support, when the video frame is in the abnormal state, the video frame cannot be displayed normally. Therefore, before each frame of video frame is displayed, the video signal status of each frame of video frame needs to be determined. The specific process is as follows: after the video processor 3 receives the video frame, the video decoding module decodes the current video frame and decodes the brightness value information of the current video frame. Meanwhile, the CPU2 sends a request instruction to the video processor in real time, actively requests to acquire a video signal state from the video decoding module, and after receiving the request instruction, the video decoding module feeds back the video signal state of the current video frame to the dynamic backlight algorithm module, thereby implementing that the backlight algorithm module actively acquires the video signal state in real time. If the video signal state is a normal state, controlling the dynamic backlight algorithm module to acquire brightness value information from the video decoding module, calculating a backlight value according to a preset algorithm, and finally controlling the backlight driving circuit to work by the backlight control module according to the backlight value; if the video signal state is abnormal, the dynamic backlight algorithm module is controlled to stop obtaining the brightness value information from the video decoding module, so that the backlight value is kept unchanged from the backlight value of the previous video frame, and finally the backlight control module controls the backlight driving circuit to work according to the backlight value of the previous video frame.
However, the CPU2 needs to send a request instruction in real time to actively acquire the video signal status from the video processor, thereby occupying the computing resources of the CPU2 for a long time.
Disclosure of Invention
The application provides a video image control method and a smart television, which aim to solve the problem that a CPU2 needs to send a request instruction in real time to actively acquire a video signal state from a video processor, so that computing resources of a CPU2 are occupied for a long time.
In a first aspect, the present application provides a video image control method, including:
receiving video signal state change information;
determining whether the video signal state of the current video frame is an abnormal state according to the video signal state change information;
and if the video signal state of the current video frame is an abnormal state, controlling the video image according to the video image information of the previous video frame until the video signal state of the video frame changes.
In a second aspect, the present application further provides a video image control method, including:
monitoring the video signal state of a video frame in real time;
and if the video signal state of the video frame is monitored to be changed, sending video signal state change information to the processor.
In a third aspect, the present application further provides a smart tv, including a processor, a video processor, a display, and a memory, where:
the memory for storing program code;
the processor is configured to read the program code in the memory and execute the method of the first aspect;
the video processor is configured to read the program code in the memory and execute the method of the second aspect;
the display is electrically connected with the processor and used for receiving the video image information sent by the processor and displaying the video image according to the video image information.
The method disclosed by the application has the following beneficial effects: when the video image is played, the processor does not need to send a request instruction in real time, and requests the video processor to feed back the video signal state of each frame of video frame, but controls the video processor to monitor the change of the video signal state. If the video signal state changes, the processor receives video signal state change information sent by the video processor and determines the current video signal state according to the video signal state change information, so that the video image control module is controlled to execute corresponding operation according to the current video signal state, as long as the video signal state change information is not received, the operation corresponding to the current video signal state is automatically executed in each next video frame, and the video image control module is controlled to stop the current operation and execute the operation corresponding to the state after the video signal state changes. As can be seen from the above description, after monitoring that the video signal state changes, the processor executes corresponding operations according to the changed video signal state without actively acquiring the video signal state of each frame of video frame in real time, so that the processor does not need to occupy the computing resource for a long time, the utilization efficiency of the computing resource of the processor is indirectly improved, and the processing speed of the processor is improved.
In addition, when a channel switching instruction is received, because the video processor needs to release the current video resource and acquire a new video resource, the state of the video signal is unstable in the process of switching the video resource, if the change of the state of the video signal is still monitored at the moment, the processor frequently occupies the computing resource of the processor in the switching time period, and the picture displayed on the display screen continuously jumps. Therefore, when a channel switching instruction is received, the video processor is controlled to monitor the stability of the state of the video signal, the state of the video signal is continuously monitored after the state of the video signal is stable, and during the period, the display of the background image or the picture of the previous frame of video image on the display can be controlled, so that the problem that the processor frequently occupies the computing resource of the processor in the switching time period is solved, and meanwhile, the picture effect and the user experience during channel switching are improved.
Drawings
In order to more clearly explain the technical solution of the present application, the drawings needed to be used in the embodiments will be briefly described below, and it is obvious to those skilled in the art that other drawings can be obtained according to the drawings without any creative effort.
Fig. 1 is a schematic structural diagram of a dynamic backlight control system of a television provided in the prior art;
FIG. 2 is a schematic flow chart of an embodiment provided herein;
FIG. 3 is a schematic flow diagram of an embodiment provided herein;
FIG. 4 is a schematic diagram of a three-flow process according to an embodiment provided herein;
FIG. 5 is a schematic flow chart diagram of a fourth embodiment provided herein;
fig. 6 is a schematic flowchart of step S401 provided in the embodiment of the present application;
fig. 7 is another schematic flowchart of step S401 provided in the embodiment of the present application;
FIG. 8 is a schematic flow chart diagram illustrating an embodiment of the present application;
FIG. 9 is a schematic flow chart diagram of an embodiment provided herein;
fig. 10 is a schematic structural diagram of a dynamic backlight control system according to an embodiment of the present application.
Detailed Description
Reference will now be made in detail to the exemplary embodiments, examples of which are illustrated in the accompanying drawings. When the following description refers to the accompanying drawings, like numbers in different drawings represent the same or similar elements unless otherwise indicated. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with the present invention. Rather, they are merely examples of apparatus and methods consistent with certain aspects of the invention, as detailed in the appended claims.
In the prior art, before each frame of video frame is displayed, the video signal state of the video frame needs to be determined, so the processor needs to send a request instruction to the video processor to request to acquire the video signal state of the video frame, but each time the video signal state of the video frame is determined, the computing resource of the CPU needs to be occupied. The method disclosed by the embodiment of the application effectively solves the problem that CPU computing resources are occupied for a long time due to the fact that the video signal state of the video frame is determined.
Example one
Referring to fig. 2, a schematic flow chart of an embodiment provided by the present application is shown.
In step S101, video signal state change information is received.
In the embodiment of the application, after the video frames are received, the video signal state of each frame of video frame is not determined any more, but the video signal change condition of the video frame is monitored, and the display of the video frame is determined according to the video signal change condition of the video frame.
In the embodiment of the application, after the television equipment is started, the video processor automatically detects the video signal state of the video frame, and sends the video signal state change information to the processor after the video signal state of the video frame is detected to change. Or after the video processor receives the video frame, the processor sends a video signal state monitoring instruction to the video processor to control the video processor to monitor the video signal state of the video frame.
In step S102, it is determined whether the video signal state of the current video frame is an abnormal state according to the video signal state change information.
According to the video signal state information of the video frame, whether the video signal state of the current video frame is changed into an abnormal state or not can be determined, or whether the video signal state of the current video frame is changed into a normal state or not can be determined, so that the video signal state of each frame of the video frame does not need to be judged, and only the current operation needs to be changed according to the video signal state change information.
And determining the video signal state of the current video frame according to the video signal state change information, wherein if the video signal state of the current video frame is a normal state, the video signal state is changed from an abnormal state to a normal state, and if the video signal state of the current video frame is an abnormal state, the video signal state is changed from the normal state to the abnormal state. Similarly, if the video signal state change information indicates that the video signal state changes from the normal state to the abnormal state, it indicates that the current video frame is in the abnormal state, and if the video signal state change information indicates that the video signal state changes from the abnormal state to the normal state, it indicates that the current video frame is in the normal state.
In step S103, if the video signal status of the current video frame is an abnormal status, the video image is controlled according to the video image information of the previous video frame until the video signal status of the video frame changes.
When the video signal state of the current video frame is determined to be an abnormal state, the signal state of the video frame is changed from a normal state to an abnormal state, and at the moment, the control processor changes the current operation. In the abnormal state, the video frame cannot be displayed normally, and a black screen or a preset background image may be displayed, so that the control processor controls the video image according to the video image information of the previous video frame.
If the video signal state of each next video frame is an abnormal state, the control processor controls the video image according to the video image information of the previous video frame. That is, when the processor does not receive the video signal state change information, it indicates that the video signal states of the video frames are all abnormal states, and at this time, the processor automatically processes each frame of video frame in an abnormal state without acquiring the video signal state of each frame of video frame until the video signal state change information of the video frame is received, that is, until the video signal state of the video frame changes.
As can be seen from the above description, in the embodiment of the present application, the video processor is controlled to monitor the change of the video signal state, and when it is monitored that the video signal state changes into an abnormal state, the video processor is controlled to process each next frame of video frames according to the abnormal state until the video signal state of the video frame changes. Therefore, the video signal state of each frame of video frame does not need to be acquired, and the operation corresponding to the video signal state information of the current video frame is automatically executed only according to the video signal state change information until the video signal state of the video frame changes, so that the computing resource of the CPU is not occupied for a long time, the computing resource is provided for other operations, and the processing speed of the CPU is increased.
Example two
Referring to fig. 3, a schematic flow chart of an embodiment provided by the present application is shown.
In step S201, video signal state change information is received.
In step S202, it is determined whether the video signal state of the current video frame is an abnormal state according to the video signal state change information.
Step S201 and step S202 can refer to step S101 and step S102 in the first embodiment, and are not described herein again.
In step S203, if the video signal status of the current video frame is a normal status, the video image information of each video frame is calculated, and the video image is controlled according to the video image information until the video signal status of the video frame changes.
If the video signal state of the current video frame is the normal state, the video signal state is changed from the abnormal state to the normal state, at the moment, the processor changes the current operation, the operation when the video frame is the abnormal state is changed into the operation corresponding to the normal state, the video image information of each video frame is calculated, and the video image is controlled according to the video image information until the video signal state of the video frame is changed.
Taking dynamic backlight control as an example, if the current video signal state is determined to be a normal state according to the video signal state change information, the video processor is controlled to calculate the brightness value information of each frame of video frame, and obtain the brightness value information of each frame of video frame, the backlight value is calculated according to a preset algorithm, and the dynamic backlight control module is controlled to work according to the backlight value driving circuit until the video signal state of the video frame changes.
As can be seen from the above description, in the embodiment of the present application, when it is determined that the video signal state of the current video frame is the normal state according to the video signal state change information, the video image information of each video frame is calculated, and the video image is controlled according to the video image information until the video signal state of the video frame changes, so that it is not necessary to acquire the video signal state of each video frame, and therefore it is not necessary to occupy the calculation resources of the CPU for a long time, and the saved calculation resources of the CPU are used for other operations, thereby increasing the processing speed of the CPU.
EXAMPLE III
Referring to fig. 4, a schematic diagram of a flow process according to an embodiment of the present application is provided.
In step S301, video signal state change information is received.
In step S302, a signal state change flag carried in the video signal state information is acquired.
In step S303, it is determined whether the video signal state of the video frame is an abnormal state according to the signal state change flag.
A conventional means for acquiring the video signal status of the current video frame is that when receiving the video signal status change information, the processor sends a request instruction to the video processor to acquire the video signal status of the current video frame from the video processor.
In the embodiment of the present application, after receiving the video signal state change information, the signal state change flag may be obtained from the video signal state change information. For example, the video signal state change information carries a signal state change flag of 1-0, and the 1-0 flag indicates that the video signal state changes from a normal state to an abnormal state, so that when the video signal state change information carries the flag of 1-0, the video signal state of the current video frame can be determined to be the abnormal state according to the 1-0 flag. Similarly, the flag 0-1 indicates that the video signal state changes from the abnormal state to the normal state, and thus, the video signal state of the current video frame can be determined to be the normal state. And the current video frame is a video frame to be displayed.
Or, the signal state change flag is represented as 0 or 1, if the flag is 0, the video signal state is changed from the normal state to the abnormal state, and if the flag is 1, the video signal state is changed from the abnormal state to the normal state.
In step S304, if the video signal status of the current video frame is abnormal, the video image is controlled according to the video image information of the previous video frame until the video signal status of the video frame changes.
As can be seen from the above description, in the embodiment of the present application, the video signal state of the video frame does not need to be acquired in real time, but the video signal state change information sent by the video processor is received, the signal state change flag is extracted from the video signal state change information, and the video signal state of the current video frame is determined according to the signal state change flag. That is, the processor controls the video processor to monitor the change of the video signal, and if the change of the video signal is monitored, sends the video signal change information with a signal state change mark to the processor, wherein the video signal state of the current video frame can be determined according to the signal state change mark. Therefore, in the embodiment of the application, the video signal state of the current video frame after the video signal state is changed can be quickly obtained, so that the storage space of the CPU is further saved.
Example four
Referring to fig. 5, a schematic flow chart of an embodiment four provided in the present application is shown.
In step S401, if a zapping instruction is received, the video processor is controlled to monitor the stability of the video signal state.
When the television equipment switches the television channels, the video processor needs to switch the video resources, and in the process of switching the video resources, the currently played video resources need to be released, and new video resources are switched according to the channel switching instruction. However, in the releasing and acquiring processes, due to the instability of video resources, the state of the video signal is unstable, and the picture displayed on the display interface skips continuously, so that the user experience of the television product is greatly reduced.
In the embodiment of the application, when the channel switching instruction is received, the video processor is controlled to detect the stability of the video signal state. The stability of the video signal state is monitored, the video frame is guaranteed to be played normally after the video signal state is stable, and continuous skipping of a display picture caused by the unstable video signal state is prevented.
Referring to fig. 6, a flowchart of step S401 provided in the embodiment of the present application is shown.
In step S4011, the video processor is controlled to monitor whether the video signal states are all normal states within a preset time period.
Specifically, the video processor is controlled to detect whether the video signal states are normal states within a preset time length. For example, within a preset time duration of 5 seconds, whether the video signal states of each frame of video frame are all normal states is detected. In the time period of switching the video resource, the video signal state in a period of time is normal or abnormal, and after the video signal state is stable, the video signal state of the video frame is in a long-time normal state.
And if the video signal state monitored in the preset time is unstable, restarting the next preset time after the current preset time is finished, and continuously monitoring whether the video signal state in the preset time is a normal state.
In step S4012, if the video processor monitors that the video signal states are all normal states within the preset time period, it is determined that the video signal states are stable.
If the video signal states monitored in the preset time length are all normal states, the video signal states are in a stable state at the moment, and the video frames can be played normally.
Referring to fig. 7, another schematic flow chart of step S401 provided in the embodiment of the present application is shown.
In step S4013, the video processor is controlled to monitor whether the states of the consecutive video signals are all normal states.
In step S4014, if the video processor monitors that the states of the consecutive video signals are all normal states, it is determined that the states of the video signals are stable.
In the embodiment of the application, whether the video signal states are in the stable state or not is determined by monitoring whether the states of the continuous video signals are all in the normal state or not. In specific implementation, whether the 10 video signal states are all normal states can be continuously monitored. The number of specific monitoring can be according to experimental acquisition data, and when switching video resource through the experiment, after handling how many video signals, the video signal state just can be in steady state, gets its mode or average to obtain the number of monitoring video signal.
In step S402, a video signal state stabilization notification sent after the video processor monitors that the video signal state is stable is received.
When the video processor monitors that the state of the video signal is stable, the video processor sends a video signal state stability notification to the processor, and at this time, the state of the video signal is indicated to be a normal state, the processor can control the video processor to process a video frame to be displayed, acquire video image information from the video processor, and control a video image according to the video image information.
In step S403, the video image is controlled according to the video signal state stabilization notification, and the video processor is controlled to monitor a change in the state of the video signal.
When the video signal state stabilization notification is received, the video signal state of the current video frame is a normal state, at the moment, the operation corresponding to the normal state is executed, the video processor is controlled to normally process the video frame, the video image information is obtained, and the video image is controlled according to the video image information. Meanwhile, the video processor is controlled to continuously monitor the state change of the video signal.
As can be seen from the above description, when switching video resources, the processor controls the video processor to stop monitoring the change of the video signal state of the video frame, and controls the video processor to monitor the stability of the video signal state, and when the video signal state is stable, the processor continues to monitor the change of the video signal state. Therefore, the problem of picture skipping caused by unstable video signals in the process of switching resources is solved, and user experience is further improved.
EXAMPLE five
Referring to fig. 8, a schematic flow chart of an embodiment five provided in the present application is shown.
The method provided by the embodiment of the application is applied to a video processor and corresponds to the embodiment. In step S501, the video signal status of the video frame is monitored in real time.
When the video frame is received, the processor controls the video processor to monitor the state change of the video signal of the video frame. The video processor analyzes the current video frame and acquires the video signal state of the current video frame. Comparing the video signal state of the current video frame with the video signal state of the previous video frame, and if the video signal state of the current video frame is the same as the video signal state of the previous video frame, determining that the video signal state is not changed; if the video signal state of the current video frame is different from the video signal state of the previous video frame, video signal state change information is generated.
In step S502, if it is detected that the video signal status of the video frame changes, the video signal status change information is sent to the processor.
And if the video signal state of the current video frame is different from the video signal state of the previous video frame, determining that the video signal state of the video frame is monitored to be changed. At this time, video signal state change information is generated according to the video signal state of the previous video frame and the video signal state of the current video frame, wherein the video signal state change information carries a signal state change mark.
As can be seen from the above description, in the method disclosed in the embodiment of the present application, the video processor does not need to receive the request command of the processor in real time, and feeds back the video signal state of each frame of the video frame in real time according to the request command, and only needs to automatically monitor the video signal state change of the video frame, and if the video signal state of the video frame changes, the signal state change information is automatically sent to the processor, so as to save the computing resources of the processor.
EXAMPLE six
Referring to fig. 9, fig. 9 is a schematic diagram of a sixth flow chart of an embodiment provided by the present application
In step S601, the video signal status of the video frame is monitored in real time.
In step S602, if it is detected that the video signal status of the video frame has changed, the video signal status change information is sent to the processor.
In step S603, after receiving the zapping instruction, it is monitored whether the video signal state is stable.
After receiving the channel switching instruction, the video processor receives a control instruction of the processor, so that the video processor stops monitoring the video signal change and monitors whether the video signal state is stable. The step of monitoring whether the video signal state is stable is not described herein again.
In step S604, if the video signal state is stable, a video signal state stability notification is sent to the processor, and a change in the video signal state is monitored.
And if the video signal state is monitored to be stable, sending a video signal state stability notice to the processor, and controlling the video processor to continuously monitor the change of the video signal state by the processor.
Taking dynamic backlight control as an example, refer to fig. 10, which is a schematic structural diagram of a dynamic backlight control system provided in the embodiment of the present application.
As shown in fig. 10, a signal status monitoring module is provided in the video processor 3, and DB middleware is provided in the processor 2. The signal state monitoring module is used for monitoring the change of the state of the video signal, when the change of the state of the video signal is monitored, the signal state change information is sent to the DB middleware in the processor 2, the DB middleware analyzes the video signal state change information, a signal state change mark in the video signal state change information is extracted, and the video signal state of the current video frame is determined according to the signal state change mark.
If the video signal state of the current video frame is normal, the dynamic backlight algorithm module is controlled to acquire brightness value information from the video decoding module of the video processor 3, a backlight value is calculated according to a preset algorithm and sent to the backlight control module, and the backlight control module controls the driving circuit according to the backlight value, so that the backlight value of the display 1 is controlled.
And if the video signal state of the current video frame is an abnormal state, controlling the dynamic backlight algorithm module to send the backlight value of the previous video frame to the backlight control module, and controlling the backlight control module to control the backlight of the display according to the backlight value of the previous video frame.
As can be seen from the above description, the method disclosed in the embodiment of the present application is applied to a video processor, and when the video processor receives a channel switching instruction, the video processor monitors whether the video signal state is stable, and if the video signal state is stable, the video processor is notified to control the processor to continue monitoring the change of the video signal state. The method in the embodiment of the application corresponds to the method applied to the processor in the embodiment, the video processor monitors the change of the video signal state, does not need to receive the request instruction of the processor in real time, and feeds back the video signal state of each frame of video frame, thereby reducing the occupation of the computing resources of the processor.
The embodiment of the present application further provides an intelligent television, which includes a processor, a video processor, a display and a memory, wherein: the memory is used for storing program codes, and the processor reads the program codes in the memory and executes the methods of the first embodiment to the fourth embodiment; the video processor reads the program codes in the memory and executes the methods of the fifth embodiment and the sixth embodiment; the display is electrically connected with the processor and used for receiving the video image information sent by the processor and displaying the video image according to the video image information.
Other embodiments of the invention will be apparent to those skilled in the art from consideration of the specification and practice of the disclosure herein. This application is intended to cover any variations, uses, or adaptations of the invention following, in general, the principles of the invention and including such departures from the present disclosure as come within known or customary practice within the art to which the invention pertains. It is intended that the specification and examples be considered as exemplary only, with a true scope and spirit of the invention being indicated by the following claims. It will be understood that the invention is not limited to the precise arrangements described above and shown in the drawings and that various modifications and changes may be made without departing from the scope thereof. The scope of the invention is limited only by the appended claims.