CN109213613B - Image information transmission method and device, storage medium and electronic equipment - Google Patents

Image information transmission method and device, storage medium and electronic equipment Download PDF

Info

Publication number
CN109213613B
CN109213613B CN201810982933.3A CN201810982933A CN109213613B CN 109213613 B CN109213613 B CN 109213613B CN 201810982933 A CN201810982933 A CN 201810982933A CN 109213613 B CN109213613 B CN 109213613B
Authority
CN
China
Prior art keywords
memory space
image
image memory
application
information
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
CN201810982933.3A
Other languages
Chinese (zh)
Other versions
CN109213613A (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.)
Guangdong Oppo Mobile Telecommunications Corp Ltd
Original Assignee
Guangdong Oppo Mobile Telecommunications Corp 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 Guangdong Oppo Mobile Telecommunications Corp Ltd filed Critical Guangdong Oppo Mobile Telecommunications Corp Ltd
Priority to CN201810982933.3A priority Critical patent/CN109213613B/en
Publication of CN109213613A publication Critical patent/CN109213613A/en
Priority to PCT/CN2019/095433 priority patent/WO2020042769A1/en
Application granted granted Critical
Publication of CN109213613B publication Critical patent/CN109213613B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

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/544Buffers; Shared memory; Pipes
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T1/00General purpose image data processing
    • G06T1/60Memory management
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M1/00Substation equipment, e.g. for use by subscribers
    • H04M1/72Mobile telephones; Cordless telephones, i.e. devices for establishing wireless links to base stations without route selection
    • H04M1/724User interfaces specially adapted for cordless or mobile telephones
    • H04M1/72403User interfaces specially adapted for cordless or mobile telephones with means for local support of applications that increase the functionality
    • H04M1/72406User interfaces specially adapted for cordless or mobile telephones with means for local support of applications that increase the functionality by software upgrading or downloading
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M1/00Substation equipment, e.g. for use by subscribers
    • H04M1/72Mobile telephones; Cordless telephones, i.e. devices for establishing wireless links to base stations without route selection
    • H04M1/724User interfaces specially adapted for cordless or mobile telephones
    • H04M1/72403User interfaces specially adapted for cordless or mobile telephones with means for local support of applications that increase the functionality
    • H04M1/7243User interfaces specially adapted for cordless or mobile telephones with means for local support of applications that increase the functionality with interactive means for internal management of messages
    • H04M1/72439User interfaces specially adapted for cordless or mobile telephones with means for local support of applications that increase the functionality with interactive means for internal management of messages for image or video messaging

Abstract

The embodiment of the application discloses a method and a device for transmitting image information, a storage medium and electronic equipment, wherein the image memory space of an image stored by a camera application is shared to a third party application by adjusting a corresponding software development kit in the camera application; acquiring an image memory space, and determining handle information corresponding to the image memory space; when an image transmission instruction of a third-party application is detected, loading handle information to determine a corresponding image memory space; and accessing the image memory space to transmit the image information in the image memory space to a third-party application. Therefore, when the third-party application calls the image information of the camera application, the image information stored in the camera application can be directly loaded from the memory space according to the handle information, so that inconvenience caused by cross-process transmission is avoided, the transmission time of the image information is saved, and the transmission efficiency of the image information is improved.

Description

Image information transmission method and device, storage medium and electronic equipment
Technical Field
The present application relates to the field of electronic devices, and in particular, to a method and an apparatus for transmitting image information, a storage medium, and an electronic device.
Background
With the continuous development of electronic technologies, electronic devices such as mobile phones have more and more powerful functions, and users can realize Augmented Reality (AR) functions through mobile phones, the AR technology is a new technology for seamlessly integrating real world information and virtual world information, and is a technology for applying virtual information to the real world to be perceived by human senses by superimposing entity information (visual information, sound, taste, touch and the like) which is difficult to experience in a certain time space range of the real world originally through scientific technologies such as computers and the like after simulation, so that the sensory experience beyond Reality is achieved. The real environment and the virtual object are superimposed on the same picture or space in real time and exist simultaneously.
At present, a mobile phone needs to shoot a current image in real time through a camera assembly, and transmit the current image to an augmented reality assembly in a cross-process manner, the augmented reality assembly performs corresponding augmented reality image rendering on the received current image to achieve the augmented reality display effect, but because shooting pixels of the camera are higher and higher, the storage space of the shot image is correspondingly larger and larger, however, the efficiency of image cross-process transmission is limited, so that the transmission time of the image is prolonged, and even the transmission fails.
Disclosure of Invention
The embodiment of the application provides a method and a device for transmitting image information, a storage medium and an electronic device, which can save the transmission time of the image information and further improve the transmission efficiency of the image information.
In a first aspect, an embodiment of the present application provides a method for transmitting image information, including:
adjusting a corresponding software development kit in the camera application so that an image memory space of an image saved by the camera application is shared to a third party application;
acquiring the image memory space, and determining handle information corresponding to the image memory space;
when an image transmission instruction of a third-party application is detected, loading the handle information to determine a corresponding image memory space;
and accessing the image memory space to transmit the image information in the image memory space to a third-party application.
In a second aspect, an embodiment of the present application provides an apparatus for transmitting image information, including:
the adjusting unit is used for adjusting a corresponding software development kit in the camera application so as to enable an image memory space of the image saved by the camera application to be shared to a third party application;
the determining unit is used for acquiring the image memory space and determining handle information corresponding to the image memory space;
the loading unit is used for loading the handle information to determine a corresponding image memory space when an image transmission instruction of a third-party application is detected;
and the transmission unit is used for accessing the image memory space so as to transmit the image information in the image memory space to a third-party application.
In a third aspect, a storage medium is provided in an embodiment of the present application, and has a computer program stored thereon, where the computer program is executed on a computer, so as to enable the computer to execute the image information transmission method provided in any embodiment of the present application.
In a fourth aspect, an electronic device provided in an embodiment of the present application includes a processor and a memory, where the memory has a computer program, and the processor is configured to execute the image information transmission method provided in any embodiment of the present application by calling the computer program.
According to the method and the device, the corresponding software development kit in the camera application is adjusted, so that the image memory space of the image saved by the camera application is shared to the third party application; acquiring an image memory space, and determining handle information corresponding to the image memory space; when an image transmission instruction of a third-party application is detected, loading handle information to determine a corresponding image memory space; and accessing the image memory space to transmit the image information in the image memory space to a third-party application. Therefore, when the third-party application calls the image information of the camera application, the image information stored in the camera application can be directly loaded from the memory space according to the handle information, so that inconvenience caused by cross-process transmission is avoided, the transmission time of the image information is saved, and the transmission efficiency of the image information is improved.
Drawings
The technical solution and other advantages of the present application will become apparent from the detailed description of the embodiments of the present application with reference to the accompanying drawings.
Fig. 1 is a system architecture diagram illustrating operation of an electronic device according to an embodiment of the present invention.
Fig. 2 is a schematic flowchart of a method for transmitting image information according to an embodiment of the present application.
Fig. 3 is another schematic flow chart of a method for transmitting image information according to an embodiment of the present disclosure.
Fig. 4 is another system architecture diagram of the electronic device according to the embodiment of the present application.
Fig. 5 is a schematic block diagram of an apparatus for transmitting image information according to an embodiment of the present disclosure.
Fig. 6 is a schematic block diagram of an apparatus for transmitting image information according to an embodiment of the present disclosure.
Fig. 7 is a schematic structural diagram of an electronic device according to an embodiment of the present application.
Fig. 8 is another schematic structural diagram of an electronic device according to an embodiment of the present application.
Detailed Description
Referring to the drawings, wherein like reference numbers refer to like elements, the principles of the present application are illustrated as being implemented in a suitable computing environment. The following description is based on illustrated embodiments of the application and should not be taken as limiting the application with respect to other embodiments that are not detailed herein.
The term "module" as used herein may be considered a software object executing on the computing system. The various components, modules, engines, and services described herein may be viewed as objects implemented on the computing system. The apparatus and method described herein are preferably implemented in software, but may also be implemented in hardware, and are within the scope of the present application.
Referring to fig. 1, fig. 1 is a System architecture diagram of an electronic device according to an embodiment of the present invention, where the System architecture is an Android System architecture, and in an embodiment, the System architecture may also be an apple (IOS) System framework. The android system architecture is an architecture of an android system, the android system architecture is the same as an operating system of the android system, a layered architecture is adopted, the layered architecture is divided into four layers, and an android Application layer (Application), an android Application Framework layer (Application Framework), an android system running layer and a Linux kernel layer are respectively arranged from high to low.
An application layer: the application is a program written in java language running on a virtual machine, such as a camera application, Email client, SMS short message program, calendar, and the like.
An application framework layer: this layer is an Application Programming Interface (API) framework used when writing core applications published by Google (Google), and developers can also use these frameworks to develop their own applications, which simplifies the structural design of program development but must comply with the development principles of the framework.
A system runtime (C/C + + library and android runtime) layer: when the android application framework is used, the android system can support various components used by us through some C/C + + libraries, so that the android system can better serve us, such as SQLite (relational database) and Webkit (Web browser engine) in the android application framework.
A Linux kernel layer: the android core system service is given to a linux2.6 kernel, and security, memory management, process management, a network protocol stack, a drive model and the like all depend on the kernel, such as a Binder IPC (Internet process connection, inter-process communication) drive, and a special driver of the android has a separate device node and provides the inter-process communication function.
Information transfer between applications different from each other, such as image information transfer between a camera application and a third-party application (e.g., an AR application), first needs to call image information stored in an image memory space to a camera client (camera client) through a camera Service layer (camera Service) of the camera application, and finally reaches a Software Development Kit (SDK) of the camera application, and the image information is cross-process transferred to the AR application through a Binder communication manner, and the AR application can perform augmented reality rendering after receiving the image information, thereby implementing an augmented reality function. It should be noted that Binder is an android cross-process communication mode, when image information is large, transmission efficiency is low, so that waiting time of AR application is too long, and running speed of AR application is reduced, so that cross-process is required because in general, memory cannot be shared between application programs in an android system. Data exchange between different applications is a cross-process.
The following is a detailed description of the analysis.
In the present embodiment, the description will be made from the perspective of a transmission device of image information, which may be specifically integrated in an electronic device, such as a mobile phone, a tablet computer, a Personal Digital Assistant (PDA), and the like.
An embodiment of the present application provides a method for transmitting image information, as shown in fig. 2, the method for transmitting image information may include the following steps:
in step S101, the corresponding software development kit in the camera application is adjusted.
It should be noted that the software development kit is generally a collection of development tools used by some software engineers to build application software for a specific software package, software framework, hardware platform, operating system, and the like.
The camera application functions to call a camera on the terminal to perform real-time shooting, and convert optical image information into an electric signal for storage or transmission. The Memory space is also called an internal Memory, and is used to temporarily store operation data in a Central Processing Unit (CPU) and data exchanged with an external Memory such as a hard disk.
The software development kit corresponding to the camera application is a set of relevant documents, examples and tools for assisting in developing the camera application, and the image memory space corresponding to the camera application can be shared to third-party applications by adjusting the API, the dynamic link library, the import library and the like of the software development kit corresponding to the camera application. That is to say, the third party application can call the image information in the image memory space quickly.
In some embodiments, the step of adjusting the corresponding software development kit in the camera application may include adjusting access rights of the image memory space of the camera application through the software development kit, and opening sharing rights of the image memory space of the camera application to third-party applications.
The access right of the image memory space of the camera application can be modified correspondingly through the SDK, if the access right is closed by default, the access right is adjusted to be open, and therefore the third-party application can acquire the sharing right corresponding to the image memory space of the camera application.
In step S102, an image memory space is obtained, and handle information corresponding to the image memory space is determined.
Wherein the handle information is a unique integer value used, i.e., a 4-byte (8-byte in a 64-bit program) long value, to identify different objects in the application program and different instances in the same class, such as a window, button, icon, scroll bar, output device, control or file. And acquiring storage address information corresponding to the image memory space, and determining a corresponding numerical value with the length of 4 bytes or 8 bytes.
Accordingly, the application can access information of the corresponding object through the handle. That is, the storage address corresponding to the image memory space can be found through the handle information corresponding to the image memory space, that is, the memory address corresponding to the image memory space can be quickly found through the handle information.
In some embodiments, the step of obtaining the image memory space and determining the handle information corresponding to the image memory space may include:
(1) determining the first address and the number of memory addresses corresponding to the image memory space;
(2) and determining handle information corresponding to the image memory space according to the first address and the number of the memory addresses.
The image memory space is composed of a plurality of memory addresses for storing image information, one memory address is a number and represents one memory space, and one memory address represents one byte (byte) which is 8-bit storage space. The camera application stores the image information acquired in real time in the memory, and the memory can allocate a corresponding number of memory addresses according to the data size of the image information.
Therefore, the whole image memory space can be determined only by determining the first address and the number of the memory addresses corresponding to the image memory space, and handle information representing the image memory space can be generated according to the first address and the number of the memory addresses.
In some embodiments, the determining the first address and the number of memory addresses corresponding to the image memory space may include:
(2.1) determining a memory block corresponding to the image memory space;
and 2.2, analyzing the memory address corresponding to each memory block to obtain the corresponding first address and the number of the memory addresses.
The method comprises the steps of determining memory blocks of all image information of an image memory space on a memory, and analyzing memory addresses corresponding to the memory blocks to obtain a first address corresponding to the memory addresses and the total number of the memory addresses.
In step S103, when the image transmission instruction of the third-party application is detected, the handle information is loaded to determine the corresponding image memory space.
The third-party application is other applications other than the camera application, such as an AR application, and since the AR application is an application that renders a corresponding augmented reality image according to a position, i.e., an angle, photographed by a camera, the AR application needs to call image information acquired by the camera application in real time.
Therefore, when it is detected that the AR application needs to call the image information, an image transmission instruction is generated, that is, when an image transmission instruction of a third-party application is detected, handle information generated according to the image memory space is loaded, and a memory address corresponding to the image memory space is acquired, so as to determine the corresponding image memory space.
In some embodiments, the step of loading the handle information to determine the corresponding image memory space may include:
(1) determining the initial address of the image memory space according to the first address in the handle information;
(2) and traversing according to the number of the memory addresses based on the initial address to obtain a corresponding image memory space.
The terminal can determine the initial address of the image memory space according to the initial address in the handle information, the initial address is the initial address of the image information contained in the image memory space, traversal is performed according to the total number of the memory addresses based on the initial address, and the image information in the whole image memory space can be obtained.
In step S104, the image memory space is accessed to transmit the image information in the image memory space to the third-party application.
The terminal can access the image memory space in real time, and the image memory space has sharing authority, so that the terminal can transmit the image information in the memory space to the AR application in real time, thereby saving the process of Binder communication.
As can be seen from the above, in the transmission method of image information provided in this embodiment, the image memory space of the image stored by the camera application is shared to the third-party application by adjusting the corresponding software development kit in the camera application; acquiring an image memory space, and determining handle information corresponding to the image memory space; when an image transmission instruction of a third-party application is detected, loading handle information to determine a corresponding image memory space; and accessing the image memory space to transmit the image information in the image memory space to a third-party application. Therefore, when the third-party application calls the image information of the camera application, the image information stored in the camera application can be directly loaded from the memory space according to the handle information, so that inconvenience caused by cross-process transmission is avoided, the transmission time of the image information is saved, and the transmission efficiency of the image information is improved.
The method described in the above embodiments is further illustrated in detail by way of example.
Referring to fig. 3, fig. 3 is another schematic flow chart of a method for transmitting image information according to an embodiment of the present disclosure.
Specifically, the method comprises the following steps:
in step S201, the access right of the image memory space of the camera application is adjusted through the software development kit, and the sharing right of the image memory space of the camera application to the third-party application is opened.
For better explanation of the embodiment, the terminal is explained by using a mobile phone, a system as an android system, and a third-party application as an AR application.
Because the applications in the android system cannot share the memory, the mobile phone needs to modify the access permission of the image memory space of the camera application through the SDK, and open the sharing permission of the image memory space of the camera application to the AR application, so that the AR application can directly call the image memory space from the memory at the later stage.
As shown in fig. 4, after the image information is transmitted to the camera client 2 through the camera server 1 and reaches the SDK, the image memory space for storing the image in the SDK in the camera application layer 3 is shared with the augmented reality server 4 of the AR application, so that after the image information is transmitted to the camera client through the camera server and reaches the application SDK, the image information is not required to be transmitted to the augmented reality server through a Binder cross-process communication mode, but can be shared through the image memory space, and the image information in the image memory space in the mobile phone memory is directly called.
In step S202, an image memory space is obtained, and a first address and a memory address number corresponding to the image memory space are determined.
The mobile phone obtains the attribute information of the image memory space, and because the mobile phone digitizes the image information in the image memory space, the mobile phone knows where the image information is stored in the memory. Based on this, the mobile phone can determine the first address and the number of the memory addresses corresponding to the image memory space, where the first address is the first memory address for storing the image information, and the number of the memory addresses is the total number of the memory addresses.
In step S203, handle information corresponding to the image memory space is determined according to the first address and the number of memory addresses.
The mobile phone can generate handle information corresponding to the image memory space according to the first address and the number of the memory addresses, the image information in the image memory space can be found through the handle information, and the handle information can be correspondingly updated according to the change of the memory addresses, so that the corresponding position of the specific image information in the memory can be found only by knowing the handle information.
In step S204, when the image transmission instruction of the third-party application is detected, the start address of the image memory space is determined according to the first address in the handle information.
When the AR application is detected to call the image information in the camera application, an image transmission instruction is generated, namely when the AR application is judged to call the image information in the camera application, a first address of the handle information is obtained, and a starting address of an image memory space is determined according to the first address.
In step S205, traversal is performed according to the number of memory addresses based on the start address to obtain a corresponding image memory space.
The method comprises the steps of traversing according to the number of memory addresses based on the initial address of the image memory space to obtain all the memory addresses storing the image information applied by the camera, and obtaining the image memory space storing the image information applied by the camera.
In step S206, the image memory space is accessed to transmit the image information in the image memory space to the third-party application.
The sharing authority is opened in the image memory space, so that the mobile phone can directly access the image memory space, call the image information in the image memory space and transmit the image information to the AR application, and the AR application can acquire the image information in the camera application in real time and quickly and render the image called in real time.
As can be seen from the above, in the transmission method of image information provided in this embodiment, the access right of the image memory space applied by the camera is adjusted by the SDK, the sharing right of the image memory space applied by the camera to the AR application is opened, the image memory space is obtained, the corresponding handle information is determined according to the head address and the number of the memory addresses corresponding to the image memory space, when an image transmission instruction of a third-party application is detected, the start address of the image memory space is determined according to the head address in the handle information, traversal is performed according to the number of the memory addresses, the image memory space is obtained, the image memory space is accessed, and the image information in the image memory space is transmitted to the third-party application. Therefore, when the third-party application calls the image information of the camera application, the image information stored in the camera application can be directly loaded from the memory space according to the handle information, so that inconvenience caused by cross-process transmission is avoided, the transmission time of the image information is saved, and the transmission efficiency of the image information is improved.
In order to better implement the image information transmission method provided by the embodiment of the present application, the embodiment of the present application further provides a device based on the image information transmission method. The terms are the same as those in the above-mentioned transmission method of image information, and details of implementation may refer to the description in the method embodiment.
Referring to fig. 5, fig. 5 is a schematic block diagram of an image information transmission device according to an embodiment of the present disclosure. Specifically, the image information transmission device 300 includes: an adjusting unit 31, a determining unit 32, a loading unit 33 and a transmitting unit 34.
The adjusting unit 31 is configured to adjust a corresponding software development kit in the camera application, so that the image memory space of the image saved by the camera application is shared by the third party application.
The camera application functions to call a camera on the terminal to perform real-time shooting, and convert optical image information into an electric signal for storage or transmission. The memory space is also referred to as an internal memory, and functions to temporarily store operation data in the cpu and data exchanged with an external memory such as a hard disk.
The software development kit corresponding to the camera application is a set of relevant documents, examples and tools for assisting in developing the camera application, and the adjusting unit 31 adjusts the API, the dynamic link library, the import library, and the like of the software development kit corresponding to the camera application, so that the image memory space corresponding to the camera application can be shared by the third party application. That is to say, the third party application can call the image information in the image memory space quickly.
In some embodiments, the adjusting unit 31 is specifically configured to adjust the access right of the image memory space of the camera application through a software development kit, and open the sharing right of the image memory space of the camera application to the third-party application.
The determining unit 32 is configured to obtain the image memory space, and determine handle information corresponding to the image memory space.
Wherein the handle information is a unique integer value used, i.e., a 4-byte (8-byte in a 64-bit program) long value, to identify different objects in the application program and different instances in the same class, such as a window, button, icon, scroll bar, output device, control or file. The determining unit 32 obtains the storage address information corresponding to the image memory space, and determines the corresponding value 4 bytes or 8 bytes long.
Accordingly, the application can access information of the corresponding object through the handle. That is, the storage address corresponding to the image memory space can be found through the handle information corresponding to the image memory space, that is, the memory address corresponding to the image memory space can be quickly found through the handle information.
The loading unit 33 is configured to, when an image transmission instruction of a third-party application is detected, load the handle information to determine a corresponding image memory space.
The third-party application is other applications other than the camera application, such as an AR application, and since the AR application is an application that renders a corresponding augmented reality image according to a position, i.e., an angle, photographed by a camera, the AR application needs to call image information acquired by the camera application in real time.
Therefore, when the detecting and loading unit 33 detects that the AR application needs to call the image information, an image transmission instruction is generated, that is, when an image transmission instruction of a third-party application is detected, the handle information generated according to the image memory space is loaded, and the memory address corresponding to the image memory space is obtained, so as to determine the corresponding image memory space.
In some embodiments, the loading unit 33 is specifically configured to determine a starting address of the image memory space according to a first address in the handle information, and perform traversal according to the number of memory addresses based on the starting address to obtain a corresponding image memory space.
And the transmission unit 34 is configured to access the image memory space to transmit the image information in the image memory space to a third-party application.
The transmission unit 34 can access the image memory space in real time, and because the image memory space has a sharing right, the transmission unit 34 can transmit the image information in the memory space to the AR application in real time, so that the Binder communication process is saved.
Referring to fig. 6 together, fig. 6 is a schematic block diagram of an image information transmission apparatus according to an embodiment of the present application, where the image information transmission apparatus 300 may further include:
the determining unit 32 may include a first determining unit 331 and a second determining unit 332.
Further, the first determining unit 331 is configured to obtain the image memory space, and determine a first address and a memory address number corresponding to the image memory space. The second determining unit 332 is configured to determine handle information corresponding to the image memory space according to the first address and the number of memory addresses.
The first determining unit 331 obtains the image memory space, and determines the memory block corresponding to the image memory space; and analyzing the memory address corresponding to each memory block to obtain the corresponding first address and the number of the memory addresses.
As can be seen from the above, in the transmission apparatus for image information provided in this embodiment, the adjusting unit 31 adjusts the corresponding software development kit in the camera application, so that the image memory space of the image saved by the camera application is shared by the third party application; the determining unit 32 obtains the image memory space, and determines the handle information corresponding to the image memory space; when the loading unit 33 detects an image transmission instruction of a third-party application, loading handle information to determine a corresponding image memory space; the transmission unit 34 accesses the image memory space to transmit the image information in the image memory space to the third party application. Therefore, when the third-party application calls the image information of the camera application, the image information stored in the camera application can be directly loaded from the memory space according to the handle information, so that inconvenience caused by cross-process transmission is avoided, the transmission time of the image information is saved, and the transmission efficiency of the image information is improved.
The embodiment of the application also provides the electronic equipment. Referring to fig. 7, an electronic device 500 includes a processor 501 and a memory 502. The processor 501 is electrically connected to the memory 502.
The processor 500 is a control center of the electronic device 500, connects various parts of the whole electronic device using various interfaces and lines, performs various functions of the electronic device 500 by running or loading a computer program stored in the memory 502, and calls data stored in the memory 502, and processes the data, thereby performing overall monitoring of the electronic device 500.
The memory 502 may be used to store software programs and modules, and the processor 501 executes various functional applications and data processing by running the computer programs and modules stored in the memory 502. The memory 502 may mainly include a program storage area and a data storage area, wherein the program storage area may store an operating system, a computer program required by at least one function (such as a sound playing function, an image playing function, etc.), and the like; the storage data area may store data created according to use of the electronic device, and the like. Further, the memory 502 may include high speed random access memory, and may also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other volatile solid state storage device. Accordingly, the memory 502 may also include a memory controller to provide the processor 501 with access to the memory 502.
In this embodiment, the processor 501 in the electronic device 500 loads instructions corresponding to one or more processes of the computer program into the memory 502, and the processor 501 runs the computer program stored in the memory 502, so as to implement various functions as follows:
adjusting a corresponding software development kit in the camera application so that an image memory space of an image saved by the camera application is shared to a third party application;
acquiring the image memory space, and determining handle information corresponding to the image memory space;
when an image transmission instruction of a third-party application is detected, loading the handle information to determine a corresponding image memory space;
and accessing the image memory space to transmit the image information in the image memory space to a third-party application.
In some embodiments, when determining the handle information corresponding to the image memory space, the processor 501 may specifically perform the following steps:
determining the first address and the number of memory addresses corresponding to the image memory space;
and determining handle information corresponding to the image memory space according to the first address and the number of the memory addresses.
In some embodiments, when determining the first address and the number of memory addresses corresponding to the image memory space, the processor 501 may specifically perform the following steps:
determining a memory block corresponding to the image memory space;
and analyzing the memory address corresponding to each memory block to obtain the corresponding first address and the number of the memory addresses.
In some embodiments, when loading the handle information to determine the corresponding image memory space, the processor 501 may specifically perform the following steps:
determining the initial address of the image memory space according to the first address in the handle information;
and traversing according to the number of the memory addresses based on the initial address to obtain a corresponding image memory space.
In some embodiments, when adjusting the corresponding software development kit in the camera application so that the image memory space of the image saved by the camera application is shared by the third-party application, the processor 501 may specifically perform the following steps:
and adjusting the access authority of the image memory space applied by the camera through a software development kit, and opening the sharing authority of the image memory space applied by the camera to third-party application.
As can be seen from the above, in the electronic device according to the embodiment of the present application, the image memory space of the image saved by the camera application is shared by the third-party application by adjusting the corresponding software development kit in the camera application; acquiring an image memory space, and determining handle information corresponding to the image memory space; when an image transmission instruction of a third-party application is detected, loading handle information to determine a corresponding image memory space; and accessing the image memory space to transmit the image information in the image memory space to a third-party application. Therefore, when the third-party application calls the image information of the camera application, the image information stored in the camera application can be directly loaded from the memory space according to the handle information, so that inconvenience caused by cross-process transmission is avoided, the transmission time of the image information is saved, and the transmission efficiency of the image information is improved.
Referring to fig. 8, in some embodiments, the electronic device 500 may further include: a display 503, radio frequency circuitry 504, audio circuitry 505, and a power supply 506. The display 503, the rf circuit 504, the audio circuit 505, and the power source 506 are electrically connected to the processor 501.
The display 503 may be used to display information entered by or provided to the user as well as various graphical user interfaces, which may be made up of graphics, text, icons, video, and any combination thereof. The display 503 may include a display panel, and in some embodiments, the display panel may be configured in the form of a Liquid Crystal Display (LCD), an Organic Light-Emitting Diode (OLED), or the like.
The rf circuit 504 may be used for transceiving rf signals to establish wireless communication with a network device or other electronic devices via wireless communication, and for transceiving signals with the network device or other electronic devices.
The audio circuit 505 may be used to provide an audio interface between a user and an electronic device through a speaker, microphone.
The power source 506 may be used to power various components of the electronic device 500. In some embodiments, power supply 506 may be logically coupled to processor 501 through a power management system, such that functions of managing charging, discharging, and power consumption are performed through the power management system.
Although not shown in fig. 8, the electronic device 500 may further include a camera, a bluetooth module, and the like, which are not described in detail herein.
An embodiment of the present application further provides a storage medium, where the storage medium stores a computer program, and when the computer program runs on a computer, the computer is caused to execute the image information transmission method in any one of the above embodiments, such as: adjusting a corresponding software development kit in the camera application so that an image memory space of the image saved by the camera application is shared to a third party application; acquiring an image memory space, and determining handle information corresponding to the image memory space; when an image transmission instruction of a third-party application is detected, loading handle information to determine a corresponding image memory space; and accessing the image memory space to transmit the image information in the image memory space to a third-party application.
In the embodiment of the present application, the storage medium may be a magnetic disk, an optical disk, a Read Only Memory (ROM), a Random Access Memory (RAM), or the like.
In the foregoing embodiments, the descriptions of the respective embodiments have respective emphasis, and for parts that are not described in detail in a certain embodiment, reference may be made to related descriptions of other embodiments.
It should be noted that, for the image information transmission method of the embodiment of the present application, it can be understood by a person skilled in the art that all or part of the process of implementing the image information transmission method of the embodiment of the present application can be completed by controlling the relevant hardware through a computer program, where the computer program can be stored in a computer readable storage medium, such as a memory of an electronic device, and executed by at least one processor in the electronic device, and during the execution process, the process of the embodiment of the image information transmission method can be included. The storage medium may be a magnetic disk, an optical disk, a read-only memory, a random access memory, etc.
In the image information transmission device according to the embodiment of the present application, each functional module may be integrated into one processing chip, each module may exist alone physically, or two or more modules may be integrated into one module. The integrated module can be realized in a hardware mode, and can also be realized in a software functional module mode. The integrated module, if implemented in the form of a software functional module and sold or used as a stand-alone product, may also be stored in a computer readable storage medium, such as a read-only memory, a magnetic or optical disk, or the like.
The foregoing describes in detail a method, an apparatus, a storage medium, and an electronic device for transmitting image information provided in an embodiment of the present application, and a specific example is applied in the present application to explain the principle and the implementation of the present application, and the description of the foregoing embodiment is only used to help understand the method and the core idea of the present application; meanwhile, for those skilled in the art, according to the idea of the present application, there may be variations in the specific embodiments and the application scope, and in summary, the content of the present specification should not be construed as a limitation to the present application.

Claims (4)

1. A method for transmitting image information, comprising:
adjusting the access right of an image memory space of a camera application through a software development kit, and opening the sharing right of the image memory space of the camera application to a third party application, so that the third party application can directly call the image information of the image memory space;
acquiring the image memory space, and determining a memory block corresponding to the image memory space;
analyzing the memory address corresponding to each memory block to obtain a corresponding first address and the number of the memory addresses;
determining handle information corresponding to the image memory space according to the initial address and the number of the memory addresses;
when an image transmission instruction of a third-party application is detected, determining a starting address of the image memory space according to a first address in the handle information;
traversing according to the number of memory addresses based on the initial address to obtain a corresponding image memory space;
and accessing the image memory space to transmit the image information in the image memory space to a third-party application.
2. An apparatus for transmitting image information, comprising:
the adjusting unit is used for adjusting the access right of the image memory space of the camera application through a software development kit, and opening the sharing right of the image memory space of the camera application to a third party application, so that the third party application can directly call the image information of the image memory space;
the determining unit is used for acquiring the image memory space and determining handle information corresponding to the image memory space;
the determination unit includes:
the first determining unit is used for acquiring the image memory space and determining a first address and the number of memory addresses corresponding to the image memory space;
a second determining unit, configured to determine, according to the first address and the number of memory addresses, handle information corresponding to the image memory space;
the first determining unit is specifically configured to: acquiring the image memory space, and determining a memory block corresponding to the image memory space; analyzing the memory address corresponding to each memory block to obtain a corresponding first address and the number of the memory addresses;
the loading unit is used for determining the initial address of the image memory space according to the initial address in the handle information when the image transmission instruction of the third-party application is detected; traversing according to the number of memory addresses based on the initial address to obtain a corresponding image memory space;
and the transmission unit is used for accessing the image memory space so as to transmit the image information in the image memory space to a third-party application.
3. A storage medium on which a computer program is stored, characterized in that when the computer program runs on a computer, the computer is caused to execute the transmission method of image information according to claim 1.
4. An electronic device comprising a processor and a memory, said memory storing a computer program, characterized in that said processor is adapted to execute the method of transmission of image information according to claim 1 by invoking said computer program.
CN201810982933.3A 2018-08-27 2018-08-27 Image information transmission method and device, storage medium and electronic equipment Active CN109213613B (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN201810982933.3A CN109213613B (en) 2018-08-27 2018-08-27 Image information transmission method and device, storage medium and electronic equipment
PCT/CN2019/095433 WO2020042769A1 (en) 2018-08-27 2019-07-10 Image information transmission method and apparatus, and storage medium and electronic device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810982933.3A CN109213613B (en) 2018-08-27 2018-08-27 Image information transmission method and device, storage medium and electronic equipment

Publications (2)

Publication Number Publication Date
CN109213613A CN109213613A (en) 2019-01-15
CN109213613B true CN109213613B (en) 2020-08-14

Family

ID=64985829

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810982933.3A Active CN109213613B (en) 2018-08-27 2018-08-27 Image information transmission method and device, storage medium and electronic equipment

Country Status (2)

Country Link
CN (1) CN109213613B (en)
WO (1) WO2020042769A1 (en)

Families Citing this family (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109213613B (en) * 2018-08-27 2020-08-14 Oppo广东移动通信有限公司 Image information transmission method and device, storage medium and electronic equipment
CN110134532A (en) * 2019-05-13 2019-08-16 浙江商汤科技开发有限公司 A kind of information interacting method and device, electronic equipment and storage medium
CN112068968B (en) * 2019-06-11 2022-10-18 成都鼎桥通信技术有限公司 Service access method and device for dual-system terminal
CN111930641A (en) * 2020-07-28 2020-11-13 展讯通信(天津)有限公司 Image data processing method and intelligent equipment
CN112004147A (en) * 2020-08-20 2020-11-27 北京云中融信网络科技有限公司 Video rendering method and device, electronic equipment and storage medium
CN112181340B (en) * 2020-09-29 2022-05-31 联想(北京)有限公司 AR image sharing method and electronic device

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103327278A (en) * 2013-07-10 2013-09-25 亿览在线网络技术(北京)有限公司 Real time sharing method and device of images
CN106708631A (en) * 2016-11-30 2017-05-24 福建省天奕网络科技有限公司 Shared memory property modification method and system
CN107329742A (en) * 2017-06-14 2017-11-07 北京小米移动软件有限公司 SDK call method and device

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20070152076A1 (en) * 2004-12-13 2007-07-05 Chiang Kuo C Monitoring system with a wireless transmitting/receiving module
US20110131492A1 (en) * 2009-11-27 2011-06-02 Ching-Yao Chen Audio-visual multimedia transmitting/editing device
CN109213613B (en) * 2018-08-27 2020-08-14 Oppo广东移动通信有限公司 Image information transmission method and device, storage medium and electronic equipment

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103327278A (en) * 2013-07-10 2013-09-25 亿览在线网络技术(北京)有限公司 Real time sharing method and device of images
CN106708631A (en) * 2016-11-30 2017-05-24 福建省天奕网络科技有限公司 Shared memory property modification method and system
CN107329742A (en) * 2017-06-14 2017-11-07 北京小米移动软件有限公司 SDK call method and device

Also Published As

Publication number Publication date
CN109213613A (en) 2019-01-15
WO2020042769A1 (en) 2020-03-05

Similar Documents

Publication Publication Date Title
CN109213613B (en) Image information transmission method and device, storage medium and electronic equipment
CN109358936B (en) Information processing method, device, storage medium, electronic device and system
CN109101352B (en) Image processing algorithm architecture, algorithm calling method, device, storage medium and mobile terminal
CN109408136B (en) Information processing method, information processing apparatus, storage medium, and electronic device
WO2022199111A1 (en) Method and apparatus for implementing functions in application program, electronic device and storage medium
Haris et al. Evolution of android operating system: a review
US10955904B2 (en) Method, apparatus and storage medium for processing application of mobile terminal and electronic device
EP3859521A1 (en) Theme color adjusting method and apparatus, storage medium, and electronic device
CN113867848A (en) Method, device and equipment for calling graphic interface and readable storage medium
CN110471701B (en) Image rendering method and device, storage medium and electronic equipment
JP6820160B2 (en) Programs and systems that render images
CN114327087A (en) Input event processing method and device, electronic equipment and storage medium
CN112416303B (en) Software development kit hot repair method and device and electronic equipment
JP2017142792A (en) File protection method
CN114625439A (en) Sub-application operation method based on micro front-end architecture, electronic device and storage medium
US10452838B2 (en) Providing joint access to an isolated computer object by both an isolated computer application and a non-isolated computer application
CN106547485B (en) Data migration method and device
KR20150116720A (en) Memory System and Electronic device including memory system
CN114070892A (en) Data transmission method and device
CN107395737A (en) Access method, apparatus, system and the computer-readable recording medium of Internet resources
CN113784075A (en) Screen video reading method and system and computing device
WO2020063088A1 (en) Method for calling bottom layer of game platform, and related product
CN113392120A (en) Method and device for acquiring execution information of SQLite
CN113485923B (en) Project code detection method and device and electronic equipment
WO2023169157A1 (en) Sub application running method and apparatus, electronic device, program product, 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
GR01 Patent grant
GR01 Patent grant