CN101827158A - Method and system for uniformly processing picture resources in cellphone - Google Patents
Method and system for uniformly processing picture resources in cellphone Download PDFInfo
- Publication number
- CN101827158A CN101827158A CN200910127204A CN200910127204A CN101827158A CN 101827158 A CN101827158 A CN 101827158A CN 200910127204 A CN200910127204 A CN 200910127204A CN 200910127204 A CN200910127204 A CN 200910127204A CN 101827158 A CN101827158 A CN 101827158A
- Authority
- CN
- China
- Prior art keywords
- picture resource
- picture
- resource
- information list
- resource information
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
Images
Landscapes
- Telephone Function (AREA)
- Processing Or Creating Images (AREA)
Abstract
The invention discloses a method and a system for uniformly processing picture resources in a cellphone, which can uniformly read picture resources in the forms of files and data. The method comprises the following steps: previously establishing a picture resource information list, wherein the identifications, storage forms and locations of all picture resources are stored in the picture resource information list, and the storage forms are used for identifying whether the picture resources are stored in the form of files or codes; and when reading the picture resources in the cellphone, searching the picture resource information list according to the identifications of the picture resources to obtain the storage forms and locations of the picture resources, and reading the picture resources by calling a resource file manipulation interface or a resource data manipulation interface according to the different storage forms and locations.
Description
Technical field
The present invention relates to field of mobile communication, particularly the processing method of picture resource and system.
Background technology
In present mobile phone, the existence form of picture has two kinds, a kind of document form that is to use is present in (for example picture file of preservation in the windows system) in the file system, and another kind is to use data mode to be present in (data that are about to picture are kept in the code) in the code.On present cell phone platform, access mode and access interface for these two kinds of pictures are independently, such framework makes very loaded down with trivial details for the use of picture, and be unfavorable for safeguarding, originally used the picture resource of file mode in the somewhere of design or code such as the developer, needed this picture resource is changed to the resource of code form afterwards, at this moment the developer also needs to change correctly use of code.
Summary of the invention
Technical problem to be solved by this invention provides a kind of unified method and system of handling of picture resource in the mobile phone of realizing, can unify to read with document form picture and data mode picture resource.
In order to solve the problems of the technologies described above, the invention provides a kind of unified method of handling of picture resource in the mobile phone that realizes, comprising:
Set up a picture resource information list in advance, preserve sign, file layout and the position of all picture resources in the mobile phone in this tabulation, it is to store with the document form storage or with code form that this file layout is used to identify picture resource;
When the picture resource in the mobile phone is read, earlier search described picture resource information list according to the sign of described picture resource, obtain the file layout and the position of described picture resource, read described picture resource according to different preservation forms and call by location resource file operation-interface or resource data operation-interface.
Further, the processing of picture resource in the mobile phone is also comprised one or more of following operation: the deletion of the interpolation of picture resource, the modification of picture resource, picture resource.
Further, when in cell phone system, adding picture resource, in the picture resource information list, increase a new record, sign, file layout and the memory location of writing down this picture resource simultaneously.
Further, when deleting the picture resource in the cell phone system, the information of deleting this picture resource in the picture resource information list simultaneously.
Further, the modification of picture resource comprises one or both of following situation: the position change of picture resource, the file layout change of picture resource; When the position of picture resource and/or file layout change, the corresponding information of this picture resource in the corresponding modify picture resource information list.
Further, the picture resource information list adopts the static array in the C language to realize.
In order to solve the problems of the technologies described above, the invention provides a kind of unified system that handles of picture resource in the mobile phone that realizes, comprise that picture resource information memory cell, picture resource unify access interface unit, resource file operation-interface and resource data operation-interface, wherein:
Described picture resource information memory cell, be used for the tabulation of picture resource information, described picture resource information list comprises following information: it is to store with the document form storage or with code form that the sign of all picture resources, file layout and position, described file layout are used to identify picture resource;
Described picture resource is unified the access interface unit, be used for when reading the picture resource of mobile phone, earlier search the picture resource information list of preserving in the described picture resource information memory cell according to the sign of described picture resource, obtain the file layout and the position of described picture resource, according to different preservation forms and call by location resource file operation-interface or resource data operation-interface;
Described resource file operation-interface is used to read the picture resource of preserving with document form;
Described resource data operation-interface is used to read the picture resource of preserving with code form.
Further, described system also comprises picture resource information list edit cell, is used for when adding picture resource, increases a new record, sign, file layout and the memory location of writing down this picture resource in the picture resource information list; Described picture resource information list edit cell also is used for when the deletion picture resource, the information of this picture resource of deletion from the picture resource information list; Described picture resource information list edit cell also is used in the position of picture resource and/or file layout when change, revises the corresponding information of this picture resource in the picture resource information list.
The present invention handles framework owing to introduced the unified of picture resource, thereby has improved development efficiency, strengthens maintainable.
Description of drawings
Fig. 1 is the system framework figure of present embodiment;
Fig. 2 is a present embodiment picture resource read method flow chart.
Specific embodiment
Inventive concept of the present invention is to use a socket (picture resource is as shown in fig. 1 unified access interface) to realize the processing of the picture resource of two kinds of preserving types, use the existence form of picture resource information list recordable picture resource, and the position at picture resource place under the corresponding form, the information that this interface writes down by the picture resource information list is again called the physical interface under the corresponding form, finishes function treatment.
Set up a picture resource information list in advance, preserve sign, file layout and the position of all picture resources in the mobile phone in this tabulation, it is to store with the document form storage or with code form that this file layout is used to identify picture resource.The picture resource information list of setting up in the cell phone software system comprises at least: picture resource sign, picture resource file layout, picture resource position.This picture resource information list can adopt the static array in the C language to realize.The picture resource sign then can adopt the position subscript of this picture resource information in array to identify.After this data structure is set up, in advance the document form picture resource preserved in the mobile phone and the picture resource information of code form are kept in this picture resource information list.
The read method of picture resource comprises in the mobile phone: when needs read picture resource in the mobile phone, earlier search this picture resource information list according to the sign of picture resource, obtain the file layout and the position of the picture resource that need read, read this picture resource according to different preservation forms and call by location resource file operation-interface or resource data operation-interface.
The processing of picture resource in the mobile phone is also comprised one or more of following operation: the deletion of the interpolation of picture resource, the modification of picture resource, picture resource.When in cell phone system, adding picture resource, need in the picture resource information list, to increase simultaneously a new record, with sign, file layout and the memory location of writing down this picture resource.When the picture resource in the deletion cell phone system, the information that needs to delete this picture resource in the picture resource information list simultaneously.The modification of picture resource mainly is meant the position change of picture resource and/or the file layout change of picture resource in the text, when the position of picture resource, file layout change, needs the corresponding information of this picture resource in the corresponding modify picture resource information list.
Realize system for carrying out said process as shown in Figure 1, comprising:
The picture resource information memory cell, be used for the tabulation of picture resource information, described picture resource information list comprises following information: it is to store with the document form storage or with code form that the sign of all picture resources, file layout and position, this file layout are used to identify picture resource;
Picture resource is unified the access interface unit, be used for when reading the picture resource of mobile phone, earlier search described picture resource information list according to the sign of this picture resource, obtain the file layout and the position of described picture resource, read described picture resource according to different preservation forms and call by location resource file operation-interface or resource data operation-interface;
The resource file operation-interface is used to read the picture resource of preserving with document form;
The resource data operation-interface is used to read the picture resource of preserving with code form.
In order to realize modification to the picture resource information list, described system also comprises a picture resource information list edit cell, be used for when adding picture resource, in the picture resource information list, increase a new record, sign, file layout and the memory location of writing down this picture resource; And be used for when the deletion picture resource information of this picture resource of deletion from the picture resource information list; And be used in the position of picture resource and/or during the file layout change, revise the corresponding information of this picture resource in the picture resource information list.
To read picture resource is that example describes, and as shown in Figure 2, may further comprise the steps:
When step 210, picture resource in needing calling mobile phone, read the picture resource information list in the picture resource information memory cell earlier, the sign of the picture resource that reads is as required searched the file layout and the position of this picture resource;
Step 230, existing picture file Processing Interface reads this picture resource from described position in the calling mobile phone;
Certainly; the present invention also can have other various embodiments; under the situation that does not deviate from spirit of the present invention and essence thereof; those of ordinary skill in the art work as can make various corresponding changes and distortion according to the present invention, but these corresponding changes and distortion all should belong to the protection range of the appended claim of the present invention.
Claims (10)
1. the unified method of handling of picture resource in the realization mobile phone is characterized in that,
Set up a picture resource information list in advance, preserve sign, file layout and the position of all picture resources in the mobile phone in this tabulation, it is to store with the document form storage or with code form that this file layout is used to identify picture resource;
When the picture resource in the mobile phone is read, earlier search described picture resource information list according to the sign of described picture resource, obtain the file layout and the position of described picture resource, read described picture resource according to different preservation forms and call by location resource file operation-interface or resource data operation-interface.
2. the method for claim 1 is characterized in that,
The processing of picture resource in the mobile phone is also comprised one or more of following operation: the deletion of the interpolation of picture resource, the modification of picture resource, picture resource.
3. method as claimed in claim 1 or 2 is characterized in that,
When in cell phone system, adding picture resource, in the picture resource information list, increase a new record, sign, file layout and the memory location of writing down this picture resource simultaneously.
4. method as claimed in claim 1 or 2 is characterized in that,
When deleting the picture resource in the cell phone system, the information of deleting this picture resource in the picture resource information list simultaneously.
5. method as claimed in claim 1 or 2 is characterized in that,
The modification of picture resource comprises one or both of following situation: the position change of picture resource, the file layout change of picture resource; When the position of picture resource and/or file layout change, the corresponding information of this picture resource in the corresponding modify picture resource information list.
6. method as claimed in claim 1 or 2 is characterized in that,
The picture resource information list adopts the static array in the C language to realize.
7. the unified system that handles of picture resource in the realization mobile phone is characterized in that, described system comprises that picture resource information memory cell, picture resource unify access interface unit, resource file operation-interface and resource data operation-interface, wherein:
Described picture resource information memory cell, be used for the tabulation of picture resource information, described picture resource information list comprises following information: it is to store with the document form storage or with code form that the sign of all picture resources, file layout and position, described file layout are used to identify picture resource;
Described picture resource is unified the access interface unit, be used for when reading the picture resource of mobile phone, earlier search the picture resource information list of preserving in the described picture resource information memory cell according to the sign of described picture resource, obtain the file layout and the position of described picture resource, according to different preservation forms and call by location resource file operation-interface or resource data operation-interface;
Described resource file operation-interface is used to read the picture resource of preserving with document form;
Described resource data operation-interface is used to read the picture resource of preserving with code form.
8. system as claimed in claim 7 is characterized in that,
Described system also comprises picture resource information list edit cell, is used for when adding picture resource, increases a new record, sign, file layout and the memory location of writing down this picture resource in the picture resource information list.
9. system as claimed in claim 7 is characterized in that,
Described system also comprises picture resource information list edit cell, is used for when the deletion picture resource information of this picture resource of deletion from the picture resource information list.
10. system as claimed in claim 7 is characterized in that,
Described system also comprises picture resource information list edit cell, is used in the position of picture resource and/or during the file layout change, revises the corresponding information of this picture resource in the picture resource information list.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN200910127204A CN101827158A (en) | 2009-03-05 | 2009-03-05 | Method and system for uniformly processing picture resources in cellphone |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN200910127204A CN101827158A (en) | 2009-03-05 | 2009-03-05 | Method and system for uniformly processing picture resources in cellphone |
Publications (1)
Publication Number | Publication Date |
---|---|
CN101827158A true CN101827158A (en) | 2010-09-08 |
Family
ID=42690853
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN200910127204A Pending CN101827158A (en) | 2009-03-05 | 2009-03-05 | Method and system for uniformly processing picture resources in cellphone |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN101827158A (en) |
Cited By (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101957854A (en) * | 2010-09-26 | 2011-01-26 | 宇龙计算机通信科技(深圳)有限公司 | Data storage method of media files and mobile terminal |
CN104123507A (en) * | 2014-07-18 | 2014-10-29 | 北京微众文化传媒有限公司 | Method and device for processing audio files |
CN104182403A (en) * | 2013-05-22 | 2014-12-03 | 阿里巴巴集团控股有限公司 | Method and equipment for loading image information |
CN104298694A (en) * | 2013-07-19 | 2015-01-21 | 深圳市康睿祥通讯有限公司 | Picture message adding method and device and mobile terminal |
WO2016058371A1 (en) * | 2014-10-13 | 2016-04-21 | 中兴通讯股份有限公司 | File management method and device, and terminal |
CN105740455A (en) * | 2016-02-04 | 2016-07-06 | 北京金山安全软件有限公司 | Picture deleting method and device and electronic equipment |
CN113064692A (en) * | 2021-04-06 | 2021-07-02 | 深圳市研强物联技术有限公司 | Firmware picture resource data generation method and system |
-
2009
- 2009-03-05 CN CN200910127204A patent/CN101827158A/en active Pending
Cited By (10)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101957854A (en) * | 2010-09-26 | 2011-01-26 | 宇龙计算机通信科技(深圳)有限公司 | Data storage method of media files and mobile terminal |
CN101957854B (en) * | 2010-09-26 | 2016-09-28 | 宇龙计算机通信科技(深圳)有限公司 | The date storage method of media file and mobile terminal |
CN104182403A (en) * | 2013-05-22 | 2014-12-03 | 阿里巴巴集团控股有限公司 | Method and equipment for loading image information |
CN104298694A (en) * | 2013-07-19 | 2015-01-21 | 深圳市康睿祥通讯有限公司 | Picture message adding method and device and mobile terminal |
CN104123507A (en) * | 2014-07-18 | 2014-10-29 | 北京微众文化传媒有限公司 | Method and device for processing audio files |
WO2016058371A1 (en) * | 2014-10-13 | 2016-04-21 | 中兴通讯股份有限公司 | File management method and device, and terminal |
CN105740455A (en) * | 2016-02-04 | 2016-07-06 | 北京金山安全软件有限公司 | Picture deleting method and device and electronic equipment |
CN105740455B (en) * | 2016-02-04 | 2019-09-17 | 北京金山安全软件有限公司 | Picture deleting method and device and electronic equipment |
CN113064692A (en) * | 2021-04-06 | 2021-07-02 | 深圳市研强物联技术有限公司 | Firmware picture resource data generation method and system |
CN113064692B (en) * | 2021-04-06 | 2022-11-29 | 深圳市研强物联技术有限公司 | Method and system for generating firmware picture resource data |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN101827158A (en) | Method and system for uniformly processing picture resources in cellphone | |
CN101763418A (en) | File resource access method and device | |
US8909598B2 (en) | Method for managing electronic phone book used in communication devices | |
CN105893084A (en) | Version upgrading method and terminal equipment | |
KR20060043734A (en) | Method and system for centralized copy/paste functionality | |
EP2461640A1 (en) | Method and integrated circuit card for managing the database by interacting with the mobile equipment | |
CN110347341A (en) | Data clearing method and control equipment | |
CN105760232A (en) | Offline cache method and system for IOS application | |
US20140045467A1 (en) | Method and apparatus for recording information during a call | |
CN107924397A (en) | A kind of file editing method and file editor | |
CN104219356A (en) | Method and device for displaying and searching contact man information and mobile terminal | |
CN106484779B (en) | File operation method and device | |
US9456412B2 (en) | Electronic device and method for selecting access point name | |
EP3343395A1 (en) | Data storage method and apparatus for mobile terminal | |
CN106055372A (en) | Method and device for uninstalling application | |
CN102436396A (en) | Method and system for calling application integration | |
CN105227441A (en) | Cloud server, contact identity defining method and system | |
CN104765631A (en) | Restoration method and device for application program of mobile terminal | |
CN103533130A (en) | Method and mobile terminal for deleting information of contact | |
CN116610636A (en) | Data processing method and device of file system, electronic equipment and storage medium | |
KR101182534B1 (en) | terminal having a mutual calling function an API in the platform library, DSL module generating method and mutual API calling method | |
CN106843895B (en) | Method, system and readable storage medium for processing requests | |
CN110795389B (en) | Storage snapshot based copying method, user equipment, storage medium and device | |
CN107562452A (en) | Terminal preset application update method, intelligent terminal and the device with store function | |
CN105824676A (en) | Information loading method and terminal |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
C12 | Rejection of a patent application after its publication | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20100908 |