CN114020486A - Data generation method, device, equipment and storage medium - Google Patents

Data generation method, device, equipment and storage medium Download PDF

Info

Publication number
CN114020486A
CN114020486A CN202111170581.XA CN202111170581A CN114020486A CN 114020486 A CN114020486 A CN 114020486A CN 202111170581 A CN202111170581 A CN 202111170581A CN 114020486 A CN114020486 A CN 114020486A
Authority
CN
China
Prior art keywords
current page
application program
page
current
instruction
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.)
Pending
Application number
CN202111170581.XA
Other languages
Chinese (zh)
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.)
China United Network Communications Group Co Ltd
China Information Technology Designing and Consulting Institute Co Ltd
Original Assignee
China United Network Communications Group Co Ltd
China Information Technology Designing and Consulting Institute 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 China United Network Communications Group Co Ltd, China Information Technology Designing and Consulting Institute Co Ltd filed Critical China United Network Communications Group Co Ltd
Priority to CN202111170581.XA priority Critical patent/CN114020486A/en
Publication of CN114020486A publication Critical patent/CN114020486A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/46Multiprogramming arrangements
    • G06F9/54Interprogram communication
    • G06F9/547Remote procedure calls [RPC]; Web services
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/30Creation or generation of source code
    • G06F8/38Creation or generation of source code for implementing user interfaces
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/448Execution paradigms, e.g. implementations of programming paradigms
    • G06F9/4488Object-oriented
    • G06F9/449Object-oriented method invocation or resolution
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/451Execution arrangements for user interfaces

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • Theoretical Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Human Computer Interaction (AREA)
  • User Interface Of Digital Computer (AREA)

Abstract

The application provides a data generation method, a data generation device, data generation equipment and a storage medium, relates to the field of computers, and can improve the operation efficiency of a video compression algorithm. The method comprises the following steps: acquiring a calling parameter of an application program for displaying a current page; the calling parameter of the current page is used for indicating an operation object in the current page and the position of the operation object in the current page; generating difference data of the current page and the previous page based on the previous page of the current page and the obtained calling parameter of the current page; the difference data is used for encoding or decoding in image transmission.

Description

Data generation method, device, equipment and storage medium
Technical Field
The present application relates to the field of computers, and in particular, to a data generation method, apparatus, device, and storage medium.
Background
In network communication, the network security risks are gradually increased, and when remote operation needs to be monitored in real time, the requirements on the resolution, the fluency and the access bandwidth size of real-time video transmission are high, so that a video compression method needs to be optimized for video optimization. Meanwhile, video compression is also a key technical basis for a plurality of service scenes such as remote control and network conference systems, and the existing video compression standards all need to process time domain redundancy of videos. In order to deal with the time domain redundancy, a video compression algorithm needs to find out the difference between different frames, namely, adjacent frames need to be grouped according to the similarity by utilizing macro block scanning and macro block searching, object motion prediction is carried out on image frames in the same group, and image coding of a change area after a basic frame is transmitted is compressed on the basis.
However, the computational complexity of macro block scanning, searching and motion prediction is very high, huge CPU resources need to be consumed, and the method is a main time-consuming link of video compression, so how to reduce the time consumption for calculating different video image frame differences and improve the computational efficiency of a video compression algorithm becomes a problem to be solved urgently.
Disclosure of Invention
The application provides a data generation method, a data generation device, data generation equipment and a storage medium, which can reduce time consumption for calculating frame differences of different video images and improve the operation efficiency of a video compression algorithm.
In order to achieve the purpose, the technical scheme is as follows:
in a first aspect, the present application provides a data generation method, which may include: acquiring a calling parameter of an application program for displaying a current page; the calling parameter of the current page is used for indicating an operation object in the current page and the position of the operation object in the current page; generating difference data of the current page and the previous page based on the previous page of the current page and the obtained calling parameter of the current page; the difference data is used for encoding or decoding in image transmission.
Optionally, obtaining a call parameter of the application program displaying the current page includes: generating an interception instruction, wherein the interception instruction is used for acquiring input operation of an application program; acquiring a calling parameter of a current page from a target Application Program Interface (API) of an application program based on the generated interception instruction; the target API is used to display the current page.
Optionally, when the application program is applied to the Windows operating system, based on the generated interception instruction, obtaining a call parameter of the current page from a target application program interface API of the application program includes: determining a target address of a target process based on a preset first instruction; the target process is a process occupied by the target API in the application program; and based on a preset second instruction, inserting the interception instruction into the instruction stored in the target address to acquire the calling parameter of the current page.
Optionally, the call parameter of the current page includes a window handle, an operation object, and a current object parameter of the operation object in the current page; generating difference data of the current page and the previous page based on the previous page of the current page and the obtained calling parameter of the current page, wherein the difference data comprises the following steps: determining the historical object parameter of the operation object on the previous page based on the window handle; generating difference data based on the determined historical object parameters and the current object parameters; the difference data includes difference information between the historical object parameters and the current object parameters.
In a second aspect, the present application provides a data generating apparatus comprising: an acquisition unit and a generation unit; the acquiring unit is used for acquiring a calling parameter of the current page displayed by the application program; the calling parameter of the current page is used for indicating an operation object in the current page and the position of the operation object in the current page; the generating unit is used for generating difference data of the current page and the previous page based on the previous page of the current page and the acquired calling parameter of the current page; the difference data is used for encoding or decoding in image transmission.
Optionally, the obtaining unit is specifically configured to: generating an interception instruction, wherein the interception instruction is used for acquiring input operation of an application program; acquiring a calling parameter of a current page from a target Application Program Interface (API) of an application program based on the generated interception instruction; the target API is used to display the current page.
Optionally, the obtaining unit is specifically further configured to: under the condition that the application program is applied to a Windows operating system, determining a target address of a target process based on a preset first instruction; the target process is a process occupied by the target API in the application program; and based on a preset second instruction, inserting the interception instruction into the instruction stored in the target address to acquire the calling parameter of the current page.
Optionally, the call parameter of the current page includes a window handle, an operation object, and a current object parameter of the operation object in the current page; the generating unit is specifically configured to: determining the historical object parameter of the operation object on the previous page based on the window handle; generating difference data based on the determined historical object parameters and the current object parameters; the difference data includes difference information between the historical object parameters and the current object parameters.
In a third aspect, the present application provides an electronic device comprising: a processor, a communication interface, and a memory. Wherein the memory is used to store one or more programs. The one or more programs include computer executable instructions that, when executed by the electronic device, cause the electronic device to perform the data generation method of the first aspect and any of its various alternative implementations.
In a fourth aspect, the present application provides a computer-readable storage medium having instructions stored therein, where the instructions are executed by a computer, and the computer executes the data generating method of the first aspect and any one of the various optional implementations thereof.
According to the data generation method, the current graphic change area is accurately calculated by intercepting the API call of the graphic interface output and calling the parameters, the image and the font context, only the change area is directionally compressed, compared with the prior art, the change area is found out and directionally compressed without carrying out global index on a screen by utilizing macro block scanning and macro block searching, time consumed for calculating different video image frame differences is reduced, the operation efficiency of a video compression algorithm is improved, and user experience is optimized.
Drawings
Fig. 1 is a schematic structural diagram of a data generation system according to an embodiment of the present application;
fig. 2 is a schematic structural diagram of an electronic device according to an embodiment of the present disclosure;
fig. 3 is a schematic flowchart of a data generation method according to an embodiment of the present application;
fig. 4 is a schematic flowchart of another data generation method provided in the embodiment of the present application;
fig. 5 is a schematic flowchart of another data generation method provided in the embodiment of the present application;
fig. 6 is a schematic flowchart of another data generation method provided in the embodiment of the present application;
fig. 7 is a schematic structural diagram of another data generation apparatus according to an embodiment of the present application.
Detailed Description
A data generation method, an apparatus, a device, and a storage medium provided in the embodiments of the present application are described in detail below with reference to the accompanying drawings.
The term "and/or" herein is merely an association describing an associated object, meaning that three relationships may exist, e.g., a and/or B, may mean: a exists alone, A and B exist simultaneously, and B exists alone.
The terms "first" and "second" and the like in the description and drawings of the present application are used for distinguishing different objects or for distinguishing different processes for the same object, and are not used for describing a specific order of the objects.
Furthermore, the terms "including" and "having," and any variations thereof, as referred to in the description of the present application, are intended to cover non-exclusive inclusions. For example, a process, method, system, article, or apparatus that comprises a list of steps or elements is not limited to only those steps or elements but may alternatively include other steps or elements not expressly listed or inherent to such process, method, article, or apparatus.
It should be noted that in the embodiments of the present application, words such as "exemplary" or "for example" are used to indicate examples, illustrations or explanations. Any embodiment or design described herein as "exemplary" or "e.g.," is not necessarily to be construed as preferred or advantageous over other embodiments or designs. Rather, use of the word "exemplary" or "such as" is intended to present concepts related in a concrete fashion.
In the description of the present application, the meaning of "a plurality" means two or more unless otherwise specified.
The data generation method provided by the embodiment of the application can be applied to the data generation system shown in fig. 1, and the data generation system is used for generating compressed data and sending the compressed data outwards; as shown in fig. 1, the data generation system 10 may include a data generation apparatus 11 and an electronic device 12.
The data generating device 11 and the electronic device 12 may be connected by wire or wirelessly, and the present application is not limited thereto.
The data generating means 11 in fig. 1 may be used, among other things, to connect to an operator-deployed access network device, e.g., may be a fifth generation (5th generation, 5G) mobile communication network, and may also be a fourth generation (4th generation, 4G) (for example: an Evolved Packet System (EPS) mobile communication network may also be other actual mobile communication networks, and the present application is not limited thereto, and may also be connected to an access network device deployed by an operator through a wired optical fiber, or other connection manners, it should be noted that fig. 1 is only an exemplary architecture diagram, and besides the functional units shown in fig. 1, the data generation system 10 may further include other functional units, which are not limited in this embodiment.
In one example, the data generation system 10 may also be used in a data transmission system. In this data transmission system, the data generation system is used to transmit the data generated by the data generation means 11 to the data reception device of the data transmission system.
The electronic device 12 may include the data generating apparatus 11, and the electronic device 12 and the data generating apparatus 11 may be two independent parts, which is not limited herein.
In an example, the application scenario of the data generation system may be applied to a user for remote control, may also be applied to multiple user terminals for video communication, may also be applied to the user for live broadcasting and/or live broadcasting watching, or other application scenarios, and the application is not limited in this application.
The data generating device 11 may be a User Equipment (UE), such as: a cellular phone, a cordless phone, a Session Initiation Protocol (SIP) phone, a smart phone, a Wireless Local Loop (WLL) station, a Personal Digital Assistant (PDA), a laptop, a handheld communication device, a handheld computing device, a Customer Premises Equipment (CPE), and/or other devices for communicating over a wireless system. The electronic device 12 may be a terminal, a server, or a server cluster.
Fig. 2 shows a schematic diagram of a possible structure of the electronic device, and as shown in fig. 2, the electronic device 20 includes a processor 201, a communication interface 202, a communication line 203, and a memory 204.
The processor 201 may be a CPU, a general purpose processor Network (NP), a Digital Signal Processor (DSP), a microprocessor, a microcontroller, a Programmable Logic Device (PLD), or any combination thereof. The processor 201 may also be other devices with processing functions, such as, without limitation, a circuit, a device, or a software module. In one example, processor 201 may include one or more CPUs, such as CPU0 and CPU1 in fig. 2.
A communication interface 202 for communicating with other devices or other communication networks. The other communication network may be an ethernet, a Radio Access Network (RAN), a Wireless Local Area Network (WLAN), or the like. The communication interface may be a module, a circuit, a communication interface, or any device capable of enabling communication.
A communication line 203 for transmitting information between the respective components included in the data generation system.
A memory 204 for storing instructions. Wherein the instructions may be a computer program.
The memory 204 may be a read-only memory (ROM) or other types of static storage devices that can store static information and/or instructions, a Random Access Memory (RAM) or other types of dynamic storage devices that can store information and/or instructions, an electrically erasable programmable read-only memory (EEPROM), a compact disc read-only memory (CD-ROM) or other optical disc storage, optical disc storage (including compact disc, laser disc, optical disc, digital versatile disc, blu-ray disc, etc.), a magnetic disc storage medium or other magnetic storage devices, and the like, without limitation.
It is noted that the memory 204 may exist separately from the processor 201 or may be integrated with the processor 201. The memory 204 may be used for storing instructions or program code or some data etc. The memory 302 may be located inside the electronic device or outside the electronic device, which is not limited. The processor 201 is configured to execute the instructions stored in the memory 204 to implement the data generation method provided by the following embodiments of the present application.
As an alternative implementation, the electronic device comprises multiple processors, for example, the processor 207 may be included in addition to the processor 201 in fig. 2.
As an alternative implementation, the electronic device further comprises an output device 205 and an input device 203. Illustratively, the input device 203 is a keyboard, mouse, microphone, joystick, or the like, and the output device 205 is a display screen, speaker (spaker), or the like.
In the embodiment of the present application, the chip system may be composed of a chip, and may also include a chip and other discrete devices.
In addition, acts, terms, and the like referred to between the embodiments of the present application may be mutually referenced and are not limited. In the embodiment of the present application, the name of the message exchanged between the devices or the name of the parameter in the message, etc. are only an example, and other names may also be used in the specific implementation, which is not limited.
The embodiment of the application provides a data generation method, which can be applied to the electronic equipment. In the following, the data generating apparatus in which the data generating method is applied to the electronic device is taken as an example for explanation, and in the practical application process, the data generating method may be applied to other similar devices including the data generating apparatus. As shown in fig. 3, the method may include S301-S302:
s301, the data generation device acquires the calling parameter of the current page displayed by the application program.
The calling parameter of the current page is used for indicating the operation object in the current page and the position of the operation object in the current page. The current page includes a current image frame that the application displays by invoking the parameter in response to a user action.
As a possible implementation manner, the data generating device may generate an interception instruction, and insert the interception instruction into an interface function of an Application Program Interface (API) for displaying a current page, so that when the application program displays the current page by calling the target API, a calling parameter of the application program displaying the current page is obtained.
For example, in the case where the application program is applied to the graphical interface service program xwindows, the data generation apparatus may directly insert the interception instruction into the interface function of the target API after generating the interception instruction. In this way, when the application program displays the current page in the calling target API, the interception instruction may directly send the calling parameters of the current page, which are required by the application program to call the target API, to the data generation apparatus.
It should be noted that the call parameters of the current page may include: the window handle, the operation object and the current object parameter of the operation object on the current page.
The operation object may be an input text object and a drawing object of the application program in the current page, and the object parameter may be a start coordinate of the text object output by the current page, font information (including a length, a width, a height, a gap between characters, and the like of each character), a type (such as a line, a point, a rectangle, an ellipse, and the like) and a size of the drawing object.
Illustratively, the interface function of the target API may specifically be: gdifunc () { Statement1 … }. After the interception instruction is added, the following steps can be performed: gdifunc () { Jmp Savepara state 1 … } Savepara; jmp status.
The specific implementation manner of this step may refer to the subsequent description of the embodiment of the present application, and is not described herein again.
S302, the data generation device generates difference data of the current page and the previous page based on the previous page of the current page and the acquired calling parameters of the current page.
Wherein the difference data is used for encoding or decoding in image transmission. The previous page is the image frame displayed immediately before the current page.
As a possible implementation manner, the data generation apparatus obtains a previous page of the current page, and determines the history object parameter of the operation object in the previous page based on the window handle in the call parameter of the current page.
Further, the data generating device determines the difference between the historical object parameter and the current object parameter as the difference data of the current page and the previous page.
The specific implementation manner of this step may refer to the subsequent description of the embodiment of the present application, and is not described herein again.
It can be understood that the difference data determined by the data generating device is data of a difference area between the current page and the previous page, which includes object parameters such as a position and a size of the operation object on the current page and object parameters such as a position and a size of the operation object on the previous page.
In some subsequent embodiments, the data generating means transmits the difference data to the data receiving device after determining the difference data.
Accordingly, after receiving the difference data, the data receiving device may generate a current page from the previous page and the received difference data, and display the current page.
In one design, in order to obtain the call parameter of the current page, as shown in fig. 4, S301 provided in this embodiment of the present application specifically includes the following S3011 to S3012:
s3011, the data generation device generates an intercept instruction.
The interception instruction is used for acquiring the input operation of the application program.
As a possible implementation manner, the data generation apparatus may generate the interception instruction based on a preset code.
Illustratively, the code corresponding to the above interception instruction may be { Jmp savepara Statement1 … }.
S3012, the data generation device obtains the call parameter of the current page from the target application program interface API of the application program based on the generated interception instruction.
Wherein the target API is used for displaying the current page.
As a possible implementation manner, the data generation apparatus inserts the generated result instruction into an interface function of the target API to obtain a call parameter of the current page.
The application program can also be applied to a Windows operating system, but the Windows operating system cannot directly insert the interception instruction into the interface function of the target API. Therefore, in order to insert an intercept instruction into an interface function of a target API in a Windows operating system, as shown in fig. 5, in a design, in the data generation method provided in this embodiment of the present application, the above S3012 specifically includes the following S401 to S402:
s401, under the condition that the application program is applied to the Windows operating system, based on a preset first instruction, the data generation device determines a target address where a target process is located.
The target process is a process occupied by the target API in the application program.
As a possible implementation manner, the data generating apparatus may first determine a target process occupied by the target API, and then enter a target address of the target process in the application program through a preset first instruction.
It should be noted that the target address is a space in the memory for executing the target process in the application program.
For example, the first instruction may be a SetWindowsHook function, and this function may insert any instruction or program into a space or address where any process is located. The first instruction may be set in the data generating device or the electronic device in advance by an operation and maintenance person.
S402, inserting the interception instruction into the instruction stored in the target address by the data generation device based on a preset second instruction to obtain the calling parameter of the current page.
As a possible implementation manner, the data generation apparatus may change an instruction or a program stored in the target address by a preset second instruction, for example, an interception instruction may be inserted into the instruction or the program stored in the target address, so as to acquire the call parameter of the current page.
Illustratively, the second instruction may be a WriteProcessMemory function, which may change the contents of any instruction or program.
For example, the data generation device runs the WriteProcessMemory function in the target process through the setwindowschook function, the data generation device modifies the API of the target process by running the WriteProcessMemory function in the target process, for example, an intercept instruction is inserted into the API, and the data generation device obtains the call parameter of the current page according to the intercept instruction.
In one design, the call parameters of the current page provided in the embodiment of the present application include a window handle, the operation object, and a current object parameter of the operation object in the current page. And the current object parameter is the object parameter of the operation object in the current page. In order to generate difference data between the current page and the previous page based on the previous page of the current page and the obtained calling parameter of the current page, as shown in fig. 6, S302 provided in this embodiment of the application specifically includes the following S3021 to S3022.
S3021, the data generating apparatus determines the history object parameter of the previous page of the operation object based on the window handle.
As a possible implementation manner, the data generation apparatus acquires the previous page, and determines the history object parameter of the operation object in the previous page according to the acquired window handle.
It should be noted that the history object parameters may include object parameters such as a cursor position, a size, and a line thickness of the operation object on the previous page.
S3022, the data generating means generates difference data based on the determined history object parameter and the current object parameter.
Wherein the difference data comprises difference information between the historical object parameters and the current object parameters.
As one possible implementation, the data generation means determines difference information between the current object parameter and the historical object parameter, and determines the determined difference information as difference data. For example, the difference information may include a difference between the starting coordinates of the text object in the current page and the previous page, the font information, and a difference between the type or size of the drawing object in the previous page and the current page.
According to the data generation method, the current graphic change area is accurately calculated by intercepting the API call of the graphic interface output and calling the parameters, the image and the font context, only the change area is directionally compressed, compared with the prior art, the change area is found out and directionally compressed without carrying out global index on a screen by utilizing macro block scanning and macro block searching, time consumed for calculating different video image frame differences is reduced, the operation efficiency of a video compression algorithm is improved, and user experience is optimized.
In the embodiment of the present application, the electronic device may be divided into the functional modules or the functional units according to the above method examples, for example, each functional module or functional unit may be divided corresponding to each function, or two or more functions may be integrated into one module. The integrated module may be implemented in a form of hardware, or may be implemented in a form of a software functional module or a functional unit. The division of the modules or units in the embodiment of the present application is schematic, and is only a logic function division, and there may be another division manner in actual implementation.
Fig. 7 shows a schematic diagram of a possible structure of the data generating apparatus according to the above embodiment. As shown in fig. 7, the data generating apparatus 50 includes an acquiring unit 501 and a generating unit 502.
An obtaining unit 501, configured to obtain a call parameter of an application program displaying a current page; the calling parameter of the current page is used for indicating the operation object in the current page and the position of the operation object in the current page. For example, as shown in fig. 3, the obtaining unit 501 may be configured to execute S301.
A generating unit 502, configured to generate difference data between a current page and a previous page based on the previous page of the current page and an obtained calling parameter of the current page; the difference data is used for encoding or decoding in image transmission. For example, as shown in fig. 3, the obtaining unit 501 may be configured to execute S302.
The specific implementation manner of the data generation device 50 may refer to the behavior function of the data generation device in the data generation method shown in fig. 3.
In one possible design, as shown in fig. 7, an obtaining unit 501 is provided in an embodiment of the present application. The method is specifically used for: and generating an interception instruction, wherein the interception instruction is used for acquiring the input operation of the application program. Acquiring a calling parameter of a current page from a target Application Program Interface (API) of an application program based on the generated interception instruction; the target API is used to display the current page. For example, as shown in fig. 4, the acquisition unit 501 may be configured to perform S3011-S3012.
In one possible design, the obtaining unit 501 is further specifically configured to: under the condition that the application program is applied to a Windows operating system, determining a target address of a target process based on a preset first instruction; the target process is the process occupied by the target API in the application program. And based on a preset second instruction, inserting the interception instruction into the instruction stored in the target address to acquire the calling parameter of the current page. For example, as shown in fig. 5, the obtaining unit 501 may be configured to perform S401-S402.
In a possible design, the generating unit 502 is specifically configured to determine, based on the window handle, a history object parameter of the operation object in the previous page. Generating difference data based on the determined historical object parameters and the current object parameters; the difference data includes difference information between the historical object parameters and the current object parameters. For example, as shown in fig. 6, the generation unit 502 may be configured to perform S3021-S3022.
The data generation device provided by the embodiment of the application accurately calculates the current graphic change area by intercepting the API call of the graphic interface output and calling parameters, images and font contexts, and only directionally compresses the change area.
Through the above description of the embodiments, it is clear to those skilled in the art that, for convenience and simplicity of description, the foregoing division of the functional modules is merely used as an example, and in practical applications, the above function distribution may be completed by different functional modules according to needs, that is, the internal structure of the device may be divided into different functional modules to complete all or part of the above described functions. For the specific working processes of the system, the apparatus and the unit described above, reference may be made to the corresponding processes in the foregoing method embodiments, and details are not described here again.
The present application provides a computer program product containing instructions, which when run on a computer, causes the computer to execute the data generation method described in the above method embodiments.
The embodiment of the present application further provides a computer-readable storage medium, where instructions are stored in the computer-readable storage medium, and when the data generation apparatus executes the instructions, the data generation apparatus executes each step executed by the data generation apparatus in the method flow shown in the foregoing method embodiment.
The computer readable storage medium may be, for example, but not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination thereof. More specific examples (a non-exhaustive list) of the computer readable storage medium would include the following: an electrical connection having one or more wires, a portable computer diskette, a hard disk, a Random Access Memory (RAM), a Read-Only Memory (ROM), an Erasable Programmable Read-Only Memory (EPROM), a register, a hard disk, an optical fiber, a portable Compact Disc Read-Only Memory (CD-ROM), an optical storage device, a magnetic storage device, any suitable combination of the above, or any other form of computer readable storage medium known in the art. An exemplary storage medium is coupled to the processor such the processor can read information from, and write information to, the storage medium. Of course, the storage medium may also be integral to the processor. The processor and the storage medium may reside in an Application Specific Integrated Circuit (ASIC). In embodiments of the present application, a computer readable storage medium may be any tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device.
The above description is only an embodiment of the present application, but the scope of the present application is not limited thereto, and any changes or substitutions within the technical scope of the present disclosure should be covered by the scope of the present application. Therefore, the protection scope of the present application shall be subject to the protection scope of the claims.

Claims (10)

1. A method of generating data, comprising:
acquiring a calling parameter of an application program for displaying a current page; the calling parameter of the current page is used for indicating an operation object in the current page and the position of the operation object in the current page;
generating difference data of the current page and the previous page based on the previous page of the current page and the obtained calling parameter of the current page; the difference data is used for encoding or decoding in image transmission.
2. The data generating method of claim 1, wherein the obtaining of the call parameter of the application program displaying the current page comprises:
generating an interception instruction, wherein the interception instruction is used for acquiring the input operation of the application program;
acquiring a calling parameter of the current page from a target Application Program Interface (API) of the application program based on the generated interception instruction; the target API is used for displaying the current page.
3. The data generation method according to claim 2, wherein, in a case where the application program is applied to a Windows operating system, the obtaining, based on the generated interception instruction, a call parameter of the current page from a target application program interface API of the application program includes:
determining a target address of a target process based on a preset first instruction; the target process is a process occupied by the target API in the application program;
and inserting the interception instruction into the instruction stored by the target address based on a preset second instruction so as to obtain the calling parameter of the current page.
4. The data generation method of any one of claims 1 to 3, wherein the call parameters of the current page include a window handle, the operand, and a current object parameter of the operand in the current page; generating difference data of the current page and the previous page based on the previous page of the current page and the obtained calling parameter of the current page, wherein the difference data comprises:
determining the historical object parameters of the operation object on the previous page based on the window handle;
generating the difference data based on the determined historical object parameters and the current object parameters; the difference data includes difference information between the historical object parameters and the current object parameters.
5. A data generation apparatus, comprising: an acquisition unit and a generation unit;
the acquiring unit is used for acquiring the calling parameter of the current page displayed by the application program; the calling parameter of the current page is used for indicating an operation object in the current page and the position of the operation object in the current page;
the generating unit is used for generating difference data of the current page and the previous page based on the previous page of the current page and the acquired calling parameter of the current page; the difference data is used for encoding or decoding in image transmission.
6. The data generation apparatus according to claim 5, wherein the obtaining unit is specifically configured to:
generating an interception instruction, wherein the interception instruction is used for acquiring the input operation of the application program;
acquiring a calling parameter of the current page from a target Application Program Interface (API) of the application program based on the generated interception instruction; the target API is used for displaying the current page.
7. The data generation apparatus according to claim 6, wherein the obtaining unit is further configured to:
under the condition that the application program is applied to a Windows operating system, determining a target address of a target process based on a preset first instruction; the target process is a process occupied by the target API in the application program;
and inserting the interception instruction into the instruction stored by the target address based on a preset second instruction so as to obtain the calling parameter of the current page.
8. The data generating apparatus according to any one of claims 5 to 7, wherein the call parameters of the current page include a window handle, the operand, and a current object parameter of the operand in the current page; the generating unit is specifically configured to:
determining the historical object parameters of the operation object on the previous page based on the window handle;
generating the difference data based on the determined historical object parameters and the current object parameters; the difference data includes difference information between the historical object parameters and the current object parameters.
9. An electronic device, characterized in that the electronic device comprises: a processor, a communication interface, and a memory; wherein the memory is used for storing one or more programs, the one or more programs comprising computer executable instructions, and when the electronic device is running, the processor executes the computer executable instructions stored in the memory to make the electronic device execute the data generation method of any one of claims 1 to 4.
10. A computer readable storage medium storing one or more programs, the one or more programs comprising instructions, which when executed by a computer, cause the computer to perform the data generation method of any of claims 1-4.
CN202111170581.XA 2021-10-08 2021-10-08 Data generation method, device, equipment and storage medium Pending CN114020486A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202111170581.XA CN114020486A (en) 2021-10-08 2021-10-08 Data generation method, device, equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202111170581.XA CN114020486A (en) 2021-10-08 2021-10-08 Data generation method, device, equipment and storage medium

Publications (1)

Publication Number Publication Date
CN114020486A true CN114020486A (en) 2022-02-08

Family

ID=80055368

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202111170581.XA Pending CN114020486A (en) 2021-10-08 2021-10-08 Data generation method, device, equipment and storage medium

Country Status (1)

Country Link
CN (1) CN114020486A (en)

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20090096939A1 (en) * 2007-10-10 2009-04-16 Seiko Epson Corporation Image transmission apparatus and image display control method in image transmission apparatus
CN103248946A (en) * 2012-02-03 2013-08-14 海尔集团公司 Method and system for rapidly transmitting video image
US20140086324A1 (en) * 2012-09-27 2014-03-27 Qualcomm Incorporated Long-term reference picture signaling in video coding
CN107682694A (en) * 2017-07-07 2018-02-09 西安万像电子科技有限公司 Image coding/decoding method, apparatus and system
CN111046312A (en) * 2019-12-20 2020-04-21 五八有限公司 Page sharing method and device, electronic equipment and storage medium
CN111881319A (en) * 2020-06-18 2020-11-03 西安万像电子科技有限公司 Image transmission method and system

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20090096939A1 (en) * 2007-10-10 2009-04-16 Seiko Epson Corporation Image transmission apparatus and image display control method in image transmission apparatus
CN103248946A (en) * 2012-02-03 2013-08-14 海尔集团公司 Method and system for rapidly transmitting video image
US20140086324A1 (en) * 2012-09-27 2014-03-27 Qualcomm Incorporated Long-term reference picture signaling in video coding
CN107682694A (en) * 2017-07-07 2018-02-09 西安万像电子科技有限公司 Image coding/decoding method, apparatus and system
CN111046312A (en) * 2019-12-20 2020-04-21 五八有限公司 Page sharing method and device, electronic equipment and storage medium
CN111881319A (en) * 2020-06-18 2020-11-03 西安万像电子科技有限公司 Image transmission method and system

Similar Documents

Publication Publication Date Title
CN108737482B (en) Document sharing method, device and system
CN106549989B (en) Data transmission method and system, user terminal and application server
CN111880695B (en) Screen sharing method, device, equipment and storage medium
CN113568699B (en) Content display method, device, equipment and storage medium
US20220171011A1 (en) Positioning method and device, server, storage medium and terminal
CN104782134A (en) Server device, terminal, thin client system, screen transmission method and program
CN113766270A (en) Video playing method, system, server, terminal equipment and electronic equipment
CN105515887A (en) Application test method, server and system
CN112218034A (en) Video processing method, system, terminal and storage medium
CN111669468A (en) Network state display method and device in call process, computer equipment and medium
CN114268779A (en) Image data processing method, device, equipment and computer readable storage medium
CN112152879B (en) Network quality determination method, device, electronic equipment and readable storage medium
CN114020486A (en) Data generation method, device, equipment and storage medium
CN111111175A (en) Game picture generation method and device and mobile terminal
CN107426114B (en) Resource allocation method and system
CN113691937B (en) Method for determining position information, cloud mobile phone and terminal equipment
CN113891441A (en) Network connection method and device and electronic equipment
CN113127783B (en) Page display method and device, equipment and medium
CN115460419A (en) Image processing method, image processing device, electronic equipment and storage medium
CN113660290A (en) Signaling transmission method, device, equipment and storage medium
CN114417201A (en) Message processing method and device, computer equipment and storage medium
CN113835820A (en) Graphic code display method and device
CN113066139A (en) Picture processing method and device, storage medium and electronic equipment
CN113542335A (en) Information sharing method and device, electronic equipment and storage medium
CN110636180A (en) Data transmission method, device, equipment and 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