Photographing method, electronic equipment and storage medium
By using shared memory in electronic devices to save and display captured pictures, the problem of long-term encoding and decoding processes in the prior art is solved, and faster picture display speed and lower equipment overhead are achieved.
Patent Information
- Application Number
- CN202510084532.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-09-20
- Publication Date
- 2025-03-28
- Estimated Expiration
- 2044-09-20
AI Technical Summary
After taking pictures, the prior art needs to display the pictures through the process of encoding and decoding, which results in a longer time and increases equipment overhead.
Added shared memory to electronic devices. After the first application calls the camera to take a picture, it saves the picture in shared memory and directly retrieves and displays it from the shared memory when displayed, avoiding the encoding and decoding process.
The encoding and decoding process is reduced, the picture display speed is improved, and the overhead of the device performing the encoding and decoding process is reduced.
Smart Images

Figure CN119729191A_ABST
Abstract
Description
[0001] This application is a divisional application. The application number of the original application is 202411322489.4, and the original application date is September 20, 2024. The entire contents of the original application are incorporated into this application by reference. Technical Field
[0002] The present application relates to the field of terminal technology, and in particular to a photographing method, an electronic device and a storage medium. Background Art
[0003] With the development of terminal technology, the number of applications installed on electronic devices is increasing. Users can use the applications installed on electronic devices to take photos / videos, watch TV series, listen to music, make phone calls, etc., which greatly improves people's user experience.
[0004] For example, a user can use a camera application installed on an electronic device to take a picture and encode the picture into a file and save it in the memory of the electronic device. When the user needs to view the taken picture, the gallery application can obtain the file from the memory of the electronic device, decode the file to obtain the picture and display the picture, and the user can view the picture just taken in the gallery application. Generally speaking, after taking the picture, the user will immediately check the effect of the current picture. From the above process, it can be seen that the display process needs to go through the encoding and decoding process before the electronic device can display the picture in the gallery application, which takes a long time, and the encoding and decoding process will also increase the overhead of the electronic device. Summary of the invention
[0005] The present application provides a photographing method, an electronic device, and a storage medium. The electronic device can add a shared memory, and after the first application calls the camera of the electronic device to take a picture, the electronic device can save the picture in the shared memory. When the electronic device displays the picture, the electronic device can obtain and display the picture from the shared memory. The encoding and decoding process is reduced, the speed at which the electronic device displays the picture is accelerated, and the overhead of the electronic device performing the encoding and decoding process is also reduced.
[0006] In a first aspect, the present application provides a photographing method, comprising: an electronic device receiving a photographing operation of a user; in response to the photographing operation, the electronic device obtaining a first picture and storing the first picture in a shared memory of the electronic device; the electronic device displays the first picture, and the first picture is obtained by the electronic device from the shared memory of the electronic device.
[0007] Through this method, the electronic device can add a shared memory. After the first application calls the camera of the electronic device to take a picture, the electronic device can save the picture in the shared memory. When the electronic device displays the picture, the electronic device can obtain and display the picture from the shared memory. The encoding and decoding process is reduced, the speed at which the electronic device displays the picture is accelerated, and the overhead of the electronic device performing the encoding and decoding process is also reduced.
[0008] Optionally, the electronic device may receive a user's photo-taking operation in a camera application. Figure 3A-3C Description in the examples.
[0009] The electronic device may also receive the user's photo-taking operation in the first application, such as an instant messaging application or a photo-making application. Figure 3D-Figure 3N Description in the examples.
[0010] How the electronic device stores the first image in the shared memory of the electronic device can be referred to Figure 4 Description in the examples.
[0011] Optionally, after receiving the user's photo taking operation and the user's operation of viewing the first picture, the electronic device may obtain the first picture from the shared memory of the electronic device and display the first picture. Figure 6A-6B , Figure 6C-D , Figure 6E-Figure 6I Description in the examples.
[0012] Optionally, after receiving the user's photo-taking operation, the electronic device may also automatically obtain the first image from the shared memory of the electronic device and display the first image. Fig. 3I , Figure 3N Description in the examples.
[0013] In combination with the first aspect, in a possible implementation method, an application in the electronic device accesses and obtains the first image corresponding to the shared memory object stored in the shared memory according to the shared memory object of the first image, and the shared memory object is used to indicate the storage location of the first image in the shared content.
[0014] In combination with the first aspect, in a possible implementation method, an electronic device displays a first picture, specifically including: a first application or a gallery application in the electronic device obtains a shared memory object through a media library, and the shared memory object is used to indicate a storage location of the first picture in the shared content; the first application or the gallery application in the electronic device obtains the first picture based on the shared memory object; and the first application displays the first picture.
[0015] In this way, the first application or the gallery application can obtain the first picture from the shared memory through the media library.
[0016] Exemplarily, the first application may be an instant messaging application or a photo application.
[0017] For example, how the first application or the gallery application displays the first image can be referred to Fig. 8A Description in the Examples.
[0018] In combination with the first aspect, in a possible implementation method, a first application or a gallery application in an electronic device obtains a shared memory object through a media library, specifically including: the first application or the gallery application in the electronic device receives a first operation of a user to view a first picture; in response to the first operation, the first application or the gallery application in the electronic device obtains a shared memory object through the media library.
[0019] In this way, after receiving the user's operation of viewing the first picture, the electronic device can obtain the first picture from the shared memory of the electronic device and display the first picture.
[0020] In combination with the first aspect, in a possible implementation manner, after storing the first picture in a shared memory of the electronic device, the method further includes: a media library in the electronic device saving a shared memory object of the first picture.
[0021] In this way, after receiving the user's photo-taking operation, the electronic device can also automatically obtain the first image from the shared memory of the electronic device and display the first image.
[0022] In combination with the first aspect, in a possible implementation manner, the first picture stored in the shared memory is an uncoded picture.
[0023] In combination with the first aspect, in a possible implementation manner, the first image includes any one of a YUV format, an RGB format, an RGBA format, and an ARGB format.
[0024] In combination with the first aspect, in a possible implementation, after the electronic device stores the first picture in a shared memory of the electronic device, the method further includes: the electronic device encodes the first picture into a first file, and stores the first file in a memory of the electronic device.
[0025] In this way, after the electronic device stores the first image in the shared memory of the electronic device, the electronic device can directly encode the first image into a first file and store it in the memory, thereby avoiding the situation where the electronic device suddenly shuts down before the first image is stored in the memory, resulting in the loss of the first image stored in the shared memory of the electronic device.
[0026] In some embodiments, after the electronic device encodes the first image into a first file and stores it in a memory, after the electronic device is turned off, the electronic device clears the first image stored in the shared memory.
[0027] In a possible implementation, before the electronic device is turned off, if the electronic device has cleared the first image stored in the shared memory, after the electronic device is turned on, the electronic device can automatically decode the first file into the first image and store it in the shared memory.
[0028] In one possible implementation, after the electronic device is turned on, if the electronic device has cleared the first picture stored in the shared memory, when the electronic device receives an operation from the user to view the first picture, the electronic device decodes the first file into the first picture and stores it in the shared memory.
[0029] For example, please refer to Figure 8B Description in the Examples.
[0030] In combination with the first aspect, in a possible implementation, after the electronic device stores the first picture in the shared memory of the electronic device, the method also includes: after the duration of the first picture stored in the shared memory of the electronic device reaches a first duration, the electronic device encodes the first picture into a first file and stores the first file in the memory of the electronic device.
[0031] In this way, after the duration of the first image stored in the shared memory exceeds the first duration, if the user does not perform an operation to delete the first image, the electronic device can encode the first image into a first file and store it in the memory, that is, permanently save the first file.
[0032] Optionally, after the electronic device stores the first file in the memory of the electronic device, the electronic device may also delete the first image stored in the shared memory.
[0033] In this way, the electronic device can clean up the pictures stored in the shared memory in time to save the storage space of the shared memory.
[0034] For example, please refer to Figure 8B Description in the Examples.
[0035] In combination with the first aspect, in a possible implementation, after the electronic device stores the first picture in a shared memory of the electronic device, the method also includes: the electronic device receives a second operation of the user to save the first picture; in response to the second operation, the electronic device encodes the first picture into a first file, and stores the first file in the memory of the electronic device.
[0036] In this way, after the duration of the first image stored in the shared memory exceeds the first duration, the electronic device can encode the first image into a first file and store it in the memory after receiving the second operation of saving the first image.
[0037] Optionally, after the electronic device stores the first file in the memory of the electronic device, the electronic device may also delete the first image stored in the shared memory.
[0038] In this way, the electronic device can clean up the pictures stored in the shared memory in time to save the storage space of the shared memory.
[0039] Exemplarily, the second operation of saving the first image may be for Fig. 3I 3006. For example, the second operation of saving the first picture may be for Figure 3N The input operation of the save option 3013 is shown.
[0040] You can refer to Fig. 8A Description in the Examples.
[0041] In combination with the first aspect, in a possible implementation manner, the first file includes any one of a jpeg format and a heif format.
[0042] In combination with the first aspect, in a possible implementation manner, the method further includes: after the duration of the first image stored in the shared memory of the electronic device reaches a first duration, the electronic device deletes the first image stored in the shared memory.
[0043] In this way, after the duration of the first picture stored in the shared memory exceeds the first duration, the electronic device can clear the pictures stored in the shared memory in time to save the storage space of the shared memory.
[0044] In combination with the first aspect, in a possible implementation, after the electronic device displays the first picture, the method also includes: the electronic device receives a third operation of the user to delete the first picture; in response to the third operation, the electronic device deletes the first picture stored in the shared memory of the electronic device.
[0045] In this way, after the electronic device receives the third operation of deleting the first picture from the user, the electronic device deletes the first picture stored in the shared memory.
[0046] Exemplarily, the third operation of deleting the first picture may be: Figure 9A-9E Operations in .
[0047] For example, how the electronic device deletes the first picture stored in the shared memory can refer to Fig.10 Description in the Examples.
[0048] In combination with the first aspect, in a possible implementation, the method also includes: if the electronic device has encoded the first image into a first file and stored the first file in a memory of the electronic device, in response to the third operation, the electronic device also needs to delete the first file corresponding to the first image stored in the memory of the electronic device.
[0049] For example, how the electronic device deletes the first file corresponding to the first picture stored in the memory can refer to Fig.11 Description in the examples.
[0050] In this way, if the electronic device has encoded the first image as a first file and stored it in the memory, after the electronic device receives the third operation of the user to delete the first image, the electronic device also needs to delete the first file corresponding to the first image stored in the memory. If the electronic device has not encoded the first image as a first file and stored it in the memory, after the electronic device receives the third operation of the user to delete the first image, the electronic device only needs to delete the first image stored in the shared memory.
[0051] In combination with the first aspect, in a possible implementation, the first application is an application that comes with the electronic device system, for example, the first application may be a gallery application, or the first application is a third-party application, for example, the first application may be an instant messaging application or a beauty application.
[0052] In combination with the first aspect, in a possible implementation, the electronic device includes a camera sub-service; before the first application or gallery application in the electronic device obtains the shared memory object through the media library, the method also includes: the camera sub-service obtains the shared memory object of the first image in the shared memory, and sends the shared memory object to the media library.
[0053] In combination with the first aspect, in a possible implementation method, the camera sub-service sends the shared memory object of the first image in the shared memory to the media library, specifically including: the camera sub-service encapsulates the shared memory object of the first image in the shared memory as a binder instruction; the camera sub-service sends the binder instruction to the media library; the media library parses the binder instruction to obtain the shared memory object of the first image in the shared memory.
[0054] In this way, the camera sub-service can send the shared memory object of the first image in the shared memory to the media library across processes through the binder communication mechanism.
[0055] For example, please refer to Figure 5 Description in the examples.
[0056] In combination with the first aspect, in a possible implementation, the electronic device includes a media library; the electronic device receives a third operation of the user to delete a first picture, specifically including: the electronic device receives the third operation of the user to delete the first picture through a first application or a gallery application; in response to the third operation, the electronic device deletes the first picture stored in a shared memory of the electronic device, specifically including: in response to the third operation, the first application or the gallery application sends a deletion instruction to the media library; in response to the deletion instruction, the media library deletes the first picture stored in the shared memory of the electronic device.
[0057] For example, how the electronic device deletes the first picture stored in the shared memory can refer to Fig.10 Description in the examples.
[0058] In a second aspect, the present application provides an electronic device, which includes a memory and a processor; wherein the memory and the processor are coupled, and the memory is used to store a computer program. When the processor executes and calls the computer program, the electronic device executes a photo-taking method provided in any possible implementation of the first aspect above.
[0059] In a third aspect, the present application provides a computer-readable storage medium, comprising instructions, which, when executed on an electronic device, enables the electronic device to execute a photographing method provided in any possible implementation of the first aspect.
[0060] In a fourth aspect, the present application provides a chip system, which includes one or more processors, and the processor is used to call computer instructions to enable an electronic device to execute a photographing method provided in any possible implementation of the first aspect above.
[0061] In a fifth aspect, the present application provides a computer program product comprising instructions. When the computer program product is run on an electronic device, the electronic device executes a photographing method provided in any possible implementation of the first aspect.
[0062] For the description of the beneficial effects of the second to fifth aspects, reference may be made to the description of the beneficial effects in the first aspect, and this application will not repeat them here. BRIEF DESCRIPTION OF THE DRAWINGS
[0063] Figure 1A A schematic diagram showing a camera application taking pictures and saving the pictures;
[0064] Figure 1B A schematic diagram showing a user viewing a first picture taken by a camera application through a gallery application;
[0065] Figure 1C A schematic diagram showing a user deleting a first file through a gallery application;
[0066] Figure 2A A hardware structure diagram of an electronic device 100 provided in the present application is shown;
[0067] Figure 2B is a software structure block diagram of the electronic device 100 according to an embodiment of the present application;
[0068] Figure 3A-Figure 3N The UI diagram shows that the electronic device 100 captures and saves the first picture;
[0069] Figure 4 A schematic flow chart of a method in which the electronic device 100 stores a first picture in a shared memory of the electronic device 100 is shown;
[0070] Figure 5 A schematic diagram showing how the camera subservice sends a shared memory object of a first picture to the media library;
[0071] Figure 6A-6B A set of schematic diagrams showing viewing a first picture in a gallery application are shown;
[0072] Figure 6C-D A set of schematic diagrams showing viewing a first picture in a first application are shown;
[0073] Figure 6E-Figure 6I Another set of schematic diagrams showing viewing a first picture in a gallery application is shown;
[0074] Figure 7 A schematic flow chart of a method for an electronic device 100 to receive a request from a user to view a first picture in a first application or a gallery application is shown;
[0075] Fig. 8A A schematic flow chart of a method for an electronic device 100 to save a first file corresponding to a first picture is shown;
[0076] Figure 8B A schematic flow chart of another method for an electronic device 100 to save a first file corresponding to a first picture is shown;
[0077] Figure 8C A schematic flow chart of another method for an electronic device 100 to receive a first picture viewed by a user in a first application or a gallery application is shown;
[0078] Figure 9A-9B A schematic diagram showing a user deleting a first picture acquired by a first application calling a camera in a gallery application;
[0079] Figure 9C-9E A schematic diagram showing a user deleting a first picture acquired by the first application through calling a camera in the first application;
[0080] Fig.10 A schematic flow chart of a method in which the electronic device 100 receives an operation of deleting a first picture from a user and deletes the first picture stored in a shared memory is shown;
[0081] Fig.11 A schematic flow chart of a method in which the electronic device 100 receives an operation of deleting a first picture from a user and deletes a first file stored in a memory is shown;
[0082] Fig.12 A schematic diagram of a process flow of a photographing method provided in this application. DETAILED DESCRIPTION
[0083] The technical solutions in the embodiments of the present application will be described clearly and in detail below in conjunction with the accompanying drawings. In the description of the embodiments of the present application, unless otherwise specified, " / " means or, for example, A / B can mean A or B; "and / or" in the text is only a description of the association relationship of associated objects, indicating that there can be three relationships, for example, A and / or B can mean: A exists alone, A and B exist at the same time, and B exists alone. In addition, in the description of the embodiments of the present application, "multiple" means two or more than two.
[0084] In the following, the terms "first" and "second" are used for descriptive purposes only and are not to be understood as suggesting or implying relative importance or implicitly indicating the number of the indicated technical features. Thus, a feature defined as "first" or "second" may explicitly or implicitly include one or more of the features, and in the description of the embodiments of the present application, unless otherwise specified, "plurality" means two or more.
[0085] The term "user interface (UI)" in the following embodiments of the present application refers to a medium interface for interaction and information exchange between an application or operating system and a user, which realizes the conversion between the internal form of information and the form acceptable to the user. The commonly used form of user interface is the graphical user interface (GUI), which refers to a user interface related to computer operation displayed in a graphical manner. It can be a visual interface element such as text, icons, buttons, menus, tabs, text boxes, dialog boxes, status bars, navigation bars, widgets, etc. displayed on the display screen of a wearable device.
[0086] First, combining the camera application and the gallery application, the process of electronic equipment taking pictures, saving pictures, and users viewing pictures is introduced.
[0087] Figure 1A A schematic diagram showing the process of using a camera application to take pictures and save the pictures is shown.
[0088] like Figure 1A As shown, the electronic device 100 may include an application layer, an application framework layer, and a hardware layer. The application layer may include multiple applications installed in the electronic device 100, such as a camera application and a gallery application. The application framework layer may include a camera sub-service and a media library. The hardware layer may include a camera and a memory.
[0089] The process of the camera application taking the first picture and saving the first picture can be shown in the following steps:
[0090] 1. The camera application receives the user's photo operation.
[0091] 2. The camera application sends a photo-taking command to the camera subservice.
[0092] 3. The camera subservice sends a photo-taking command to the camera.
[0093] 4. The camera obtains the first picture and sends the first picture to the camera subservice.
[0094] Exemplarily, the first image may be in RGB format, RGBA format, YUV format, etc.
[0095] 5. The camera subservice sends the first picture to the camera application.
[0096] 6. The camera application encodes the first picture into a first file and sends the first file to the media library.
[0097] Since the data stored in the memory needs to be stored in the form of a file, the first picture cannot be directly stored in the memory. The camera application needs to encode the first picture into a first file and then store the first file in the memory.
[0098] Exemplarily, the first file may be in jpeg format.
[0099] 7. The media library stores the first file in the memory.
[0100] In some embodiments, after the user takes the first picture through the camera application, the user can view the first picture in the gallery application.
[0101] Figure 1B A schematic diagram showing a user viewing a first picture taken by a camera application through a gallery application.
[0102] 1. The gallery application receives an operation from the user to view the first picture.
[0103] Exemplarily, the operation of viewing the first picture may be an operation of clicking a thumbnail of the first picture.
[0104] 2. The gallery application sends a viewing instruction to the media library.
[0105] 3. In response to the viewing instruction, the media library obtains the first file from the memory.
[0106] 4. The media library sends the first file to the gallery application.
[0107] 5. The gallery application decodes the first file to obtain the first picture, and displays the first picture.
[0108] from Figure 1A-1B It can be seen that after the camera application captures the first picture, the camera application will encode the first picture into a first file and save it in the memory of the electronic device 100 .
[0109] Generally speaking, after the camera application takes the first picture, the user will immediately check the effect of the first picture taken.
[0110] When the user needs to view the first picture taken, for example, when the user clicks on the thumbnail of the first picture, the gallery application needs to obtain the first file from the memory of the electronic device, decode the first file to obtain the first picture, and display the first picture. The user can view the first picture just taken in the gallery application.
[0111] The process of displaying the first picture by the gallery application needs to go through two processes, encoding and decoding, which takes a long time. After the user clicks the thumbnail of the first picture, it is necessary to wait for the gallery application to decode the first file into the first picture. The user needs to wait for a while before the gallery application can display the first picture, which is not a good user experience. In addition, the above two processes of encoding and decoding will also increase the overhead of the electronic device.
[0112] In some embodiments, after the user views the first picture in the gallery application, if the user is not satisfied with the shooting effect of the first picture, the electronic device 100 can receive a user operation to delete the first picture.
[0113] Figure 1C A schematic diagram showing a user deleting a first file through a gallery application is shown.
[0114] 1. The gallery application receives an operation from the user to delete the first picture.
[0115] 2. The gallery application sends a delete command to the media library.
[0116] 3. The media library sends a delete command to the storage.
[0117] 4. In response to the deletion instruction, the memory deletes the first file.
[0118] from Figure 1B-Figure 1CIt can be seen that after viewing the first picture, if the user is not satisfied with the shooting effect of the first picture, the user can choose to delete the first picture, and the gallery application can delete the first file stored in the memory through the media library. However, deleting the first file stored in the memory through the media library is an IO operation of the file system, which is also a time-consuming operation and will also increase the overhead of the electronic device 100.
[0119] Based on the above analysis, the present application provides a method for taking pictures, and the electronic device 100 can create a shared memory. The first application and the gallery application can access the data stored in the shared memory. After the first application calls the camera to take a picture, the first application can save the acquired first picture in the shared memory. When the electronic device 100 receives a user operation to view the first picture in the gallery application or the first application, the gallery application or the first application can obtain the first picture from the shared memory and display the first picture.
[0120] In this way, when the user needs to view the first application, the gallery application or the first application can obtain the first picture from the shared memory without obtaining the first file from the storage device or performing the step of decoding the first file to obtain the first picture. This speeds up the speed at which the gallery application or the first application obtains the first picture, and also saves the step of the gallery application or the first application obtaining the first picture.
[0121] In some embodiments, the electronic device 100 may encode the first image stored in the shared memory into a first file and save the first file in the memory. In this way, the electronic device 100 may permanently save the first file to avoid the first image stored in the shared memory from being lost after the electronic device 100 is turned off.
[0122] Optionally, after waiting for the first time period, if the user does not perform the operation of deleting the first picture, the electronic device 100 can encode the first picture into a first file and save the first file in the memory. In this way, in the case where the user is not satisfied with the shooting effect of the first picture and needs to delete the first picture, the electronic device 100 only needs to delete the first picture stored in the shared memory, saving the operation of the electronic device 100.
[0123] In some embodiments, the electronic device 100 may clear the first image stored in the shared memory after the storage time reaches a first duration to save storage space of the shared memory.
[0124] Figure 2A A hardware structure diagram of an electronic device 100 provided in the present application is shown.
[0125] The electronic device 100 may include a processor 110, an external memory interface 120, an internal memory 121, a universal serial bus (USB) interface 130, a charging management module 140, a power management module 141, a battery 142, an antenna 1, an antenna 2, a mobile communication module 150, a wireless communication module 160, an audio module 170, a speaker 170A, a receiver 170B, a microphone 170C, a sensor module 180, a display screen 194, a subscriber identification module (SIM) card interface 195, etc. The sensor module 180 may include one or more sensors, such as a gyroscope sensor 180B, a magnetic sensor 180D, an acceleration sensor 180E, a distance sensor 180F, a touch sensor 180K, etc. In some embodiments, the sensor module 180 may also include one or more of a pressure sensor, an air pressure sensor, a proximity light sensor, a fingerprint sensor, a temperature sensor, an ambient light sensor, a bone conduction sensor, and the like.
[0126] It is to be understood that the structure illustrated in the embodiment of the present application does not constitute a specific limitation on the electronic device 100. In other embodiments of the present application, the electronic device 100 may include more or fewer components than shown in the figure, or combine some components, or split some components, or arrange the components differently. The components shown in the figure may be implemented in hardware, software, or a combination of software and hardware.
[0127] The processor 110 may include one or more processing units, for example, the processor 110 may include an application processor (AP), a modem processor, a graphics processor (GPU), an image signal processor (ISP), a controller, a video codec, a digital signal processor (DSP), a baseband processor, and / or a neural-network processing unit (NPU), etc. Different processing units may be independent devices or integrated into one or more processors.
[0128] The controller can generate operation control signals according to the instruction operation code and timing signal to complete the control of instruction fetching and execution.
[0129] A memory may also be provided in the processor 110 for storing instructions and data. In some embodiments, the memory in the processor 110 is a cache memory. The memory may store instructions or data that the processor 110 has just used or circulated. If the processor 110 needs to use the instruction or data again, it may be directly called from the memory. Repeated access is avoided, the waiting time of the processor 110 is reduced, and the efficiency of the system is improved. In some embodiments, the processor 110 may include one or more interfaces, such as a universal serial bus (USB) interface, etc.
[0130] The USB interface 130 is an interface that complies with the USB standard specification, and specifically can be a MiniUSB interface, a MicroUSB interface, a USB Type C interface, etc. The USB interface 130 can be used to connect a charger to charge the electronic device 100, and can also be used to transmit data between the electronic device 100 and a peripheral device. It can also be used to connect headphones to play audio through the headphones. The interface can also be used to connect other electronic devices, such as AR devices, etc.
[0131] The charging management module 140 is used to receive charging input from a charger. The charger may be a wireless charger or a wired charger. In some wired charging embodiments, the charging management module 140 may receive charging input from a wired charger through the USB interface 130. In some wireless charging embodiments, the charging management module 140 may receive wireless charging input through a wireless charging coil of the electronic device 100. While the charging management module 140 is charging the battery 142, it may also power the electronic device through the power management module 141.
[0132] The power management module 141 is used to connect the battery 142, the charging management module 140 and the processor 110. The power management module 141 receives input from the battery 142 and / or the charging management module 140, and provides power to the processor 110, the internal memory 121, the display screen 194 and the wireless communication module 160. The power management module 141 can also be used to monitor parameters such as battery capacity, battery cycle number, battery health status (leakage, impedance), etc. In some other embodiments, the power management module 141 can also be set in the processor 110. In other embodiments, the power management module 141 and the charging management module 140 can also be set in the same device.
[0133] The wireless communication function of the electronic device 100 can be implemented through the antenna 1, the antenna 2, the mobile communication module 150, the wireless communication module 160, the modem processor and the baseband processor.
[0134] Antenna 1 and antenna 2 are used to transmit and receive electromagnetic wave signals. Each antenna in electronic device 100 can be used to cover a single or multiple communication frequency bands. Different antennas can also be reused to improve the utilization of antennas. For example, antenna 1 can be reused as a diversity antenna for a wireless local area network. In some other embodiments, the antenna can be used in combination with a tuning switch.
[0135] The mobile communication module 150 can provide solutions for wireless communications including 2G / 3G / 4G / 5G, etc., applied to the electronic device 100. The mobile communication module 150 may include at least one filter, a switch, a power amplifier, a low noise amplifier (LNA), etc. The mobile communication module 150 can receive electromagnetic waves from the antenna 1, and filter, amplify, and process the received electromagnetic waves, and transmit them to the modulation and demodulation processor for demodulation. The mobile communication module 150 can also amplify the signal modulated by the modulation and demodulation processor, and convert it into electromagnetic waves for radiation through the antenna 1. In some embodiments, at least some of the functional modules of the mobile communication module 150 can be set in the processor 110. In some embodiments, at least some of the functional modules of the mobile communication module 150 can be set in the same device as at least some of the modules of the processor 110.
[0136] The wireless communication module 160 can provide wireless communication solutions including wireless local area networks (WLAN) (such as wireless fidelity (Wi-Fi) networks), bluetooth (BT), global navigation satellite system (GNSS), frequency modulation (FM), near field communication (NFC), infrared (IR), etc., which are applied to the electronic device 100. The wireless communication module 160 can be one or more devices integrating at least one communication processing module. The wireless communication module 160 receives electromagnetic waves via the antenna 2, demodulates and filters the electromagnetic wave signals, and sends the processed signals to the processor 110. The wireless communication module 160 can also receive the signal to be sent from the processor 110, modulate the frequency, amplify it, and convert it into electromagnetic waves for radiation through the antenna 2.
[0137] In some embodiments, the antenna 1 of the electronic device 100 is coupled to the mobile communication module 150, and the antenna 2 is coupled to the wireless communication module 160, so that the electronic device 100 can communicate with the network and other devices through wireless communication technology. The wireless communication technology may include global system for mobile communications (GSM), general packet radio service (GPRS), code division multiple access (CDMA), wideband code division multiple access (WCDMA), time-division code division multiple access (TD-SCDMA), long term evolution (LTE), BT, GNSS, WLAN, NFC, FM, and / or IR technology. The GNSS may include a global positioning system (GPS), a global navigation satellite system (GLONASS), a Beidou navigation satellite system (BDS), a quasi-zenith satellite system (QZSS) and / or a satellite based augmentation system (SBAS).
[0138] The electronic device 100 implements the display function through a GPU, a display screen 194, and an application processor. The GPU is a microprocessor for image processing, which connects the display screen 194 and the application processor. The GPU is used to perform mathematical and geometric calculations for graphics rendering. The processor 110 may include one or more GPUs that execute program instructions to generate or change display information.
[0139] The display screen 194 is used to display images, videos, etc. The display screen 194 includes a display panel. The display panel can be a liquid crystal display (LCD), an organic light-emitting diode (OLED), an active-matrix organic light-emitting diode or an active-matrix organic light-emitting diode (AMOLED), a flexible light-emitting diode (FLED), Miniled, MicroLed, Micro-oLed, a quantum dot light-emitting diode (QLED), etc. In some embodiments, the electronic device 100 may include 1 or N display screens 194, where N is a positive integer greater than 1.
[0140] The internal memory 121 may include one or more random access memories (RAM) and one or more non-volatile memories (NVM).
[0141] The random access memory can be directly read and written by the processor 110, and can be used to store executable programs (such as machine instructions) of the operating system or other running programs, and can also be used to store user and application data.
[0142] The non-volatile memory may also store executable programs and user and application data, etc., and may be loaded into the random access memory in advance for direct reading and writing by the processor 110 .
[0143] The external memory interface 120 can be used to connect to an external non-volatile memory to expand the storage capacity of the electronic device 100. The external non-volatile memory communicates with the processor 110 through the external memory interface 120 to implement a data storage function. For example, files such as music and videos are stored in the external non-volatile memory.
[0144] The electronic device 100 can implement audio functions such as calling and recording through the audio module 170, the speaker 170A, the receiver 170B, the microphone 170C, and the application processor.
[0145] The audio module 170 is used to convert digital audio information into analog audio signal output, and is also used to convert analog audio input into digital audio signals. The audio module 170 can also be used to encode and decode audio signals. In some embodiments, the audio module 170 can be arranged in the processor 110, or some functional modules of the audio module 170 can be arranged in the processor 110.
[0146] The speaker 170A, also called a "speaker", is used to convert an audio electrical signal into a sound signal. The electronic device 100 can listen to music or listen to a hands-free call through the speaker 170A.
[0147] The receiver 170B, also called a "earpiece", is used to convert audio electrical signals into sound signals. When the electronic device 100 receives a call or voice message, the voice can be received by placing the receiver 170B close to the human ear.
[0148] Microphone 170C, also called "microphone" or "microphone", is used to convert sound signals into electrical signals. When making a call or sending a voice message, the user can speak by putting their mouth close to microphone 170C to input the sound signal into microphone 170C. The electronic device 100 can be provided with at least one microphone 170C. In other embodiments, the electronic device 100 can be provided with two microphones 170C, which can not only collect sound signals but also realize noise reduction function. In other embodiments, the electronic device 100 can also be provided with three, four or more microphones 170C to collect sound signals, reduce noise, identify the sound source, realize directional recording function, etc.
[0149] The gyro sensor 180B can be used to determine the motion posture of the electronic device 100. In some embodiments, the angular velocity of the electronic device 100 around three axes (i.e., x, y, and z axes) can be determined by the gyro sensor 180B. The gyro sensor 180B can be used for anti-shake shooting. For example, when the shutter is pressed, the gyro sensor 180B detects the angle of the electronic device 100 shaking, calculates the distance that the lens module needs to compensate based on the angle, and allows the lens to offset the shaking of the electronic device 100 through reverse movement to achieve anti-shake. The gyro sensor 180B can also be used for navigation and somatosensory game scenes.
[0150] The magnetic sensor 180D includes a Hall sensor, and the electronic device 100 can detect the opening and closing of the flip leather case by using the magnetic sensor 180D.
[0151] The acceleration sensor 180E can detect the magnitude of the acceleration of the electronic device 100 in all directions (generally three axes). When the electronic device 100 is stationary, the magnitude and direction of gravity can be detected. It can also be used to identify the posture of the electronic device and is applied to applications such as horizontal and vertical screen switching and pedometers.
[0152] The distance sensor 180F is used to measure the distance. The electronic device 100 can measure the distance by infrared or laser. In some embodiments, when shooting a scene, the electronic device 100 can use the distance sensor 180F to measure the distance to achieve fast focusing.
[0153] The touch sensor 180K is also called a "touch control device". The touch sensor 180K can be set on the display screen 194. The touch sensor 180K and the display screen 194 form a touch screen, also called a "touch control screen". The touch sensor 180K is used to detect touch operations acting on or near it. The touch sensor can pass the detected touch operation to the application processor to determine the type of touch event. Visual output related to the touch operation can be provided through the display screen 194. In other embodiments, the touch sensor 180K can also be set on the surface of the electronic device 100, which is different from the position of the display screen 194.
[0154] In some embodiments, the electronic device 100 may further include one or more of a button, a motor, and an indicator. The button may include a power button, a volume button, etc. The button may be a mechanical button. It may also be a touch button. The electronic device 100 may receive a button input and generate a key signal input related to the user settings and function control of the electronic device 100. The motor may generate a vibration prompt. The indicator may be an indicator light, which may be used to indicate the charging status, the change in power, or may be used to indicate messages, missed calls, notifications, etc.
[0155] The SIM card interface 195 is used to connect a SIM card.
[0156] The software system of the electronic device 100 may adopt a layered architecture, an event-driven architecture, a microkernel architecture, a microservice architecture, or a cloud architecture.
[0157] Figure 2B It is a software structure block diagram of the electronic device 100 according to an embodiment of the present application.
[0158] The layered architecture divides the software into several layers, each with a clear role and division of labor. The layers communicate with each other through software interfaces. In some embodiments, from top to bottom, they are the application layer, the application framework layer, the system library and the system library, and the kernel layer.
[0159] The application layer can include a series of application packages.
[0160] like Figure 2B As shown, the application package may include a first application, a gallery application, and other applications.
[0161] The first application may be a camera application installed on the electronic device 100, or a third-party application installed on the electronic device 100, such as an instant messaging application or a photo application, etc. The first application may receive a user operation to call the camera of the electronic device 100 to take a photo and obtain a first picture.
[0162] The application framework layer provides an application programming interface (API) and a programming framework for the applications in the application layer. The application framework layer includes some predefined functions.
[0163] like Figure 2B As shown, the application framework layer may include a camera sub-service, a media library, a shared memory module, etc.
[0164] The camera sub-service may receive a photographing instruction sent by the first application, and then send the photographing instruction to the camera, so that the camera may obtain the first picture.
[0165] The camera sub-service may also receive the first image returned by the camera, and save the first image in the shared memory through the shared memory module. The camera sub-service is also used to obtain the shared memory object of the first image in the shared memory, and transmit the shared memory object of the first image to the media library through the cross-process service.
[0166] When the first application or the gallery application receives a user operation to view the first picture collected by the camera of the electronic device 100 called by the first application, the first application or the gallery application may send an instruction to the media library, and in response to the instruction, the media library may send the shared memory object of the first picture to the first application or the gallery application. The first application or the gallery application may obtain the first picture from the shared memory based on the shared memory object of the first picture through the shared memory module, and display the first picture.
[0167] The application layer and the application framework layer run in a virtual machine. The virtual machine executes the Java files of the application layer and the application framework layer as binary files. The virtual machine is used to perform functions such as object life cycle management, stack management, thread management, security and exception management, and garbage collection.
[0168] The system library can include multiple functional modules, such as media library, etc.
[0169] The kernel layer is the layer between hardware and software. The kernel layer includes at least display driver, camera driver, audio driver, sensor driver, and the camera driver can drive the camera to collect pictures.
[0170] The hardware layer may include but is not limited to cameras and storage. The camera is used to capture images based on the photo taking instructions sent by the camera subservice. The storage is used to save the files corresponding to the images.
[0171] like Figure 2B As shown, the method in which the first application receives the user's photo-taking operation and saves the first picture in the shared memory includes but is not limited to the following steps:
[0172] 1. The first application receives the user's photo-taking operation.
[0173] 2. The first application sends a photo taking instruction to the camera subservice.
[0174] 3. The camera subservice sends a photo-taking command to the camera.
[0175] 4. In response to the photo taking instruction, the camera obtains the first picture and sends the first picture to the camera sub-service.
[0176] 5. The camera subservice sends the first picture to the shared memory module.
[0177] 6. The camera subservice saves the first image in the shared memory through the shared memory module.
[0178] 7. The camera subservice obtains the shared memory object of the first picture and sends the shared memory object of the first picture to the media library.
[0179] like Figure 2B As shown, the method in which the gallery application receives the user's operation of viewing the first picture and displays the first picture includes but is not limited to the following steps:
[0180] 8. The gallery application receives an operation from the user to view the first picture.
[0181] 9. The gallery application sends a viewing instruction to the media library.
[0182] 10. In response to the viewing instruction, the media library sends the shared memory object of the first picture to the gallery application.
[0183] In response to the shared memory object of the first picture, the gallery application obtains the first picture from the shared memory based on the shared memory object of the first picture and displays the first picture.
[0184] Optionally, the user is not limited to viewing the first gallery through the gallery application. The user can also view the first picture through the first application.
[0185] Next, the photo-taking method mentioned in this application is described in detail with reference to the UI diagram and the method flow chart.
[0186] 1. The application calls the camera of the electronic device 100 to capture a first image, and saves the first image to a shared memory.
[0187] Optionally, the first picture may be picture data or video data, which is not limited in the present application. The picture data may be data acquired by the electronic device 100 in a photographing mode, and the video data may be data acquired by the electronic device 100 in a recording mode. The following embodiments of the present application are described by taking the first picture as picture data as an example.
[0188] Exemplarily, the application may be a camera application, or a third-party application, such as an instant messaging application and a beauty application.
[0189] Figure 3A-Figure 3N A UI diagram showing the electronic device 100 taking and saving a first picture.
[0190] in, Figure 3A-3C The UI diagram shows that the electronic device 100 takes and saves a first picture through a camera application.
[0191] like Figure 3A As shown, the electronic device 100 may display a desktop, in which a page with application icons is displayed, and the page includes multiple application icons (for example, a settings application icon, an application market application icon, a gallery application icon, a browser application icon, etc.). A page indicator is also displayed below the multiple application icons to indicate the positional relationship between the currently displayed page and other pages. A tray area is displayed below the page indicator. Among them, the tray area includes multiple tray icons, for example, a camera application icon, an address book application icon, a phone application icon, and an information application icon. The tray area remains displayed when the page switches. In some embodiments, the above-mentioned page may also include multiple application icons and a page indicator. The page indicator may not be part of the page and exists separately. The above-mentioned tray icon is also optional, and the embodiments of the present application are not limited to this.
[0192] The electronic device 100 may receive an input (eg, a single click) from a user on a camera application icon, and in response to the input operation, the electronic device 100 may display a Figure 3B The user interface shown. Figure 3B It is a user interface for shooting and displaying services provided by an electronic device 100 provided in an embodiment of the present application, and may also be called a shooting preview interface.
[0193] like Figure 3B As shown, the preview interface may include a mode bar 101 , a shooting control 102 , a preview window 103 , a review control 104 , a quick function area 105 and a focus adjustment option 106 .
[0194] The mode bar 101 may include multiple shooting mode options, such as "night scene", "portrait", "photo", "video recording", etc. Different shooting modes can provide users with shooting services with different effects. Users can select any shooting mode from multiple shooting modes for shooting according to different needs. For example, "photo recording" can be the default shooting mode for taking photos. "Video recording" is used to record videos. The "night scene" mode is suitable for shooting scenes with dim light, such as at night. The "portrait" mode is suitable for shooting scenes where the subject is a person. The electronic device 100 can also provide more shooting modes, such as "large aperture", "movie", "professional", etc., which are not listed one by one here.
[0195] The electronic device 100 can detect the user operation acting on the shooting mode option in the mode bar 101, and change the shooting mode currently used according to the above user operation. The above user operation is, for example, a left / right slide operation. For example, when it is detected that the drag mode bar 101 is slid to the left (left slide operation) and the float stops at the "portrait" option, the electronic device 100 can switch to the "portrait" mode. By default, the electronic device 100 first uses the "photographing" mode.
[0196] The shooting control 102 is used to trigger taking a picture. The electronic device 100 can detect whether there is a user operation acting on the shooting control 102, such as a click operation. When in the shooting mode, and after detecting the user operation acting on the shooting control 102, the electronic device 100 can generate a shooting instruction. The electronic device 100 can obtain the picture reported by the camera corresponding to the timestamp according to the shooting instruction, and save the picture. For another example, when in the video recording mode, and after detecting the user operation acting on the shooting control 102, the electronic device 100 can generate a video shooting instruction. The electronic device 100 can obtain the video data reported by the camera corresponding to the timestamp according to the video shooting instruction, and save the video data.
[0197] The preview window 103 can be used to display the pictures reported by the camera in real time. In different shooting modes, the electronic device 100 can process the pictures reported by the camera to improve the display effect of the pictures. For example, in the "portrait" mode, the electronic device 100 can blur the background of the picture reported by the camera to highlight the portrait. Here, the preview window 103 can display the pictures processed by the image processing algorithms corresponding to the different shooting modes in real time, so that the user can perceive the shooting effects corresponding to the different shooting modes in real time.
[0198] The review control 104 can be used to browse thumbnails of taken pictures. When a user operation on the review control 104 is detected, the electronic device 100 can also display the original image corresponding to the thumbnail. In some embodiments, when the electronic device 100 receives a user operation on the review control 104, if the process of the gallery application is not launched, the electronic device 100 can launch the process of the gallery application, so that the electronic device 100 can jump to the gallery application to display the original image corresponding to the thumbnail.
[0199] The quick function area 105 may include controls for the protagonist recording mode, AI scene recognition controls, flash controls, color mode controls, setting controls, and the like. The controls for the protagonist recording mode can be used to trigger the electronic device 100 to identify the protagonist character among multiple characters in the preview screen when turned on. The AI scene recognition control can be used to trigger the electronic device 100 to identify the shooting scene in the preview screen when turned on, and the current AI scene recognition control is in the off state. The flash control can be used to trigger the electronic device 100 to turn on or off the flash. The color mode control can be used to trigger the electronic device 100 to use a color filter to process the pictures collected by the camera. The setting control can be used to set the shooting parameters of the electronic device 100 (for example, picture size, picture storage format, etc.), turn on the "auto-snap" function of the electronic device 100, and the like.
[0200] The focus adjustment option 106 shows a plurality of zoom ratio options, such as a 0.5x zoom ratio option, a 1x zoom ratio option, a 2.5x zoom ratio option, a 10x zoom ratio option, and the like.
[0201] The current zoom ratio is 1x. The preview window 103 displays the picture frame captured by the electronic device 100 at the zoom ratio of 1x.
[0202] For example, Figure 3B As shown, the electronic device 100 can receive a user input operation on the shooting control 102, such as a single-click operation. In response to the user input operation, the electronic device 100 can obtain a first picture based on the camera. For example, the first picture can be a picture reported by the camera with a corresponding timestamp obtained by the electronic device 100 according to the photo-taking instruction.
[0203] After acquiring the first picture, the electronic device 100 is further configured to store the first picture in a shared memory of the electronic device 100 .
[0204] For example, Figure 3C As shown, the electronic device 100 is also used to generate a thumbnail of the first picture and display the thumbnail of the first picture on Figure 3C Within the review control 104 shown.
[0205] In some embodiments, the user can operate in the instant messaging application so that the instant messaging application calls the camera of the electronic device 100 to obtain the first picture and sends the first picture to the contact.
[0206] Figure 3D-Figure 3N The UI diagram shows that the electronic device 100 takes and saves a first picture through an instant messaging application.
[0207] For example, Figure 3D As shown, the electronic device 100 displays a desktop. Figure 3D For a description, see Figure 3A Description in . Figure 3D and Figure 3A The difference is that Figure 3D The desktop shown also includes an icon for an instant messaging application.
[0208] like Figure 3D As shown, the electronic device 100 may receive an input operation from a user on an icon of an instant messaging application, such as a single-click operation. In response to the user's input operation, the electronic device 100 may display Figure 3E The user interface shown. Figure 3E The user interface shown includes several dialog boxes.
[0209] For example, Figure 3E As shown, the electronic device 100 may receive an input operation from a user on one of the dialog boxes, such as a single-click operation. In response to the user's input operation, the electronic device 100 may display Figure 3F The user interface shown.
[0210] For example, Figure 3F As shown, Figure 3F The user interface shown includes chat messages sent by multiple members of the group chat group. Figure 3F The user interface shown also includes function option 3001, through which the user can send pictures, videos, initiate video calls, etc. to multiple members in the group chat group.
[0211] For example, Figure 3F As shown, the electronic device 100 may receive an input operation of the user for the function option 3001, such as a single-click operation. In response to the input operation of the user, the electronic device 100 may display Figure 3G Functional box 3002 is shown.
[0212] For example, Figure 3GAs shown, the function box 3002 includes a photo option, a picture / video shooting option, a video call initiation option, a location sending option, a red envelope sending option, a transfer option, a voice input option, a view favorites option, etc. The user can send the pictures saved in the gallery application to multiple members in the group chat group through the photo option. The user can also call the camera of the electronic device 100 to shoot pictures / videos through the picture / video shooting option, and send the pictures / videos to multiple members in the group chat group. The user can also establish a video call connection with one or more members in the group chat group through the video call initiation option. The user can also send the location information of the electronic device 100 to multiple members in the group chat group through the location sending option. The user can also send red envelopes to multiple members in the group chat group through the red envelope sending option. The user can also transfer money to a member in the group chat group through the transfer option. The user can also use the voice input option to make the electronic device 100 collect the user's output voice through the microphone and send the user's output voice to multiple members in the group chat group. The user can also view the favorites option to view the pictures, videos, voices, texts, files, etc. saved by the electronic device 100.
[0213] like Figure 3G As shown, the electronic device 100 may receive an input operation from a user for a picture / video shooting option, such as a single-click operation. In response to the user's input operation, the electronic device 100 may display Figure 3H The shooting interface shown. Figure 3H The shooting interface shown includes a real-time preview image 3003 captured by the camera of the electronic device 100 and a shooting control 3004 .
[0214] like Figure 3H As shown, the electronic device 100 may receive an input operation of the user on the shooting control 3004, such as a single click operation. In response to the input operation of the user, the electronic device 100 may display a first picture collected by the camera of the electronic device 100. For example, the first picture may be Fig. 3I Picture 3005 shown.
[0215] If the user is satisfied with the shooting effect of the picture 3005, the electronic device 100 can receive the user's input operation for the sending option 3006, such as a single-click operation. In response to the user's input operation, the electronic device 100 can send the picture 3005 to multiple members in the group chat group and display the picture 3005. Figure 3J The user interface shown.
[0216] like Figure 3J As shown, Figure 3JThe user interface shown includes picture 3007, which is used to indicate that the local user "Leo" has sent a picture to multiple members in the group chat group. Optionally, picture 3007 can be a thumbnail corresponding to picture 3005. The electronic device 100 can receive an operation group of the user clicking on picture 3007 and display picture 3007.
[0217] Optional, in the display Fig. 3I After the user interface shown, the electronic device 100 can save the picture 3005 in the shared memory of the electronic device 100. After the electronic device 100 receives the user's input operation for the send option 3006, the electronic device 100 encodes the picture 3005 into a file and saves it in the memory of the electronic device 100.
[0218] Optional, in the display Fig. 3I After displaying the user interface shown, the electronic device 100 may only save the picture 3005 in the shared memory of the electronic device 100 .
[0219] Optionally, after the electronic device 100 receives the user's input operation for the sending option 3006 , the electronic device 100 may also save the first picture in the shared memory of the electronic device 100 .
[0220] In some embodiments, if the user is not satisfied with the shooting effect of the picture 3005, the electronic device 100 receives the user's Fig. 3I After the input operation of the cancel option shown, that is, the user confirms not to send the picture 3005 to multiple members in the group chat group, the electronic device 100 may not save the first picture in the shared memory of the electronic device 100.
[0221] In some embodiments, the user can operate in the Meitu application so that the Meitu application calls the camera of the electronic device 100 to obtain the first picture, and saves the first picture in the shared memory of the electronic device 100.
[0222] The electronic device 100 can obtain the first picture by taking the picture through the beauty application, and optimize the first picture, such as adding a filter, so that the effect of the first picture taken by the electronic device 100 through the beauty application meets the user's expectations.
[0223] Figure 3K-Figure 3N The UI diagram shows that the electronic device 100 obtains and saves a first picture by taking the picture through the beauty application.
[0224] For example, Figure 3K As shown, the electronic device 100 displays a desktop. Figure 3K For a description, see Figure 3A Description in . Figure 3K and Figure 3AThe difference is that Figure 3K The desktop shown also includes an icon for the Meitu application.
[0225] like Figure 3K As shown, the electronic device 100 may receive an input operation from a user on an icon of a beauty application, such as a single click operation. In response to the input operation from the user, the electronic device 100 may display Figure 3L The user interface shown. Figure 3L The user interface shown includes multiple shooting mode options and shooting controls 3008. The multiple shooting mode options may include but are not limited to camera shooting options, picture retouching options, micro single mode shooting options, retro film shooting options, ultra-clear portrait shooting options, trendy photo shooting options, ID photo shooting options, AI emoticon shooting options, etc.
[0226] For example, Figure 3E As shown, the electronic device 100 may receive an input operation of the user on the shooting control 3008, such as a single-click operation, and in response to the user's input operation, the electronic device 100 may display Figure 3M The shooting interface shown.
[0227] like Figure 3M As shown, the shooting interface may include a shooting control 3009, a preview image 3010, and other shooting mode options. The electronic device 100 may receive a user input operation on the shooting control 3009, such as a single click operation. In response to the user's input operation, the electronic device 100 may display Figure 3N The image preview interface shown.
[0228] like Figure 3N As shown, the image preview interface may include a picture 3011, which may be a picture collected by the electronic device 100 based on the camera. The image preview interface also includes a return option 3012, a save option 3013 and other multiple picture editing options. The user can use the return option 3012 to make the electronic device 100 display Figure 3M The shooting interface shown. The user can save the picture 3011 through the save option 3013.
[0229] In some embodiments, after acquiring the image 3011, the electronic device 100 may save the image 3011 to the shared memory of the electronic device 100. Figure 3N As shown, the electronic device 100 can receive a user input operation for the save option 3013, such as a single-click operation. In response to the user input operation, the electronic device 100 can encode the picture 3011 into a file and save the file in the memory of the electronic device 100.
[0230] In some embodiments, Figure 3N As shown, the electronic device 100 can receive a user input operation for the save option 3013, such as a single-click operation. In response to the user's input operation, the electronic device 100 saves the image 3011 to the shared memory of the electronic device 100 and the memory of the electronic device 100.
[0231] In some embodiments, the electronic device 100 receives a user's Figure 3M After the input operation of the shooting control 3009 shown, the electronic device 100 can save the picture 3011 to the shared memory of the electronic device 100, encode the picture 3011 into a file, and save the file in the memory of the electronic device 100.
[0232] Optionally, after the electronic device 100 receives the user's input operation for the save option 3013, the electronic device 100 may display the Figure 3M The shooting interface shown.
[0233] Figure 4 A schematic flow chart of a method in which the electronic device 100 stores a first picture in a shared memory of the electronic device 100 is shown.
[0234] like Figure 4 As shown, the electronic device 100 may include an application layer, an application framework layer, a system library and a hardware layer. The application layer includes a first application, the application framework layer includes a camera sub-service, a shared memory module and a media library, and the hardware layer includes a camera and a memory.
[0235] The method in which the electronic device 100 stores the first image in the shared memory of the electronic device 100 includes but is not limited to the following steps:
[0236] S401: A first application receives a user operation of taking a photo.
[0237] For example, the first application may be a camera application, and the first application receives a user operation of taking a photo, which may be Figure 3B Input operations for the capture control 102 are shown.
[0238] For example, the first application may be an instant messaging application, and the first application receives a user operation of taking a photo, which may be Figure 3H Input operations for the capture control 3004 are shown.
[0239] For example, the first application may be a photo application, and the first application receives a user operation of taking a photo, which may be Figure 3E Input operations for the capture control 3008 are shown.
[0240] S402: The first application sends a photo-taking instruction to the camera sub-service.
[0241] S403: The camera sub-service sends a photo-taking instruction to the camera.
[0242] In response to the user's operation of taking a photo, the first application may send a photo-taking instruction to the camera sub-service, and the camera sub-service then sends a photo-taking instruction to the camera. The photo-taking instruction is used to instruct the camera to turn on and capture an image.
[0243] S404: In response to the photo taking instruction, the camera obtains a first picture.
[0244] In response to the photo taking instruction, the camera of the electronic device 100 is turned on and a first picture is captured. Exemplarily, when the reflected light of the photographed object passes through the lens, it is refracted on the lens and converges on the image sensor. The image sensor can convert the optical signal into an analog electrical signal. The analog electrical signal is bypassed from the image sensor and the sensor front end (SFE), and then output through the digital-to-analog converter, the original digital image, such as a RAW image. Afterwards, the electronic device 100 processes the original digital image to obtain a first picture, which is an image that can be displayed by the electronic device 100. For example, the first picture can be in RGB format, RGBA format, YUV format, etc.
[0245] S405: The camera sends the first picture to the camera sub-service.
[0246] S406: The camera sub-service sends the first picture to the shared memory module.
[0247] S407: The shared memory module sends the first image to the shared memory.
[0248] S408: The shared memory stores the first picture.
[0249] After capturing the first image, the camera may send the first image to the camera sub-service, and the camera sub-service may send the first image to the shared memory through the shared memory module and store the first image in the shared memory.
[0250] S409: The shared memory sends the shared memory object of the first picture to the shared memory module.
[0251] S410: The shared memory module sends the shared memory object of the first picture to the camera sub-service.
[0252] S411. The camera sub-service sends the shared memory object of the first picture to the media library.
[0253] After the camera sub-service saves the first picture in the shared memory, the camera sub-service may obtain the shared memory object of the first picture, and send the shared memory object of the first picture to the media library.
[0254] Optionally, the shared memory object of the first picture may refer to a storage location of the first picture in the shared memory, for example, a physical address of the first picture in the shared memory.
[0255] Optionally, the shared memory object of the first picture may also be a file descriptor (FD) of the first picture. The electronic device 100 may map the file descriptor of the first picture based on the physical address of the first picture in the shared memory. The physical addresses of different data stored in the shared memory are different, and the file descriptors of different data are also different.
[0256] The camera sub-service or the media library may obtain the physical address of the first image in the shared memory based on the file descriptor of the first image, and then obtain the first image based on the physical address of the first image in the shared memory.
[0257] In this way, the data volume of the file descriptor of the first image is less than the data volume of the physical address of the first image in the shared memory. The camera subservice sends the file descriptor of the first image to the media library, which can reduce the amount of data sent by the camera subservice to the media library.
[0258] In some embodiments, after acquiring the first picture, the camera sub-service may also send the first picture to the first application so that the first application can display the first picture. In this way, after receiving the user's photo operation, the first application can automatically display the first picture without receiving the user's operation to view the first picture, so that the user can preview the shooting effect of the first picture. For example, Fig. 3I or Figure 3N Example.
[0259] It should be noted that Figure 4 The various method steps and the order in which the various method steps are executed are only used to explain the present application and do not constitute a limitation.
[0260] Figure 5 A schematic diagram showing how the camera subservice sends a shared memory object of a first picture to the media library.
[0261] like Figure 5 As shown, the electronic device 100 may include an application framework layer. The application framework layer includes a camera sub-service and a shared memory module, and the system library includes a media library.
[0262] The method for the electronic device 100 to send the shared memory object of the first picture to the media library includes but is not limited to the following steps:
[0263] S501: The camera sub-service establishes a cross-process communication connection with the media library.
[0264] Optionally, the media library may actively initiate the establishment of a cross-process communication connection to the camera sub-service, or the camera sub-service may actively initiate the establishment of a cross-process communication connection to the media library.
[0265] Optionally, after the media library is started, the media library actively initiates the establishment of a cross-process communication connection to the camera sub-service. Alternatively, after the camera sub-service is started, the camera sub-service actively initiates the establishment of a cross-process communication connection to the media library.
[0266] Optionally, after the electronic device 100 is powered on, the camera sub-service may establish a cross-process communication connection with the media library.
[0267] Optionally, after the first application receives the user's photo-taking operation, the camera sub-service may establish a cross-process communication connection with the media library.
[0268] This application does not limit the timing of establishing a cross-process communication connection between the camera sub-service and the media library.
[0269] Exemplarily, the cross-process communication mechanism may be a binder communication mechanism. The cross-process communication mechanism may also be other mechanisms, which are not limited in this application.
[0270] S502: The camera sub-service encapsulates the shared memory object of the first picture into a binder instruction.
[0271] S503: The camera sub-service sends the binder instruction to the shared memory module.
[0272] S504: The shared memory module sends the binder instruction to the media library.
[0273] S505: The media library parses the binder instruction to obtain a shared memory object of the first picture.
[0274] After obtaining the shared memory object of the first picture, the camera sub-service can encapsulate the shared memory object of the first picture into a binder instruction through the shared memory module, and send the binder instruction to the media library through the cross-process communication connection. The media library can parse the binder instruction to obtain the shared memory object of the first picture.
[0275] Figure 5 The method shown enables the camera subservice to send the shared memory object of the first picture to the media library across processes.
[0276] 2. The electronic device 100 receives a message from a user viewing a first picture in a first application or a gallery application.
[0277] After the first application receives the user's photo-taking operation and calls the camera to obtain the first picture, and saves the first application in the shared memory of the electronic device 100, the electronic device 100 can receive the user's operation to view the first picture.
[0278] Figure 6A-6B A set of schematic diagrams showing viewing a first picture in a gallery application are shown.
[0279] For example, the first application may be a camera application. The first image may be Figure 3C The original image of the thumbnail displayed in the playback control 104 is shown.
[0280] refer to Figure 3A-3C In the description of the embodiment, after the first application receives the user's photo-taking operation to obtain the first image and saves the first image in the shared memory, the first application can display Fig. 6A The shooting interface shown, Fig. 6A The review control 104 of the shooting interface shown displays a thumbnail of the first picture.
[0281] like Fig. 6A As shown, the electronic device 100 may receive an input operation of the user on the review control 104, such as a single-click operation, and in response to the input operation of the user, the electronic device 100 may display Figure 6B The user interface of the gallery application is shown.
[0282] like Figure 6B As shown, the user interface includes picture 7001, which can be Fig. 6A The original image corresponding to the thumbnail displayed in the review control 104 is displayed.
[0283] like Figure 6B As shown, the user interface includes not only picture 7001, but also multiple picture editing options, such as return option, share option, favorite option, edit option, delete option and more options. Among them, the user can jump to the shooting preview interface of the camera application again through the return option. The user can share the picture 7001 to other applications on the electronic device 100 or to other electronic devices through the share option. The user can save the picture 7001 in the favorites on the electronic device 100 through the favorite option. The user can edit the picture 7001 through the edit option, such as cropping, rotating, adding filters and special effects, etc. The user can delete the picture 7001 through the delete option. The user can perform other more operations on the picture 7001 through more options.
[0284] Figure 6C-6D A set of schematic diagrams showing viewing a first picture in a first application are shown.
[0285] For example, the first application may be an instant messaging application. The first image may be Fig. 3I Picture 3005 shown.
[0286] refer to Figure 3D-Figure 3J In the description of the embodiment, after the first application receives the user's photo-taking operation to obtain the first image and saves the first image in the shared memory, the first application can display Figure 6C The user interface shown, Figure 6C The user interface shown displays a picture 3007 , which may be a thumbnail of the first picture.
[0287] like Figure 6C As shown, the electronic device 100 may receive an input operation of the user on the picture 3007, such as a single-click operation. In response to the input operation of the user, the electronic device 100 may display Fig.6D The user interface of the first application is shown.
[0288] like Fig.6D As shown, the user interface includes a picture 7002, which can be Figure 6C The original image corresponding to the image 3007 displayed in FIG. 7002 is an image captured by the camera of the electronic device 100 .
[0289] Figure 6E-Figure 6I Another set of schematic diagrams for viewing a first picture in a gallery application is shown.
[0290] For example, the first application may be a beauty application. The first image may be Figure 3N Picture 3011 shown.
[0291] refer to Figure 3K-Figure 3N In the description of the embodiment, after the first application receives the user's photo-taking operation to obtain the first image and saves the first image in the shared memory, the first application can display Figure 3M or Figure 3N Afterwards, the user can view the first picture taken by the first application in the gallery application.
[0292] like Fig. 6E As shown, the electronic device 100 can receive and respond to the user's sliding operation on the display screen, stop displaying the user interface of the first application, and display Fig. 6F The desktop is shown.
[0293] like Fig. 6F As shown, the electronic device 100 can respond to the user's input operation on the icon of the gallery application, such as a single click operation, and the electronic device 100 can display Figure 6G The gallery interface shown. Figure 6GThe gallery interface shown includes multiple album category names, such as "All Photos", "Videos", "Camera", "Continuous Shots", etc.
[0294] like Figure 6G As shown, the electronic device 100 can respond to the user's input operation on "all photos", such as a single click operation, and the electronic device 100 can display Figure 6H The picture preview interface shown in FIG. 1 includes thumbnails of multiple pictures, such as thumbnail 7072 , which may be a thumbnail of picture 3011 .
[0295] like Figure 6H As shown, the electronic device 100 can respond to the user's input operation on the thumbnail 7072, such as a single click operation, and the electronic device 100 can display Fig.6I The user interface of the gallery application is shown. Fig.6I The gallery app's user interface is shown with Figure 6B The user interface of the gallery application shown is similar, except that Fig.6I The user interface of the gallery application shown includes picture 3011.
[0296] Figure 7 A schematic flow chart of a method in which an electronic device 100 receives a user's request for viewing a first picture in a first application or a gallery application is shown.
[0297] like Figure 7 As shown, the electronic device 100 may include an application layer, an application framework layer, and a system library. The application layer includes a gallery application / first application, the application framework layer includes a shared memory, and the system library includes a media library.
[0298] The method for the electronic device 100 to receive a user viewing a first picture in a first application or a gallery application includes but is not limited to the following steps:
[0299] S701A: The gallery application / first application receives a user operation of viewing a first picture.
[0300] For example, the first application may be a camera application, and the gallery application receives a user operation of viewing the first image, which may be Fig. 6A Input operations for the review control 104 are shown.
[0301] For example, the first application may be an instant messaging application, and the first application receives a user operation of viewing the first image, which may be Figure 6C The input operation for picture 3007 is shown.
[0302] For example, the first application may be a photo application, and the gallery application receives a user operation of viewing the first image, which may be Figure 6H The input operation for thumbnail 7072 is shown.
[0303] In some embodiments, S701A may not be executed. After the first application receives the user's photo-taking operation, the first application may directly obtain the first picture and display the first picture, so that the user can view the shooting effect of the first picture in time.
[0304] Exemplarily, when the first application is an instant messaging application, such as Figure 3H and Fig. 3I As shown, after the electronic device 100 receives the user's input operation on the shooting control 3004, the instant messaging application can obtain the first picture and display the first picture. The first picture can be Fig. 3I Picture 3005 shown.
[0305] For example, when the first application is a beauty application, Figure 3M and Figure 3N As shown, after the electronic device 100 receives the user's input operation on the shooting control 3008, the beauty picture application can obtain the first picture and display the first picture. The first picture can be Figure 3N Picture 3011 shown.
[0306] S702A: The gallery application / first application sends a viewing instruction to the media library.
[0307] S703A: The media library sends the shared memory object of the first picture to the gallery application / first application.
[0308] S704A: The gallery application / first application obtains the first picture based on the shared memory object of the first picture.
[0309] Optionally, the gallery application / first application may obtain the first image from the shared memory based on the shared memory object of the first image through the shared memory module.
[0310] S705A: The gallery application / first application displays the first picture.
[0311] In response to the viewing instruction sent by the gallery application / first application, the media library can obtain the shared memory object of the first image and send it to the gallery application / first application. The gallery application / first application can obtain the first image from the shared memory of the electronic device 100 based on the shared memory object of the first image.
[0312] After acquiring the first picture, the gallery application / first application may display the first picture.
[0313] For example, the first application may be a camera application, and the first picture displayed by the gallery application may be Figure 6B Picture 7001 shown.
[0314] For example, the first application may be an instant messaging application, and the first picture displayed by the instant messaging application may be Fig.6D Picture 7002 shown.
[0315] For example, the first application may be a beauty application, and the first picture displayed by the gallery application may be Fig.6I Picture 3011 shown.
[0316] pass Figure 7 According to the method shown, after the first application saves the first picture in the shared memory, when the user needs to view the shooting effect of the first picture, the first application or the gallery application can obtain the first picture from the shared memory and display the first picture, and the user can view the shooting effect of the first picture in the first application or the gallery application. When the first application or the gallery application receives the user's operation to view the first picture, the first application or the gallery application can directly obtain the first picture from the shared memory of the electronic device 100, and there is no way to obtain the first file from the memory. On the one hand, the speed of obtaining the first picture from the shared memory is faster, and there is no need to perform the step of decoding the first file to obtain the first picture, which speeds up the speed of the first application or the gallery application to display the first picture. On the other hand, obtaining the first picture from the shared memory does not require the step of decoding the first file to obtain the first picture, which can also save the power consumption of the electronic device 100.
[0317] In some embodiments, after the electronic device 100 is turned off, the first picture stored in the shared memory of the electronic device 100 will be cleared, and the user cannot view the first picture. In order to avoid the first picture stored in the shared memory being cleared, the electronic device 100 can encode the first picture into a first file and save the first file to the memory. The first file stored in the memory will not be cleared after the electronic device 100 is turned off.
[0318] In some embodiments, after the electronic device 100 receives the user's photo-taking operation and stores the first picture in the shared memory, the electronic device 100 can automatically encode the first picture into a first file and save the first file in the memory.
[0319] In some embodiments, after the duration of the first picture in the shared internal storage of the electronic device 100 reaches a first duration, the electronic device 100 encodes the first picture into a first file and saves the first file in the memory.
[0320] In other embodiments, after the first application receives the user's photo-taking operation and detects the user's operation of saving the first picture, the electronic device 100 encodes the first picture into a first file and saves the first file into the memory.
[0321] The timings for saving the first file are described in detail below.
[0322] 1. After receiving the user's operation of saving the first picture, the electronic device 100 encodes the first picture into a first file and saves the first file to the memory.
[0323] Fig. 8A A schematic flow chart of a method for an electronic device 100 to save a first file corresponding to a first picture is shown.
[0324] like Fig. 8A As shown, the electronic device 100 may include an application layer, an application framework layer and a hardware layer. The application layer includes a first application, the application framework layer includes a media library, and the hardware layer includes a storage and a shared memory.
[0325] The method for the electronic device 100 to save the first file corresponding to the first picture includes but is not limited to the following steps:
[0326] S801A. The first application receives a user operation to save a first picture.
[0327] After receiving the user's photo-taking operation and acquiring the first picture, the first application may display the first picture.
[0328] For example, the first application may be a beauty application, and the first picture may be Figure 3N Picture 3011 shown.
[0329] After the first application displays the first picture, the user can preview the effect of the first picture. After the user is satisfied with the first picture, the first application can receive an operation from the user to save the first picture.
[0330] Exemplarily, the user operation of saving the first picture may be Figure 3N An input operation for save option 3013 is shown.
[0331] S802A: The first application sends a save instruction to the media library.
[0332] S803A: The media library obtains the first picture based on the shared memory object of the first picture.
[0333] In response to the user operation of saving the first picture, the first application may send a saving instruction to the media library.
[0334] After obtaining the save instruction, the media library may obtain the first picture based on the shared memory object of the first picture.
[0335] Optionally, the media library may obtain the first picture based on the shared memory object of the first picture through a shared memory module.
[0336] S804A: The media library encodes the first picture into a first file.
[0337] S805A: The media library sends the first file to the storage.
[0338] S806A: The memory stores the first file.
[0339] Since the data stored in the memory needs to be stored in the form of a file, the first picture cannot be directly stored in the memory. The camera application needs to encode the first picture into a first file and then store the first file in the memory.
[0340] Exemplarily, the first file may be in jpeg format.
[0341] pass Fig. 8A According to the method shown, the electronic device 100 can confirm whether to encode the first image as a first file and save it in the memory based on the user's operation. If the user confirms to save the first image, the electronic device 100 then encodes the first image as a first file and saves it in the memory. If the user confirms not to save the first image, the electronic device 100 does not need to encode the first image as a first file, nor does it need to save the first file in the memory. This avoids the situation where, when the user is not satisfied with the effect of the first image, the electronic device 100 has already encoded the first image as a first file and saved it in the memory, and the electronic device 100 needs to perform an IO operation to read the file to delete the first file stored in the memory. Fig. 8A The method shown can save power consumption of the electronic device 100 .
[0342] Optionally, after the electronic device 100 stores the first file corresponding to the first picture in the memory, the electronic device 100 may delete the first picture stored in the shared memory.
[0343] Optionally, after the electronic device 100 stores the first file corresponding to the first picture in the memory, the electronic device 100 may not delete the first picture stored in the shared memory. After the duration of the first picture stored in the shared memory reaches a first duration, the electronic device 100 deletes the first picture stored in the shared memory.
[0344] Optionally, after the electronic device 100 stores the first file corresponding to the first picture in the memory, the electronic device 100 may not delete the first picture stored in the shared memory. After receiving the user's operation to delete the first picture, the electronic device 100 deletes the first picture stored in the shared memory and deletes the first file corresponding to the first picture stored in the memory at the same time.
[0345] 2. After the first image is stored in the shared memory or the duration of the first image stored in the shared memory reaches a first duration, the electronic device 100 encodes the first image into a first file and saves the first file in the memory.
[0346] Figure 8B A schematic flow chart of another method for an electronic device 100 to save a first file corresponding to a first picture is shown.
[0347] like Figure 8B As shown, the electronic device 100 may include an application framework layer and a hardware layer. The application framework layer includes a media library, and the hardware layer includes a storage device and a shared memory.
[0348] The method for the electronic device 100 to save the first file corresponding to the first picture includes but is not limited to the following steps:
[0349] S801B: After the duration of the first picture stored in the shared memory exceeds the first duration, the media library obtains the first picture based on the shared memory object of the first picture.
[0350] S802 B. The media library encodes the first picture into a first file.
[0351] S803 B. The media library sends the first file to the storage.
[0352] S804 B. The memory stores the first file.
[0353] After the duration of the first image stored in the shared memory exceeds the first duration, the media library can obtain the first image from the shared memory based on the shared memory object of the first image, encode the first image into a first file, and store the first file in the memory.
[0354] Exemplarily, the first duration may be 20 seconds.
[0355] In this way, if within the first time period, the user executes the operation of deleting the first picture, the electronic device 100 only needs to delete the first picture stored in the shared memory. The first file has not yet been stored in the memory, and the electronic device 100 does not need to access the memory, which reduces the IO operation of the electronic device 100 to read the file from the memory and saves the power consumption of the electronic device 100.
[0356] Optionally, S801B may not be executed. After the electronic device 100 stores the first picture in the shared memory or the media library receives the shared memory object of the first picture sent by the camera sub-service, the camera sub-service may encode the first picture into a first file and store the first file in the memory. In this way, it is possible to avoid the situation where the first picture stored in the shared memory of the electronic device 100 is cleared after the electronic device 100 is suddenly shut down.
[0357] Optionally, after the electronic device 100 stores the first file corresponding to the first picture in the memory, the electronic device 100 may delete the first picture stored in the shared memory.
[0358] Optionally, after the electronic device 100 stores the first file corresponding to the first picture in the memory, the electronic device 100 may not delete the first picture stored in the shared memory. After receiving the user's operation to delete the first picture, the electronic device 100 deletes the first picture stored in the shared memory and deletes the first file corresponding to the first picture stored in the memory at the same time.
[0359] In some embodiments, if the duration of the first image stored in the shared memory of the electronic device 100 exceeds the first duration, the electronic device 100 has cleared the first image stored in the shared memory, and the electronic device 100 cannot obtain the first image from the shared memory. The electronic device 100 can obtain the first file from the memory and decode the first file to obtain the first image.
[0360] Figure 8C A schematic flow chart of another method for an electronic device 100 to receive a first picture viewed by a user in a first application or a gallery application is shown.
[0361] like Figure 8C As shown, the electronic device 100 may include an application layer, an application framework layer and a hardware layer. The application layer includes a gallery application / first application, the application framework layer includes a media library, and the hardware layer includes a memory.
[0362] The method for the electronic device 100 to receive a user viewing a first picture in a first application or a gallery application includes but is not limited to the following steps:
[0363] S801C: The gallery application / first application receives a user operation of viewing a first image.
[0364] For example, the first application may be a camera application, and the gallery application receives a user operation of viewing the first image, which may be Fig. 6A Input operations for the review control 104 are shown.
[0365] For example, the first application may be an instant messaging application, and the first application receives a user operation of viewing the first image, which may be Figure 6C The input operation for picture 3007 is shown.
[0366] For example, the first application may be a photo application, and the gallery application receives a user operation of viewing the first image, which may be Figure 6H The input operation for thumbnail 7072 is shown.
[0367] S802C: The gallery application / first application sends a viewing instruction to the media library.
[0368] S803C: The media library obtains the first file from the storage.
[0369] S804C: The media library decodes the first file to obtain a first picture.
[0370] S805C: The media library sends the first picture to the gallery application / first application.
[0371] S806C. The gallery application / first application displays the first picture.
[0372] In response to the viewing instruction sent by the gallery application / first application, the media library can obtain the first file from the memory, decode the first file, and obtain the first picture. The media library then sends the first picture to the gallery application / first application.
[0373] After acquiring the first picture, the gallery application / first application may display the first picture.
[0374] For example, the first application may be a camera application, and the first picture displayed by the gallery application may be Figure 6B Picture 7001 shown.
[0375] For example, the first application may be an instant messaging application, and the first image displayed by the first application may be Fig.6D Picture 7002 shown.
[0376] For example, the first application may be a beauty application, and the first picture displayed by the gallery application may be Fig.6I Picture 3011 shown.
[0377] pass Figure 8C In the method shown, when the user needs to view the shooting effect of the first picture, the first application or the gallery application can obtain the first file from the memory and decode it to obtain the first picture, display the first picture, and the user can view the shooting effect of the first picture in the first application or the gallery application. In this way, after the first picture stored in the instant shared memory is used, the first application or the gallery application can also obtain the first file from the memory and decode it to obtain the first picture.
[0378] 3. The electronic device 100 receives a request from a user to delete the first picture stored in the shared memory and / or the first file stored in the storage.
[0379] In some embodiments, after the duration of the first picture stored in the shared memory of the electronic device 100 reaches a first duration, the electronic device 100 may delete the first picture stored in the shared memory of the electronic device 100 to save storage space of the shared memory of the electronic device 100 .
[0380] In other embodiments, after the gallery application or the first application displays the first picture, and after the user is not satisfied with the shooting effect of the first picture, the electronic device 100 can receive a user's deletion of the first picture stored in the shared memory and / or the first file stored in the memory.
[0381] In some embodiments, the user can delete the first picture acquired by the first application through calling the camera in the gallery application.
[0382] In other embodiments, the user may also delete, in the first application, the first picture acquired by the first application through calling the camera.
[0383] 1. The user deletes the first picture acquired by the first application through the camera in the gallery application.
[0384] Figure 9A-9B A schematic diagram showing a user deleting a first picture acquired by a first application through a camera in a gallery application.
[0385] Exemplarily, the first application may be a camera application or a beauty application.
[0386] like Fig.9A As shown, the electronic device 100 displays a user interface of a gallery application, and the user interface displays a picture 9001, which can be Figure 6B The picture 7001 shown can also be Figure 6H Picture 3011 shown. The user interface also includes a delete option.
[0387] like Fig. 9B As shown, the electronic device 100 can receive and respond to the user's input operation for the delete option, such as a single-click operation. In response to the user's input operation, the electronic device 100 can stop displaying the picture 9001 and display Fig. 9B The picture 9002 shown may be a picture adjacent to the picture 9001 .
[0388] In response to the input operation for the delete option, the electronic device 100 also needs to delete the first picture stored in the shared memory, and delete the first file corresponding to the first picture stored in the memory.
[0389] 2. The user deletes, in the first application, the first picture acquired by the first application through calling the camera.
[0390] Figure 9C-9E A schematic diagram showing a user deleting, in a first application, a first picture acquired by the first application through calling a camera.
[0391] Exemplarily, the first application may be an instant messaging application.
[0392] like Fig. 9C As shown, the electronic device 100 displays a user interface of a first application. Fig. 9C The user interface shown displays a picture 3007 , which may be a thumbnail of the first picture.
[0393] like Fig. 9C As shown, the electronic device 100 can receive and respond to the user's input operation on the picture 3007, such as a long press operation. In response to the user's input operation, the electronic device 100 can display Fig.9D The prompt bar 9003 shown in the figure has multiple options, such as a copy option, a forwarding option, a favorite option, a delete option, a multiple selection option, a reference option, etc. The user can save the image 3007 in the clipboard of the electronic device 100 through the copy option. The user can send the image 3007 to other contacts or contacts in other group chats through the forwarding option. The user can save the image 3007 in the favorites of the first application through the favorite option. The user can delete it through the delete option. Fig. 9C The user interface shown in FIG. 3007 shows a picture. The user can select Fig. 9C One or more chat records are displayed in the user interface shown. The user can quote the picture 3007 through the quote option.
[0394] like Fig.9D As shown, the electronic device 100 can receive and respond to the user's input operation for deleting the option in the prompt bar 9003, such as a single-click operation. In response to the user's input operation, the electronic device 100 can stop displaying the picture 3007 and display Fig.9E The user interface shown, Fig.9E Picture 3007 is not included in the user interface shown.
[0395] In response to the input operation for the delete option, the electronic device 100 also needs to delete the first picture stored in the shared memory, and delete the first file corresponding to the first picture stored in the memory.
[0396] In some embodiments, when the electronic device 100 receives an operation from the user to delete a first picture, if the electronic device 100 has not encoded the first picture into a first file and stored it in the memory, the electronic device 100 only needs to delete the first picture stored in the shared memory.
[0397] Fig.10The flowchart shows a method in which the electronic device 100 receives an operation of deleting a first picture by a user and deletes the first picture stored in a shared memory.
[0398] like Fig.10 As shown, the electronic device 100 may include an application layer, an application framework layer and a hardware layer. The application layer includes a gallery application / first application, the application framework layer includes a media library, and the hardware layer includes a shared memory.
[0399] The method in which the electronic device 100 receives an operation of deleting a first picture by a user and deletes the first picture stored in a shared memory includes but is not limited to the following steps:
[0400] S1001A. The gallery application / first application displays a first picture.
[0401] For example, the first application may be a camera application, and the first picture displayed by the gallery application may be Figure 6B Picture 7001 shown.
[0402] For example, the first application may be an instant messaging application, and the first image displayed by the first application may be Fig.6D Picture 7002 shown.
[0403] For example, the first application may be a beauty application, and the first picture displayed by the gallery application may be Fig.6I Picture 3011 shown.
[0404] S1002A: The gallery application / first application receives a user operation to delete a first picture.
[0405] For example, when the first application is a camera application or a photo editing application, the user operation of deleting the first image may be: Fig.9D Input operation for the delete option is shown.
[0406] Exemplarily, when the first application is an instant messaging application, the user operation of deleting the first picture may be: Fig. 9B Input operation for the delete option is shown.
[0407] S1003A: The gallery application / first application sends a deletion instruction to the media library.
[0408] S1004A: The media library sends a delete instruction to the shared memory.
[0409] Optionally, the media library can send a delete instruction to the shared memory through the shared memory module.
[0410] S1005A, the shared memory deletes the first picture.
[0411] In response to the user operation of deleting the first picture, the gallery application / first application may send a deletion instruction to the media library. In response to the deletion instruction, the media library may delete the first picture stored in the shared memory.
[0412] Optionally, if the duration of the first image stored in the shared memory reaches the first duration and the shared memory has automatically deleted the first image, when the electronic device 100 receives a user operation to delete the first image, the electronic device 100 may not execute Fig.10 The embodiment shown.
[0413] In some embodiments, when the electronic device 100 receives an operation from the user to delete a first picture, if the electronic device 100 has encoded the first picture as a first file and stored it in a memory, the electronic device 100 not only needs to delete the first picture stored in the shared memory, but also needs to delete the first file corresponding to the first picture stored in the memory.
[0414] Fig.11 The flowchart shows a method in which the electronic device 100 receives an operation of deleting a first picture from a user and deletes a first file stored in a memory.
[0415] like Fig.11 As shown, the electronic device 100 may include an application layer, an application framework layer and a hardware layer. The application layer includes a gallery application / first application, the application framework layer includes a media library, and the hardware layer includes a memory.
[0416] The method in which the electronic device 100 receives an operation of deleting a first picture from a user and deletes a first file stored in a memory includes but is not limited to the following steps:
[0417] S1101A. The gallery application / first application displays a first picture.
[0418] S1102A: The gallery application / first application receives a user operation to delete a first picture.
[0419] For the introduction of S1101A-S1102A, please refer to the description in S1001A-S1002A, and this application will not go into details here.
[0420] S1103A: The gallery application / first application sends a deletion instruction to the media library.
[0421] S1104A: The media library sends a deletion instruction to the storage.
[0422] S1105A, the memory deletes the first file.
[0423] In response to the user operation of deleting the first picture, the gallery application / first application may send a deletion instruction to the media library. In response to the deletion instruction, the media library may delete the first file stored in the memory.
[0424] Optionally, when the electronic device 100 has not encoded the first image into a first file and stored it in the memory, for example, the duration of the first image stored in the shared memory has not reached the first duration or the user has not performed an operation to save the first image, when the electronic device 100 receives an operation from the user to delete the first image, the electronic device 100 may not perform the operation to delete the first image. Fig.11 The embodiment shown.
[0425] Fig.12 A schematic diagram of a process flow of a photographing method provided in this application.
[0426] S1201: The electronic device receives a user's photo-taking operation.
[0427] S1202: In response to a photographing operation, the electronic device obtains a first picture and stores the first picture in a shared memory of the electronic device.
[0428] S1203: The electronic device displays a first picture, where the first picture is obtained by the electronic device from a shared memory of the electronic device.
[0429] Through this method, the electronic device can add a shared memory. After the first application calls the camera of the electronic device to take a picture, the electronic device can save the picture in the shared memory. When the electronic device displays the picture, the electronic device can obtain and display the picture from the shared memory. The encoding and decoding process is reduced, the speed at which the electronic device displays the picture is accelerated, and the overhead of the electronic device performing the encoding and decoding process is also reduced.
[0430] Optionally, the electronic device may receive a user's photo-taking operation in a camera application. Figure 3A-3C Description in the examples.
[0431] The electronic device may also receive the user's photo-taking operation in the first application, such as an instant messaging application or a photo-making application. Figure 3D-Figure 3N Description in the examples.
[0432] How the electronic device stores the first image in the shared memory of the electronic device can be referred to Figure 4 Description in the examples.
[0433] Optionally, after receiving the user's photo taking operation and the user's operation of viewing the first picture, the electronic device may obtain the first picture from the shared memory of the electronic device and display the first picture. Figure 6A-6B , Figure 6C-6D , Figure 6E-Figure 6I Description in the Examples.
[0434] Optionally, after receiving the user's photo-taking operation, the electronic device may also automatically obtain the first image from the shared memory of the electronic device and display the first image. Fig. 3I , Figure 3N Description in the Examples.
[0435] In a possible implementation, an application in the electronic device accesses and obtains the first picture corresponding to the shared memory object stored in the shared memory according to the shared memory object of the first picture, where the shared memory object is used to indicate the storage location of the first picture in the shared content.
[0436] In a possible implementation, an electronic device displays a first picture, which specifically includes: a first application or a gallery application in the electronic device obtains a shared memory object through a media library, where the shared memory object is used to indicate a storage location of the first picture in shared content; the first application or the gallery application in the electronic device obtains the first picture based on the shared memory object; and the first application or the gallery application displays the first picture.
[0437] In this way, the first application or the gallery application can obtain the first picture from the shared memory through the media library.
[0438] Exemplarily, the first application may be an instant messaging application or a photo beauty application.
[0439] For example, how the first application or the gallery application displays the first image can be referred to Fig. 8A Description in the Examples.
[0440] In a possible implementation, it is characterized in that the first application or gallery application in the electronic device obtains the shared memory object through the media library, specifically including: the first application or gallery application of the electronic device receives a first operation of a user to view a first picture; in response to the first operation, the first application or gallery application in the electronic device obtains the shared memory object through the media library.
[0441] In this way, after receiving the user's operation of viewing the first picture, the electronic device can obtain the first picture from the shared memory of the electronic device and display the first picture.
[0442] In a possible implementation, after the first picture is stored in the shared memory of the electronic device, the method further includes: a media library in the electronic device saves the shared memory object of the first picture.
[0443] In this way, after receiving the user's photo-taking operation, the electronic device can also automatically obtain the first image from the shared memory of the electronic device and display the first image.
[0444] In a possible implementation manner, the first picture stored in the shared memory is an uncoded picture.
[0445] In a possible implementation manner, the first image includes any one of a YUV format, an RGB format, an RGBA format, and an ARGB format.
[0446] In a possible implementation, after the electronic device stores the first picture in a shared memory of the electronic device, the method further includes: the electronic device encodes the first picture into a first file, and stores the first file in a memory of the electronic device.
[0447] In this way, after the electronic device stores the first image in the shared memory of the electronic device, the electronic device can directly encode the first image into a first file and store it in the memory, thereby avoiding the situation where the electronic device suddenly shuts down before the first image is stored in the memory, resulting in the loss of the first image stored in the shared memory of the electronic device.
[0448] In some embodiments, after the electronic device encodes the first image into a first file and stores it in a memory, after the electronic device is turned off, the electronic device clears the first image stored in the shared memory.
[0449] In a possible implementation, before the electronic device is turned off, if the electronic device has cleared the first image stored in the shared memory, after the electronic device is turned on, the electronic device can automatically decode the first file into the first image and store it in the shared memory.
[0450] In one possible implementation, after the electronic device is turned on, if the electronic device has cleared the first picture stored in the shared memory, when the electronic device receives an operation from the user to view the first picture, the electronic device decodes the first file into the first picture and stores it in the shared memory.
[0451] For example, please refer to Figure 8B Description in the examples.
[0452] In one possible implementation, after the electronic device stores the first picture in a shared memory of the electronic device, the method further includes: after the duration of the first picture stored in the shared memory of the electronic device reaches a first duration, the electronic device encodes the first picture into a first file and stores the first file in a memory of the electronic device.
[0453] In this way, after the duration of the first image stored in the shared memory exceeds the first duration, if the user does not perform an operation to delete the first image, the electronic device can encode the first image into a first file and store it in the memory, that is, permanently save the first file.
[0454] Optionally, after the electronic device stores the first file in the memory of the electronic device, the electronic device may also delete the first image stored in the shared memory.
[0455] In this way, the electronic device can clean up the pictures stored in the shared memory in time to save the storage space of the shared memory.
[0456] For example, please refer to Figure 8B Description in the examples.
[0457] In one possible implementation, after the electronic device stores the first picture in a shared memory of the electronic device, the method further includes: the electronic device receives a second operation of the user to save the first picture; in response to the second operation, the electronic device encodes the first picture into a first file, and stores the first file in the memory of the electronic device.
[0458] In this way, after the duration of the first image stored in the shared memory exceeds the first duration, the electronic device can encode the first image into a first file and store it in the memory after receiving the second operation of saving the first image.
[0459] Optionally, after the electronic device stores the first file in the memory of the electronic device, the electronic device may also delete the first image stored in the shared memory.
[0460] In this way, the electronic device can clean up the pictures stored in the shared memory in time to save the storage space of the shared memory.
[0461] Exemplarily, the second operation of saving the first image may be for Fig. 3I 3006. For example, the second operation of saving the first picture may be for Figure 3N The input operation of the save option 3013 is shown.
[0462] You can refer to Fig. 8A Description in the examples.
[0463] In a possible implementation manner, the first file includes any one of a jpeg format and a heif format.
[0464] In a possible implementation manner, the method further includes: after the duration of the first image stored in the shared memory of the electronic device reaches a first duration, the electronic device deletes the first image stored in the shared memory.
[0465] In this way, after the duration of the first picture stored in the shared memory exceeds the first duration, the electronic device can clear the pictures stored in the shared memory in time to save the storage space of the shared memory.
[0466] In a possible implementation, after the electronic device displays the first picture, the method further includes: the electronic device receives a third operation of the user to delete the first picture; in response to the third operation, the electronic device deletes the first picture stored in the shared memory of the electronic device.
[0467] In this way, after the electronic device receives the third operation of deleting the first picture from the user, the electronic device deletes the first picture stored in the shared memory.
[0468] Exemplarily, the third operation of deleting the first picture may be: Figure 9A-9E Operations in .
[0469] For example, how the electronic device deletes the first picture stored in the shared memory can refer to Fig.10 Description in the examples.
[0470] In one possible implementation, the method also includes: if the electronic device has encoded the first image into a first file and stored the first file in a memory of the electronic device, in response to the third operation, the electronic device also needs to delete the first file corresponding to the first image stored in the memory of the electronic device.
[0471] For example, how the electronic device deletes the first file corresponding to the first picture stored in the memory can refer to Fig.11 Description in the examples.
[0472] In this way, if the electronic device has encoded the first image as a first file and stored it in the memory, after the electronic device receives the third operation of the user to delete the first image, the electronic device also needs to delete the first file corresponding to the first image stored in the memory. If the electronic device has not encoded the first image as a first file and stored it in the memory, after the electronic device receives the third operation of the user to delete the first image, the electronic device only needs to delete the first image stored in the shared memory.
[0473] In a possible implementation, the first application is an application that comes with the electronic device system, for example, the first application may be a gallery application, or the first application is a third-party application, for example, the first application may be an instant messaging application or a beauty application.
[0474] In one possible implementation, the electronic device includes a camera sub-service; before the first application or gallery application in the electronic device obtains the shared memory object through the media library, the method also includes: the camera sub-service obtains the shared memory object of the first image in the shared memory, and sends the shared memory object to the media library.
[0475] In a possible implementation, the camera sub-service sends the shared memory object of the first image in the shared memory to the media library, specifically including: the camera sub-service encapsulates the shared memory object of the first image in the shared memory as a binder instruction; the camera sub-service sends the binder instruction to the media library; the media library parses the binder instruction to obtain the shared memory object of the first image in the shared memory.
[0476] In this way, the camera sub-service can send the shared memory object of the first image in the shared memory to the media library across processes through the binder communication mechanism.
[0477] For example, please refer to Figure 5 Description in the examples.
[0478] In one possible implementation, an electronic device includes a first application and a media library; the electronic device receives a third operation of a user to delete a first picture, specifically including: the electronic device receives the third operation of a user to delete the first picture through the first application or the gallery application; in response to the third operation, the electronic device deletes the first picture stored in a shared memory of the electronic device, specifically including: in response to the third operation, the first application or the gallery application sends a deletion instruction to the media library; in response to the deletion instruction, the media library deletes the first picture stored in the shared memory of the electronic device.
[0479] For example, how the electronic device deletes the first picture stored in the shared memory can refer to Fig.10 Description in the examples.
[0480] The present application provides an electronic device, the electronic device comprising a memory and a processor; wherein the memory and the processor are coupled, the memory is used to store a computer program, and when the processor executes and calls the computer program, the electronic device executes Fig.12 A method of taking pictures is shown.
[0481] The present application provides a computer-readable storage medium, including instructions, which, when executed on an electronic device, cause the electronic device to execute Fig.12 A method of taking photos is shown.
[0482] The present application provides a chip system, which includes one or more processors, which are used to call computer instructions to enable electronic devices to execute Fig.12 A method of taking photos is shown.
[0483] The present application provides a computer program product including instructions, which, when executed on an electronic device, enables the electronic device to execute Fig.12 A method of taking pictures is shown.
[0484] The various implementation modes of the present application can be combined arbitrarily to achieve different technical effects.
[0485] In the above embodiments, it can be implemented in whole or in part by software, hardware, firmware or any combination thereof. When implemented using software, it can be implemented in whole or in part in the form of a computer program product. The computer program product includes one or more computer instructions. When the computer program instructions are loaded and executed on a computer, the process or function described in the present application is generated in whole or in part. The computer can be a general-purpose computer, a special-purpose computer, a computer network, or other programmable device. The computer instructions can be stored in a computer-readable storage medium, or transmitted from one computer-readable storage medium to another computer-readable storage medium. For example, the computer instructions can be transmitted from one website site, computer, server or data center to another website site, computer, server or data center by wired (e.g., coaxial cable, optical fiber, digital subscriber line) or wireless (e.g., infrared, wireless, microwave, etc.) mode. The computer-readable storage medium can be any available medium that a computer can access or a data storage device such as a server or data center that includes one or more available media integrated. The available medium can be a magnetic medium (e.g., a floppy disk, a hard disk, a tape), an optical medium (e.g., a DVD), or a semiconductor medium (e.g., a solid state drive (SSD)), etc.
[0486] Those skilled in the art can understand that to implement all or part of the processes in the above-mentioned embodiments, the processes can be completed by computer programs to instruct related hardware, and the programs can be stored in computer-readable storage media. When the programs are executed, they can include the processes of the above-mentioned method embodiments. The aforementioned storage media include: ROM or random access memory RAM, magnetic disk or optical disk and other media that can store program codes.
[0487] In short, the above is only an embodiment of the technical solution of this application, and is not intended to limit the protection scope of this application. Any modification, equivalent replacement, improvement, etc. made according to the disclosure of this application shall be included in the protection scope of this application.
Claims
1. A photographing method, characterized in that: The method comprises: The electronic device displays a first application interface; Receiving a photo-taking operation performed on the first application interface; In response to the photographing operation, the electronic device acquires a first picture and stores the first picture in a shared memory of the electronic device; The first image is displayed in a first application or a second application of the electronic device, and the first image is obtained by the electronic device from a shared memory of the electronic device, wherein the first application and the second application are different application programs.
2. The method according to claim 1, characterized in that: The application in the electronic device obtains the first picture from the shared memory according to the shared memory object of the first picture, and the shared memory object is used to indicate the storage location of the first picture in the shared memory.
3. The method according to claim 1 or 2, characterized in that: The first application is a camera application, and the second application is a gallery application, which specifically includes: The camera application or the gallery application in the electronic device obtains the shared memory object through the media library; The camera application or the gallery application in the electronic device acquires the first picture based on the shared memory object; The camera application or the gallery application displays the first picture.
4. The method according to claim 3, characterized in that The camera application or the gallery application in the electronic device obtains the shared memory object through the media library, specifically including: The camera application or the gallery application of the electronic device receives a first operation of a user viewing the first picture; In response to the first operation, the camera application or the gallery application in the electronic device obtains the shared memory object through the media library.
5. The method according to claim 3 or 4, characterized in that: After storing the first picture in the shared memory of the electronic device, the method further includes: The media library in the electronic device stores a shared memory object of the first picture.
6. The method according to any one of claims 1 to 5, characterized in that: The first picture stored in the shared memory is an uncoded picture.
7. The method according to any one of claims 1 to 6, characterized in that: The first image includes any one of a YUV format, an RGB format, an RGBA format, and an ARGB format.
8. The method according to any one of claims 1 to 7, characterized in that: After the electronic device stores the first picture in a shared memory of the electronic device, the method further includes: The electronic device encodes the first picture into a first file, and stores the first file in a memory of the electronic device.
9. The method according to any one of claims 1 to 7, characterized in that: After the electronic device stores the first picture in a shared memory of the electronic device, the method further includes: After the duration of the first image stored in the shared memory of the electronic device reaches a first duration, the electronic device encodes the first image into a first file and stores the first file in the memory of the electronic device.
10. The method according to any one of claims 1 to 7, characterized in that: After the electronic device stores the first picture in a shared memory of the electronic device, the method further includes: The electronic device receives a second operation of a user to save the first picture; In response to the second operation, the electronic device encodes the first picture into a first file and stores the first file in a memory of the electronic device.
11. The method according to any one of claims 8 to 10, characterized in that: The first file includes any one of jpeg format and heif format.
12. The method according to any one of claims 1 to 11, characterized in that: The method further comprises: After the duration of the first image stored in the shared memory of the electronic device reaches a first duration, the electronic device deletes the first image stored in the shared memory.
13. The method according to any one of claims 1 to 11, characterized in that: After the electronic device displays the first picture, the method further includes: The electronic device receives a third operation of the user to delete the first picture; In response to the third operation, the electronic device deletes the first picture stored in the shared memory of the electronic device.
14. The method according to claim 13, characterized in that The method further comprises: If the electronic device has encoded the first image into a first file and stored the first file in the memory of the electronic device, in response to the third operation, the electronic device also needs to delete the first file corresponding to the first image stored in the memory of the electronic device.
15. The method according to claim 3 or 4, characterized in that: The first application is an application provided by the electronic device system, or the first application is a third-party application.
16. The method according to any one of claims 1 to 15, characterized in that: The electronic device includes a camera sub-service; in response to the photo-taking operation, the electronic device acquires a first picture and stores the first picture in a shared memory of the electronic device, specifically including: In response to the photo-taking operation, the camera sub-service acquires the first picture; The camera sub-service stores the first picture in the shared memory.
17. The method according to claim 4, characterized in that The electronic device includes a camera sub-service; the method further includes: The camera sub-service obtains a shared memory object of the first image in the shared memory, and sends the shared memory object to the media library.
18. The method according to claim 17, characterized in that The camera sub-service sends the shared memory object of the first picture in the shared memory to the media library, specifically including: The camera sub-service encapsulates the shared memory object of the first picture in the shared memory as a binder instruction; The camera sub-service sends the binder instruction to the media library; The media library parses the binder instruction to obtain a shared memory object of the first image in the shared memory.
19. The method according to claim 13 or 14, characterized in that The electronic device includes a media library; and the electronic device receives a third operation of a user deleting the first picture, specifically comprising: The electronic device receives, through the first application or the second application, the third operation of the user deleting the first picture; In response to the third operation, the electronic device deletes the first picture stored in the shared memory of the electronic device, specifically including: In response to the third operation, the first application or the second application sends a deletion instruction to the media library; In response to the deletion instruction, the media library deletes the first picture stored in the shared memory of the electronic device.
20. An electronic device, characterized in that: The electronic device includes a memory and a processor; wherein the memory and the processor are coupled, and the memory is used to store a computer program. When the processor executes and calls the computer program, the electronic device executes the method described in any one of claims 1-19.
21. A computer-readable storage medium comprising instructions, characterized in that: When the instructions are executed on an electronic device, the electronic device executes the method according to any one of claims 1 to 19.
22. A computer program product comprising instructions, characterized in that When the computer program product is run on an electronic device, the electronic device is enabled to execute the method according to any one of claims 1 to 19.
Citation Information
Patent Citations
Mobile telephone and internal memory sharing method thereof
CN101662534A
Method, apparatus, storage medium and electronic device for transmitting image information
CN109213613A
Image optimization method and device, electronic equipment and readable storage medium
CN110049247A
Image selection method and device and electronic equipment
CN111666025A
Image transmission method, device and equipment and computer storage medium
CN116204337A
Cited By
Photographing method, electronic device, and storage medium
WO2026061445A1