Scene packet processing method, co-processing chip, main processing chip and electronic device

By matching and sending target scenario packets matching the usage scenarios to the coprocessing chip in the main processing chip, the problem of increasing storage space requirements of coprocessing chips in the prior art is solved, and efficient scenario packet matching and analysis is achieved, saving hardware costs and improving system speed.

CN114827431BActive Publication Date: 2025-04-04GUANGDONG OPPO MOBILE TELECOMMUNICATIONS CORP LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202110110631.9
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-01-27
Publication Date
2025-04-04
Estimated Expiration
2041-01-27

AI Technical Summary

Technical Problem

In the prior art, the main processing chip needs to store all possible usage scenario parameter files, resulting in an increase in the storage space requirement of the co-processing chip and the inefficiency of obtaining scenario packages that match the usage scenario.

Method used

By determining the camera usage scenario of the electronic device in the main processing chip, and matching the target scenario packets matching the usage scenario from the stored multiple scene packets, it is sent to the co-processing chip for analysis and use.

Benefits of technology

The storage space requirements of coprocessing chips are reduced, the efficiency of obtaining scene packages that match the usage scenarios is improved, the hardware cost of coprocessing chips is saved, and the system operation speed is improved.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114827431B_ABST
    Figure CN114827431B_ABST
Patent Text Reader

Abstract

The embodiment of the present application provides a scene packet processing method, a co-processing chip, a main processing chip and an electronic device, and relates to the field of chip technology. The method is applied to an electronic device, and the electronic device includes a co-processing chip and a main processing chip connected to the co-processing chip. The method includes: the main processing chip determines the usage scenario of the camera of the electronic device; based on the usage scenario, determines a target scene package that matches the usage scenario from at least one stored scene package, and the target scene package is used to indicate the image quality parameters used by the camera in the usage scenario; sends the target scene package to the co-processing chip; the co-processing chip parses the target scene package to obtain a parsed target scene package; and sends the parsed target scene package to the ISP. The embodiment of the present application does not need to obtain all scene packages in the main chip, but only needs to obtain scene packages that match the usage scenario based on the usage scenario, which can reduce the storage space requirements for the co-processing chip.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The embodiments of the present application relate to the field of chip technology, and in particular to a scene packet processing method, a co-processing chip, a main processing chip and an electronic device. Background Art

[0002] ISP (Image Signal Processing) is mainly used to process the signals output by the front-end image sensor.

[0003] In the related art, a parameter file is stored in the main processing chip, which includes all usage scenarios supported by the co-processing chip. When the co-processing chip is started, the parameter file is read into the co-processing chip, and the co-processing chip parses the parameter file into a data format used by the ISP. Summary of the invention

[0004] The embodiment of the present application provides a scene packet processing method, a co-processing chip, a main processing chip and an electronic device. The technical solution is as follows:

[0005] On the one hand, an embodiment of the present application provides a scene packet processing method, which is applied to an electronic device, wherein the electronic device includes a co-processing chip and a main processing chip connected to the co-processing chip, and the method includes:

[0006] The main processing chip determines a usage scenario of the camera of the electronic device; based on the usage scenario, determines a target scenario package matching the usage scenario from at least one stored scenario package, the target scenario package being used to indicate an image quality parameter used by the camera in the usage scenario; and sends the target scenario package to the co-processing chip;

[0007] The co-processing chip parses the target scene packet to obtain a parsed target scene packet; and sends the parsed target scene packet to an image signal processor ISP.

[0008] On the other hand, an embodiment of the present application provides a co-processing chip, the co-processing chip includes a memory, a processor and an image signal processor ISP; wherein,

[0009] The memory is used to receive a target scene package from the main processing chip, wherein the target scene package is used to indicate an image quality parameter used by a camera of the electronic device in a usage scenario;

[0010] The processor is used to parse the target scene package to obtain a parsed target scene package; and send the parsed target scene package to the ISP.

[0011] On the other hand, an embodiment of the present application provides a main processing chip, the main processing chip comprising a processor and a memory; wherein the processor is used to:

[0012] Determine usage scenarios for cameras of electronic devices;

[0013] Based on the usage scenario, determining a target scene package matching the usage scenario from at least one scene package stored in the memory, the target scene package being used to indicate an image quality parameter used by the camera in the usage scenario;

[0014] The target scene packet is sent to the co-processing chip.

[0015] In another aspect, an embodiment of the present application provides an electronic device, the electronic device comprising a co-processing chip and a main processing chip connected to the co-processing chip; wherein:

[0016] The main processing chip is used to determine a usage scenario of the camera of the electronic device; based on the usage scenario, determine a target scene package matching the usage scenario from at least one stored scene package, the target scene package being used to indicate an image quality parameter used by the camera in the usage scenario; and send the target scene package to the co-processing chip;

[0017] The co-processing chip is used to parse the target scene packet to obtain a parsed target scene packet; and send the parsed target scene packet to an image signal processor ISP.

[0018] The technical solution provided in the embodiments of the present application can bring the following beneficial effects:

[0019] Based on the usage scenario of the terminal's camera, a scene package that matches the usage scenario is determined from multiple scene packages and stored in a co-processing chip, and then the co-processing chip parses the scene package. The embodiment of the present application does not need to obtain all scene packages in the main processing chip, but only needs to obtain the scene package that matches the usage scenario based on the usage scenario, which can reduce the storage space requirement for the co-processing chip. BRIEF DESCRIPTION OF THE DRAWINGS

[0020] Figure 1 It is a schematic diagram of an implementation environment provided by an embodiment of the present application;

[0021] Figure 2 is a flowchart of a scene package processing method provided by an embodiment of the present application;

[0022] Figure 3 is a schematic diagram of at least one scene package stored in a main chip provided by an embodiment of the present application;

[0023] Figure 4It is a flow chart of a scene packet processing method provided by an embodiment of the present application;

[0024] Figure 5 is a flowchart of a scene package processing method provided by another embodiment of the present application;

[0025] Figure 6 is a schematic diagram of a scene package provided by an embodiment of the present application;

[0026] Figure 7 It is a schematic diagram of the module content provided by an embodiment of the present application;

[0027] Figure 8 is a schematic diagram of a co-processing chip provided by an embodiment of the present application;

[0028] Fig. 9 is a schematic diagram of a main processing chip provided by an embodiment of the present application;

[0029] Fig.10 It is a schematic diagram of a terminal provided by an embodiment of the present application. DETAILED DESCRIPTION

[0030] In order to make the objectives, technical solutions and advantages of the present application clearer, the implementation methods of the present application will be further described in detail below with reference to the accompanying drawings.

[0031] Please refer to Figure 1 , which shows a schematic diagram of an implementation environment provided by an embodiment of the present application. The implementation environment may include: a main processing chip 10, a co-processing chip 20 and an ISP30.

[0032] The main processing chip 10 is an important component of an electronic device. For example, the electronic device may be a mobile phone, a tablet computer, a PC (Personal Computer), an intelligent multimedia device, an intelligent wearable device, or the like.

[0033] The co-processing chip 20 is a chip developed and applied to assist the main processing chip 10 in completing processing tasks that the main processing chip 10 cannot perform or performs inefficiently or ineffectively, and can be used to reduce specific processing tasks of the main processing chip 10. Exemplarily, the co-processing chip 20 can also be called a co-processing module, a coprocessor, an auxiliary chip, a companion (CC) chip, etc., and the embodiment of the present application does not limit the name of the co-processing chip 20.

[0034] Exemplarily, the co-processing chip 20 includes ISP30. ISP30 is an image processor, which mainly performs post-processing on the signal output by the front-end image sensor. Its main functions include linear correction, noise removal, bad pixel removal, interpolation, white balance, automatic exposure control, etc. The camera relies on ISP30 to restore the scene details well under different optical conditions. ISP30 determines the imaging quality of the camera to a large extent. ISP30 can be divided into two forms: independent and integrated.

[0035] In the embodiment of the present application, at least one scene package is stored in the main processing chip 10, and the scene package is used to indicate the image quality parameters to be used in a certain scene. Based on the usage scenario of the camera of the electronic device, the main processing chip 10 determines the target scene package that matches the usage scenario from the at least one scene package, and sends the target scene package to the co-processing chip 20. The co-processing chip 20 receives and stores the target scene package, parses the target scene package, obtains the parsed target scene package, and sends the parsed target scene package to the ISP30. Based on the usage scenario of the camera of the electronic device, the embodiment of the present application determines the scene package that matches the usage scenario from multiple scene packages and stores it in the co-processing chip, and then the co-processing chip parses the scene package. The embodiment of the present application does not need to obtain all the scene packages in the main processing chip, but only needs to obtain the scene package that matches the usage scenario based on the usage scenario, which can reduce the storage space requirements for the co-processing chip and save the hardware cost of the co-processing chip.

[0036] It should be noted that the main processing chip can also be called an application processing chip, and the co-processing chip can also be called a multimedia processing chip.

[0037] The present application will be introduced and explained below in conjunction with several embodiments.

[0038] Please refer to Figure 2 , which shows a flow chart of a scene packet processing method provided by an embodiment of the present application. The method can be applied to an electronic device, the electronic device includes a co-processing chip and a main processing chip connected to the co-processing chip, and the method may include the following steps.

[0039] Step 201: The main processing chip determines a usage scenario of a camera of an electronic device.

[0040] In a possible implementation, the main processing chip receives a trigger operation for the electronic device; based on the trigger operation, the usage scenario is determined. Exemplarily, the usage scenario of the camera includes any of the following: recording video (Video) scenario, camera preview display interface (Preview) scenario, photo capture (Capture) scenario, night photography (Nightshot) scenario, raw output (Bayerfly) scenario, high-speed video (HS-video) scenario, slow motion (Slow motion) scenario, etc. Exemplarily, the user can open the camera application and select the function he wants to use. The main processing chip receives the user's trigger operation for the electronic device, thereby determining the usage scenario based on the trigger operation. For example, the main processing chip can receive a user's trigger operation for the user interface of the camera application, thereby determining the usage scenario based on the trigger operation.

[0041] In a possible implementation, the main processing chip may determine the usage scenario of the camera of the electronic device based on the ambient brightness of the electronic device. For example, the usage scenario determined based on the ambient brightness may include any of the following: normal light, ultra-dark, super night scene, etc. Exemplarily, the ambient brightness corresponding to different usage scenarios may be divided, so that the main processing chip can determine the usage scenario of the camera of the electronic device based on the ambient brightness of the current electronic device.

[0042] In a possible implementation, the main processing chip can determine the usage scenario of the camera of the electronic device based on the trigger operation and the ambient brightness at the same time. For example, the main processing chip can determine that the usage scenario is a recording video scene plus a normal light scene, a recording video scene plus an ultra-dark scene, or a recording video scene plus a super night scene, etc.

[0043] In a possible implementation, a processor of a main processing chip determines a usage scenario of a camera of an electronic device.

[0044] Exemplarily, the usage scenario of the above-mentioned camera is a scenario supported by the co-processing chip.

[0045] Step 202: The main processing chip determines a target scene package that matches the usage scene from at least one stored scene package based on the usage scene, where the target scene package is used to indicate image quality parameters used by the camera in the usage scene.

[0046] The target scenario package refers to a data packet used in the usage scenario, and the target scenario package includes all image quality parameters to be used by the ISP in the usage scenario. Each usage scenario corresponds to its own scenario package, and different usage scenarios may correspond to different scenario packages. Exemplarily, the scenario package may also be referred to as a data packet, a scenario data packet, a data message, etc., which is not limited in the embodiments of the present application.

[0047] In a possible implementation, the scene package is stored in a storage area of ​​the main processing chip (for example, stored in the memory of the main processing chip), and based on the usage scenario, the main processing chip obtains a target scene package matching the usage scenario from at least one scene package stored in the storage area.

[0048] In a possible implementation, the package name of the scene package is named according to the usage scenario. For example, the usage scenario corresponding to the scene package is named as the package name of the scene package. After the main processing chip determines the usage scenario, it directly determines the scene package whose package name matches the usage scenario as the target scene package based on the usage scenario. The matching of the package name and the usage scenario may mean that the package name is consistent with the usage scenario.

[0049] In a possible implementation, the main processing chip stores the correspondence between the scene package and the usage scene. After the main processing chip determines the usage scene, it obtains the target scene package based on the above correspondence and the usage scene.

[0050] In a possible implementation, a scene package corresponding to each usage scenario is stored in the main processing chip. The main processing chip directly obtains a target scene package from the storage area based on the determined usage scenario. The target scene package is a scene package.

[0051] In a possible implementation, the main processing chip stores multiple scene packages corresponding to each usage scenario. The main processing chip obtains multiple scene packages from the storage area based on the determined usage scenario, and then the main processing chip also needs to determine a scene package from the multiple scene packages based on other reference factors (for example, the screen brightness of the electronic device, the power status of the electronic device, the brightness of the environment in which the electronic device is located, etc.) as the target scene package. In this case, the main processing chip also stores the correspondence between other reference factors and scene packages, and the main processing chip determines the target scene package based on the correspondence. When different scene packages corresponding to the same usage scenario are stored in the main processing chip, the main processing chip can flexibly update the scene package based on the status of the electronic device (for example, the screen brightness of the electronic device, the power status of the electronic device, the brightness of the environment in which the electronic device is located, etc.).

[0052] In a possible implementation, when the co-processing chip is started, at least one scene package is temporarily stored in a storage area of ​​the main processing chip, for example, in a memory of the main chip.

[0053] Step 203: The main processing chip sends the target scene packet to the co-processing chip.

[0054] The main processing chip sends the target scene packet to the storage area of ​​the co-processing chip. For example, the main processing chip sends the target scene packet to the memory of the co-processing chip.

[0055] In a possible implementation, the main processing chip sends the target scene packet to the co-processing chip through an interface. For example, the main processing chip sends the target scene packet to the co-processing chip through an SSI (Synchronous Serial Interface) interface.

[0056] Step 204: the co-processing chip parses the target scene packet to obtain a parsed target scene packet.

[0057] After the co-processing chip obtains the target scene package, the co-processing chip parses the target scene package to obtain the parsed target scene package.

[0058] In a possible implementation, the scene packet includes a packet header and a packet body, and the co-processing chip parses the target scene packet to obtain the packet header and the packet body. The specific description of how the co-processing chip parses the target scene packet is introduced below.

[0059] In a possible implementation, the processor of the co-processing chip parses the target scene package to obtain a parsed target scene package.

[0060] like Figure 3 As shown, it shows a schematic diagram of at least one scene package stored in the main processing chip, for example, the main processing chip stores scene package 1, scene package 2, scene package 3... scene package n, where n is a positive integer. Assuming that the use scenario of the electronic device includes any of the following: video recording scene, camera preview display interface scene, photo capture scene, night photography scene, etc., the package names of the scene packages corresponding to the above use scenarios can be: Scene Package video, ScenePackage preview, Scene Package capture, Scene Package nightshot.

[0061] like Figure 4 As shown, it shows a flow chart of a scene package processing method provided by an embodiment of the present application. At least one scene package is stored in the main processing chip. The main processing chip selects a target scene package from the at least one scene package based on the usage scenario and sends the target scene package to the co-processing chip; after the co-processing chip obtains the target scene package, it parses the target scene package.

[0062] Step 205: The co-processing chip sends the parsed target scene packet to the ISP.

[0063] In a possible implementation, the co-processing chip writes the parsed target scene package into the ISP. In a possible implementation, the co-processing chip converts the parsed target scene package into a data format supported by the ISP and stores it in the system memory of the electronic device. The ISP can read the parsed target scene package from the system memory of the electronic device to perform image processing.

[0064] To sum up, in the technical solution provided by the embodiment of the present application, based on the usage scenario of the terminal camera, a scene package matching the usage scenario is determined from multiple scene packages and stored in the co-processing chip, and then the co-processing chip parses the scene package. The embodiment of the present application does not need to obtain all scene packages in the main processing chip, but only needs to obtain the scene package matching the usage scenario based on the usage scenario, which can reduce the storage space requirement for the co-processing chip.

[0065] In addition, the embodiments of the present application can save the hardware cost of the co-processing chip.

[0066] In addition, since the embodiment of the present application reduces the requirement for the storage space of the co-processing chip, the system runs faster within the limited storage space of the co-processing chip.

[0067] Please refer to Figure 5 , which shows a flow chart of a scene packet processing method provided by another embodiment of the present application. The method can be applied to an electronic device, the electronic device includes a co-processing chip and a main processing chip connected to the co-processing chip, and the method may include the following steps.

[0068] Step 501: The main processing chip determines a usage scenario of a camera of an electronic device.

[0069] Step 502: The main processing chip determines a target scene package that matches the usage scene from at least one stored scene package based on the usage scene, where the target scene package is used to indicate image quality parameters used by the camera in the usage scene.

[0070] Step 503: The main processing chip sends the target scene packet to the co-processing chip.

[0071] The description of steps 501 to 503 can be found in the above embodiment and will not be repeated here.

[0072] Step 504: the co-processing chip parses the packet header of the target scene packet.

[0073] In a possible implementation, the packet header includes a module index field, and the module index field is used to index the module.

[0074] In a possible implementation, the packet header further includes at least one of the following:

[0075] A scene identification field, which is used to indicate the usage scene corresponding to the target scene package;

[0076] Version number field: The version number field is used to indicate the current version of the target scene package.

[0077] Exemplarily, different usage scenarios correspond to different scene identification fields, that is, the field contents of the scene identification fields corresponding to different usage scenarios are different. Exemplarily, the scene identification field can be represented as Scene ID, and the scene identification field can include 1 byte.

[0078] Exemplarily, different versions correspond to different version number fields, that is, different versions correspond to different version number fields with different field contents. Exemplarily, the version number field may be represented as Version, and the version number field may include 1 byte.

[0079] like Figure 6 As shown, it shows a schematic diagram of a scene package provided by an embodiment of the present application. The scene package includes a header 60 and a package body 61. The header 60 includes a scene identification field 601, a version number field 602, and a module index field 603. Exemplarily, the arrangement order of the above-mentioned scene identification field 601, version number field 602 and module index field 603 can be adjusted.

[0080] Step 505: The co-processing chip parses the packet body of the target scene packet based on the packet header of the target scene packet.

[0081] In a possible implementation, the packet header includes a module index field, and the module index field is used to index the module. The co-processing chip parses the packet body of the target scene packet based on the module index field.

[0082] In an exemplary embodiment, the module index field includes a module identification field of at least one module and an offset field of at least one module. The module identification field is used to identify the module, and the offset field is used to indicate the address of the module. The coprocessor chip obtains the module content of at least one module from the packet body based on the module identification field of at least one module and the offset field of at least one module. Figure 6 As shown, the package body 61 includes the module contents of at least one module. Exemplarily, the package body 61 includes the module contents of m modules, where m is a positive integer. The number of modules corresponding to different usage scenarios may be the same or different, and the embodiments of the present application do not limit this.

[0083] Exemplarily, the module identification field may be represented as Block ID, and the offset field may be represented as offset. Exemplarily, the offset fields corresponding to different modules are different, that is, the addresses of different modules are different, and the coprocessor chip may determine the module content of each module based on the offset field and the module identification field. Exemplarily, the module identification field may include 1 byte, and the offset field may include 4 bytes.

[0084] In a possible implementation, the module index field also includes: a module size field for each of at least one module, the module size field being used to indicate the memory size occupied by the module. Exemplarily, the module size field may be expressed as size. Exemplarily, the module sizes of different modules may be different. Exemplarily, the module size field may include 4 bytes.

[0085] Illustratively, the module contents of different modules may be different.

[0086] Exemplarily, the module content of a module includes a module header and a module body of the module.

[0087] In a possible implementation, the module content includes at least one of the following:

[0088] Module identification field: The module identification field is used to identify the module;

[0089] The effective field is used to indicate whether the module is used;

[0090] A parameter quantity field, the parameter quantity field is used to indicate the number of parameters included in the module;

[0091] A default parameter identification field is used to indicate the target parameter in the module to be used;

[0092] At least one parameter field, where the parameter field is used to represent a parameter.

[0093] For example, Figure 7 As shown, it shows a schematic diagram of the module content provided by an embodiment of the present application. The module content includes a module header 71 and a module body 72. The module header 71 includes a module identification field, an effective field, a parameter quantity field, and a default parameter identification field. The module body 72 includes at least one parameter field. Exemplarily, the arrangement order of the module identification field, the effective field, the parameter quantity field, and the default parameter identification field can be adjusted.

[0094] Exemplarily, the module identification field may be represented as Block ID, and the module identification field may include 1 byte. The module identification fields corresponding to different modules are different, that is, the field contents of the module identification fields corresponding to different modules are different.

[0095] Exemplarily, the effective field may be expressed as Bypass, and the effective field may include 1 byte. In a possible implementation, whether to use this module is determined by the value of the effective field. Exemplarily, the value of the effective field may be a first numerical value or a second numerical value. When the value of the effective field is the first numerical value, it indicates that this module is not used; when the value of the effective field is the second numerical value, it indicates that this module is used. For example, the first numerical value may be 0, and the second numerical value may be 1.

[0096] Exemplarily, the parameter number field may be represented as Parameter Num, and the parameter number field may include 1 byte. Exemplarily, Figure 7 The example in which a module includes k parameters is used for explanation. k is a positive integer. In possible implementations, the number of parameters corresponding to different modules may be different or the same. The number of parameters may be greater than k, less than k, or equal to k. The embodiment of the present application does not limit this.

[0097] Exemplarily, the default parameter identification field may be expressed as Default Parameter Index, and the default parameter identification field may include 1 byte.

[0098] Exemplarily, at least one parameter field may be represented as a Quality Parameter, and different parameters may have different parameter identifiers. The field length of each parameter field is consistent, which may be determined by the following formula: (module size - module header size) / number of parameters. Exemplarily, at least one parameter included in a module content has the same parameter type and different values. The parameter types of parameters included in different module contents are different.

[0099] The number of parameters and / or parameter contents included in different modules may be different, and the parameters included in different modules may be dynamically increased or decreased according to different requirements.

[0100] In a possible implementation, the default parameter identification field is adjustable, and the main processing chip can flexibly update the default parameter identification field based on the status of the electronic device (for example, the screen brightness of the electronic device, the power status of the electronic device, the brightness of the environment in which the electronic device is located, etc.).

[0101] In a possible implementation, when the usage scenario is switched, the main processing chip will determine the scene package based on the switched usage scenario, and send the scene package corresponding to the switched usage scenario to the co-processing chip. The co-processing chip will overwrite the scene package corresponding to the original usage scenario (the usage scenario before the usage scenario is switched) with the scene package corresponding to the switched usage scenario.

[0102] Step 506: The co-processing chip sends the parsed target scene packet to the ISP.

[0103] It should be noted that the above-mentioned image quality parameters can also be referred to as chip parameters, quality control parameters, quality parameters, etc., which are not limited in the embodiments of the present application.

[0104] The following is a hardware embodiment of the present application, which can be used to execute the method embodiment of the present application. For details not disclosed in the hardware embodiment of the present application, please refer to the method embodiment of the present application.

[0105] Please refer to Figure 8 , which shows a schematic diagram of a co-processing chip provided by an embodiment of the present application, the co-processing chip has the function of implementing the above method example, the co-processing chip 800 includes a memory 810, a processor 820 and an ISP 830; wherein,

[0106] The memory 810 is used to receive a target scene package from the main processing chip, where the target scene package is used to indicate image quality parameters used by the camera of the electronic device in a usage scenario;

[0107] The processor 820 is configured to parse the target scene package to obtain a parsed target scene package; and send the parsed target scene package to the ISP 830 .

[0108] In an exemplary embodiment, the processor 820 is configured to:

[0109] Parsing the packet header of the target scene packet;

[0110] Based on the packet header of the target scene packet, the packet body of the target scene packet is parsed.

[0111] In an exemplary embodiment, the packet header includes a module index field, and the module index field is used to index a module;

[0112] The processor 820 is configured to:

[0113] Based on the module index field, the package body of the target scene package is parsed.

[0114] In an exemplary embodiment, the module index field includes a module identification field of at least one module and an offset field of at least one module, the module identification field is used to identify the module, and the offset field is used to indicate the address of the module;

[0115] The processor 820 is configured to:

[0116] Based on the module identification field of the at least one module and the offset field of the at least one module, the module content of the at least one module is obtained from the package body.

[0117] In an exemplary embodiment, the module content of each of the at least one module includes at least one of the following:

[0118] A module identification field, wherein the module identification field is used to identify a module;

[0119] An effective field, the effective field is used to indicate whether to use the module;

[0120] A parameter quantity field, the parameter quantity field is used to indicate the number of parameters included in the module;

[0121] A default parameter identification field, wherein the default parameter identification field is used to indicate the use of target parameters in the module;

[0122] At least one parameter field, where the parameter field is used to represent a parameter.

[0123] In an exemplary embodiment, the module index field further includes:

[0124] The at least one module respectively has a module size field, and the module size field is used to indicate the memory size occupied by the module.

[0125] In an exemplary embodiment, the packet header further includes at least one of the following:

[0126] A scene identification field, wherein the scene identification field is used to indicate a usage scene corresponding to the target scene package;

[0127] Version number field, the version number field is used to indicate the current version of the target scene package.

[0128] Please refer to Fig. 9 , which shows a schematic diagram of a main processing chip provided by an embodiment of the present application, the main processing chip has the function of implementing the above method example, the main processing chip 900 includes a processor 910 and a memory 920; wherein the processor 910 is used to:

[0129] Determine usage scenarios for cameras of electronic devices;

[0130] Based on the usage scenario, determining a target scene package matching the usage scenario from at least one scene package stored in the memory 920, the target scene package being used to indicate an image quality parameter used by the camera in the usage scenario;

[0131] The target scene packet is sent to the co-processing chip.

[0132] In an exemplary embodiment, the processor 910 is configured to:

[0133] Receiving a trigger operation for the electronic device;

[0134] Based on the triggering operation, the usage scenario is determined.

[0135] Please refer to Fig.10 , which shows a schematic diagram of an electronic device provided by an embodiment of the present application, the electronic device 1000 includes a co-processing chip 1010, and a main processing chip 1020 connected to the co-processing chip 1010; wherein:

[0136] The main processing chip 1020 is used to determine a usage scenario of a camera of the electronic device; based on the usage scenario, determine a target scenario package matching the usage scenario from at least one stored scenario package, the target scenario package being used to indicate an image quality parameter used by the camera in the usage scenario; and send the target scenario package to the co-processing chip;

[0137] The co-processing chip 1010 is used to parse the target scene packet to obtain a parsed target scene packet; and send the parsed target scene packet to an image signal processor ISP.

[0138] In an exemplary embodiment, the co-processing chip 1010 is used to:

[0139] The co-processing chip parses the packet header of the target scene packet;

[0140] The co-processing chip parses the packet body of the target scene packet based on the packet header of the target scene packet.

[0141] In an exemplary embodiment, the packet header includes a module index field, and the module index field is used to index a module;

[0142] The co-processing chip 1010 is used for:

[0143] The co-processing chip parses the package body of the target scene package based on the module index field.

[0144] In an exemplary embodiment, the module index field includes a module identification field of at least one module and an offset field of at least one module, the module identification field is used to identify the module, and the offset field is used to indicate the address of the module;

[0145] The co-processing chip 1010 is used for:

[0146] The co-processing chip obtains the module content of each of the at least one module from the packet body based on the module identification field of each of the at least one module and the offset field of each of the at least one module.

[0147] In an exemplary embodiment, the module content of each of the at least one module includes at least one of the following:

[0148] A module identification field, wherein the module identification field is used to identify a module;

[0149] An effective field, the effective field is used to indicate whether to use the module;

[0150] A parameter quantity field, the parameter quantity field is used to indicate the number of parameters included in the module;

[0151] A default parameter identification field, wherein the default parameter identification field is used to indicate the use of target parameters in the module;

[0152] At least one parameter field, where the parameter field is used to represent a parameter.

[0153] In an exemplary embodiment, the module index field further includes:

[0154] The at least one module respectively has a module size field, and the module size field is used to indicate the memory size occupied by the module.

[0155] In an exemplary embodiment, the packet header further includes at least one of the following:

[0156] A scene identification field, wherein the scene identification field is used to indicate a usage scene corresponding to the target scene package;

[0157] Version number field, the version number field is used to indicate the current version of the target scene package.

[0158] In an exemplary embodiment, the main processing chip 1020 is used to:

[0159] The main processing chip receives a trigger operation for the electronic device; and determines the usage scenario based on the trigger operation.

[0160] In a possible implementation, the electronic device 1000 further includes a camera 1030, the co-processing chip 1010 includes an ISP 1011, a first interface 1012, a second interface 1013, a memory 1014, a processor 1015, and a system bus 1016; the main processing chip 1020 includes a third interface 1021, a memory 1022, a processor 1023, and a system bus 1024; one end of the first interface 1012 is connected to the camera 1030, and the other end of the first interface 1012 is connected to the ISP 1011. Exemplarily, the ISP 1011 is connected to one end of the second interface 1013, and the other end of the second interface 1013 is connected to one end of the third interface 1021, and the system bus 1016 in the co-processing chip 1010 is respectively connected to the ISP 1011, the processor 1015, and the memory 1014; the system bus 1024 in the main processing chip 1020 is respectively connected to the third interface 1021, the memory 1022, and the processor 1023.

[0161] The structure of the above electronic device is only illustrative. In actual implementation, the electronic device may include more or fewer components, such as a display screen, etc. This embodiment does not limit this.

[0162] Those skilled in the art will understand that Fig.10 The structure shown in the figure does not constitute a limitation on the electronic device, and may include more or less components than shown in the figure, or combine certain components, or adopt a different component arrangement.

[0163] It should be noted that the hardware and method embodiments provided in the above embodiments belong to the same concept, and the specific implementation process is detailed in the method embodiments, which will not be repeated here.

[0164] The above description is only an exemplary embodiment of the present application and is not intended to limit the present application. Any modifications, equivalent substitutions, improvements, etc. made within the spirit and principles of the present application shall be included in the protection scope of the present application.

Claims

1. A scene packet processing method, characterized in that: Applied to an electronic device, the electronic device includes a co-processing chip and a main processing chip connected to the co-processing chip, and the method includes: The main processing chip determines a usage scenario of the camera of the electronic device; based on the usage scenario, determines a target scenario package matching the usage scenario from at least one stored scenario package, wherein the target scenario package is used to indicate an image quality parameter used by the camera in the usage scenario, and the image quality parameter is a parameter provided to an image signal processor ISP for use; and sends the target scenario package to the co-processing chip; The co-processing chip parses the target scene packet to obtain a parsed target scene packet; and sends the parsed target scene packet to the ISP.

2. The method according to claim 1, characterized in that The co-processing chip parses the target scene package to obtain a parsed target scene package, including: The co-processing chip parses the packet header of the target scene packet; The co-processing chip parses the packet body of the target scene packet based on the packet header of the target scene packet.

3. The method according to claim 2, characterized in that The packet header includes a module index field, and the module index field is used to index a module; The co-processing chip parses the package body of the target scene package based on the package header of the target scene package, including: The co-processing chip parses the package body of the target scene package based on the module index field.

4. The method according to claim 3, characterized in that The module index field includes a module identification field of at least one module and an offset field of at least one module, wherein the module identification field is used to identify the module, and the offset field is used to indicate the address of the module; The co-processing chip parses the package body of the target scene package based on the module index field, including: The co-processing chip obtains the module content of each of the at least one module from the packet body based on the module identification field of each of the at least one module and the offset field of each of the at least one module.

5. The method according to claim 4, characterized in that The module content of each of the at least one module includes at least one of the following: A module identification field, wherein the module identification field is used to identify a module; An effective field, the effective field is used to indicate whether to use the module; A parameter quantity field, the parameter quantity field is used to indicate the number of parameters included in the module; A default parameter identification field, wherein the default parameter identification field is used to indicate the use of target parameters in the module; At least one parameter field, where the parameter field is used to represent a parameter.

6. The method according to claim 4, characterized in that The module index field also includes: The at least one module respectively has a module size field, and the module size field is used to indicate the memory size occupied by the module.

7. The method according to claim 2, characterized in that The header also includes at least one of the following: A scene identification field, wherein the scene identification field is used to indicate a usage scene corresponding to the target scene package; Version number field, the version number field is used to indicate the current version of the target scene package.

8. The method according to any one of claims 1 to 7, characterized in that: The main processing chip determines a usage scenario of a camera of the electronic device, including: The main processing chip receives a trigger operation for the electronic device; and determines the usage scenario based on the trigger operation.

9. A co-processing chip, characterized in that: The co-processing chip includes a memory, a processor and an image signal processor ISP; wherein, The memory is used to receive a target scene package from the main processing chip, the target scene package is used to indicate an image quality parameter used by a camera of the electronic device in a usage scenario, the target scene package is a scene package matched with the usage scenario determined by the main processing chip from at least one stored scene package based on the usage scenario, and the image quality parameter is a parameter provided to the ISP for use; The processor is used to parse the target scene package to obtain a parsed target scene package; and send the parsed target scene package to the ISP.

10. A main processing chip, characterized in that: The main processing chip includes a processor and a memory; wherein the processor is used to: Determine usage scenarios for cameras of electronic devices; Based on the usage scenario, determining a target scene package matching the usage scenario from at least one scene package stored in the memory, wherein the target scene package is used to indicate an image quality parameter used by the camera in the usage scenario, and the image quality parameter is a parameter provided to an image signal processor ISP for use; The target scene packet is sent to the co-processing chip.

11. An electronic device, characterized in that: The electronic device comprises a co-processing chip and a main processing chip connected to the co-processing chip; wherein: The main processing chip is used to determine a usage scenario of the camera of the electronic device; based on the usage scenario, determine a target scenario package matching the usage scenario from at least one stored scenario package, the target scenario package is used to indicate an image quality parameter used by the camera in the usage scenario, the image quality parameter is a parameter provided to an image signal processor ISP for use; and send the target scenario package to the co-processing chip; The co-processing chip is used to parse the target scene packet to obtain a parsed target scene packet; and send the parsed target scene packet to the ISP.

Citation Information

Patent Citations

  • Deep packet inspection method and equipment and coprocessor

    CN104348677A

  • Systems and methods of dynamic image segmentation

    CN106251304A