CN108449625B - Video screenshot method, device and terminal - Google Patents

Video screenshot method, device and terminal Download PDF

Info

Publication number
CN108449625B
CN108449625B CN201810088794.XA CN201810088794A CN108449625B CN 108449625 B CN108449625 B CN 108449625B CN 201810088794 A CN201810088794 A CN 201810088794A CN 108449625 B CN108449625 B CN 108449625B
Authority
CN
China
Prior art keywords
screenshot
instruction
executed
command
instructions
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201810088794.XA
Other languages
Chinese (zh)
Other versions
CN108449625A (en
Inventor
连冠荣
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Shenzhen Idreamsky Technology Co ltd
Original Assignee
Shenzhen Idreamsky Technology Co ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Shenzhen Idreamsky Technology Co ltd filed Critical Shenzhen Idreamsky Technology Co ltd
Priority to CN201810088794.XA priority Critical patent/CN108449625B/en
Publication of CN108449625A publication Critical patent/CN108449625A/en
Application granted granted Critical
Publication of CN108449625B publication Critical patent/CN108449625B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/43Processing of content or additional data, e.g. demultiplexing additional data from a digital video stream; Elementary client operations, e.g. monitoring of home network or synchronising decoder's clock; Client middleware
    • H04N21/433Content storage operation, e.g. storage operation in response to a pause request, caching operations
    • H04N21/4334Recording operations
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/43Processing of content or additional data, e.g. demultiplexing additional data from a digital video stream; Elementary client operations, e.g. monitoring of home network or synchronising decoder's clock; Client middleware
    • H04N21/443OS processes, e.g. booting an STB, implementing a Java virtual machine in an STB or power management in an STB
    • H04N21/4431OS processes, e.g. booting an STB, implementing a Java virtual machine in an STB or power management in an STB characterized by the use of Application Program Interface [API] libraries
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/47End-user applications
    • H04N21/478Supplemental services, e.g. displaying phone caller identification, shopping application
    • H04N21/4781Games

Abstract

The invention discloses a video screenshot method, a video screenshot device and a video screenshot terminal, and belongs to the technical field of computer application. The method comprises the following steps: acquiring a screenshot request of a video, generating a screenshot command according to the screenshot request, and storing the screenshot command so as to generate a corresponding screenshot when the screenshot command is executed. In addition, a video screenshot device and a terminal are also provided. The video screenshot method, the video screenshot device and the video screenshot terminal can reduce the data size saved for the video screenshot on the premise of ensuring the video screenshot quality.

Description

Video screenshot method, device and terminal
Technical Field
The invention relates to the technical field of computer application, in particular to a video screenshot method, a video screenshot device and a video screenshot terminal.
Background
With the popularization of the internet, the network game has become a popular game mode, and in the network game, screenshots of game video pictures are usually sent to other users so as to further enhance the interaction among the users.
Currently, the existing video screenshot methods are based on frame buffer storage and compression to realize video spinous processes. However, by frame buffer storage and compression methods, the size of the generated video screenshot file is proportional to the screen resolution, color resolution, frame rate, etc. With the increasing screen resolution, if each pixel data in the video image frame is stored and compressed, the data volume of the generated video screenshot file is larger; if only partial pixel data in the video image frame is stored and compressed, the quality of the screenshot generated according to the video screenshot file will be affected.
Therefore, reducing the data size when storing the video screenshot on the premise of ensuring the quality of the video screenshot becomes an urgent problem to be solved.
Disclosure of Invention
In order to solve the technical problem that the data volume during storing the video screenshot cannot be reduced on the premise of ensuring the quality of the video screenshot in the related technology, the invention provides a video screenshot method, a video screenshot device and a video screenshot terminal.
In a first aspect, a video screenshot method is provided, including:
acquiring a screenshot request of a video;
generating a screenshot instruction according to the screenshot request;
and saving the screenshot command so as to generate a corresponding screenshot when the screenshot command is executed.
In a second aspect, a video capture device is provided, which includes:
the screenshot instruction generating module is used for generating a screenshot instruction according to the video screenshot request, wherein the screenshot instruction comprises a graphic instruction and an input parameter thereof;
the same instruction searching module is used for searching executed instructions which are the same as the graphic instructions and the input parameters thereof in the screenshot instructions from instruction execution records;
and the index replacement module is used for performing index replacement on the graphic instruction and the input parameters thereof in the screenshot instruction according to the executed instruction.
In a third aspect, a terminal is provided, where the terminal includes:
at least one processor; and
a memory communicatively coupled to the at least one processor; wherein the content of the first and second substances,
the memory stores instructions executable by the at least one processor to enable the at least one processor to perform the method of the first aspect.
In a fourth aspect, there is provided a computer readable storage medium storing a program, characterized in that the program, when executed, causes a terminal to perform the method of the first aspect.
The technical scheme provided by the embodiment of the invention can obtain the following beneficial effects:
when the video screenshot is carried out, a screenshot request for the video is obtained, a screenshot command is generated according to the screenshot request, and the screenshot command is stored so that the corresponding screenshot is generated when the screenshot command is executed, so that the screenshot command for generating the video screenshot is only required to be stored when the video screenshot is stored, all pixel data of the screenshot is not required to be stored, the data volume of the screenshot command is much smaller than that of image data, and the data volume when the video screenshot is stored is greatly reduced on the premise of not influencing the image quality of the video screenshot.
It is to be understood that both the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the invention, as claimed.
Drawings
The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the invention and together with the description, serve to explain the principles of the invention.
FIG. 1 is a flow diagram illustrating a method of video capture in accordance with an exemplary embodiment.
FIG. 2 is a diagram illustrating a system architecture according to an exemplary embodiment.
Fig. 3 is a flowchart illustrating a specific implementation of step S130 in the video screenshot method according to the corresponding embodiment of fig. 1.
Fig. 4 is a flowchart illustrating a specific implementation of step S132 in the video screenshot method according to the corresponding embodiment of fig. 3.
Fig. 5 is a flowchart of another video capture method according to the corresponding embodiment of fig. 1.
Fig. 6 is a flowchart illustrating a specific implementation of step S210 in the video screenshot method according to the corresponding embodiment of fig. 5.
FIG. 7 is a block diagram illustrating a video capture device in accordance with an exemplary embodiment.
Fig. 8 is a block diagram of a screenshot saving module 130 in the video screenshot device according to the corresponding embodiment shown in fig. 7.
Fig. 9 is a block diagram of an index replacing unit 132 in the video capture apparatus according to the corresponding embodiment shown in fig. 8.
Fig. 10 is a block diagram of another video capture device according to the corresponding embodiment of fig. 7.
Fig. 11 is a block diagram of an instruction execution module 210 in the video capture device according to the corresponding embodiment shown in fig. 10.
Fig. 12 is a block diagram of an instruction execution module 210 in the video capture device according to the corresponding embodiment shown in fig. 11.
Fig. 13 is a block diagram illustrating a terminal according to an example embodiment.
Detailed Description
Reference will now be made in detail to the exemplary embodiments, examples of which are illustrated in the accompanying drawings. 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 set forth in the claims below.
Fig. 1 is a flow diagram illustrating a method of video capture, which may include the following steps, as shown in fig. 1, according to an example embodiment.
In step S110, a screenshot request for a video is acquired.
The screenshot request is an instruction command for screenshot of the video, which is generated by triggering of a screenshot operation of the user.
Specifically, the user may capture a screenshot of the entire display area of the video, or capture a screenshot of a specific area in the entire display area of the video.
In step S120, a screenshot command is generated according to the screenshot request.
The screenshot command comprises a graphic function and an input parameter thereof, and the screenshot image is restored by executing a plurality of graphic functions in the screenshot command according to the corresponding input parameter.
It can be understood that the screenshot operations performed by the user are different, the generated screenshot requests will be different, and further, the graphic functions and the input parameters thereof in the screenshot command will be different.
In different screenshot commands, certain differences exist between the graphic function and the input parameters of the graphic function.
In an exemplary embodiment, the graphics function is an API (Application Programming Interface) function, typically, a plurality of API functions are predefined in the DirectX and OpenG L systems, the graphics function in the screenshot instruction is one or more of the predefined API functions of the systems, and the input parameter is an input status parameter of each API function.
For example, FIG. 2 is a block diagram of a system shown in accordance with an exemplary embodiment. The input parameters of each API function include input state parameters of the API function, such as vertex buffer, index buffer, vertex attribute, rendering state, shader parameter buffer, and texture state.
In step S130, the screenshot command is saved, so that a corresponding screenshot is generated when the screenshot command is executed.
And generating a corresponding screenshot when the screenshot command is executed according to the screenshot command by storing the screenshot command.
The screenshot command may be stored in a cache of the terminal or may be stored in a memory of the terminal, which is not limited herein.
By the method, after the video is subjected to screenshot, only the generated screenshot instruction needs to be stored, all pixel data of the screenshot does not need to be stored, and the screenshot instruction is much smaller than the data volume of the image data, so that the data volume when the video screenshot is stored is greatly reduced on the premise of not influencing the image quality of the video screenshot.
Fig. 3 is a detailed description of step S130 in the video screenshot method shown in the corresponding embodiment of fig. 1, where step S130 in the video screenshot method may include the following steps:
in step S131, an executed instruction identical to the screenshot instruction is searched for from the instruction execution record.
The instruction execution record is a record for storing executed instructions executed in the historical screenshot operation.
If a graphic function and its input parameter in the screenshot command are identical to a certain executed command in the command execution record, it indicates that the graphic command is executed in the previous screenshot operation.
In step S132, index replacement is performed on the screenshot command according to the executed command.
The method has the advantages that the graphic functions executed in the historical screenshot operation in the screenshot command and the input parameters thereof are subjected to index replacement, so that the screenshot command is compressed and stored, and the data volume of the screenshot command is further reduced.
In the screenshot command, if the screenshot command is completely the same as the executed command in the command execution record, it indicates that the screenshot command is executed in the previous screenshot operation. Therefore, the screenshot command is subjected to index replacement, the screenshot command which is executed once does not need to be stored in a graphic function and input parameters thereof, and the graphic function and the input parameters thereof in different screenshot commands have strong repeatability, so that the data volume of the screenshot command is greatly reduced, and when the screenshot is displayed, all the screenshot commands are executed, all the image data of the video screenshot is restored, and the quality of the video screenshot is ensured.
Fig. 4 is a detailed description of step S132 in the video screenshot method shown in the corresponding embodiment of fig. 3, where step S132 may include the following steps:
in step S1321, an index instruction is generated from the call address of the executed instruction.
The call address of the executed instruction is an identification address of the executed instruction in the instruction execution record to which the call is made.
The call address may be a storage address of the executed instruction, an identification name of the executed instruction, or other types of identifications, where the identification type of the call address is not limited herein.
The index instruction is an index indication generated from the call address.
By indexing the instructions, the corresponding executed instruction can be uniquely located.
It should be noted that the index instruction is distinguished from the GPU virtual machine instruction.
In a specific exemplary embodiment, if the most significant MSB of an instruction is 1, then the instruction is a GPU virtual machine instruction; if the most significant MSB of an instruction is 0, the instruction is an index instruction.
In step S1322, the screenshot command is replaced with an index command.
Because the screenshot instruction which is the same as the executed instruction in the instruction execution record is executed once, the executed instruction in the instruction execution record is pointed by the index instruction, and when the screenshot instruction is executed again, the executed instruction in the instruction execution record pointed by the index instruction is executed, so that the instruction execution accuracy is ensured, graphic eucalyptus and input parameters thereof in the corresponding screenshot instruction do not need to be stored one by one, and the data volume of the screenshot instruction is further reduced.
Optionally, as shown in fig. 5, after step S130 in the embodiment corresponding to fig. 1, the video screenshot method may further include the following steps.
In step S210, the screenshot instruction is executed in the execution order.
It should be noted that, when displaying the image of the screenshot to the screenshot command, all the screenshot commands corresponding to the screenshot need to be executed.
And each screenshot instruction has a certain execution sequence, and when the screenshot instruction is executed, each screenshot instruction needs to be executed according to the execution sequence of the screenshot instruction.
The execution sequence is the execution sequence of all screenshot instructions in all screenshot instructions corresponding to the screenshot.
It should be noted that, in all screenshot commands generated according to one screenshot request, there may be a case that the same screenshot command is to be executed multiple times.
For example, the screenshot instructions generated according to the screenshot request P sequentially include screenshot instructions a1, a2, A3, a1 and A3, namely, the screenshot instructions a1 and A3 are all executed twice.
In different screenshot commands, the graphics function may be the same, but only the input parameters of the graphics function are different.
For example, in the screenshot command a1, the graphic function is b1, and the input parameter x1 of the graphic function b 1; in the screenshot command a2, the graphic function is b1, and the input parameter x2 of the graphic function b1 is used. It can be seen that the screenshot instruction a1 is the same as the graphical function in screenshot instruction a2, but only the input parameters of the graphical function are different.
In step S220, a corresponding screenshot is generated through execution of the screenshot instruction.
Through the input parameters of the graphic function, in the execution process of the screenshot command, the graphic API can direct the graphic hardware (GPU) to perform image rendering, generate and display the corresponding screenshot.
Optionally, as shown in fig. 6, the screenshot instruction includes a graphic instruction and an index instruction, and when the screenshot instruction is executed, step S210 may further include the following steps.
In step S211, it is determined whether the executed screenshot command is a graphics command, and if yes, step S212 is executed; if not (N), step S213 is executed.
When the screenshot command is a graphic command, the graphic command is not executed before, so that when the graphic command is executed, the graphic command is stored in the command execution record as an executed command, and further in the subsequent screenshot operation, the executed command in the command execution record is pointed by the index command without storing the graphic command in the form of a graphic function and an input parameter of the graphic function, so that the data volume of the screenshot command is greatly reduced, and the occupied space is saved.
When the screenshot instruction is an index instruction, the executed instruction pointed by the index instruction is indicated to have been executed once, so that the executed instruction pointed by the index instruction only needs to be executed again.
In step S212, the graphics instruction is executed and saved in the instruction execution record as an executed instruction.
In step S213, the executed instruction pointed to by the index instruction is acquired and executed.
By the method, when the screenshot command is subjected to image restoration of screenshot, whether the screenshot command is a graphic command or not is judged in advance, and when the graphic command is executed, the graphic command is stored in the command execution record in the form of the executed command, so that when the same graphic command appears in the screenshot command in the subsequent screenshot operation process, the graphic command only needs to be stored in the form of an index command, the data volume of the screenshot command is further reduced, and the occupied space during storage is saved.
The following is an embodiment of a system of the present invention, which may be used to implement the above-described embodiment of the video screenshot method. For details not disclosed in the embodiment of the system of the present invention, please refer to the embodiment of the video capture method of the present invention.
FIG. 7 is a block diagram illustrating a video capture device according to an exemplary embodiment, including but not limited to: a screenshot request acquisition module 110, a screenshot instruction generation module 120 and a screenshot instruction storage module 130.
A screenshot request acquisition module 110, configured to acquire a screenshot request for a video;
a screenshot instruction generating module 120, configured to generate a screenshot instruction according to the screenshot request;
and a screenshot instruction storage module 130, configured to store a screenshot instruction, so that a corresponding screenshot is generated when the screenshot instruction is executed.
The implementation processes of the functions and actions of each module in the device are specifically detailed in the implementation processes of the corresponding steps in the video screenshot method, and are not described herein again.
Optionally, as shown in fig. 8, the screenshot instruction saving module 130 shown in the embodiment corresponding to fig. 7 includes but is not limited to: the same instruction lookup unit 131 and the index replacement unit 132.
The same instruction searching unit 131 is configured to search, from the instruction execution record, an executed instruction that is the same as the graphics instruction in the screenshot instruction and the input parameter thereof;
and the index replacing unit is used for replacing the index of the screenshot instruction according to the executed instruction.
Optionally, as shown in fig. 9, the index replacing unit 132 shown in the embodiment corresponding to fig. 8 includes but is not limited to: an index instruction generation subunit 1321 and an instruction replacement subunit 1322.
An index instruction generation subunit 1321 configured to generate an index instruction according to a call address of an executed instruction;
and the instruction replacing subunit 1322 is configured to replace the screenshot instruction with the index instruction.
Optionally, as shown in fig. 10, the video screenshot apparatus shown in the embodiment corresponding to fig. 7 further includes but is not limited to: an instruction execution module 210 and a screenshot generation module 220.
An instruction execution module 210, configured to execute the screenshot instructions according to an execution sequence;
and the screenshot generating module 220 is configured to generate a corresponding screenshot through execution of the screenshot instruction.
Optionally, as shown in fig. 11, the instruction execution module 210 shown in the embodiment corresponding to fig. 10 includes but is not limited to: a graphics instruction determination unit 211 and an execution saving unit 212.
A graphic instruction determination unit 211, configured to determine whether the executed screenshot instruction is a graphic instruction;
and the execution saving unit 212 is used for executing the graphics instruction and saving the graphics instruction in the instruction execution record as an executed instruction when the screenshot instruction is not the graphics instruction.
Optionally, as shown in fig. 12, the instruction execution module 210 shown in the corresponding embodiment of fig. 11 further includes, but is not limited to, an executed instruction obtaining unit 213 and an execution unit 214.
An executed instruction obtaining unit 213, configured to, when the executed screenshot instruction is an index instruction, obtain an executed instruction pointed by the index instruction;
execution unit 214 to execute the executed instructions.
Fig. 13 is a block diagram illustrating a terminal 100 according to an example embodiment. Referring to fig. 13, the terminal 100 may include one or more of the following components: a processing component 101, a memory 102, a power component 103, a multimedia component 104, an audio component 105, a sensor component 107 and a communication component 108. The above components are not all necessary, and the terminal 100 may add other components or reduce some components according to its own functional requirements, which is not limited in this embodiment.
The processing component 101 generally controls overall operations of the terminal 100, such as operations associated with display, telephone calls, data communications, camera operations, and log data processing. The processing components 101 may include one or more processors 109 to execute instructions to perform all or a portion of the above-described operations. Further, the processing component 101 may include one or more modules that facilitate interaction between the processing component 101 and other components. For example, the processing component 101 may include a multimedia module to facilitate interaction between the multimedia component 104 and the processing component 101.
The memory 102 is configured to store various types of data to support operations at the terminal 100. Examples of such data include instructions for any application or method operating on terminal 100. The Memory 102 may be implemented by any type of volatile or non-volatile Memory device or combination thereof, such as an SRAM (Static Random access Memory), an EEPROM (Electrically Erasable Programmable Read-Only Memory), an EPROM (Erasable Programmable Read-Only Memory), a PROM (Programmable Read-Only Memory), a ROM (Read-Only Memory), a magnetic Memory, a flash Memory, a magnetic disk, or an optical disk. Also stored in memory 102 are one or more modules configured to be executed by the one or more processors 109 to perform all or a portion of the steps of any of the methods illustrated in fig. 1, 2, 3, 4, and 7.
The power supply component 103 provides power to the various components of the terminal 100. The power components 103 may include a power management system, one or more power sources, and other components associated with generating, managing, and distributing power for the terminal 100.
The multimedia component 104 includes a screen providing an output interface between the terminal 100 and a user, in some embodiments, the screen may include L CD (L acquired Crystal Display) and TP (touch Panel). if the screen includes a touch panel, the screen may be implemented as a touch screen to receive input signals from the user.
The audio component 105 is configured to output and/or input audio signals. For example, the audio component 105 includes a microphone configured to receive external audio signals when the terminal 100 is in an operational mode, such as a call mode, a recording mode, and a voice recognition mode. The received audio signals may further be stored in the memory 102 or transmitted via the communication component 108. In some embodiments, audio component 105 also includes a speaker for outputting audio signals.
The sensor assembly 107 includes one or more sensors for providing various aspects of state assessment for the terminal 100. For example, the sensor assembly 107 can detect an open/close state of the terminal 100, a relative positioning of the components, a change in coordinates of the terminal 100 or a component of the terminal 100, and a change in temperature of the terminal 100. In some embodiments, the sensor assembly 107 may also include a magnetic sensor, a pressure sensor, or a temperature sensor.
The communication component 108 is configured to facilitate communications between the terminal 100 and other devices in a wired or wireless manner. The terminal 100 may access a WIreless network based on a communication standard, such as WiFi (WIreless-Fidelity), 2G or 3G, or a combination thereof. In an exemplary embodiment, the communication component 108 receives a broadcast signal or broadcast related information from an external broadcast management system via a broadcast channel. In an exemplary embodiment, the Communication component 108 further includes a Near Field Communication (NFC) module to facilitate short-range Communication. For example, the NFC module may be implemented based on an RFID (Radio Frequency Identification) technology, an IrDA (Infrared data association) technology, an UWB (Ultra-Wideband) technology, a BT (Bluetooth) technology, and other technologies.
In an exemplary embodiment, the terminal 100 may be implemented by one or more ASICs (Application specific integrated circuits), DSPs (Digital Signal processors), P L D (Programmable logic devices), FPGAs (Field Programmable gate arrays), controllers, microcontrollers, microprocessors or other electronic components for performing the above-described methods.
The specific manner in which the processor in the terminal in this embodiment performs operations has been described in detail in the embodiment related to the video capture method, and will not be elaborated here.
Optionally, the present invention further provides a terminal, which executes all or part of the steps of any one of the video screenshot methods shown in the foregoing embodiments. The terminal includes:
at least one processor; and
a memory communicatively coupled to the at least one processor; wherein the content of the first and second substances,
the memory stores instructions executable by the at least one processor to enable the at least one processor to perform a method according to any one of the above exemplary embodiments.
The specific manner in which the processor in the terminal in this embodiment performs operations has been described in detail in the embodiment related to the video capture method, and will not be elaborated here.
In an exemplary embodiment, a storage medium is also provided that is a computer-readable storage medium, such as may be transitory and non-transitory computer-readable storage media, including instructions. The storage medium includes, for example, the memory 102 of instructions executable by the processor 109 of the terminal 100 to perform the video capture method described above.
It is to 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 effected therein by one skilled in the art without departing from the scope thereof. The scope of the invention is limited only by the appended claims.

Claims (12)

1. A method for video capture, the method comprising:
acquiring a screenshot request of a video;
generating a screenshot instruction according to the screenshot request; the screenshot instruction comprises a graphic function and input parameters thereof, wherein the graphic function is an API (application programming interface) function; restoring the screenshot image by executing a plurality of graphic functions in the screenshot command according to the corresponding input parameters;
saving the screenshot command so as to generate a corresponding screenshot when the screenshot command is executed;
the step of saving the screenshot command so that the corresponding screenshot is generated when the screenshot command is executed comprises the following steps:
searching an executed instruction which is the same as the screenshot instruction from an instruction execution record;
and carrying out index replacement on the screenshot instruction according to the executed instruction.
2. The method of claim 1, wherein the step of performing index replacement on the screenshot instruction according to the executed instruction comprises:
generating an index instruction according to the call address of the executed instruction;
and replacing the screenshot instruction by adopting the index instruction.
3. The method of claim 1, wherein after the step of saving the screenshot instruction so that the corresponding screenshot is generated when the screenshot instruction is executed, the method further comprises:
executing the screenshot instructions according to an execution sequence;
and generating a corresponding screenshot through the execution of the screenshot instruction.
4. The method of claim 3, wherein the screenshot instructions include graphical instructions and indexing instructions, and wherein executing the screenshot instructions in execution order further comprises:
judging whether the executed screenshot command is a graphic command or not, if so, judging whether the executed screenshot command is a graphic command or not
And executing the graphics instructions, and saving the graphics instructions in the instruction execution record as executed instructions.
5. The method of claim 4, wherein the step of executing the screenshot instructions in execution order further comprises:
when the executed screenshot instruction is an index instruction, acquiring an executed instruction pointed by the index instruction;
executing the executed instruction.
6. A video capture device, the device comprising:
a screenshot request acquisition module for acquiring a screenshot request of a video;
the screenshot instruction generating module is used for generating a screenshot instruction according to the screenshot request; the screenshot instruction comprises a graphic function and input parameters thereof, wherein the graphic function is an API (application programming interface) function; restoring the screenshot image by executing a plurality of graphic functions in the screenshot command according to the corresponding input parameters;
the screenshot instruction storage module is used for storing the screenshot instruction so as to generate a corresponding screenshot when the screenshot instruction is executed;
the screenshot instruction storage module comprises:
the same instruction searching unit is used for searching an executed instruction which is the same as the screenshot instruction from an instruction execution record;
and the index replacing unit is used for performing index replacement on the screenshot instruction according to the executed instruction.
7. The apparatus of claim 6, wherein the index replacing unit comprises:
the index instruction generation subunit is used for generating an index instruction according to the call address of the executed instruction;
and the instruction replacing subunit is used for replacing the screenshot instruction by adopting the index instruction.
8. The apparatus of claim 6, further comprising:
the instruction execution module is used for executing the screenshot instructions according to an execution sequence;
and the screenshot generating module is used for generating a corresponding screenshot through the execution of the screenshot command.
9. The apparatus of claim 8, wherein the instructions in the screenshot instructions comprise graphics instructions and indexing instructions, and wherein the instruction execution module comprises:
the graphic instruction judging unit is used for judging whether the executed screenshot instruction is a graphic instruction or not;
and the execution and storage unit is used for executing the graphic instruction and storing the graphic instruction in the instruction execution record as an executed instruction when the screenshot instruction is not the graphic instruction.
10. The apparatus of claim 9, wherein the instructions in the screenshot instructions comprise graphics instructions and indexing instructions, and wherein the instruction execution module further comprises:
the executed instruction acquisition unit is used for acquiring an executed instruction pointed by an index instruction when the executed screenshot instruction is the index instruction;
an execution unit to execute the executed instruction.
11. A terminal, characterized in that the terminal comprises:
at least one processor; and
a memory communicatively coupled to the at least one processor; wherein the content of the first and second substances,
the memory stores instructions executable by the at least one processor to enable the at least one processor to perform the method of any one of claims 1-5.
12. A computer-readable storage medium storing a program, characterized in that the program, when executed, causes a terminal to perform the method according to any one of claims 1-5.
CN201810088794.XA 2018-01-30 2018-01-30 Video screenshot method, device and terminal Active CN108449625B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810088794.XA CN108449625B (en) 2018-01-30 2018-01-30 Video screenshot method, device and terminal

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810088794.XA CN108449625B (en) 2018-01-30 2018-01-30 Video screenshot method, device and terminal

Publications (2)

Publication Number Publication Date
CN108449625A CN108449625A (en) 2018-08-24
CN108449625B true CN108449625B (en) 2020-08-07

Family

ID=63191197

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810088794.XA Active CN108449625B (en) 2018-01-30 2018-01-30 Video screenshot method, device and terminal

Country Status (1)

Country Link
CN (1) CN108449625B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20220206645A1 (en) * 2020-12-30 2022-06-30 Google Llc Management of screen content capture

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104866318A (en) * 2015-06-05 2015-08-26 北京金山安全软件有限公司 Method and device for displaying label pages in multiple windows
CN105224315A (en) * 2015-09-11 2016-01-06 北京金山安全软件有限公司 Method and device for acquiring screen capture
CN105979383A (en) * 2016-06-03 2016-09-28 北京小米移动软件有限公司 Image acquisition method and device
CN106406862A (en) * 2016-08-31 2017-02-15 福建省天奕网络科技有限公司 Screen acquisition method and system
CN107515759A (en) * 2017-09-20 2017-12-26 武汉斗鱼网络科技有限公司 Screenshotss method, apparatus, electronic equipment and readable storage medium storing program for executing
CN107589979A (en) * 2017-09-26 2018-01-16 新华三云计算技术有限公司 A kind of terminal screenshot method and device based on virtual desktop

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20020174181A1 (en) * 2001-04-13 2002-11-21 Songxiang Wei Sharing OpenGL applications using application based screen sampling
US20030050883A1 (en) * 2001-07-17 2003-03-13 Weir Jonathan D. Method and device for providing asset information
US7974961B2 (en) * 2008-02-15 2011-07-05 Computer Associates Think, Inc. Method and apparatus to facilitate the creating and altering of index objects on tables

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104866318A (en) * 2015-06-05 2015-08-26 北京金山安全软件有限公司 Method and device for displaying label pages in multiple windows
CN105224315A (en) * 2015-09-11 2016-01-06 北京金山安全软件有限公司 Method and device for acquiring screen capture
CN105979383A (en) * 2016-06-03 2016-09-28 北京小米移动软件有限公司 Image acquisition method and device
CN106406862A (en) * 2016-08-31 2017-02-15 福建省天奕网络科技有限公司 Screen acquisition method and system
CN107515759A (en) * 2017-09-20 2017-12-26 武汉斗鱼网络科技有限公司 Screenshotss method, apparatus, electronic equipment and readable storage medium storing program for executing
CN107589979A (en) * 2017-09-26 2018-01-16 新华三云计算技术有限公司 A kind of terminal screenshot method and device based on virtual desktop

Also Published As

Publication number Publication date
CN108449625A (en) 2018-08-24

Similar Documents

Publication Publication Date Title
US10958850B2 (en) Electronic device and method for capturing image by using display
CN108702480B (en) Electronic device and method for driving display thereof
CN104869305B (en) Method and apparatus for processing image data
CN111930442B (en) Page view loading method and device, storage medium and electronic equipment
EP3173923A1 (en) Method and device for image display
CN113313804B (en) Image rendering method and device, electronic equipment and storage medium
CN110795172B (en) Foreground process control method and device, electronic equipment and storage medium
CN113038141B (en) Video frame processing method and electronic equipment
CN108449625B (en) Video screenshot method, device and terminal
US11600300B2 (en) Method and device for generating dynamic image
CN106302821B (en) Data request method and equipment thereof
CN115630241A (en) Page display method and device, electronic equipment and storage medium
CN115017340A (en) Multimedia resource generation method and device, electronic equipment and storage medium
CN114661811A (en) Data display method and device, electronic equipment and storage medium
CN113391804A (en) Page generation method and device, electronic equipment and storage medium
CN107391128B (en) Method and device for monitoring virtual file object model vdom
CN107423060B (en) Animation effect presenting method and device and terminal
CN116456131B (en) Special effect rendering method and device, electronic equipment and storage medium
CN113641533B (en) Terminal and short message processing method
CN111427546B (en) Page event processing device and method and electronic equipment
CN110473138B (en) Graphic code conversion method, graphic code conversion device, electronic equipment and storage medium
CN114531493B (en) Request processing method and device, electronic equipment and storage medium
CN111158744B (en) Cross-platform heterogeneous data integration method and device
CN115237317B (en) Data display method and device, electronic equipment and storage medium
CN107800618B (en) Picture recommendation method and device, terminal and computer-readable storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant
CP01 Change in the name or title of a patent holder

Address after: 518000 unit 01, 16 / F, unit 2, building a, Kexing Science Park, Keyuan Road, Central District, Nanshan District, Shenzhen City, Guangdong Province

Patentee after: SHENZHEN IDREAMSKY TECHNOLOGY CO.,LTD.

Address before: 518000 unit 01, 16 / F, unit 2, building a, Kexing Science Park, Keyuan Road, Central District, Nanshan District, Shenzhen City, Guangdong Province

Patentee before: SHENZHEN IDREAMSKY TECHNOLOGY CO.,LTD.

CP01 Change in the name or title of a patent holder