CN116264614A - Image quality debugging information control method, device, terminal and storage medium - Google Patents

Image quality debugging information control method, device, terminal and storage medium Download PDF

Info

Publication number
CN116264614A
CN116264614A CN202111535458.3A CN202111535458A CN116264614A CN 116264614 A CN116264614 A CN 116264614A CN 202111535458 A CN202111535458 A CN 202111535458A CN 116264614 A CN116264614 A CN 116264614A
Authority
CN
China
Prior art keywords
information
state
system memory
image quality
sub
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202111535458.3A
Other languages
Chinese (zh)
Inventor
胡海波
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing Xiaomi Mobile Software Co Ltd
Original Assignee
Beijing Xiaomi Mobile Software Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing Xiaomi Mobile Software Co Ltd filed Critical Beijing Xiaomi Mobile Software Co Ltd
Priority to CN202111535458.3A priority Critical patent/CN116264614A/en
Publication of CN116264614A publication Critical patent/CN116264614A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N17/00Diagnosis, testing or measuring for television systems or their details
    • H04N17/002Diagnosis, testing or measuring for television systems or their details for television cameras

Abstract

The present disclosure relates to a method, an apparatus, a terminal, and a storage medium for controlling image quality debugging information, wherein the image quality debugging information includes a plurality of information items, and the method includes: storing a plurality of information items of the image quality debugging information into a system memory, wherein each information item is in a decompression state respectively; compressing each information item in the system memory in a decompression state to obtain the compressed information item; and controlling the storage state of each information item in the system memory according to shooting information, wherein the storage state comprises a decompression state and a compression state. In the method, the image quality effect of the shot image can be guaranteed, the memory occupied by image quality debugging information can be reduced, a large amount of system memory is saved, and the use experience of a user is improved.

Description

Image quality debugging information control method, device, terminal and storage medium
Technical Field
The disclosure relates to the technical field of terminals, and in particular relates to a control method and device for image quality debugging information, a terminal and a storage medium.
Background
In the field of cameras, a large number of parameters are used for image quality debugging, and the parameters can be image quality debugging information, so that as the design of the camera is more and more complex, the memory occupied by the image quality debugging information is more and more large, and the influence of the image quality debugging information on the system memory is also more and more large.
However, the compression algorithm is mainly applied to the processing of the image itself in the field of cameras, and is not extended to the processing of image quality debugging information.
Disclosure of Invention
In order to overcome the problems in the related art, the present disclosure provides a control method, apparatus, terminal and storage medium for image quality debugging information.
According to a first aspect of embodiments of the present disclosure, there is provided a control method of image quality debugging information, applied to a terminal, the image quality debugging information including a plurality of information items, the method including:
storing the plurality of information items of the image quality debugging information into a system memory, wherein each information item is in a decompressed state respectively;
compressing each information item in the system memory in the decompression state to obtain a compressed information item;
and controlling the storage state of each information item in the system memory according to shooting information, wherein the storage state comprises the decompression state and the compression state.
Optionally, the controlling the storage state of each information item in the system memory according to the shooting information includes:
determining at least one first target information item from the plurality of information items in the system memory according to the shooting information;
Controlling the first target information item to be in the decompressed state.
Optionally, after the controlling the first target information item to be in the decompressed state, the method includes:
determining the total decompression amount of the information items in the decompression state in the system memory;
if the total decompression amount is determined to be greater than or equal to the set amount, determining at least one second target information item from the information items in the decompression state in the system memory according to a set replacement algorithm;
controlling the second target information item to be in the compressed state.
Optionally, the compressing the information items in the decompressed state in the system memory to obtain compressed information items includes:
compressing each information item in the decompression state in the system memory according to a set compression algorithm to obtain a corresponding information item in the compression state;
wherein the set compression algorithm comprises at least one of:
ZLIB algorithm, LZO algorithm, LZMA algorithm.
Optionally, the shooting information includes at least one of the following:
lens type, shooting mode, and light information of shooting environment
According to a second aspect of the embodiments of the present disclosure, there is provided a control device of image quality debugging information, applied to a terminal, the image quality debugging information including a plurality of information items, the device comprising:
the storage module is used for storing the plurality of information items of the image quality debugging information into a system memory, wherein each information item is in a decompressed state respectively;
the control module is used for compressing each information item in the decompression state in the system memory to obtain the compressed information item;
the control module is used for controlling the storage state of each information item in the system memory according to shooting information, wherein the storage state comprises the decompression state and the compression state.
Optionally, the control module includes:
a determining submodule, configured to determine at least one first target information item from the plurality of information items in the system memory according to the shooting information;
and the control sub-module is used for controlling the first target information item to be in the decompression state.
Optionally, after said controlling said first target information item to be in a decompressed state,
the determining submodule is used for determining the total decompression amount of the information items in the decompression state in the system memory;
If the total decompression amount is determined to be greater than or equal to the set amount, determining at least one second target information item from the information items in the decompression state in the system memory according to a set replacement algorithm;
the control submodule is used for controlling the second target information item to be in the compressed state.
Optionally, the control module is configured to:
compressing each information item in the decompression state in the system memory according to a set compression algorithm to obtain a corresponding information item in the compression state;
wherein the set compression algorithm comprises at least one of:
ZLIB algorithm, LZO algorithm, LZMA algorithm.
Optionally, the shooting information includes at least one of the following:
lens type, shooting mode, shooting environment light information.
According to a third aspect of embodiments of the present disclosure, there is provided a terminal comprising:
a processor;
a memory for storing the processor-executable instructions;
wherein the processor is configured to perform the method of any of the first aspects.
According to a fourth aspect of embodiments of the present disclosure, there is provided a non-transitory computer readable storage medium, which when executed by a processor of a terminal, causes the terminal to perform the method according to any one of the first aspects.
The technical scheme provided by the embodiment of the disclosure can comprise the following beneficial effects: in the method, after all the information items of the image quality debugging information are stored in the system memory, compression processing can be carried out on each information item, then the information items in a compression state are used for replacing the information items in a decompression state and are stored in the system memory, then the storage state of the information items in the system memory is controlled according to shooting information, so that the image quality effect of a shot image can be ensured, the memory occupied by the image quality debugging information can be reduced, a large amount of system memory is saved, and the use experience of a user is improved.
It is to be understood that both the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the disclosure.
Drawings
The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the disclosure and together with the description, serve to explain the principles of the disclosure.
Fig. 1 is a flowchart illustrating a control method of image quality debugging information according to an exemplary embodiment.
Fig. 2 is a flowchart illustrating a control method of image quality debugging information according to an exemplary embodiment.
Fig. 3 is a flowchart illustrating a control method of image quality debugging information according to an exemplary embodiment.
Fig. 4 is a block diagram of a control apparatus of image quality debugging information shown according to an exemplary embodiment.
Fig. 5 is a block diagram of a terminal shown according to an exemplary embodiment.
Detailed Description
Reference will now be made in detail to exemplary embodiments, examples of which are illustrated in the accompanying drawings. When the following description refers to the accompanying drawings, the same numbers in different drawings refer to the same or similar elements, unless otherwise indicated. The implementations described in the following exemplary examples are not representative of all implementations consistent with the present disclosure. Rather, they are merely examples of apparatus and methods consistent with some aspects of the present disclosure as detailed in the accompanying claims.
The disclosure provides a control method of image quality debugging information, which is applied to a terminal. In the method, after all the information items of the image quality debugging information are stored in the system memory, each information item can be compressed, then the compressed information item is used for replacing the decompressed information item and is stored in the system memory, then the storage state of the information item in the system memory is controlled according to the shooting information, so that the image quality effect of the shot image can be ensured, the memory occupied by the image quality debugging information can be reduced, a large amount of system memory is saved, and the use experience of a user is improved.
In an exemplary embodiment, a control method of image quality debugging parameters is provided and is applied to a terminal. Wherein the image quality debugging information includes a plurality of information items. Referring to fig. 1, the method includes:
s110, saving a plurality of information items of image quality debugging information into a system memory, wherein each information item is in a decompressed state respectively;
s120, compressing each information item in the system memory in a decompressed state to obtain a compressed information item;
s130, controlling the storage state of each information item in the system memory according to shooting information, wherein the storage state comprises a decompression state and a compression state.
In step S110, the image quality debugging information may be stored in the system memory in the form of an image quality debugging parameter table (for example, a debugging (tuning) parameter table). The information items included in the image quality debugging information can be saved to the system memory in the form of a sub-table. That is, in this step, the image quality debugging parameter table may be saved to the system memory, where the image quality debugging parameter table includes a plurality of sub-tables, and each sub-table corresponds to an information item. The specific number and types of sub-tables included in the image quality adjustment parameter table may be determined according to actual conditions, and are not limited herein.
Note that, the image quality debugging information may include at least one of the following: automatic exposure (AE, automatic Exposure), automatic Focus (AF), automatic white balance (AWB, automatic White Balance), noise Reduction (NR), active Noise Reduction (ANR, advanced Noise Reduction), lens shading correction (LSC, lens Shading Correction), display parameters (Gamma), time domain filter (TF, temporal filter), and the like. The specific information included in the image quality adjustment information may be determined according to actual conditions, and is not limited herein.
When the terminal is started, the image quality debugging parameter table can be loaded by calling the bottom layer service of the camera application (camera APP) through an initialization process, and sub-tables of the image quality debugging parameter table can be stored into a system memory item by item for the use of the subsequent camera application. It should be noted that, in general, in the image quality debugging parameter table loaded by the underlying service of the camera application, each sub-table is in a decompressed state, that is, the image quality debugging parameters of each sub-table exist in the decompressed state.
The uncompressed image quality debugging parameters may be referred to as decompressed image quality debugging parameters, and the sub-tables corresponding to these image quality debugging parameters may be referred to as decompressed sub-tables. The compressed image quality debugging parameters may be referred to as compressed image quality debugging parameters, and the sub-tables corresponding to these image quality debugging parameters may be referred to as compressed sub-tables.
In step S120, each information item in the system memory in the decompressed state may be compressed to obtain the compressed information item, so that the compressed information item replaces the corresponding decompressed information item to form new image quality debugging information.
It should be noted that, after the image quality debug information is saved in the system memory, the initial state of the information items in the image quality debug information may be in a decompressed state, so in this step, it is necessary to compress a plurality of information items in the image quality debug information, thereby obtaining the information items in the corresponding compressed state, and forming new image quality debug information. The information items in the new image quality debugging information are all in a compressed state.
For example, the information item of each decompression state in the system memory may be compressed according to a set compression algorithm, so as to obtain the information item of the corresponding compression state. In this step, the image quality debugging information in the system memory may be traversed, a set compression algorithm is used to compress each information item in the decompressed state of the image quality debugging information in sequence, so as to obtain the information item in the corresponding compressed state, and then the obtained information item in the compressed state is added to the image quality debugging information to replace the information item in the corresponding decompressed state in the image quality debugging information, and stored in the system memory, so that the memory occupied by the image quality debugging information is reduced, and a part of the system memory is released.
The compression algorithm can be set before the terminal leaves the factory or after the terminal leaves the factory, and after the compression algorithm is set, the compression algorithm can be modified according to actual needs to better meet the demands of users.
The set compression algorithm may be a lossless compression algorithm, which may include at least one of: ZLIB algorithm, LZO algorithm, LZMA algorithm. The ZLIB algorithm is a lossless compression algorithm and is an improvement on the GZIP compression algorithm. The LZO algorithm is one of the fastest lossless data compression decompression algorithms, where LZO is an abbreviation for Lempel-Ziv-obersumer. The LZMA Algorithm is a compression Algorithm modified and optimized by the Deflate and LZ77 algorithms, wherein LZMA is an abbreviation of Lempel-Ziv-Markov chain-Algorithm.
After the information items in the image quality debugging information are compressed, the system memory occupied by the image quality debugging information can be reduced to a certain extent, and the effect of releasing the system memory is further achieved. For example, after the ZLIB algorithm is used to compress the information items in the image quality debugging information, the system memory occupied by the image quality debugging information can be reduced to approximately 1/10 of the original system memory, namely, when each information item of the image quality debugging information is in a decompressed state, the size of the image quality debugging information is about 200M, and when each information item is compressed, the size of the image quality debugging information can be reduced to 20M, so that a large amount of system memory is saved.
Wherein, the information related to active noise reduction (ANR, advanced Noise Reduction) can be compressed from 8648 bytes to 600 to 700 bytes, and the information related to time domain filter (TF) can be compressed from 4696 bytes to 300 to 400 bytes.
It should be noted that, in a system of the terminal, a ZRAM algorithm (a compression algorithm) is generally provided, but the ZRAM algorithm is general, the ZRAM algorithm cannot identify information types in a system memory, only can perform indifferently compression and cannot be controlled, special compression cannot be performed on image quality debugging information in actual operation, compression and decompression time of the image quality debugging information cannot be accurately processed, and processing efficiency is low. By using the set lossless compression algorithm, the compression and decompression time of the image quality debugging information can be processed more accurately, and the processing efficiency can be improved. In addition, the specific type of the compression algorithm may be determined according to the system performance of the terminal, which is not limited herein.
In step S130, the photographing information may include at least one of a setting parameter of the camera module, an environmental parameter of the photographing environment, and the like. Note that, the information included in the shooting information may be set according to actual needs, and is not limited herein. In addition, the type of the information included in the shooting information can be set before the terminal leaves the factory or after the terminal leaves the factory, and the shooting information can be modified later so as to better meet the requirements of users.
For example, the photographing information may include at least one of: lens type, shooting mode, shooting environment light information. The lens types may include rear lens, front lens, ultra-wide angle lens, macro lens, and the like. The shooting mode may include a mode of shooting a photograph, a normal video, a slow motion video, a fast motion video, and the like. The light information may include all light parameters determined in a set time period before the current time, and the set time period may be set according to actual needs, which is not limited herein.
When an image is captured using a camera application, different information items in image quality adjustment information are generally used for different captured information. In the terminal, all the information items of the image quality adjustment parameters are generally loaded before the camera module is started, but in practice, all the information items are not used at the same time. Since the setting information of the camera module at the same timing, the environmental information of the photographing environment, and the like are determined, that is, the photographing information at the same timing is determined, it is only necessary to use the information item corresponding to the photographing information.
In the step, the information item in the image quality debugging information required to be used in the shooting can be determined according to the shooting information, and then the information item required to be used is controlled to be in a decompressed state so as to be used by a camera application, so that the image quality debugging is realized, and the image quality effect is improved. At the same time, other information items which are not needed to be used are controlled to keep the original state. Because each information item can be controlled to be in a compressed state after the information items of the image quality debugging information are loaded in the system memory, most of the information items which are not needed to be used are in a compressed state when an image is shot, so that the memory occupied by the image quality debugging information is reduced, a large amount of system memory is saved, and the use experience of a user is improved.
Example 1 in the case of the use of the heat-sensitive material,
the image quality debugging information is stored in a system memory in the form of an image quality debugging parameter table, wherein the image quality debugging parameter table comprises 4 sub-tables (namely information items) which are sequentially marked as a sub-table A, a sub-table B, a sub-table C and a sub-table D. The set compression algorithm includes ZLIB algorithm. The photographing information includes a lens type, a photographing mode, and light information of a photographing environment.
After the camera module operates, the terminal can call the bottom layer service of the camera application through the initialization process to load the image quality debugging parameter table, and all sub-tables in the image quality debugging parameter table are stored into the system memory. At this time, each sub-table in the image quality debugging parameter table is in a decompressed state. That is, 4 sub-tables in the image quality debugging parameter table are in a decompressed state.
After the sub-table in the decompression state is stored in the system memory, the image quality debugging parameter table in the system memory can be traversed, the sub-tables are compressed one by using the ZLIB algorithm, the compressed sub-table in the compression state is obtained, the sub-table in the compression state is used for replacing the sub-table in the corresponding decompression state, the sub-tables in the image quality debugging parameter table are in the compression state, the memory occupied by the image quality debugging parameters is reduced, and part of the system memory is released.
When the camera application is used for shooting images, a sub-table to be used is determined according to the selected lens type and shooting mode and the determined light information of shooting environment. The sub-table A can be decompressed to obtain the sub-table A in a decompressed state on the premise that the sub-table to be used is determined to be the sub-table A, so that the camera application is used, the image quality is improved, and the shooting effect is improved. At this time, only the sub-table A in the image quality debugging parameter table is in a decompressed state, the other 3 sub-tables are in a compressed state, and the image quality debugging parameter table occupies less system memory, so that the image quality effect can be ensured, and the system memory can be saved.
According to the method, the storage state of the information items in the image quality debugging parameters can be controlled according to the shooting information, the information items which need to be used can be controlled to be in a decompressed state, and most of the information items which cannot be used for a short time are in a compressed state, so that the image quality effect of the shot image can be ensured, the memory occupied by the image quality debugging information can be reduced, a large amount of system memory is saved, and the use experience of a user is improved.
In one exemplary embodiment, a control method of image quality debugging information is provided, which is applied to a terminal. Referring to fig. 2, in the method, according to shooting information, controlling a storage state of each information item in a system memory may include:
S210, determining at least one first target information item from a plurality of information items in a system memory according to shooting information;
s220, controlling the first target information item to be in a decompressed state.
In step S210, each photographing information may correspond to one or more than one information item, which is noted as a first target information item. Typically, each piece of shooting information corresponds to one first target information item.
The terminal may set a setting map including a mapping relationship of photographing information and information items. When the shooting information is determined, an information item corresponding to the shooting information can be searched from the setting mapping table, and then the searched information item is determined as a first target information item.
The setting mapping table can be determined before the terminal leaves the factory or after the terminal leaves the factory, and the subsequent settable mapping table is modified to better meet the requirements of users.
Example 1 in the case of the use of the heat-sensitive material,
the shooting information comprises a lens type, a shooting mode and light information, wherein the lens type comprises a rear lens and a front lens, the shooting mode comprises a photo shooting mode and a common video recording mode, and the light information comprises a first light sub-information and a second light sub-information.
It is understood that the photographing information may include 8 pieces of sub-information, which are respectively denoted as photographing sub-information a, photographing sub-information b, photographing sub-information c, photographing sub-information d, photographing sub-information e, photographing sub-information f, photographing sub-information g, and photographing sub-information h. The shooting sub information a comprises a rear lens, a shooting photo and first light sub information, the shooting sub information b comprises a rear lens, a shooting photo and second light sub information, the shooting sub information c comprises a rear lens, a common video and the first light sub information, the shooting sub information d comprises a rear lens, a common video and the second light sub information, the shooting sub information e comprises a front lens, a shooting photo and the first light sub information, the shooting sub information f comprises a front lens, a shooting photo and the second light sub information, the shooting sub information g comprises a front lens, a common video and the first light sub information, and the shooting sub information h comprises a front lens, a common video and the second light sub information.
The image quality debugging parameter table comprises 8 sub-tables which are respectively recorded as a sub-table A, a sub-table B, a sub-table C, a sub-table D, a sub-table E, a sub-table F, a sub-table G and a sub-table H.
The terminal is preset with a setting mapping table, and the setting mapping table is shown in table 1.
TABLE 1
Shooting information Sub-table
Shooting sub information a Sub-table A
Shooting sub information b Sub-table B
Shooting sub information c Sub-table C
Shooting sub informationd Sub-table D
Shooting sub information e Sub-table E
Shooting sub information f Sub-table F
Shooting sub information g Sub-table G
Shooting sub-information h Sub-table H
In this example, if it is determined that the lens type is the front lens, the photographing mode is the photographed picture, and the light information is the first light sub-information, it is explained that the photographing information is the photographing sub-information e. Then, the sub-table corresponding to the shooting sub-information E can be found from the setting mapping table as sub-table E.
In step S220, after the first target information item is determined, the first target information item may be controlled to be in a decompressed state, so that the camera application may call parameters in the first target information item to adjust the image quality, thereby ensuring the image quality effect.
If a first target information item is determined according to the current shooting information, the first target information item can be controlled to be in a decompressed state. If more than one first target information item is determined according to the current shooting information, the more than one first target information item can be controlled to be in a decompressed state.
In addition, if the determined first target information item is already in the decompressed state, it is kept in the decompressed state. If the determined first target information item is in a compressed state, the first target information item can be decompressed to be converted into a decompressed state.
Example 2 in the case of the use of the heat-sensitive material,
in example 2, if it is determined that the sub-table E of the image quality adjustment parameter table is the first target information item, the sub-table E in the image quality adjustment parameter table can be controlled to be in a decompressed state, and the camera application can adjust the image quality using the image quality adjustment parameters of the sub-table E, thereby ensuring the image quality effect.
According to the method, the storage state of the first target information item can be controlled according to the setting mapping table and the shooting information, so that the image quality effect is better ensured, and meanwhile, the system memory occupied by image quality debugging parameters can be reduced to a certain extent.
In one exemplary embodiment, a control method of image quality debugging information is provided, which is applied to a terminal. Referring to fig. 3, the method may include:
s310, saving information items of image quality debugging information into a system memory, wherein each information item is respectively in a decompressed state;
s320, compressing each information item in the system memory in a decompressed state to obtain a compressed information item;
s330, determining at least one first target information item from a plurality of information items in a system memory according to shooting information;
s340, controlling the first target information item to be in a decompressed state;
S350, determining the total decompression amount of the information items in the decompression state in the system memory;
s360, judging whether the total decompression amount is larger than or equal to a set amount; if yes, executing step S370 to step S390; otherwise, step S390 is performed;
s370, determining at least one second target information item from the information items in a decompressed state in the system memory according to a set replacement algorithm;
s380, controlling the second target information item to be in a compressed state;
s390, using the first target information item to carry out image quality debugging.
Wherein each time the shooting information is changed, a new first target information item is determined, and then the first target information item is controlled to be in a decompressed state.
In step S350, after the newly determined first target information item is in the decompressed state according to the current shooting information, the total amount of the decompressed information items in the system memory may be further determined, where the total amount of the decompressed information items may be the number of the decompressed information items (may be denoted as the total amount of the decompressed information items) or the memory occupied by the decompressed information items (may be denoted as the total amount of the decompressed memory).
In step S360, the set amount is the same as the type of the total amount of decompression, for example, when the total amount of decompression is the total amount of decompression, the set amount is the set amount. For another example, when the total amount of decompression is the total memory of decompression, the set amount is the set memory.
The set quantity can be set before the terminal leaves the factory or after the terminal leaves the factory, and the set quantity can be modified later so as to better meet different requirements of users.
In this step, if it is determined that the total amount of decompression is greater than or equal to the set amount, it is indicated that the information items in the decompressed state are too many, and the occupied system memory is too large, and steps S370 to S390 are performed. If the total amount of decompression is determined to be smaller than the set amount, it indicates that the information items in the decompressed state are still smaller, and the occupied system memory is smaller, and step S390 is directly performed.
In step S370, since the total amount of decompression is determined to be greater than or equal to the set amount, it is indicated that the number of information items in the decompressed state is excessive, and the occupied system memory is excessive, so that at least one second target information item can be determined from the information items in the decompressed state in the system memory according to the set replacement algorithm.
The set replacement algorithm may include an LRU algorithm, among others. LRU is an abbreviation for Least Recently Used. In this step, a second target information item, which is considered as an information item that is not to be used for a short period, may be determined from the information items in the decompressed state by the LRU algorithm.
In step S380, the second target information item may be compressed by using a set compression algorithm, so that the second target information item is in a compressed state, thereby reducing the overall memory occupation of the image quality debugging information, and further releasing the system memory.
In step S390, the image quality adjustment may be performed by using the decompressed first target information item obtained in step S340, so as to improve the image quality of the shooting result and ensure the user experience.
In the method, if the total decompression amount is determined to be smaller than the set amount, the information items in the decompressed state are still fewer, and the occupied system memory is smaller, so that compression processing of the information items in the decompressed state can be omitted, frequent determination of the second target information item through a set replacement algorithm is avoided, frequent compression of the information items in the decompressed state through a set compression algorithm is avoided, and power consumption is reduced.
If the total decompression amount of the information items in the decompression state is greater than or equal to the set amount, a replacement algorithm can be set, at least one second target information item is determined from the information items in the decompression state in the system memory, and then the second target information item is compressed, so that the overall memory occupation of the image quality debugging information is reduced, and the system memory is further released.
In addition, in the method, the amount of the information items processed at each shooting is small, the processing efficiency is high, and the performance is not affected.
Example 1 in the case of the use of the heat-sensitive material,
the terminal is a mobile phone.
The compression algorithm is set as ZLIB algorithm.
The replacement algorithm is set as the LRU algorithm.
The shooting information comprises a lens type, a shooting mode and light information, wherein the lens type comprises a rear lens and a front lens, the shooting mode comprises a photo shooting mode and a common video recording mode, and the light information comprises a first light sub-information and a second light sub-information.
It is understood that the photographing information may include 8 pieces of sub-information, which are respectively denoted as photographing sub-information a, photographing sub-information b, photographing sub-information c, photographing sub-information d, photographing sub-information e, photographing sub-information f, photographing sub-information g, and photographing sub-information h.
The shooting sub information a comprises a rear lens, a shooting photo and first light sub information, the shooting sub information b comprises a rear lens, a shooting photo and second light sub information, the shooting sub information c comprises a rear lens, a common video and the first light sub information, the shooting sub information d comprises a rear lens, a common video and the second light sub information, the shooting sub information e comprises a front lens, a shooting photo and the first light sub information, the shooting sub information f comprises a front lens, a shooting photo and the second light sub information, the shooting sub information g comprises a front lens, a common video and the first light sub information, and the shooting sub information h comprises a front lens, a common video and the second light sub information.
The image quality debugging parameter table comprises 8 sub-tables which are respectively recorded as a sub-table A, a sub-table B, a sub-table C, a sub-table D, a sub-table E, a sub-table F, a sub-table G and a sub-table H.
The terminal is preset with a setting mapping table, and the setting mapping table is shown in table 1.
TABLE 1
Shooting information Sub-table
Shooting sub information a Sub-table A
Shooting sub information b Sub-table B
Shooting sub information c Sub-table C
Shooting sub-information d Sub-table D
Shooting sub information e Sub-table E
Shooting sub information f Sub-table F
Shooting sub information g Sub-table G
Shooting sub-information h Sub-table H
In this example, when the system of the mobile phone is started, the initialization process may call the bottom layer service of the camera application to load the image quality debugging parameter table (tuning parameter table), and store the image quality debugging parameter table in the system memory one by one, and keep the image quality debugging parameter table for the subsequent camera application. At this time, the storage state of each sub-table in the image quality debugging parameter table is a decompressed state, that is, each sub-table is stored in the system memory in the decompressed state.
Then, the image quality debugging parameter table in the system memory is compressed. The sub-table in the image quality debugging parameter table can be traversed, and each sub-table is independently compressed by using a ZLIB algorithm to obtain a compressed corresponding sub-table so as to replace the original uncompressed sub-table. After the compression processing, the storage state of each sub-table in the image quality debugging parameter table is changed into a compression state, that is, each sub-table is stored in the system memory in the compression state.
When the camera application is running, shooting information at the time of first shooting is shooting sub-information a, that is, when first shooting, a rear lens of the camera module is used for shooting a picture, and light information of a shooting environment is first light sub-information. According to the shooting sub information a and the setting mapping table, the sub table A can be determined as a first target information item in the first shooting, and the sub table A in the compressed state can be decompressed to obtain the sub table A in the decompressed state. At this time, the number of sub-tables in the decompressed state in the system memory is 1 (i.e. the total amount of decompression), and the number of sub-tables in the decompressed state in the system memory is less than 2 (i.e. the set amount), so that the sub-table a in the decompressed state can be directly used for debugging the image quality of the first shooting result without calling the LRU algorithm, and the image quality effect of the first shooting is improved.
The shooting information in the second shooting is shooting sub-information c, that is, in the second shooting, the rear lens of the camera module is used for ordinary video recording, and the light information of the shooting environment is first light sub-information. According to the shooting sub-information C and the setting mapping table, the sub-table C can be determined as the first target information item in the second shooting, and the sub-table C in the compressed state can be decompressed to obtain the sub-table C in the decompressed state. At this time, the number of sub-tables in the decompressed state in the system memory is 2 (including sub-table a and sub-table C), and the number of sub-tables in the decompressed state in the system memory is equal to 2 (set amount), so that the LRU algorithm needs to be called, the sub-table a can be determined as the second target information item through the LRU algorithm, and then the compressed sub-table a can be obtained by compressing the sub-table a using the ZLIB algorithm. At this time, only sub-table C in the system memory is in a decompressed state. And then, the sub-table C in the decompression state can be used for debugging the image quality of the result of the second shooting, so that the image quality effect of the second shooting is improved.
The shooting information at the time of the third shooting is still shooting sub-information C, and the sub-table C can be determined as the first target information item at the time of the third shooting. Because the sub-table C in the system memory is in the decompression state, the sub-table C is not required to be decompressed, and the sub-table C is directly controlled to be continuously maintained in the decompression state. At this time, the number of sub-tables in the decompressed state in the system memory is 1 (i.e., sub-table C), and the number of sub-tables in the decompressed state in the system memory is less than 2 (set amount), so that the sub-table C in the decompressed state can be directly used to debug the image quality of the result of the third shooting, and the image quality effect of the third shooting is improved.
And so on, when shooting is performed each time, only one sub-table in the system memory is in a decompression state, and other sub-tables are in a compression state, so that the occupation of the image quality debugging parameter table to the system memory is reduced, the system memory can be released to a certain extent, the image quality effect when shooting is performed each time can be still ensured, and the use experience of a user is improved.
In addition, in the example, the number of sub-tables processed at each shooting is small, the processing efficiency is high, and the performance is not affected. The operation time length of single decompression (Uncompress) is smaller than that of single compression (compression), and the operation time length of single compression is smaller than 1ms.
In one exemplary embodiment, a control device for image quality debugging parameters is provided, and is applied to a terminal. The image quality debugging information includes a plurality of information items. The device is used for implementing the method. As an example, referring to fig. 4, the apparatus may include a save module 101 and a control module 102, which, in implementing the above-described method,
a saving module 101, configured to save a plurality of information items of the image quality debugging information into a system memory, where each information item is in a decompressed state;
the control module 102 is configured to compress each information item in the system memory, where the information item is in a decompressed state, to obtain a compressed information item;
the control module 102 is configured to control a storage state of each information item in the system memory according to the shooting information, where the storage state includes a decompressed state and a compressed state.
In one exemplary embodiment, a control device for image quality debugging parameters is provided, and is applied to a terminal. Referring to fig. 4, in the apparatus, the control module 102 includes:
a determining submodule 1021, configured to determine at least one first target information item from a plurality of information items in the system memory according to the shooting information;
A control sub-module 1022 for controlling the first target information item to be in a decompressed state.
In one exemplary embodiment, a control device for image quality debugging parameters is provided, and is applied to a terminal. Referring to fig. 4, in the apparatus, after controlling the first target information item to be in a decompressed state,
a determining submodule 1021, configured to determine a total decompression amount of the information item in the decompressed state in the system memory;
if the total decompression amount is determined to be greater than or equal to the set amount, determining at least one second target information item from the information items in the decompression state in the system memory according to a set replacement algorithm;
a control sub-module 1022 for controlling the second target information item to be in a compressed state.
In one exemplary embodiment, a control device for image quality debugging parameters is provided, and is applied to a terminal. In the apparatus, the set replacement algorithm includes an LRU algorithm.
In one exemplary embodiment, a control device for image quality debugging parameters is provided, and is applied to a terminal. Referring to fig. 4, in the apparatus, a control module 102 (e.g., a control sub-module 1022 of the control module 102) is configured to:
compressing each information item in a decompressed state in a system memory according to a set compression algorithm to obtain a corresponding compressed state information item;
Wherein setting the compression algorithm includes at least one of:
ZLIB algorithm, LZO algorithm, LZMA algorithm.
In one exemplary embodiment, a control device for image quality debugging parameters is provided, and is applied to a terminal. In the apparatus, the photographing information includes at least one of:
lens type, shooting mode, shooting environment light information.
In one exemplary embodiment, a terminal is provided, such as a cell phone, a notebook computer, a tablet computer, a wearable device, and the like.
Referring to fig. 5, the terminal 400 may include one or more of the following components: a processing component 402, a memory 404, a power supply component 406, a multimedia component 408, an audio component 410, an input/output (I/O) interface 412, a sensor component 414, and a communication component 416.
The processing component 402 generally controls overall operation of the terminal 400, such as operations associated with display, telephone calls, data communications, camera operations, and recording operations. The processing component 402 may include one or more processors 420 to execute instructions to perform all or part of the steps of the methods described above. Further, the processing component 402 can include one or more modules that facilitate interaction between the processing component 402 and other components. For example, the processing component 402 may include a multimedia module to facilitate interaction between the multimedia component 408 and the processing component 402.
The memory 404 is configured to store various types of data to support operations at the terminal 400. Examples of such data include instructions for any application or method operating on the terminal 400, contact data, phonebook data, messages, pictures, videos, and the like. The memory 404 may be implemented by any type of volatile or non-volatile memory terminal or combination thereof, such as Static Random Access Memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic memory, flash memory, magnetic or optical disk.
The power supply component 406 provides power to the various components of the terminal 400. The power supply components 406 may include a power management system, one or more power supplies, and other components associated with generating, managing, and distributing power for the terminal 400.
The multimedia component 408 includes a screen between the terminal 400 and the user that provides an output interface. In some embodiments, the screen may include a Liquid Crystal Display (LCD) and a Touch Panel (TP). If the screen includes a touch panel, the screen may be implemented as a touch screen to receive input signals from a user. The touch panel includes one or more touch sensors to sense touches, swipes, and gestures on the touch panel. The touch sensor may sense not only the boundary of a touch or sliding action, but also the duration and pressure associated with the touch or sliding operation. In some embodiments, the multimedia component 408 includes a front camera module and/or a rear camera module. When the terminal 400 is in an operation mode, such as a photographing mode or a video mode, the front camera module and/or the rear camera module may receive external multimedia data. Each of the front camera module and the rear camera module may be a fixed optical lens system or have focal length and optical zoom capabilities.
The audio component 410 is configured to output and/or input audio signals. For example, the audio component 410 includes a Microphone (MIC) configured to receive external audio signals when the terminal 400 is in an operation mode, such as a call mode, a recording mode, and a voice recognition mode. The received audio signals may be further stored in the memory 404 or transmitted via the communication component 416. In some embodiments, audio component 410 includes a speaker for outputting audio signals.
The I/O interface 412 provides an interface between the processing component 402 and peripheral interface modules, which may be a keyboard, click wheel, buttons, etc. These buttons may include, but are not limited to: homepage button, volume button, start button, and lock button.
The sensor assembly 414 includes one or more sensors for providing status assessment of various aspects of the terminal 400. For example, the sensor assembly 414 may detect an on/off state of the terminal 400, a relative positioning of the assemblies, such as a display and keypad of the terminal 400, the sensor assembly 414 may detect a change in position of the terminal 400 or one of the assemblies of the terminal 400, the presence or absence of user contact with the terminal 400, orientation or acceleration/deceleration of the terminal 400, and a change in temperature of the terminal 400. The sensor assembly 414 may include a proximity sensor configured to detect the presence of nearby objects in the absence of any physical contact. The sensor assembly 414 may include a light sensor, such as a CMOS or CCD image sensor, for use in imaging applications. In some embodiments, the sensor assembly 414 may include an acceleration sensor, a gyroscopic sensor, a magnetic sensor, a pressure sensor, or a temperature sensor.
The communication component 416 is configured to facilitate communication between the terminal 400 and other terminals, either wired or wireless. The terminal 700 may access a wireless network based on a communication standard, such as WiFi, 2G, 3G, 4G, 5G, or a combination thereof. In one exemplary embodiment, the communication component 416 receives broadcast signals or broadcast-related information from an external broadcast management system via a broadcast channel. In one exemplary embodiment, the communication component 416 includes a Near Field Communication (NFC) module to facilitate short range communications. For example, the NFC module may be implemented based on Radio Frequency Identification (RFID) technology, infrared data association (IrDA) technology, ultra Wideband (UWB) technology, bluetooth (BT) technology, and other technologies.
In an exemplary embodiment, the terminal 400 may be implemented by one or more Application Specific Integrated Circuits (ASICs), digital Signal Processors (DSPs), digital signal processing terminals (DSPDs), programmable Logic Devices (PLDs), field Programmable Gate Arrays (FPGAs), controllers, microcontrollers, microprocessors, or other electronic elements for executing the methods described above.
In one exemplary embodiment, a non-transitory computer readable storage medium is provided, such as memory 404, including instructions executable by processor 420 of terminal 400 to perform the above-described method. For example, the non-transitory computer readable storage medium may be a ROM, random-access memory (RAM), CD-ROM, magnetic tape, floppy disk, optical data storage terminal, etc. The instructions in the storage medium, when executed by the processor of the terminal, enable the terminal to perform the method shown in the above embodiments.
Other embodiments of the disclosure will be apparent to those skilled in the art from consideration of the specification and practice of the disclosure disclosed herein. This disclosure is intended to cover any adaptations, uses, or adaptations of the disclosure following the general principles of the disclosure and including such departures from the present disclosure as come within known or customary practice within the art to which the disclosure pertains. It is intended that the specification and examples be considered as exemplary only, with a true scope and spirit of the disclosure being indicated by the following claims.
Other embodiments of the disclosure will be apparent to those skilled in the art from consideration of the specification and practice of the disclosure disclosed herein. This disclosure is intended to cover any adaptations, uses, or adaptations of the disclosure following the general principles of the disclosure and including such departures from the present disclosure as come within known or customary practice within the art to which the disclosure pertains. It is intended that the specification and examples be considered as exemplary only, with a true scope and spirit of the disclosure being indicated by the following claims.
It is to be understood that the present disclosure is not limited to the precise arrangements and instrumentalities shown in the drawings, and that various modifications and changes may be effected without departing from the scope thereof. The scope of the present disclosure is limited only by the appended claims.

Claims (12)

1. A control method of image quality debugging information, applied to a terminal, characterized in that the image quality debugging information comprises a plurality of information items, the method comprising:
storing the plurality of information items of the image quality debugging information into a system memory, wherein each information item is in a decompressed state respectively;
compressing each information item in the system memory in the decompression state to obtain a compressed information item;
and controlling the storage state of each information item in the system memory according to shooting information, wherein the storage state comprises the decompression state and the compression state.
2. The method of claim 1, wherein controlling the storage state of each information item in the system memory according to the photographing information comprises:
determining at least one first target information item from the plurality of information items in the system memory according to the shooting information;
controlling the first target information item to be in the decompressed state.
3. The method according to claim 2, wherein after said controlling said first target information item to be in a decompressed state, the method comprises:
Determining the total decompression amount of the information items in the decompression state in the system memory;
if the total decompression amount is determined to be greater than or equal to the set amount, determining at least one second target information item from the information items in the decompression state in the system memory according to a set replacement algorithm;
controlling the second target information item to be in the compressed state.
4. A method according to any one of claims 1 to 3, wherein said compressing each of the information items in the decompressed state in the system memory to obtain a compressed information item includes:
compressing each information item in the decompression state in the system memory according to a set compression algorithm to obtain a corresponding information item in the compression state;
wherein the set compression algorithm comprises at least one of:
ZLIB algorithm, LZO algorithm, LZMA algorithm.
5. A method according to any one of claims 1-3, wherein the photographing information comprises at least one of:
lens type, shooting mode, shooting environment light information.
6. A control device for image quality debugging information, applied to a terminal, characterized in that the image quality debugging information comprises a plurality of information items, the device comprising:
The storage module is used for storing the plurality of information items of the image quality debugging information into a system memory, wherein each information item is in a decompressed state respectively;
the control module is used for compressing each information item in the decompression state in the system memory to obtain the compressed information item;
the control module is used for controlling the storage state of each information item in the system memory according to shooting information, wherein the storage state comprises the decompression state and the compression state.
7. The apparatus of claim 6, wherein the control module comprises:
a determining submodule, configured to determine at least one first target information item from the plurality of information items in the system memory according to the shooting information;
and the control sub-module is used for controlling the first target information item to be in the decompression state.
8. The apparatus of claim 7, wherein after said controlling said first target information item to be in a decompressed state,
the determining submodule is used for determining the total decompression amount of the information items in the decompression state in the system memory;
if the total decompression amount is determined to be greater than or equal to the set amount, determining at least one second target information item from the information items in the decompression state in the system memory according to a set replacement algorithm;
The control submodule is used for controlling the second target information item to be in the compressed state.
9. The apparatus of any one of claims 6-8, wherein the control module is configured to:
compressing each information item in the decompression state in the system memory according to a set compression algorithm to obtain a corresponding information item in the compression state;
wherein the set compression algorithm comprises at least one of:
ZLIB algorithm, LZO algorithm, LZMA algorithm.
10. The apparatus according to any one of claims 6-9, wherein the photographing information includes at least one of:
lens type, shooting mode, shooting environment light information.
11. A terminal, the terminal comprising:
a processor;
a memory for storing the processor-executable instructions;
wherein the processor is configured to perform the method of any of claims 1-5.
12. A non-transitory computer readable storage medium, characterized in that instructions in the storage medium, when executed by a processor of a terminal, enable the terminal to perform the method of any one of claims 1-5.
CN202111535458.3A 2021-12-15 2021-12-15 Image quality debugging information control method, device, terminal and storage medium Pending CN116264614A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202111535458.3A CN116264614A (en) 2021-12-15 2021-12-15 Image quality debugging information control method, device, terminal and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202111535458.3A CN116264614A (en) 2021-12-15 2021-12-15 Image quality debugging information control method, device, terminal and storage medium

Publications (1)

Publication Number Publication Date
CN116264614A true CN116264614A (en) 2023-06-16

Family

ID=86723706

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202111535458.3A Pending CN116264614A (en) 2021-12-15 2021-12-15 Image quality debugging information control method, device, terminal and storage medium

Country Status (1)

Country Link
CN (1) CN116264614A (en)

Similar Documents

Publication Publication Date Title
EP3173923A1 (en) Method and device for image display
CN107040591B (en) Method and device for controlling client
CN108200279B (en) Backlight adjusting method, device and equipment
CN104811554A (en) Method and terminal for switching camera modes
CN111259289B (en) Picture loading method and device, electronic equipment and storage medium
EP3373282A1 (en) Method and device for adjusting current of backlight, and display apparatus
CN110876014B (en) Image processing method and device, electronic device and storage medium
CN114500821B (en) Photographing method and device, terminal and storage medium
CN116264614A (en) Image quality debugging information control method, device, terminal and storage medium
CN110704197B (en) Method, apparatus and medium for processing memory access overhead
CN110874829B (en) Image processing method and device, electronic device and storage medium
CN111698414B (en) Image signal processing method and device, electronic device and readable storage medium
CN113301254A (en) Video recording method, processing method, device, terminal and storage medium
CN112866612A (en) Frame insertion method, device, terminal and computer readable storage medium
CN114390211B (en) Exposure convergence method, device, electronic equipment and storage medium
CN111414245B (en) Method, device and medium for controlling flash memory read-write rate
CN110876015B (en) Method and device for determining image resolution, electronic equipment and storage medium
CN116567411A (en) Power consumption control method, device, equipment and medium
CN117764895A (en) Image processing method, device and storage medium
CN117176855A (en) Shooting light supplementing method, device and medium
CN117956268A (en) Preview frame rate control method and device thereof
CN117336609A (en) Power consumption control method and device, electronic equipment and storage medium
CN116419062A (en) Image processing method, device and storage medium
CN116342373A (en) Image processing method, device, equipment and storage medium
CN116416323A (en) Image processing method and device, electronic equipment and storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination