Disclosure of Invention
The technical problem to be solved by the present invention is to provide a method for storing pictures in a video playing interface, a mobile terminal and a storage medium, aiming at facilitating a user to quickly store a video interface by selecting and storing pictures in a form of picture data in a current playing interface, aiming at overcoming the above defects in the prior art.
The technical scheme adopted by the invention for solving the technical problem is as follows:
a picture storage method of a video playing interface comprises the following steps:
when the picture detector receives an instruction stored by a user, sending a picture generation detection request signal to the processor;
the processor controls the current video playing interface to generate a plurality of image data according to the image generation detection request signal, and sequentially stores the image data to the data storage module.
The picture storing method for the video playing interface comprises the following steps that the processor controls the current video playing interface to generate a plurality of picture data according to the picture generation detection request signal, and the plurality of picture data are sequentially stored in the memory:
the processor calls a plurality of picture data generation instructions in sequence according to the picture generation detection request signal, and controls the current video playing interface to generate picture data in one-to-one correspondence in sequence;
the processor sequentially outputs a picture generation detection instruction corresponding to each picture data one by one, and controls the picture detector to sequentially detect each picture data;
and after the detection of each picture data is finished, storing the picture data into a memory.
The picture storing method of the video playing interface comprises the following steps of, after the detection of each picture data is completed, storing the picture data into a memory:
when the picture detector does not detect the picture data corresponding to the picture generation detection instruction one by one, the processor recalls the picture data generation instruction corresponding to the picture data one by one and controls the current video playing interface to regenerate the picture data corresponding to one by one.
The picture storing method of the video playing interface comprises the following steps of, after the detection of each picture data is completed, storing the picture data into a memory:
when all the picture data are detected, the picture detector sends a picture detection completion signal to the processor;
and the processor stops outputting the picture to generate a detection instruction according to the picture detection completion signal.
The picture storing method of the video playing interface, wherein after the detection of all the picture data is completed, the picture detector sends a picture detection completion signal to the processor, and the method further comprises the following steps:
and within the preset time, when all the picture data are not detected completely, stopping calling the picture data generation instruction by the processor.
A mobile terminal, comprising a processor and a memory connected to the processor, wherein the memory stores a picture saving program of a video playing interface, and the picture saving program of the video playing interface is used for implementing the following steps when being executed by the processor:
when the picture detector receives an instruction of a user for saving a picture of a current video playing interface, sending a picture generation detection request signal to the processor;
the processor controls the current video playing interface to generate a plurality of image data according to the image generation detection request signal, and sequentially stores the image data to the memory.
The mobile terminal, wherein the picture saving program of the video playing interface is further configured to, when executed by the processor, implement the following steps:
the processor calls a plurality of picture data generation instructions in sequence according to the picture generation detection request signal, and controls the current video playing interface to generate picture data in one-to-one correspondence in sequence;
the processor sequentially outputs a picture generation detection instruction corresponding to each picture data one by one, and controls the picture detector to sequentially detect each picture data;
and after the detection of each picture data is finished, storing the picture data into a memory.
The mobile terminal, wherein the picture saving program of the video playing interface is further configured to, when executed by the processor, implement the following steps:
when the picture detector does not detect the picture data corresponding to the picture generation detection instruction one by one, the processor recalls the picture data generation instruction corresponding to the picture data one by one and controls the current video playing interface to regenerate the picture data corresponding to one by one.
The mobile terminal, wherein the picture saving program of the video playing interface is further configured to, when executed by the processor, implement the following steps:
when all the picture data are detected, the picture detector sends a picture detection completion signal to the processor;
within a preset time, when all the picture data are not detected completely, stopping calling a picture data generation instruction by the processor;
and the processor stops outputting the picture to generate a detection instruction according to the picture detection completion signal.
A storage medium stores a picture saving program of a video playing interface, and the picture saving program of the video playing interface is used for realizing the picture saving method of any one video playing interface when being executed by a processor.
The invention provides a picture storage method of a video playing interface, a mobile terminal and a storage medium, wherein the method comprises the following steps: when the picture detector receives an instruction stored by a user, sending a picture generation detection request signal to the processor; the processor controls the current video playing interface to generate a plurality of image data according to the image generation detection request signal, and sequentially stores the image data to the memory. When the content played by the current video playing interface has reference value or ornamental value, the picture of the current playing interface is selected and stored in the form of picture data, so that a user can conveniently and quickly store the picture of the video interface.
Detailed Description
In order to make the objects, technical solutions and advantages of the present invention clearer and clearer, the present invention is further described in detail below with reference to the accompanying drawings and examples. It should be understood that the specific embodiments described herein are merely illustrative of the invention and are not intended to limit the invention.
Example one
Referring to fig. 1, fig. 1 is a flowchart illustrating a picture saving method based on a video playing interface according to a first preferred embodiment of the present invention. As shown in fig. 1, a method for saving pictures in a video playing interface includes the following steps:
step S100, when the picture detector receives an instruction of a user for saving the picture of the current video playing interface, sending a picture generation detection request signal to the processor.
In the embodiment of the invention, when the mobile terminal plays a video, a user needs to store the picture of the current video playing interface, the picture detector is provided with the picture generation detection unit, and the picture detector monitors in real time through the picture generation detection unit and whether the instruction of the user for storing the picture of the current video playing interface is received. The virtual key can be set on the video playing interface, when the user needs to select to store the picture of the current video playing interface, the virtual key is clicked, and then the picture detector receives the user instruction and stores the picture of the current video playing interface. The picture detector sends a picture generation detection request signal to the processor.
And S200, controlling the current video playing interface to generate picture data by the processor according to the picture generation detection request signal, and sequentially storing the picture data to a memory.
In the embodiment of the invention, the processor controls the current video playing interface to generate the picture data after receiving the picture generation detection request signal. Due to the fact that factors such as formats, resolutions, video quality and the like of videos played by the video playing interface are different, the picture detector sends a picture generation detection request signal to the processor according to the videos played by the video playing interface. For example, corresponding picture generation detection request signals will be employed for different videos to ensure that the videos generating the pictures have better quality.
That is, specifically, step S200 includes the steps of:
s210, the processor calls a plurality of picture data generation instructions in sequence according to the picture generation detection request signal, and controls the current video playing interface to generate picture data corresponding to one another in sequence;
s220, the processor sequentially outputs picture generation detection instructions corresponding to the picture data one by one, and controls the picture detector to sequentially detect the picture data;
s230, after the detection of each picture data is finished, storing the picture data into a memory;
the invention can rapidly store the picture of the current video playing interface, and the picture of the current video playing interface is composed of a plurality of picture data which are recorded as: the image data processing method includes the steps that image data 1, image data 2, and image data n are stored in a processor in advance, and a plurality of image data generation instructions corresponding to one are stored in the processor and recorded as: the image data generating method includes an image data generating instruction 1, an image data generating instruction 2, and an image data generating instruction n, wherein a plurality of image generating detection instructions corresponding to one another are stored in advance in a processor, and are recorded as: the method comprises a picture generation detection instruction 1 and a picture generation detection instruction 2. After the processor calls a picture data generation instruction 1 according to the picture generation detection request signal, the processor controls the current video playing interface to generate the picture data 1, meanwhile, the processor outputs a picture generation detection instruction 1, controls the picture detector to detect the picture data 1, and detects whether the picture data 1 corresponds to the picture data generation instruction 1. When the picture detector detects the picture data 1 and the picture data 1 corresponds to the picture generation detection instruction 1 one by one, the picture data 1 is stored in the memory. Then, the processor continues to call the picture data generation instruction 2, controls the current video playing interface to generate the picture data 2, meanwhile, the processor outputs the picture generation detection instruction 2, controls the picture detector to detect the picture data 2, and detects whether the picture data 2 corresponds to the picture data generation instruction 2. When the picture detector detects the picture data 2 and the picture data 2 corresponds to the picture generation detection instructions 2 one by one, the picture data 2 is stored in the memory, and by analogy, the picture data n is stored in the memory. The processor may continue to call the picture data generation instruction 2, and may also perform the operation after the processor controls the current video playing interface to generate the picture data 1, that is, a next picture data generation instruction is called after the last picture data is generated, so as to accelerate the picture saving speed.
The method further comprises the following steps after the step S230:
and S240, when the picture detector does not detect the picture data corresponding to the picture generation detection instruction one by one, the processor recalls the picture data generation instruction corresponding to the picture data one by one, and controls the current video playing interface to regenerate the picture data corresponding to one by one.
Specifically, if the picture detector does not detect the picture data, or the detected picture data does not correspond to the picture generation detection instruction one by one, the processor recalls the picture data generation instruction corresponding to the picture data one by one, and controls the current video playing interface to regenerate the picture data corresponding to one by one. In order to avoid that the picture is stored wrongly and the complete picture of the current video playing interface cannot be obtained, the detected picture data is not in one-to-one correspondence with the picture generation detection instruction.
The method further comprises the following steps after the step S230:
s250, after all the picture data are detected, the picture detector sends a picture detection completion signal to the processor;
specifically, step S250 includes the steps of:
and step 251, in a preset time, when the detection of all the picture data is not completed, stopping calling the picture data generation instruction by the processor.
And S260, stopping outputting the picture to generate a detection instruction by the processor according to the picture detection completion signal.
And after all the picture data are detected, namely the picture data 1-the picture data n are detected, the memory stores the complete picture of the current video playing interface, the picture detector sends a picture detection completion signal to the processor, and the processor stops outputting the picture to generate a detection instruction according to the picture detection completion signal. Certainly, within the preset time, when all the picture data detection is not completed, the processor stops calling the picture data generation instruction and prompts that the picture storage of the current video playing interface fails.
In the present invention, a plurality of sets of picture data generation instructions can be set according to different picture generation detection request signals, and are recorded as: a set of picture data generation instructions, b set of picture data generation instructions. Each group of picture data generation instructions comprises: a picture data generation instruction 1, a picture data generation instruction 2. Similarly, a plurality of picture generation detection instructions are correspondingly set, due to the fact that factors such as formats, resolutions and video quality of videos are different, pictures of a current video playing interface are different, different picture data generation methods are adopted for different videos, and therefore the picture storage process can be further accelerated.
Of course, it can be understood by those skilled in the art that all or part of the processes in the method of the above embodiments can be implemented by instructing relevant hardware (such as a processor, a controller, etc.) through a picture saving program of a video playing interface, where the program can be stored in a computer readable storage medium, and the program can include the processes of the above method embodiments when executed. The storage medium may be a memory, a magnetic disk, an optical disk, etc.
Example two
An embodiment of the present invention further provides a mobile terminal, as shown in fig. 2, the mobile terminal of the embodiment of the present invention may be a mobile phone (or a tablet computer), where the mobile terminal of the embodiment includes a processor 10 and a memory 20 connected to the processor 10;
the memory 20 stores a picture saving program of a video playing interface, and the picture saving program of the video playing interface is used for realizing the following steps when being executed by the processor 10:
when the picture detector receives an instruction of a user for saving a picture of a current video playing interface, sending a picture generation detection request signal to the processor;
the processor controls the current video playing interface to generate a plurality of image data according to the image generation detection request signal, and sequentially stores the image data to the memory; as described above.
Further, when the processor 10 executes the picture saving program of the video playing interface, the following steps are also implemented:
the processor calls a plurality of picture data generation instructions in sequence according to the picture generation detection request signal, and controls the current video playing interface to generate picture data in one-to-one correspondence in sequence;
the processor sequentially outputs a picture generation detection instruction corresponding to each picture data one by one, and controls the picture detector to sequentially detect each picture data;
after the detection of each picture data is finished, storing the picture data into a memory; as described above.
Further, when the processor 10 executes the picture saving program of the video playing interface, the following steps are also implemented:
when the picture detector does not detect the picture data corresponding to the picture generation detection instruction one by one, the processor recalls the picture data generation instruction corresponding to the picture data one by one and controls the current video playing interface to regenerate the picture data corresponding to one by one; as described above.
Further, when the processor 10 executes the picture saving program of the video playing interface, the following steps are also implemented:
when all the picture data are detected, the picture detector sends a picture detection completion signal to the processor;
within a preset time, when all the picture data are not detected completely, stopping calling a picture data generation instruction by the processor;
the processor stops outputting the picture to generate a detection instruction according to the picture detection completion signal; as described above.
EXAMPLE III
A storage medium, wherein the storage medium stores a picture saving program of a video playing interface, and the picture saving program of the video playing interface is used for implementing a picture saving method of the video playing interface when being executed by a processor 10; as described above.
In summary, the present invention discloses a picture saving method for a video playing interface, a mobile terminal and a storage medium, wherein the method comprises: when the picture detector receives an instruction stored by a user, sending a picture generation detection request signal to the processor; the processor controls the current video playing interface to generate a plurality of image data according to the image generation detection request signal, and sequentially stores the image data to the memory. When the content played by the current video playing interface has reference value or ornamental value, the picture of the current playing interface is selected and stored in the form of picture data, so that a user can conveniently and quickly store the picture of the video interface.
It is to be understood that the invention is not limited to the examples described above, but that modifications and variations may be effected thereto by those of ordinary skill in the art in light of the foregoing description, and that all such modifications and variations are intended to be within the scope of the invention as defined by the appended claims.