CN113438419A - Camera starting method and device and electronic equipment - Google Patents
Camera starting method and device and electronic equipment Download PDFInfo
- Publication number
- CN113438419A CN113438419A CN202110720501.7A CN202110720501A CN113438419A CN 113438419 A CN113438419 A CN 113438419A CN 202110720501 A CN202110720501 A CN 202110720501A CN 113438419 A CN113438419 A CN 113438419A
- Authority
- CN
- China
- Prior art keywords
- window
- camera
- preview
- camera module
- image
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Granted
Links
Images
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N23/00—Cameras or camera modules comprising electronic image sensors; Control thereof
- H04N23/60—Control of cameras or camera modules
- H04N23/63—Control of cameras or camera modules by using electronic viewfinders
- H04N23/631—Graphical user interfaces [GUI] specially adapted for controlling image capture or setting capture parameters
- H04N23/632—Graphical user interfaces [GUI] specially adapted for controlling image capture or setting capture parameters for displaying or modifying preview images prior to image capturing, e.g. variety of image resolutions or capturing parameters
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N23/00—Cameras or camera modules comprising electronic image sensors; Control thereof
- H04N23/60—Control of cameras or camera modules
- H04N23/665—Control of cameras or camera modules involving internal camera communication with the image sensor, e.g. synchronising or multiplexing SSIS control signals
-
- Y—GENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
- Y02—TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
- Y02D—CLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
- Y02D30/00—Reducing energy consumption in communication networks
- Y02D30/70—Reducing energy consumption in communication networks in wireless communication networks
Landscapes
- Engineering & Computer Science (AREA)
- Multimedia (AREA)
- Signal Processing (AREA)
- Human Computer Interaction (AREA)
- Studio Devices (AREA)
Abstract
The application provides a camera starting method and device and electronic equipment, and relates to the technical field of terminals. The camera starting method comprises the following steps: when the camera is detected to be opened, the image window and the preview window can be configured. After determining that the configuration of the image view window is completed, the configuration information of the image view window may be sent to the camera module located in the frame layer, so that the camera module configures the first data flow channel. After determining that the first data stream channel configuration is complete, a preview request may be sent to the camera module. After the preview window configuration is determined to be completed, the configuration information of the preview window can be added in the preview request, so that the camera module configures the second data flow channel, and the image data shot by the camera can be displayed in the preview window through the second data flow channel. Therefore, the time required by starting the camera can be shortened, and the user experience is improved.
Description
[ technical field ] A method for producing a semiconductor device
The present application relates to the field of terminal technologies, and in particular, to a camera starting method and apparatus, and an electronic device.
[ background of the invention ]
Camera applications are common applications in many electronic devices. Before image shooting is carried out by using a camera application, a camera needs to be started to display a preview image, so that a user can determine an object to be shot according to the preview image.
Displaying the preview image requires occupying hardware resources, such as display window resources. Therefore, in the current technical scheme, when the camera is started, the hardware resources are usually applied first, and after the hardware resources are allocated, the camera session is established and the preview is started. However, the hardware resources are limited, and when the hardware resources are in an occupied state, the hardware resources cannot be allocated quickly. This results in the fact that subsequent steps cannot be executed in time, reduces the speed of starting the camera application, and results in poor user experience.
[ summary of the invention ]
The embodiment of the application provides a camera starting method and device and electronic equipment, which are used for shortening the time required by starting a camera and improving the user experience.
In a first aspect, an embodiment of the present application provides a camera starting method, where the method includes: when the camera is detected to be opened, an image window and a preview window are configured; after the image window configuration is determined to be completed, sending configuration information of the image window to a camera module located on a frame layer, wherein the configuration information of the image window is used for the camera module to configure a first data flow channel; after the first data flow channel configuration is determined to be completed, sending a preview request to the camera module, wherein the preview request is used for the camera module to store image data shot by the camera in the image window through the first data flow channel; and after the preview window is determined to be configured, adding configuration information of the preview window in the preview request, wherein the configuration information of the preview window is used for the camera module to configure a second data flow channel, and image data shot by a camera is displayed in the preview window through the second data flow channel.
In one possible implementation, the starting of configuring the image window includes: configuring a first buffer area of the image window; sending configuration information of the image window to a camera module located in a frame layer, wherein the configuration information comprises: sending the information of the first buffer area to the camera module to enable the camera module to configure the first data stream channel based on the information of the first buffer area.
In one possible implementation manner, after determining that the configuration of the first data flow channel is completed and sending a preview request to the camera module, the method further includes: if image data sent by the camera module through the first data stream channel is received, the image data is stored in the first buffer area.
In one possible implementation, the starting to configure the preview window includes: configuring a preview window and a second buffer area corresponding to the preview window; after determining that the configuration of the preview window is completed, adding the configuration information of the preview window in the preview request, including: adding information of the second buffer area in the preview request to enable the camera module to configure the second data stream channel based on the information of the second buffer area.
In one possible implementation manner, after determining that the configuration of the preview window is completed and after adding the configuration information of the preview window in the preview request, the method further includes: if image data sent by the camera module through a second data stream channel is received, storing the corresponding image data in the second buffer area; and when the image data stored in the second buffer area is larger than a set threshold value, displaying the image data in the second buffer area on the preview window.
In a second aspect, an embodiment of the present application provides a camera starting device, including: the detection module is used for starting to configure an image window and a preview window when detecting that the camera is opened; the first sending module is used for sending the configuration information of the image window to a camera module positioned on a framework layer after the configuration of the image window is determined to be finished, wherein the configuration information of the image window is used for the camera module to configure a first data flow channel; the second sending module is used for sending a preview request to the camera module after the first data flow channel configuration is determined to be completed, wherein the preview request is used for the camera module to store image data shot by the camera in the image window through the first data flow channel; and the execution module is used for determining that the configuration information of the preview window is added in the preview request after the configuration of the preview window is finished, wherein the configuration information of the preview window is used for the camera module to configure a second data flow channel, and the image data shot by the camera is displayed in the preview window through the second data flow channel.
In one possible implementation manner, the detection module is specifically configured to configure a first buffer area of the image window; the first sending module is specifically configured to send the information of the first buffer area to the camera module, so that the camera module configures the first data stream channel based on the information of the first buffer area.
In one possible implementation manner, the apparatus further includes a first receiving module, configured to store the image data in the first buffer area after receiving the image data sent by the camera module through the first data stream channel.
In one possible implementation manner, the detection module is specifically configured to configure a preview window and a second buffer area corresponding to the preview window; the execution module is specifically configured to add the information of the second buffer area to the preview request, so that the camera module configures the second data stream channel based on the information of the second buffer area.
In one possible implementation manner, the apparatus further includes a second receiving module, configured to store, after receiving the image data sent by the camera module through a second data stream channel, the corresponding image data in the second buffer area; and the display module is used for displaying the image data in the second buffer area on the preview window when the image data stored in the second buffer area is larger than a set threshold value.
In a third aspect, an embodiment of the present application provides an electronic device, including: at least one processor; and at least one memory communicatively coupled to the processor, wherein: the memory stores program instructions executable by the processor, the processor being capable of performing the method of the first aspect when invoked by the processor.
In a fourth aspect, an embodiment of the present application provides a chip, where the chip includes a processor and a data interface, and the processor reads instructions stored on a memory through the data interface, and is capable of performing the method according to the first aspect.
In a fifth aspect, embodiments of the present application provide a computer-readable storage medium storing computer instructions for causing a computer to perform the method according to the first aspect.
In the above technical scheme, when the camera is detected to be opened, the configuration of the image window and the preview window can be started. After determining that the configuration of the image view window is completed, the configuration information of the image view window may be sent to the camera module located in the frame layer, so that the camera module configures the first data flow channel. After determining that the first data stream channel configuration is complete, a preview request may be sent to the camera module. After the preview window configuration is determined to be completed, the configuration information of the preview window can be added in the preview request, so that the camera module configures the second data flow channel, and the image data shot by the camera can be displayed in the preview window through the second data flow channel. Therefore, the time required by starting the camera can be shortened, and the starting efficiency of the camera is improved.
[ description of the drawings ]
In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings needed to be used in the embodiments will be briefly described below, and it is obvious that the drawings in the following description are only some embodiments of the present application, and it is obvious for those skilled in the art to obtain other drawings based on these drawings without creative efforts.
Fig. 1 is a schematic structural diagram of an electronic device according to an embodiment of the present disclosure;
fig. 2 is a flowchart of a camera starting method according to an embodiment of the present application;
fig. 3 is a schematic structural diagram of a camera starting device according to an embodiment of the present application;
fig. 4 is a schematic structural diagram of another electronic device according to an embodiment of the present application.
[ detailed description ] embodiments
For better understanding of the technical solutions of the present application, the following detailed descriptions of the embodiments of the present application are provided with reference to the accompanying drawings.
It should be understood that the embodiments described are only a few embodiments of the present application, and not all embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present application.
The terminology used in the embodiments of the present application is for the purpose of describing particular embodiments only and is not intended to be limiting of the application. As used in the examples of this application and the appended claims, the singular forms "a", "an", and "the" are intended to include the plural forms as well, unless the context clearly indicates otherwise.
Embodiments of the present application may provide an electronic device, which may be any electronic device including a camera application. Fig. 1 is a schematic structural diagram of an electronic device according to an embodiment of the present application. As shown in fig. 1, an electronic device 100 provided in the embodiment of the present application may include a response module 21 and a camera module 31. Wherein, the response module 21 may be located at the application layer 20 of the electronic device 100. The camera module 31 may be located at the frame layer 30 of the electronic device 100.
The camera starting method provided by the embodiment of the present application can be applied to the response module 21 located in the application layer 20.
Fig. 2 is a flowchart of a camera starting method according to an embodiment of the present application, and as shown in fig. 2, the camera starting method may include:
In response to the received camera start instruction, a camera start instruction may be sent to the camera module located at the frame layer. The camera opening instruction can be used for instructing the camera module to call the camera and open the camera. Then, a camera opening response sent by the camera module can be received, and the camera opening is determined.
In the embodiment of the application, the configuration of the image window and the preview window can be started when the camera is determined to be opened. Or, in order to increase the starting speed of the camera, the steps of starting the camera, configuring the image window and configuring the preview window may be executed in parallel after receiving the camera starting instruction.
In the embodiment of the present application, the image window may be a software-based window, and may be, for example, an ImageReader. The preview window may be a hardware-based window, and may illustratively be a Surface.
Further, configuring the image view can include: a first buffer area of the image view is configured. The first buffer area may be used to store image data captured by the camera. Configuring the preview window may include: and configuring a preview window and a second buffer area corresponding to the preview window. The second buffer area can be used for storing image data shot by the camera, and the preview window can be used for displaying the image data shot by the camera.
Software-based windows are faster to configure than hardware-based windows. Thus, the image window in the present embodiment is configured before the preview window.
After the configuration of the image window is completed, the embodiment of the application may directly send the configuration information of the image window to the camera module without waiting for the configuration of the preview window. Specifically, information of the first buffer area may be transmitted to the camera module. Furthermore, the camera module may configure the first data stream channel according to the information of the first buffer area. The first data stream channel may be, for example, a camera session channel. Therefore, the parallel configuration of the first data flow channel and the preview window can be realized, and the starting speed of the camera is increased.
In the embodiment of the application, after the configuration information of the image window is sent to the camera module, a response message sent by the camera module can be received. The response message may indicate that the first data flow channel configuration is complete.
After determining that the first data stream channel configuration is complete, a preview request may be sent to the camera module. The preview request may be for requesting to acquire image data captured by the camera. Illustratively, the preview request may be repeatedly transmitted at set time intervals. Thus, image data taken by the camera can be continuously acquired.
After sending the preview request, image data sent by the camera module through the first data stream channel may be received. The received image data may then be stored in a first buffer area of the image view.
And 104, after the preview window is determined to be configured, adding configuration information of the preview window in the preview request so that the camera module configures a second data flow channel, and displaying the image data shot by the camera in the preview window through the second data flow channel.
As can be seen from the above description, the preview window is configured slower than the image window. This step may be performed after determining that the preview window configuration is complete.
After the configuration of the preview window is completed, the configuration information of the preview window can be added in the subsequent preview request sent. Illustratively, information for the second buffer area of the preview window may be added. Furthermore, the camera module may configure a second data stream channel according to the information of the second buffer area. The second data stream channel may be, for example, a camera session channel. The second data stream channel may be used to transmit subsequently acquired image data.
After the preview request carrying the preview window configuration information is sent to the camera module, image data sent by the camera module through the second data flow channel can be received. The corresponding image data may then be stored in the second buffer area of the preview window. When the image data stored in the second buffer area is larger than the set threshold value, the image data can be displayed in a preview window of the preview window. The value of the set threshold can be set according to requirements. For example, the set threshold may be the size of the storage space of the second buffer area.
The camera starting method provided by the embodiment of the application can be used for simultaneously configuring the image window and the preview window. After the configuration of the image window is completed, the subsequent process can be started immediately, so that the subsequent process and the configuration of the preview window are executed in parallel. Therefore, the starting time of the camera can be shortened, and better user experience is provided.
Fig. 3 is a schematic structural diagram of a camera starting device according to an embodiment of the present application. As shown in fig. 3, the camera activation device may include: a detection module 31, a first sending module 32, a second sending module 33 and an execution module 33.
And the detection module 31 is configured to start to configure the image window and the preview window when detecting that the camera is opened.
And the first sending module 32 is configured to send configuration information of the image window to the camera module located on the frame layer after determining that the configuration of the image window is completed, where the configuration information of the image window is used for the camera module to configure the first data stream channel.
And a second sending module 33, configured to send a preview request to the camera module after determining that the configuration of the first data flow channel is completed, where the preview request is used for the camera module to store the image data captured by the camera in the image window through the first data flow channel.
And the execution module 34 is configured to determine that after the configuration of the preview window is completed, add configuration information of the preview window in the preview request, where the configuration information of the preview window is used for configuring the second data flow channel by the camera module, and the image data shot by the camera is displayed in the preview window through the second data flow channel.
In a specific implementation manner, the detection module 31 is specifically configured to configure a first buffer area of the image window; the first sending module 32 is specifically configured to send the information of the first buffer area to the camera module, so that the camera module configures the first data stream channel based on the information of the first buffer area.
In a specific implementation manner, the apparatus further includes a first receiving module 35, configured to store the image data in the first buffer area after receiving the image data sent by the camera module through the first data stream channel.
In a specific implementation manner, the detection module 31 is specifically configured to configure a preview window and a second buffer area corresponding to the preview window; the execution module 34 is specifically configured to add the information of the second buffer area to the preview request, so that the camera module configures the second data stream channel based on the information of the second buffer area.
In a specific implementation manner, the system further includes a second receiving module 36, configured to store, after receiving the image data sent by the camera module through the second data stream channel, the corresponding image data in a second buffer area; and a display module 37, configured to display the image data in the second buffer area in the preview window when the image data stored in the second buffer area is greater than the set threshold.
In this embodiment of the application, when the detection module 31 detects that the camera is opened, the configuration of the image window and the preview window may be started. After the first sending module 32 determines that the configuration of the image view window is completed, the configuration information of the image view window may be sent to the camera module located in the frame layer, so that the camera module configures the first data stream channel. The second sending module 33 may send a preview request to the camera module after determining that the configuration of the first data stream channel is completed. After the execution module 34 determines that the configuration of the preview window is completed, the configuration information of the preview window may be added to the preview request, so that the camera module configures the second data flow channel, and the image data captured by the camera may be displayed in the preview window through the second data flow channel. Therefore, the time required by starting the camera can be shortened, and the user experience is improved.
Fig. 4 is a schematic structural diagram of another electronic device according to an embodiment of the present application. As shown in fig. 4, the electronic device may include at least one processor; and at least one memory communicatively coupled to the processor, wherein: the memory stores program instructions executable by the processor, and the processor calls the program instructions to execute the camera starting method provided by the embodiment of the application.
The electronic device may be a camera starting device, and the embodiment does not limit the specific form of the electronic device.
FIG. 4 illustrates a block diagram of an exemplary electronic device suitable for use in implementing embodiments of the present application. The electronic device shown in fig. 4 is only an example, and should not bring any limitation to the functions and the scope of use of the embodiments of the present application.
As shown in fig. 4, the electronic device is in the form of a general purpose computing device. Components of the electronic device may include, but are not limited to: one or more processors 410, a memory 430, and a communication bus 440 that connects the various system components (including the memory 430 and the processors 410).
Electronic devices typically include a variety of computer system readable media. Such media may be any available media that is accessible by the electronic device and includes both volatile and nonvolatile media, removable and non-removable media.
A program/utility having a set (at least one) of program modules, including but not limited to an operating system, one or more application programs, other program modules, and program data, may be stored in memory 430, each of which examples or some combination may include an implementation of a network environment. The program modules generally perform the functions and/or methodologies of the embodiments described herein.
The electronic device may also communicate with one or more external devices (e.g., keyboard, pointing device, display, etc.), one or more devices that enable a user to interact with the electronic device, and/or any devices (e.g., network card, modem, etc.) that enable the electronic device to communicate with one or more other computing devices. Such communication may occur via communication interface 420. Furthermore, the electronic device may also communicate with one or more networks (e.g., a Local Area Network (LAN), a Wide Area Network (WAN), and/or a public Network such as the Internet) via a Network adapter (not shown in FIG. 4) that may communicate with other modules of the electronic device via the communication bus 440. It should be appreciated that although not shown in FIG. 4, other hardware and/or software modules may be used in conjunction with the electronic device, including but not limited to: microcode, device drivers, Redundant processing units, external disk drive Arrays, disk array (RAID) systems, tape Drives, and data backup storage systems, among others.
The processor 410 executes various functional applications and camera booting, for example, implementing a camera booting method provided by an embodiment of the present application, by executing a program stored in the memory 430.
The embodiment of the present application further provides a computer-readable storage medium, where the computer-readable storage medium stores a computer instruction, and the computer instruction enables the computer to execute the camera starting method provided in the embodiment of the present application.
The computer-readable storage medium described above may take any combination of one or more computer-readable media. The computer readable medium may be a computer readable signal medium or a computer readable storage medium. A computer readable storage medium may be, for example, but not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination of the foregoing. More specific examples (a non-exhaustive list) of the computer readable storage medium would include the following: an electrical connection having one or more wires, a portable computer diskette, a hard disk, a Random Access Memory (RAM), a Read Only Memory (ROM), an Erasable Programmable Read Only Memory (EPROM), a flash Memory, an optical fiber, a portable compact disc Read Only Memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing. In the context of this document, a computer readable storage medium may be any tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device.
A computer readable signal medium may include a propagated data signal with computer readable program code embodied therein, for example, in baseband or as part of a carrier wave. Such a propagated data signal may take any of a variety of forms, including, but not limited to, electro-magnetic, optical, or any suitable combination thereof. A computer readable signal medium may also be any computer readable medium that is not a computer readable storage medium and that can communicate, propagate, or transport a program for use by or in connection with an instruction execution system, apparatus, or device.
Program code embodied on a computer readable medium may be transmitted using any appropriate medium, including but not limited to wireless, wireline, optical fiber cable, RF, etc., or any suitable combination of the foregoing.
In the description herein, reference to the description of the term "one embodiment," "some embodiments," "an example," "a specific example," or "some examples," etc., means that a particular feature, structure, material, or characteristic described in connection with the embodiment or example is included in at least one embodiment or example of the application. In this specification, the schematic representations of the terms used above are not necessarily intended to refer to the same embodiment or example. Furthermore, the particular features, structures, materials, or characteristics described may be combined in any suitable manner in any one or more embodiments or examples. Furthermore, various embodiments or examples and features of different embodiments or examples described in this specification can be combined and combined by one skilled in the art without contradiction.
Furthermore, the terms "first", "second" and "first" are used for descriptive purposes only and are not to be construed as indicating or implying relative importance or implicitly indicating the number of technical features indicated. Thus, a feature defined as "first" or "second" may explicitly or implicitly include at least one such feature. In the description of the present application, "plurality" means at least two, e.g., two, three, etc., unless specifically limited otherwise.
Any process or method descriptions in flow charts or otherwise described herein may be understood as representing modules, segments, or portions of code which include one or more executable instructions for implementing steps of a custom logic function or process, and alternate implementations are included within the scope of the preferred embodiment of the present application in which functions may be executed out of order from that shown or discussed, including substantially concurrently or in reverse order, depending on the functionality involved, as would be understood by those reasonably skilled in the art of the present application.
It should be noted that the terminal according to the embodiments of the present application may include, but is not limited to, a Personal Computer (Personal Computer; hereinafter, referred to as PC), a Personal Digital Assistant (Personal Digital Assistant; hereinafter, referred to as PDA), a wireless handheld device, a Tablet Computer (Tablet Computer), a mobile phone, an MP3 player, an MP4 player, and the like.
In the several embodiments provided in the present application, it should be understood that the disclosed system, apparatus and method may be implemented in other ways. For example, the above-described apparatus embodiments are merely illustrative, and for example, the division of the units is only one logical division, and there may be other divisions in actual implementation, for example, a plurality of units or components may be combined or integrated into another system, or some features may be omitted, or not executed. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection through some interfaces, devices or units, and may be in an electrical, mechanical or other form.
In addition, functional units in the embodiments of the present application may be integrated into one processing unit, or each unit may exist alone physically, or two or more units are integrated into one unit. The integrated unit can be realized in a form of hardware, or in a form of hardware plus a software functional unit.
The above description is only exemplary of the present application and should not be taken as limiting the present application, as any modification, equivalent replacement, or improvement made within the spirit and principle of the present application should be included in the scope of protection of the present application.
Claims (9)
1. A camera startup method, comprising:
when the camera is detected to be opened, an image window and a preview window are configured;
after the image window configuration is determined to be completed, sending configuration information of the image window to a camera module located on a frame layer, wherein the configuration information of the image window is used for the camera module to configure a first data flow channel;
after the first data flow channel configuration is determined to be completed, sending a preview request to the camera module, wherein the preview request is used for the camera module to store image data shot by the camera in the image window through the first data flow channel;
and after the preview window is determined to be configured, adding configuration information of the preview window in the preview request, wherein the configuration information of the preview window is used for the camera module to configure a second data flow channel, and image data shot by a camera is displayed in the preview window through the second data flow channel.
2. The method of claim 1, wherein initiating configuration of an image viewport comprises: configuring a first buffer area of the image window;
sending configuration information of the image window to a camera module located in a frame layer, wherein the configuration information comprises: sending the information of the first buffer area to the camera module to enable the camera module to configure the first data stream channel based on the information of the first buffer area.
3. The method of claim 2, wherein after determining that the first data flow channel configuration is complete and sending a preview request to the camera module, the method further comprises:
if image data sent by the camera module through the first data stream channel is received, the image data is stored in the first buffer area.
4. The method of claim 1, wherein initiating the configuration of the preview window comprises: configuring a preview window and a second buffer area corresponding to the preview window;
after determining that the configuration of the preview window is completed, adding the configuration information of the preview window in the preview request, including:
adding information of the second buffer area in the preview request to enable the camera module to configure the second data stream channel based on the information of the second buffer area.
5. The method of claim 4, wherein after determining that the preview window is configured, the method further comprises, after adding configuration information for the preview window to the preview request:
if image data sent by the camera module through a second data stream channel is received, storing the corresponding image data in the second buffer area;
and when the image data stored in the second buffer area is larger than a set threshold value, displaying the image data in the second buffer area on the preview window.
6. A camera startup device, comprising:
the detection module is used for starting to configure an image window and a preview window when detecting that the camera is opened;
the first sending module is used for sending the configuration information of the image window to a camera module positioned on a framework layer after the configuration of the image window is determined to be finished, wherein the configuration information of the image window is used for the camera module to configure a first data flow channel;
the second sending module is used for sending a preview request to the camera module after the first data flow channel configuration is determined to be completed, wherein the preview request is used for the camera module to store image data shot by the camera in the image window through the first data flow channel;
and the execution module is used for determining that the configuration information of the preview window is added in the preview request after the configuration of the preview window is finished, wherein the configuration information of the preview window is used for the camera module to configure a second data flow channel, and the image data shot by the camera is displayed in the preview window through the second data flow channel.
7. An electronic device, comprising:
at least one processor; and
at least one memory communicatively coupled to the processor, wherein:
the memory stores program instructions executable by the processor, the processor invoking the program instructions to perform the method of any of claims 1 to 5.
8. A computer-readable storage medium storing computer instructions for causing a computer to perform the method of any one of claims 1 to 5.
9. A chip comprising a processor and a data interface, the processor being capable of performing the method of any one of claims 1 to 5 by reading instructions stored on a memory via the data interface.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202110720501.7A CN113438419B (en) | 2021-06-28 | 2021-06-28 | Camera starting method and device and electronic equipment |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202110720501.7A CN113438419B (en) | 2021-06-28 | 2021-06-28 | Camera starting method and device and electronic equipment |
Publications (2)
Publication Number | Publication Date |
---|---|
CN113438419A true CN113438419A (en) | 2021-09-24 |
CN113438419B CN113438419B (en) | 2022-08-16 |
Family
ID=77754974
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202110720501.7A Active CN113438419B (en) | 2021-06-28 | 2021-06-28 | Camera starting method and device and electronic equipment |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN113438419B (en) |
Citations (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20090086011A1 (en) * | 2007-09-28 | 2009-04-02 | Sony Ericsson Mobile Communications Ab | Method and system for a quick start camera application in a camera |
US20140204244A1 (en) * | 2013-01-18 | 2014-07-24 | Samsung Electronics Co., Ltd. | Method and apparatus for photographing in portable terminal |
US20150271388A1 (en) * | 2012-12-10 | 2015-09-24 | Tencent Technology (Shenzhen) Company Limited | Photographing Starting Apparatus And Method For Built-In Camera Of Portable Data Processing Device |
CN105898149A (en) * | 2016-06-01 | 2016-08-24 | 广东欧珀移动通信有限公司 | Camera starting method and system |
US20170161871A1 (en) * | 2015-12-08 | 2017-06-08 | Le Holdings (Beijing) Co., Ltd. | Method and electronic device for previewing picture on intelligent terminal |
CN108874473A (en) * | 2018-06-15 | 2018-11-23 | Oppo广东移动通信有限公司 | video capture method and related product |
CN110177215A (en) * | 2019-06-28 | 2019-08-27 | Oppo广东移动通信有限公司 | Image processing method, image processor, filming apparatus and electronic equipment |
CN111294500A (en) * | 2018-12-07 | 2020-06-16 | 深圳市优必选科技有限公司 | Image shooting method, terminal device and medium |
-
2021
- 2021-06-28 CN CN202110720501.7A patent/CN113438419B/en active Active
Patent Citations (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20090086011A1 (en) * | 2007-09-28 | 2009-04-02 | Sony Ericsson Mobile Communications Ab | Method and system for a quick start camera application in a camera |
US20150271388A1 (en) * | 2012-12-10 | 2015-09-24 | Tencent Technology (Shenzhen) Company Limited | Photographing Starting Apparatus And Method For Built-In Camera Of Portable Data Processing Device |
US20140204244A1 (en) * | 2013-01-18 | 2014-07-24 | Samsung Electronics Co., Ltd. | Method and apparatus for photographing in portable terminal |
US20170161871A1 (en) * | 2015-12-08 | 2017-06-08 | Le Holdings (Beijing) Co., Ltd. | Method and electronic device for previewing picture on intelligent terminal |
CN105898149A (en) * | 2016-06-01 | 2016-08-24 | 广东欧珀移动通信有限公司 | Camera starting method and system |
CN108874473A (en) * | 2018-06-15 | 2018-11-23 | Oppo广东移动通信有限公司 | video capture method and related product |
CN111294500A (en) * | 2018-12-07 | 2020-06-16 | 深圳市优必选科技有限公司 | Image shooting method, terminal device and medium |
CN110177215A (en) * | 2019-06-28 | 2019-08-27 | Oppo广东移动通信有限公司 | Image processing method, image processor, filming apparatus and electronic equipment |
Also Published As
Publication number | Publication date |
---|---|
CN113438419B (en) | 2022-08-16 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US10257416B2 (en) | Apparatus and method for setting camera | |
CN107925749B (en) | Method and apparatus for adjusting resolution of electronic device | |
CN109213611B (en) | Cross-process communication method, device, terminal and storage medium | |
EP3160150A1 (en) | Electronic device and method for executing function using speech recognition thereof | |
US8639749B2 (en) | Platform independent information handling system, communication method, and computer program product thereof | |
US9843667B2 (en) | Electronic device and call service providing method thereof | |
CN108496198B (en) | Image processing method and device | |
US20160004425A1 (en) | Method of displaying graphic user interface and electronic device implementing same | |
US20150235366A1 (en) | Method for processing image data and apparatus for the same | |
US10999501B2 (en) | Electronic device and method for controlling display of panorama image | |
US20220058772A1 (en) | Image Processing Method and Device | |
CN113377448A (en) | Service function execution method and electronic equipment | |
CN111309617A (en) | Application program control method and device, storage medium and electronic equipment | |
CN114040144A (en) | Video call method and electronic equipment | |
US8717375B1 (en) | Graphics display coordination | |
US20170118401A1 (en) | Electronic device and method for processing image | |
CN111258582B (en) | Window rendering method and device, computer equipment and storage medium | |
CN110515749B (en) | Method, device, server and storage medium for queue scheduling of information transmission | |
CN113438419B (en) | Camera starting method and device and electronic equipment | |
CN109542604A (en) | The method, apparatus, equipment and storage medium of grouting socket in thread | |
US20180004380A1 (en) | Screen display method and electronic device supporting the same | |
CN114173319A (en) | Method and device for realizing cross-platform call, cloud mobile phone platform and storage medium | |
US10592081B2 (en) | Multi-language input method and multi-language input apparatus using the same | |
CN112286456B (en) | Storage method and device | |
CN112965778B (en) | Chat page display method, chat page display device, electronic equipment and computer readable medium |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |