CN102075628B - Method for setting system color depth and terminal - Google Patents

Method for setting system color depth and terminal Download PDF

Info

Publication number
CN102075628B
CN102075628B CN201110008268.6A CN201110008268A CN102075628B CN 102075628 B CN102075628 B CN 102075628B CN 201110008268 A CN201110008268 A CN 201110008268A CN 102075628 B CN102075628 B CN 102075628B
Authority
CN
China
Prior art keywords
type
color depth
application
application program
terminal
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.)
Active
Application number
CN201110008268.6A
Other languages
Chinese (zh)
Other versions
CN102075628A (en
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.)
Huawei Device Co Ltd
Original Assignee
Huawei Device 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 Huawei Device Co Ltd filed Critical Huawei Device Co Ltd
Priority to CN201110008268.6A priority Critical patent/CN102075628B/en
Publication of CN102075628A publication Critical patent/CN102075628A/en
Application granted granted Critical
Publication of CN102075628B publication Critical patent/CN102075628B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • User Interface Of Digital Computer (AREA)
  • Telephone Function (AREA)

Abstract

The invention provides a method for setting system color depth and a terminal. The method comprises: according to the application type of the application currently run in the terminal, acquiring a color depth parameter corresponding to the application type of the application; and setting the system color depth in the terminal by using the color depth parameter. The method makes the system color depth setting in the terminal more flexible and is more applicable to different types of applications.

Description

The method to set up of system color depth and terminal
Technical field
The embodiment of the present invention relates to the information processing technology, relates in particular to a kind of method to set up and terminal of system color depth.
Background technology
Along with the development of the communication technology, the type of the application program of moving on terminal is more and more, and different application programs, the bit number of the system color depth that it is suitable may be different.
But present terminal can be set by the user the color depth of a system, and different application programs all to should color depth, makes the underaction that arranges of system color depth.
For example: increasing terminal can be moved the application program of 3D type.In order to guarantee image display effect preferably, the bit number of the system color depth that the system of terminal adopts usually can be higher (for example: 24 bits), thereby caused in the presentation video figure place of the binary number of each pixel more.When the application program of terminal operating 3D type, need the data volume to be processed will be more, might affect the normal operation of the application program of this 3D type, such as: the operation of the application program of 3D type is not smooth etc.In prior art, can be by improving the hardware handles ability of terminal, guarantee the normal operation of the application program of image display effect and 3D type preferably, like this, increased the cost of terminal.
Summary of the invention
The embodiment of the present invention provides a kind of method to set up and terminal of system color depth, so that the setting of the system color depth of terminal is more flexible, more is adapted to dissimilar application program.
The embodiment of the present invention provides a kind of method to set up of system color depth, comprising:
Application type according to the application program of the current operation of terminal obtains the color depth parameter corresponding with the application type of described application program;
Utilize described color depth parameter, the system color depth of described terminal is set.
The embodiment of the present invention also provides a kind of terminal, comprising:
Acquisition module is used for the application type according to the application program of the current operation of described terminal, obtains the color depth parameter corresponding with the application type of described application program;
Module is set, is used for utilizing described color depth parameter, the system color depth of described terminal is set.
As shown from the above technical solution, the embodiment of the present invention is passed through the application type according to the application program of the current operation of terminal, obtain the color depth parameter corresponding with the application type of above-mentioned application program, thereby make it possible to utilize above-mentioned color depth parameter, the system color depth of above-mentioned terminal is set, can make the setting of system color depth of terminal more flexible, more be adapted to dissimilar application program.
Description of drawings
In order to be illustrated more clearly in the embodiment of the present invention or technical scheme of the prior art, the below will do one to the accompanying drawing of required use in embodiment or description of the Prior Art and introduce simply, apparently, accompanying drawing in the following describes is some embodiments of the present invention, for those of ordinary skills, under the prerequisite of not paying creative work, can also obtain according to these accompanying drawings other accompanying drawing.
The schematic flow sheet of the method to set up of the system color depth that Fig. 1 provides for the embodiment of the present invention one;
The schematic flow sheet of the method to set up of the system color depth that Fig. 2 provides for the embodiment of the present invention two;
A structural representation of the terminal that Fig. 3 provides for the embodiment of the present invention three;
Another structural representation of the terminal that Fig. 4 provides for the embodiment of the present invention three.
Embodiment
For the purpose, technical scheme and the advantage that make the embodiment of the present invention clearer, below in conjunction with the accompanying drawing in the embodiment of the present invention, technical scheme in the embodiment of the present invention is clearly and completely described, obviously, described embodiment is the present invention's part embodiment, rather than whole embodiment.Based on the embodiment in the present invention, those of ordinary skills belong to the scope of protection of the invention not making the every other embodiment that obtains under the creative work prerequisite.
Need to prove: in the embodiment of the present invention, related terminal includes but not limited to mobile phone, personal digital assistant (Personal Digital Assistant is called for short PDA), radio hand-held equipment, wireless Internet access basis, portable computer, MP3 player, MP4 player etc.
The schematic flow sheet of the method to set up of the system color depth that Fig. 1 provides for the embodiment of the present invention one, as shown in Figure 1, the method to set up of the system color depth of the present embodiment can comprise the following steps:
Step 101, according to the application type of the application program of the current operation of terminal, obtain the color depth parameter corresponding with the application type of above-mentioned application program;
In this step, can according to the application type of different application programs, obtain corresponding color depth parameter.
Step 102, utilize above-mentioned color depth parameter, the system color depth of above-mentioned terminal is set.
In this step, can utilize the color depth parameter of obtaining by step 101, the system color depth of terminal is set.
In the present embodiment, by the application type according to the application program of the current operation of terminal, obtain the color depth parameter corresponding with the application type of above-mentioned application program, thereby make it possible to utilize above-mentioned color depth parameter, the system color depth of above-mentioned terminal is set, can make the setting of system color depth of terminal more flexible, more be adapted to dissimilar application program.
For the method that makes the embodiment of the present invention provide is clearer, the below will be with the application program of the application program of 3D type and non-3D type as an example.The schematic flow sheet of the method to set up of the system color depth that Fig. 2 provides for the embodiment of the present invention two, as shown in Figure 2, the method to set up of the system color depth of the present embodiment can comprise the following steps:
Step 201, according to the application type of the application program of the current operation of terminal, obtain the color depth parameter corresponding with the application type of above-mentioned application program, the application type of above-mentioned application program can comprise 3D type and non-3D type;
In this step, the application type of application program that specifically can the current operation of sense terminals:
When the application type that detects above-mentioned application program is the 3D type, obtain the first color depth parameter corresponding with above-mentioned 3D type, particularly: when application program having been detected and carry out computing by the 3D application programming interfaces, the application type that the application program of the current operation of terminal is described is the 3D type, obtains the first color depth parameter corresponding with above-mentioned 3D type;
When the application type that detects above-mentioned application program is non-3D type, obtain the second color depth parameter corresponding with above-mentioned non-3D type, particularly: when the 3D application programming interfaces being detected and be closed condition, the application type that the application program of the current operation of terminal is described is non-3D type, obtains the second color depth parameter corresponding with above-mentioned non-3D type; Wherein, the bit number that the bit number that above-mentioned the first color depth parameter identifies identifies less than above-mentioned the second color depth parameter, for example: the first color depth parameter can be 16 bits (bit), and the second color depth parameter can be 24 bits (bit).
Wherein, 3D application programming interfaces (Application Programming Interface is called for short API) can include but not limited to DirectX, OpenGL, Glide and Heidi.
Step 202, utilize above-mentioned color depth parameter, the system color depth of above-mentioned terminal is set.
In this step, can utilize the color depth parameter of obtaining by step 201, the system color depth of terminal is set.
For the method that makes the embodiment of the present invention provide is clearer, the below will be with the Android mobile phone as an example.In this step, can increase a Hook Function in the OpenG L in the Android mobile phone, onCreate function in this OpenGL of any application call or onResume function are arranged when carrying out computing by OpenG L, the application type that the application program of the current operation of terminal is described is the 3D type, can trigger above-mentioned Hook Function, to obtain the first color depth parameter corresponding with above-mentioned 3D type, for example: 16 bits (bit); Subsequently, onPause function in this application call OpenG L is when closing OpenGL, the application type that the application program of the current operation of terminal is described is non-3D type, obtain the second color depth parameter corresponding with above-mentioned non-3D type, can trigger above-mentioned Hook Function, to obtain the second color depth parameter corresponding with above-mentioned non-3D type, for example: 24 bits (bit).Further, can drive by revising FrameBuffer, interface with the system color depth that increases switching terminal, triggering according to Hook Function in OpenG L, the first color depth parameter or the second color depth parameter obtained are set to the system color depth of terminal, thereby can realize the dynamic adjustment of system color depth.
In the present embodiment, by the application type (3D type or non-3D type) according to the application program of the current operation of terminal, obtain the color depth parameter corresponding with the application type of above-mentioned application program, thereby make it possible to utilize above-mentioned color depth parameter, the system color depth of above-mentioned terminal is set, make application program when operation of 3D type, the bit of color depth is less, can guarantee the normal operation of the application program of image display effect and 3D type preferably.The method to set up of the system color depth that employing the present embodiment provides, can make the setting of system color depth of terminal more flexible, more be adapted to dissimilar application program, need not to improve the hardware handles ability of terminal, thereby avoided the cost of terminal to increase.
Need to prove: for aforesaid each embodiment of the method, for simple description, therefore it all is expressed as a series of combination of actions, but those skilled in the art should know, the present invention is not subjected to the restriction of described sequence of movement, because according to the present invention, some step can adopt other orders or carry out simultaneously.Secondly, those skilled in the art also should know, the embodiment described in instructions all belongs to preferred embodiment, and related action and module might not be that the present invention is necessary.
In the above-described embodiments, the description of each embodiment is all emphasized particularly on different fields, there is no the part that describes in detail in certain embodiment, can be referring to the associated description of other embodiment.
A structural representation of the terminal that Fig. 3 provides for the embodiment of the present invention three, as shown in Figure 3, the terminal of the present embodiment can comprise acquisition module 31 and module 32 is set.Wherein, the application type that acquisition module 31 is used for according to the application program of the current operation of above-mentioned terminal, obtain the color depth parameter corresponding with the application type of above-mentioned application program, module 32 is set is used for utilizing above-mentioned color depth parameter, the system color depth of above-mentioned terminal is set.
In the invention described above embodiment one, the function of method can be realized by the terminal that the embodiment of the present invention provides.
In the present embodiment, by the application type of acquisition module according to the application program of the current operation of terminal, obtain the color depth parameter corresponding with the application type of above-mentioned application program, thereby make and module is set utilizes above-mentioned color depth parameter, the system color depth of above-mentioned terminal is set, can make the setting of system color depth of terminal more flexible, more be adapted to dissimilar application program.The terminal that adopts the present embodiment to provide need not to improve the hardware handles ability of terminal, thereby has avoided the cost of terminal to increase.
Wherein, the application type of above-mentioned application program can comprise 3D type and non-3D type.As shown in Figure 4, the acquisition module 31 in the terminal that provides of the present embodiment may further include detecting unit 41, the first acquiring unit 42 and second acquisition unit 43.Wherein, detecting unit 41 is for detection of the application type of the application program of the current operation of above-mentioned terminal, when the first acquiring unit 42 is the 3D type for the application type that detects above-mentioned application program when detecting unit 41, obtain the first color depth parameter corresponding with above-mentioned 3D type, when second acquisition unit 43 is non-3D type for the application type that detects above-mentioned application program when detecting unit 41, obtain the second color depth parameter corresponding with above-mentioned non-3D type; Wherein, the bit number that identifies less than above-mentioned the second color depth parameter of the bit number that identifies of above-mentioned the first color depth parameter.
Particularly, the first acquiring unit 42 specifically can be used for when detecting unit 41 has detected application program and carries out computing by the 3D application programming interfaces, the application type that the application program of the current operation of above-mentioned terminal is described is the 3D type, obtains the first color depth parameter corresponding with above-mentioned 3D type.
Particularly, second acquisition unit 43 specifically can be used for when detecting unit 41 detects the 3D application programming interfaces and is closed condition, the application type that the application program of the current operation of above-mentioned terminal is described is non-3D type, obtains the second color depth parameter corresponding with above-mentioned non-3D type.
In the present embodiment, by the application type of acquisition module according to the application program of the current operation of terminal, obtain the color depth parameter corresponding with the application type of above-mentioned application program, thereby make and module is set utilizes above-mentioned color depth parameter, the system color depth of above-mentioned terminal is set, make application program when operation of 3D type, the bit of color depth is less, can guarantee the normal operation of the application program of image display effect and 3D type preferably.The method to set up of the system color depth that employing the present embodiment provides, can make the setting of system color depth of terminal more flexible, more be adapted to dissimilar application program, need not to improve the hardware handles ability of terminal, thereby avoided the cost of terminal to increase.
One of ordinary skill in the art will appreciate that: all or part of step that realizes said method embodiment can be completed by the hardware that programmed instruction is correlated with, aforesaid program can be stored in a computer read/write memory medium, this program is carried out the step that comprises said method embodiment when carrying out; And aforesaid storage medium comprises: the various media that can be program code stored such as ROM, RAM, magnetic disc or CD.
It should be noted that at last: above embodiment only in order to technical scheme of the present invention to be described, is not intended to limit; Although with reference to previous embodiment, the present invention is had been described in detail, those of ordinary skill in the art is to be understood that: it still can be modified to the technical scheme that aforementioned each embodiment puts down in writing, and perhaps part technical characterictic wherein is equal to replacement; And these modifications or replacement do not make the essence of appropriate technical solution break away from the spirit and scope of various embodiments of the present invention technical scheme.

Claims (6)

1. the method to set up of a system color depth, is characterized in that, comprising:
Application type according to the application program of the current operation of terminal obtains the color depth parameter corresponding with the application type of described application program, and this step comprises the application type of the application program of the current operation of sense terminals;
Utilize described color depth parameter, the system color depth of described terminal is set;
Wherein, the application type of described application program comprises 3D type and non-3D type, the application type of described application program according to the current operation of terminal, and the step of obtaining the color depth parameter corresponding with the application type of described application program specifically comprises:
When the application type that detects described application program is the 3D type, obtain the first color depth parameter corresponding with described 3D type;
When the application type that detects described application program is non-3D type, obtain the second color depth parameter corresponding with described non-3D type;
Wherein, the bit number that identifies less than described the second color depth parameter of the bit number that identifies of described the first color depth parameter.
2. method according to claim 1, is characterized in that, when described application type when detecting described application program was the 3D type, the step of obtaining the first color depth parameter corresponding with described 3D type specifically comprised:
When application program having been detected and carry out computing by the 3D application programming interfaces, obtain the first color depth parameter corresponding with described 3D type.
3. method according to claim 1 and 2, is characterized in that, when described application type when detecting described application program was non-3D type, the step of obtaining the second color depth parameter corresponding with described non-3D type specifically comprised:
When the 3D application programming interfaces being detected and be closed condition, obtain the second color depth parameter corresponding with described non-3D type.
4. a terminal, is characterized in that, comprising:
Acquisition module, be used for the application type according to the application program of the current operation of described terminal, obtain the color depth parameter corresponding with the application type of described application program, described acquisition module comprises detecting unit, for detection of the application type of the application program of the current operation of described terminal;
Module is set, is used for utilizing described color depth parameter, the system color depth of described terminal is set;
Wherein, the application type of described application program comprises 3D type and non-3D type, and described acquisition module comprises:
The first acquiring unit when being the 3D type for the application type that detects described application program when described detecting unit, obtains the first color depth parameter corresponding with described 3D type;
Second acquisition unit when being non-3D type for the application type that detects described application program when described detecting unit, obtains the second color depth parameter corresponding with described non-3D type;
Wherein, the bit number that identifies less than described the second color depth parameter of the bit number that identifies of described the first color depth parameter.
5. terminal according to claim 4, is characterized in that, described the first acquiring unit specifically is used for
When described detecting unit has detected application program and carries out computing by the 3D application programming interfaces, obtain the first color depth parameter corresponding with described 3D type.
6. according to claim 4 or 5 described terminals, is characterized in that, described second acquisition unit specifically is used for
When described detecting unit detects the 3D application programming interfaces and is in closed condition, obtain the second color depth parameter corresponding with described non-3D type.
CN201110008268.6A 2011-01-14 2011-01-14 Method for setting system color depth and terminal Active CN102075628B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201110008268.6A CN102075628B (en) 2011-01-14 2011-01-14 Method for setting system color depth and terminal

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201110008268.6A CN102075628B (en) 2011-01-14 2011-01-14 Method for setting system color depth and terminal

Publications (2)

Publication Number Publication Date
CN102075628A CN102075628A (en) 2011-05-25
CN102075628B true CN102075628B (en) 2013-11-06

Family

ID=44033965

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201110008268.6A Active CN102075628B (en) 2011-01-14 2011-01-14 Method for setting system color depth and terminal

Country Status (1)

Country Link
CN (1) CN102075628B (en)

Families Citing this family (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103699320B (en) * 2012-09-27 2016-12-21 华为终端有限公司 The method and device of touch screen parameter value is set
CN103763433B (en) * 2013-12-31 2016-08-24 宇龙计算机通信科技(深圳)有限公司 The progress control method of terminal applies and system
CN104657482A (en) * 2015-02-26 2015-05-27 深圳市中兴移动通信有限公司 Method for displaying application interface and terminal
CN106652955A (en) * 2017-01-04 2017-05-10 京东方科技集团股份有限公司 Drive circuit of display screen, display method and display device

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20020063716A1 (en) * 2000-11-30 2002-05-30 Palm, Inc. Control of color depth in a computing device
EP1357534A1 (en) * 2002-04-22 2003-10-29 TELEFONAKTIEBOLAGET L M ERICSSON (publ) Display device with plurality of display modes

Also Published As

Publication number Publication date
CN102075628A (en) 2011-05-25

Similar Documents

Publication Publication Date Title
CN104049859A (en) Intelligent terminal and display control method of soft control interface thereof
US20090064045A1 (en) Low memory rendering of graphical objects
CN104965580A (en) Method and apparatus for displaying unread messages
EP2586011B1 (en) Method, apparatus and computer program product for tracking face portion
US8312196B2 (en) Dual processor system and method for using the same
CN104471992A (en) Energy-efficient transmission of content over a wireless connection
EP3690604A1 (en) Display control method and system, and virtual reality device
CN103257792A (en) Icon operation method, icon operation device and mobile terminal
CN107734183A (en) A kind of method, storage medium and the mobile terminal of one-handed performance mobile terminal
CN103309563A (en) Displayed page switching method and device
CN105578184A (en) Key-frame animation generation apparatus and method
CN104615332A (en) Mobile terminal and application icon arrangement method
CN102075628B (en) Method for setting system color depth and terminal
MY159635A (en) System,method,and program for generating screen
CN103959198A (en) Reducing power for 3d workloads
CN103902197A (en) Method and device for displaying data based on list displaying in Android system
CN104731500A (en) Information processing method and electronic equipment
CN104092827A (en) Method and device for setting terminal
CN105654080B (en) Operation control method and device for stylus pen
EP3149558A1 (en) User account switching interface
CN105704527A (en) Terminal and method for video frame positioning for terminal
US9990694B2 (en) Methods and devices for outputting a zoom sequence
CN102622277B (en) Screen damage protection adapting method and electronic equipment
CN104407698A (en) Projecting method and electronic equipment
CN103365559A (en) Method for drawing sliding trace and mobile 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
C14 Grant of patent or utility model
GR01 Patent grant
TR01 Transfer of patent right

Effective date of registration: 20171106

Address after: Metro Songshan Lake high tech Industrial Development Zone, Guangdong Province, Dongguan City Road 523808 No. 2 South Factory (1) project B2 -5 production workshop

Patentee after: HUAWEI terminal (Dongguan) Co., Ltd.

Address before: 518129 Longgang District, Guangdong, Bantian HUAWEI base B District, building 2, building No.

Patentee before: Huawei Device Co., Ltd.

TR01 Transfer of patent right
CP01 Change in the name or title of a patent holder

Address after: 523808 Southern Factory Building (Phase I) Project B2 Production Plant-5, New Town Avenue, Songshan Lake High-tech Industrial Development Zone, Dongguan City, Guangdong Province

Patentee after: Huawei Device Co., Ltd.

Address before: 523808 Southern Factory Building (Phase I) Project B2 Production Plant-5, New Town Avenue, Songshan Lake High-tech Industrial Development Zone, Dongguan City, Guangdong Province

Patentee before: HUAWEI terminal (Dongguan) Co., Ltd.

CP01 Change in the name or title of a patent holder