CN106846455A - A kind of dynamic shadow processing terminal and method - Google Patents

A kind of dynamic shadow processing terminal and method Download PDF

Info

Publication number
CN106846455A
CN106846455A CN201710018420.6A CN201710018420A CN106846455A CN 106846455 A CN106846455 A CN 106846455A CN 201710018420 A CN201710018420 A CN 201710018420A CN 106846455 A CN106846455 A CN 106846455A
Authority
CN
China
Prior art keywords
shadow
dynamic shadow
dynamic
reduction
region
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN201710018420.6A
Other languages
Chinese (zh)
Other versions
CN106846455B (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.)
Nubia Technology Co Ltd
Original Assignee
Nubia Technology 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 Nubia Technology Co Ltd filed Critical Nubia Technology Co Ltd
Priority to CN201710018420.6A priority Critical patent/CN106846455B/en
Publication of CN106846455A publication Critical patent/CN106846455A/en
Application granted granted Critical
Publication of CN106846455B publication Critical patent/CN106846455B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T15/003D [Three Dimensional] image rendering
    • G06T15/50Lighting effects
    • G06T15/60Shadow generation

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Graphics (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Theoretical Computer Science (AREA)
  • Controls And Circuits For Display Device (AREA)
  • Telephone Function (AREA)

Abstract

The invention discloses a kind of dynamic shadow processing terminal and method, the dynamic shadow processing terminal includes memory module, reduction module, and memory module caches original dynamic shadow region;Reduction module is reduced according to preset rules to the original dynamic shadow region area, obtains reduction dynamic shadow region.The invention also discloses a kind of dynamic shadow processing method.The dynamic shadow processing terminal and method provided by the present invention, are reduced to original dynamic shadow region, so as to reduce the amount of calculation to dynamic shadow, improve calculation process speed, effectively reduce the Caton phenomenon of terminal applies.

Description

A kind of dynamic shadow processing terminal and method
Technical field
The present invention relates to moving communicating field, more particularly to a kind of dynamic shadow processing terminal and method.
Background technology
During terminal shows, in order to ensure that word can be with it is clear that preferably carry out table under complex background to word It is existing, it will usually for word adds shade.By taking android system as an example, at Interface Moving (such as desktop slip), if word is cloudy Shadow will not change with the movement at interface, we term it static shade;If word shade can be real-time with the movement at interface Change, we turn into dynamic shadow.
Dynamic shadow typically includes two classes again:The shade having behind monoblock word referred to as region word shade, by picture The shade that element is recognized and added is we term it Pixel-level shade.
Existing above two dynamic shadow, when shade is moved, will carry out Pixel-level calculating, amount of calculation mistake to dynamic shadow Greatly, graphic operation processing speed is influenceed, generally all therefore can causes terminal applies interim card, should as hindering dynamic shadow to promote Main cause.
The content of the invention
In consideration of it, the present invention proposes a kind of dynamic shadow processing terminal and method, it is intended to solve in the prior art, dynamic is cloudy Shadow is computationally intensive, causes using the technical problem of interim card.
To achieve the above object, one aspect of the present invention provides a kind of dynamic shadow processing terminal, including:
Memory module, for caching original dynamic shadow region;
Reduction module, for being reduced to the original dynamic shadow region area according to preset rules, is reduced Dynamic shadow region.
Alternatively, the reduction module includes:
Scaled down module, for being reduced to the original dynamic shadow region area according to preset ratio;
And/or,
Summation module, for the pixel summation to vertical shading region moving direction.
Alternatively, the dynamic shadow processing terminal also includes multiple stream handles;
The stream handle, for carrying out carrying out differentiation treatment to respective pixel according to default GPU shader programs.
Alternatively, the dynamic shadow processing terminal also includes:
Determining module, the Shadow Parameters for determining the reduction dynamic shadow area pixel;
Assignment module, for carrying out assignment to reduction dynamic shadow region respective pixel according to the Shadow Parameters.
Alternatively, the determining module includes:
Respective modules, it is corresponding in the original dynamic shadow region for determining reduction dynamic shadow area pixel position Location of pixels;
Acquisition module, for gathering the Shadow Parameters of the original dynamic shadow region respective pixel position as the contracting Subtract the Shadow Parameters of dynamic shadow area pixel.
Another aspect of the present invention also provides a kind of dynamic shadow processing method, including:
Cache original dynamic shadow region;
The original dynamic shadow region area is reduced according to preset rules, obtains reduction dynamic shadow region.
Alternatively, it is described reduction is carried out to the Pixel Information in the shadow region according to preset rules to include:
The original dynamic shadow region area is reduced according to preset ratio;
And/or,
Pixel summation to vertical shading region moving direction.
Alternatively, methods described also includes:
Determine the Shadow Parameters of the reduction dynamic shadow area pixel;
Assignment is carried out to reduction dynamic shadow region respective pixel according to the Shadow Parameters.
Alternatively, the Shadow Parameters for determining the reduction dynamic shadow area pixel include:
It is determined that reduction dynamic shadow area pixel position is in the corresponding location of pixels in the original dynamic shadow region;
The Shadow Parameters of the original dynamic shadow region respective pixel position are gathered as the reduction dynamic shadow area The Shadow Parameters of domain pixel.
Alternatively, the Shadow Parameters include:Shadow color, shade direction, viewpoint.
Dynamic shadow processing terminal provided in an embodiment of the present invention and method, contract by original dynamic shadow region Subtract, so as to reduce the amount of calculation to dynamic shadow, improve calculation process speed, effectively reduce the Caton phenomenon of terminal applies.
Brief description of the drawings
Fig. 1 is the hardware architecture diagram of the optional mobile terminal for realizing each embodiment of the invention;
Fig. 2 is the wireless communication system schematic diagram of mobile terminal as shown in Figure 1;
Fig. 3 is the front view of dynamic shadow processing terminal in the embodiment of the present invention;
Fig. 4 is the rearview of dynamic shadow processing terminal in the embodiment of the present invention;
Fig. 5 is to be hold by one hand the schematic diagram of dynamic shadow processing terminal in the embodiment of the present invention;
Fig. 6 is a kind of composition structural representation of dynamic shadow processing terminal in the embodiment of the present invention;
Fig. 7 is a kind of schematic diagram of reduction mode in embodiment of the present invention Central Plains initiating state shadow region;
Fig. 8 is the schematic diagram of embodiment of the present invention Central Plains initiating state shadow region another kind reduction mode;
Fig. 9 is embodiment of the present invention Central Plains initiating state shadow region location of pixels and reduction dynamic shadow area pixel position Corresponding schematic diagram;
Figure 10 is a kind of flow chart of dynamic shadow processing method in the embodiment of the present invention.
The realization of the object of the invention, functional characteristics and advantage will be described further referring to the drawings in conjunction with the embodiments.
Specific embodiment
It should be appreciated that the specific embodiments described herein are merely illustrative of the present invention, it is not intended to limit the present invention.
The dynamic shadow processing terminal that the present invention is provided can be embodied in the way of mobile terminal.Now will ginseng Examine the mobile terminal that Description of Drawings realizes each embodiment of the invention.In follow-up description, using for representing all of element If the suffix of " module ", " part " or " unit " is only for being conducive to explanation of the invention, itself do not have specific meaning. Therefore, " module " can be used mixedly with " part ".
Mobile terminal can be implemented in a variety of manners.For example, the terminal described in the present invention can include such as moving Phone, smart phone, notebook computer, digit broadcasting receiver, PDA (personal digital assistant), PAD (panel computer), PMP The mobile terminal of (portable media player), guider etc. and such as numeral TV, desktop computer etc. are consolidated Determine terminal.Hereinafter it is assumed that terminal is mobile terminal.However, it will be understood by those skilled in the art that, except being used in particular for movement Outside the element of purpose, construction according to the embodiment of the present invention can also apply to the terminal of fixed type.
Fig. 1 is that the hardware configuration of the optional mobile terminal for realizing each embodiment of the invention is illustrated.
Mobile terminal 1 00 can include wireless communication unit 110, A/V (audio/video) input block 120, user input Unit 130, sensing unit 140, output unit 150, memory 160, interface unit 170, controller 180 and power subsystem 190, Detection unit 120 etc..Fig. 1 shows the mobile terminal with various assemblies, it should be understood that being not required for implementing institute There is the component for showing.More or less component can alternatively be implemented.The element of mobile terminal will be discussed in more detail below.
Wireless communication unit 110 generally includes one or more assemblies, and it allows mobile terminal 1 00 and wireless communication system Or the radio communication between network.For example, wireless communication unit can include broadcasting reception module 111, mobile communication module 112nd, at least one of wireless Internet module 113, short range communication module 114 and location information module 115.
Broadcasting reception module 111 receives broadcast singal and/or broadcast via broadcast channel from external broadcast management server Relevant information.Broadcast channel can include satellite channel and/or terrestrial channel.Broadcast management server can be generated and sent The broadcast singal and/or broadcast related information generated before the server or reception of broadcast singal and/or broadcast related information And send it to the server of terminal.Broadcast singal can include TV broadcast singals, radio signals, data broadcasting Signal etc..And, broadcast singal may further include the broadcast singal combined with TV or radio signals.Broadcast phase Pass information can also be provided via mobile communications network, and in this case, broadcast related information can be by mobile communication mould Block 112 is received.Broadcast singal can exist in a variety of manners, for example, it can be with the electronics of DMB (DMB) The form of program guide (EPG), the electronic service guidebooks (ESG) of digital video broadcast-handheld (DVB-H) etc. and exist.Broadcast Receiver module 111 can receive signal and broadcast by using various types of broadcast systems.Especially, broadcasting reception module 111 Can be wide by using such as multimedia broadcasting-ground (DMB-T), DMB-satellite (DMB-S), digital video Broadcast-hand-held (DVB-H), forward link media (MediaFLO@) Radio Data System, received terrestrial digital broadcasting integrated service Etc. (ISDB-T) digit broadcasting system receives digital broadcasting.Broadcasting reception module 111 may be constructed such that and be adapted to provide for extensively Broadcast the various broadcast systems and above-mentioned digit broadcasting system of signal.Via broadcasting reception module 111 receive broadcast singal and/ Or broadcast related information can be stored in memory 160 (or other types of storage medium).
Mobile communication module 112 sends radio signals to base station (for example, access point, node B etc.), exterior terminal And at least one of server and/or receive from it radio signal.Such radio signal can be logical including voice Words signal, video calling signal or the various types of data for sending and/or receiving according to text and/or Multimedia Message.
Wireless Internet module 113 supports the Wi-Fi (Wireless Internet Access) of mobile terminal.The module can be internally or externally It is couple to terminal.Wi-Fi (Wireless Internet Access) technology involved by the module can include WLAN (WLAN) (Wi-Fi), Wibro (WiMAX), Wimax (worldwide interoperability for microwave accesses), HSDPA (high-speed downlink packet access) etc..
Short range communication module 114 is the module for supporting junction service.Some examples of short-range communication technology include indigo plant ToothTM, radio frequency identification (RFID), Infrared Data Association (IrDA), ultra wide band (UWB), purple honeybeeTMEtc..
Location information module 115 is the module for checking or obtaining the positional information of mobile terminal.Location information module Typical case be GPS (global positioning system).According to current technology, GPS module 115 is calculated and comes from three or more satellites Range information and correct time information and the Information application triangulation for calculating, so as to according to longitude, latitude Highly accurately calculate three-dimensional current location information.Currently, defended using three for calculating the method for position and temporal information Star and the position that is calculated by using other satellite correction and the error of temporal information.Additionally, GPS module 115 Can be by Continuous plus current location information in real time come calculating speed information.
A/V input blocks 120 are used to receive audio or video signal.A/V input blocks 120 can include the He of camera 121 Microphone 1220, the static map that 121 pairs, camera is obtained in Video Capture pattern or image capture mode by image capture apparatus The view data of piece or video is processed.Picture frame after treatment may be displayed on display unit 151.At camera 121 Picture frame after reason can be stored in memory 160 (or other storage mediums) or carried out via wireless communication unit 110 Send, two or more cameras 1210 can be provided according to the construction of mobile terminal.Microphone 122 can be in telephone relation mould Sound (voice data) is received via microphone in formula, logging mode, speech recognition mode etc. operational mode, and can be by Such acoustic processing is voice data.Audio (voice) data after treatment can be changed in the case of telephone calling model For the form that can be sent to mobile communication base station via mobile communication module 112 is exported.Microphone 122 can implement all kinds Noise eliminate (or suppress) algorithm eliminating (or suppression) in the noise for receiving and producing during sending audio signal or Person disturbs.
User input unit 130 can generate key input data to control each of mobile terminal according to the order of user input Plant operation.User input unit 130 allows the various types of information of user input, and can include keyboard, metal dome, touch Plate (for example, detection due to being touched caused by resistance, pressure, electric capacity etc. change sensitive component), roller, rocking bar etc. Deng.Especially, when touch pad is superimposed upon on display unit 151 in the form of layer, touch-screen can be formed.
Sensing unit 140 detects the current state of mobile terminal 1 00, (for example, mobile terminal 1 00 opens or closes shape State), the presence or absence of the contact (that is, touch input) of the position of mobile terminal 1 00, user for mobile terminal 1 00, mobile terminal The acceleration or deceleration movement of 100 orientation, mobile terminal 1 00 and direction etc., and generate for controlling mobile terminal 1 00 The order of operation or signal.For example, when mobile terminal 1 00 is embodied as sliding-type mobile phone, sensing unit 140 can be sensed The sliding-type phone is opened or closed.In addition, sensing unit 140 can detect power subsystem 190 whether provide electric power or Whether person's interface unit 170 couples with external device (ED).
Interface unit 170 is connected the interface that can pass through with mobile terminal 1 00 as at least one external device (ED).For example, External device (ED) can include wired or wireless head-band earphone port, external power source (or battery charger) port, wired or nothing Line FPDP, memory card port, the port for connecting the device with identification module, audio input/output (I/O) end Mouth, video i/o port, ear port etc..Identification module can be that storage uses each of mobile terminal 1 00 for verifying user Kind of information and subscriber identification module (UIM), client identification module (SIM), Universal Subscriber identification module (USIM) can be included Etc..In addition, the device (hereinafter referred to as " identifying device ") with identification module can take the form of smart card, therefore, know Other device can be connected via port or other attachment means with mobile terminal 1 00.Interface unit 170 can be used for reception and come from The input (for example, data message, electric power etc.) of the external device (ED) and input that will be received is transferred in mobile terminal 1 00 One or more elements can be used for transmitting data between mobile terminal and external device (ED).
In addition, when mobile terminal 1 00 is connected with external base, interface unit 170 can serve as allowing by it by electricity Power provides to the path of mobile terminal 1 00 from base or can serve as allowing the various command signals being input into from base to pass through it It is transferred to the path of mobile terminal.Be can serve as recognizing that mobile terminal is from the various command signals or electric power of base input The no signal being accurately fitted within base.Output unit 150 is configured to provide defeated with vision, audio and/or tactile manner Go out signal (for example, audio signal, vision signal, alarm signal, vibration signal etc.).Output unit 150 can include display Unit 151, dio Output Modules 152, alarm unit 153 etc..
Display unit 151 may be displayed on the information processed in mobile terminal 1 00.For example, when mobile terminal 1 00 is in electricity During words call mode, display unit 151 can show and converse or other communicate (for example, text messaging, multimedia file Download etc.) related user interface (UI) or graphic user interface (GUI).When mobile terminal 1 00 is in video calling pattern Or during image capture mode, display unit 151 can show the image of capture and/or the image of reception, show video or figure UI or GUI of picture and correlation function etc..
Meanwhile, when display unit 151 and touch pad in the form of layer it is superposed on one another to form touch-screen when, display unit 151 can serve as input unit and output device.Display unit 151 can include liquid crystal display (LCD), thin film transistor (TFT) In LCD (TFT-LCD), Organic Light Emitting Diode (OLED) display, flexible display, three-dimensional (3D) display etc. at least It is a kind of.Some in these displays may be constructed such that transparence to allow user to be watched from outside, and this is properly termed as transparent Display, typical transparent display can be, for example, TOLED (transparent organic light emitting diode) display etc..According to specific Desired implementation method, mobile terminal 1 00 can include two or more display units (or other display devices), for example, moving Dynamic terminal can include outernal display unit (not shown) and inner display unit (not shown).Touch-screen can be used to detect touch Input pressure and touch input position and touch input area.
Dio Output Modules 152 can mobile terminal be in call signal reception pattern, call mode, logging mode, It is that wireless communication unit 110 is received or in memory 160 when under the isotypes such as speech recognition mode, broadcast reception mode The voice data transducing audio signal of middle storage and it is output as sound.And, dio Output Modules 152 can be provided and movement The audio output (for example, call signal receives sound, message sink sound etc.) of the specific function correlation that terminal 100 is performed. Dio Output Modules 152 can include loudspeaker, buzzer etc..
Alarm unit 153 can provide output and be notified to mobile terminal 1 00 with by event.Typical event can be with Including calling reception, message sink, key signals input, touch input etc..In addition to audio or video is exported, alarm unit 153 can in a different manner provide output with the generation of notification event.For example, alarm unit 153 can be in the form of vibrating Output is provided, when calling, message or some other entrance communication (incomingcommunication) are received, alarm list Unit 153 can provide tactile output (that is, vibrating) to notify to user.Exported by providing such tactile, even if When in pocket of the mobile phone of user in user, user also can recognize that the generation of various events.Alarm unit 153 The output of the generation of notification event can be provided via display unit 151 or dio Output Modules 152.
Memory 160 can store software program for the treatment and control operation performed by controller 180 etc., Huo Zheke Temporarily to store oneself data (for example, telephone directory, message, still image, video etc.) through exporting or will export.And And, memory 160 can store the vibration of various modes on being exported when touching and being applied to touch-screen and audio signal Data.
Memory 160 can include the storage medium of at least one type, and the storage medium includes flash memory, hard disk, many Media card, card-type memory (for example, SD or DX memories etc.), random access storage device (RAM), static random-access storage Device (SRAM), read-only storage (ROM), Electrically Erasable Read Only Memory (EEPROM), programmable read only memory (PROM), magnetic storage, disk, CD etc..And, mobile terminal 1 00 can perform memory with by network connection The network storage device cooperation of 160 store function.
The overall operation of the generally control mobile terminal of controller 180.For example, controller 180 is performed and voice call, data Communication, video calling etc. related control and treatment.In addition, controller 180 can be included for reproducing (or playback) many matchmakers The multi-media module 1810 of volume data, multi-media module 1810 can be constructed in controller 180, or can be structured as and control Device processed 180 is separated.Controller 180 can be with execution pattern identifying processing, the handwriting input that will be performed on the touchscreen or figure Piece draws input and is identified as character or image.
Power subsystem 190 receives external power or internal power under the control of controller 180 and provides operation each unit Appropriate electric power needed for part and component.
Various implementation methods described herein can be with use such as computer software, hardware or its any combination of calculating Machine computer-readable recording medium is implemented.Implement for hardware, implementation method described herein can be by using application-specific IC (ASIC), digital signal processor (DSP), digital signal processing device (DSPD), programmable logic device (PLD), scene can Programming gate array (FPGA), processor, controller, microcontroller, microprocessor, it is designed to perform function described herein At least one in electronic unit is implemented, and in some cases, such implementation method can be implemented in controller 180. For software implementation, the implementation method of such as process or function can with allow to perform the single of at least one function or operation Software module is implemented.Software code can be come by the software application (or program) write with any appropriate programming language Implement, software code can be stored in memory 160 and performed by controller 180.
So far, oneself according to its function through describing mobile terminal.Below, for the sake of brevity, will description such as folded form, Slide type mobile terminal in various types of mobile terminals of board-type, oscillating-type, slide type mobile terminal etc. is used as showing Example.Therefore, the present invention can be applied to any kind of mobile terminal, and be not limited to slide type mobile terminal.
Mobile terminal 1 00 as shown in Figure 1 may be constructed such that using via frame or packet transmission data it is all if any Line and wireless communication system and satellite-based communication system are operated.
The communication system that mobile terminal wherein of the invention can be operated is described referring now to Fig. 2.
Such communication system can use different air interface and/or physical layer.For example, used by communication system Air interface includes such as frequency division multiple access (FDMA), time division multiple acess (TDMA), CDMA (CDMA) and universal mobile communications system System (UMTS) (especially, Long Term Evolution (LTE)), global system for mobile communications (GSM) etc..As non-limiting example, under The description in face is related to cdma communication system, but such teaching is equally applicable to other types of system.
With reference to Fig. 2, cdma wireless communication system can include multiple mobile terminal 1s 00, multiple base station (BS) 270, base station Controller (BSC) 275 and mobile switching centre (MSC) 280.MSC280 is configured to and Public Switched Telephony Network (PSTN) 290 form interface.MSC280 is also structured to form interface with the BSC275 that can be couple to base station 270 via back haul link. If any one in the interface that back haul link can be known according to Ganji is constructed, the interface includes such as E1/T1, ATM, IP, PPP, frame relay, HDSL, ADSL or xDSL.It will be appreciated that system can include multiple BSC2750 as shown in Figure 2.
Each BS270 can service one or more subregions (or region), by multidirectional antenna or the day of sensing specific direction Each subregion of line covering is radially away from BS270.Or, each subregion can be by two or more for diversity reception Antenna is covered.Each BS270 may be constructed such that the multiple frequency distribution of support, and the distribution of each frequency has specific frequency spectrum (for example, 1.25MHz, 5MHz etc.).
What subregion and frequency were distributed intersects can be referred to as CDMA Channel.BS270 can also be referred to as base station transceiver System (BTS) or other equivalent terms.In this case, term " base station " can be used for broadly representing single BSC275 and at least one BS270.Base station can also be referred to as " cellular station ".Or, each subregion of specific BS270 can be claimed It is multiple cellular stations.
As shown in Figure 2, broadcast singal is sent to broadcsting transmitter (BT) 295 mobile terminal operated in system 100.Broadcasting reception module 111 as shown in Figure 1 is arranged at mobile terminal 1 00 to receive the broadcast sent by BT295 Signal.In fig. 2 it is shown that several global positioning system (GPS) satellites 300.Satellite 300 helps position multiple mobile terminals At least one of 100.
In fig. 2, multiple satellites 300 are depicted, it is understood that be, it is possible to use any number of satellite obtains useful Location information.GPS module 115 as shown in Figure 1 is generally configured to coordinate with satellite 300 to be believed with obtaining desired positioning Breath.Substitute GPS tracking techniques or outside GPS tracking techniques, it is possible to use other of the position of mobile terminal can be tracked Technology.In addition, at least one gps satellite 300 can optionally or additionally process satellite dmb transmission.
Used as a typical operation of wireless communication system, BS270 receives the reverse link from various mobile terminal 1s 00 Signal.Mobile terminal 1 00 generally participates in call, information receiving and transmitting and other types of communication.Each of the reception of certain base station 270 is anti- Processed in specific BS270 to link signal.The data of acquisition are forwarded to the BSC275 of correlation.BSC provides call Resource allocation and the mobile management function of the coordination including the soft switching process between BS270.The number that BSC275 will also be received According to MSC280 is routed to, it provides the extra route service for forming interface with PSTN290.Similarly, PSTN290 with MSC280 forms interface, and MSC and BSC275 form interface, and BSC275 correspondingly controls BS270 with by forward link signals It is sent to mobile terminal 1 00.
Based on above-mentioned mobile terminal hardware configuration and communication system, each embodiment of the invention is proposed.
An embodiment of the present invention provides device on mobile terminals to dynamic shadow treatment, it is clear that in the present invention the In one embodiment, the device to dynamic shadow treatment can be realized by mobile terminal on mobile terminals.
It should be noted that the memory for data storage is provided with mobile terminal, here, to being deposited on mobile terminal The type of reservoir is not limited.
Here, mobile terminal include but is not limited to mobile phone, smart phone, notebook computer, digit broadcasting receiver, PDA, PAD, PMP, guider etc..
Here, if mobile terminal has operating system, the operating system can be UNIX, Linux, Windows, Android (Android), Windows Phone etc..
Illustrated in case of mobile terminal is mobile phone below.
In the first embodiment of the invention, Fig. 3 is the front view of mobile terminal in first embodiment of the invention, and Fig. 4 is this The rearview of mobile terminal in invention first embodiment.
Here, the mobile terminal also has portability, and specifically, mobile terminal can be realized being hold by one hand, in this way, each When kind of scene needs to carry out dynamic shadow to process, it is possible to use the portability of mobile terminal realizes that dynamic shadow is processed, and Fig. 5 is this The schematic diagram of mobile terminal is hold by one hand in invention first embodiment.
Fig. 6 is a kind of composition structural representation of dynamic shadow processing terminal 6 of first embodiment of the invention, as shown in fig. 6, Dynamic shadow processing terminal 6 includes memory module 61, for caching original dynamic shadow region;Reduction module 62, for basis Preset rules are reduced to the original dynamic shadow region area, obtain reduction dynamic shadow region.
Wherein, original dynamic shadow region is the shadow region comprising monoblock word, and the shadow region can be rectangle, circle The regular shapes such as shape, heart, may also be irregular shape.
In a kind of preferably implementation method, reduction module 62 includes:
Scaled down module 621, for being reduced to the original dynamic shadow region area according to preset ratio.
For example for the original dynamic shadow region of rectangle in Fig. 7, the length and width of rectangle can be simultaneously reduced to original / 3rd of length, then rectangular area be reduced to 1/9th of original area, so, the amount of calculation to dynamic shadow can contract It is small nearly 9 times, calculation process speed is improve, effectively reduce the Caton phenomenon of terminal applies.
In another preferably implementation method, reduction module 62 includes:
Summation module 622, for the pixel summation to vertical shading region moving direction.
This mode is applied to the scene of dynamic shadow region one direction movement, for example:Desktop and this word list of screen locking To mobile scene.Wherein, as shown in figure 8, desktop text moving direction is horizontal, i.e., along capable direction.Desktop text has Original dynamic shadow region Q, caches the corresponding m rows of original dynamic shadow region Q, n and arranges by memory module 61, summation module 622 pairs of vertical shading region moving directions, the i.e. pixel to column direction are sued for peace, and as a result need to only retain n pixel.Then desktop text When mobile, the amount of calculation to dynamic shadow can reduce m times, improve calculation process speed, effectively reduce the interim card of terminal applies Phenomenon.
Screen locking character motion direction is vertical, then summation module 622 is to vertical shading region moving direction, i.e., to line direction Pixel summation, as a result need to only retain m pixel of column direction.Then during screen locking character motion, the amount of calculation to dynamic shadow can N times is reduced, calculation process speed is improve, the Caton phenomenon of terminal applies is effectively reduced.
In another embodiment, the dynamic shadow processing terminal 6 also includes multiple stream handles;
The stream handle, for carrying out carrying out differentiation treatment to respective pixel according to default GPU shader programs.This The mode of kind can carry out differentiation treatment to each pixel, have multiple stream handles using GPU, can carry out parallel computation, pass through Default GPU shader programs so that each stream process carries out a differentiation for pixel, so by serial computing parallelization, can be with The increase operation efficiency of hundreds times.
In another embodiment, dynamic shadow processing terminal 6 also includes:
Determining module, the Shadow Parameters for determining the reduction dynamic shadow area pixel.
In the embodiment of the present invention, determining module is further included:
Respective modules, it is corresponding in the original dynamic shadow region for determining reduction dynamic shadow area pixel position Location of pixels;
The length and width in the original dynamic shadow region of rectangle is respectively reduced 2 times by such as scaled down module 621, then can be determined Every two location of pixels in location of pixels correspondence reduction dynamic shadow region in original dynamic shadow region.For example, Fig. 9 In, 1,4, No. 7 pixels correspond to 1,2, No. 3 pixels in reduction dynamic shadow region respectively in original dynamic shadow region.
Acquisition module, for gathering the Shadow Parameters of the original dynamic shadow region respective pixel position as the contracting Subtract the Shadow Parameters of dynamic shadow area pixel.
Wherein, Shadow Parameters can be including shadow color, shade direction, viewpoint etc..
The present embodiment dynamic shadow processing terminal 6 also includes:
Assignment module, for carrying out assignment to reduction dynamic shadow region respective pixel according to the Shadow Parameters.
Through the above way, the present invention is compared by the calculating to each pixel of reduction dynamic shadow area according to region Mode carries out attribute assignment to each pixel, has only used basic ratio, assignment operation, realizes asking for shadow dynamic display Topic.
Based on above-mentioned mobile terminal hardware configuration and communication system, the inventive method each embodiment is proposed.
As shown in Figure 10, the present invention proposes a kind of dynamic shadow processing method, and the method includes:
S101, the original dynamic shadow region of caching;
Wherein, original dynamic shadow region is the shadow region comprising monoblock word, and the shadow region can be rectangle, circle The regular shapes such as shape, heart, may also be irregular shape.
S102, the original dynamic shadow region area is reduced according to preset rules, obtain reducing dynamic shadow Region.
Specifically, this step can include following two implementations:
Mode one:The original dynamic shadow region area is reduced according to preset ratio;
For example for the original dynamic shadow region of rectangle in Fig. 7, the length and width of rectangle can be simultaneously reduced to original / 3rd of length, then rectangular area be reduced to 1/9th of original area, so, the amount of calculation to dynamic shadow can contract It is small nearly 9 times, calculation process speed is improve, effectively reduce the Caton phenomenon of terminal applies.
Mode two:
This mode is applied to the scene of dynamic shadow region one direction movement, for example:Desktop and this word list of screen locking To mobile scene.Wherein, as shown in figure 8, desktop text moving direction is horizontal, i.e., along capable direction.Desktop text has Original dynamic shadow region Q, caches the corresponding m rows of original dynamic shadow region Q, n and arranges by memory module 61, summation module 622 pairs of vertical shading region moving directions, the i.e. pixel to column direction are sued for peace, and as a result need to only retain n pixel.Then desktop text When mobile, the amount of calculation to dynamic shadow can reduce m times, improve calculation process speed, effectively reduce the interim card of terminal applies Phenomenon.
Screen locking character motion direction is vertical, then summation module 622 is to vertical shading region moving direction, i.e., to line direction Pixel summation, as a result need to only retain m pixel of column direction.Then during screen locking character motion, the amount of calculation to dynamic shadow can N times is reduced, calculation process speed is improve, the Caton phenomenon of terminal applies is effectively reduced.
S103, the Shadow Parameters for determining the reduction dynamic shadow area pixel.
This step is specifically included:
S1030, determine reduction dynamic shadow area pixel position in the corresponding pixel position in the original dynamic shadow region Put;
Exemplary, if the length and width in the original dynamic shadow region of rectangle is respectively reduced into 2 times, original dynamic can be determined Every two location of pixels in location of pixels correspondence reduction dynamic shadow region in shadow region.For example, in Fig. 9, it is original 1,4, No. 7 pixels correspond to 1,2, No. 3 pixels in reduction dynamic shadow region respectively in dynamic shadow region.
S1031, the Shadow Parameters of the collection original dynamic shadow region respective pixel position are used as the reduction dynamic The Shadow Parameters of shadow region pixel.
Wherein, the Shadow Parameters include:Shadow color, shade direction, viewpoint.
S104, assignment is carried out to reduction dynamic shadow region respective pixel according to the Shadow Parameters.
It should be noted that herein, term " including ", "comprising" or its any other variant be intended to non-row His property is included, so that process, method, article or device including a series of key elements not only include those key elements, and And also include other key elements being not expressly set out, or also include for this process, method, article or device institute are intrinsic Key element.In the absence of more restrictions, the key element limited by sentence "including a ...", it is not excluded that including this Also there is other identical element in the process of key element, method, article or device.
The embodiments of the present invention are for illustration only, and the quality of embodiment is not represented.
Through the above description of the embodiments, those skilled in the art can be understood that above-described embodiment side Method can add the mode of required general hardware platform to realize by software, naturally it is also possible to by hardware, but in many cases The former is more preferably implementation method.Based on such understanding, technical scheme is substantially done to prior art in other words The part for going out contribution can be embodied in the form of software product, and the computer software product is stored in a storage medium In (such as ROM/RAM, magnetic disc, CD), including some instructions are used to so that a station terminal equipment (can be mobile phone, computer, clothes Business device, air-conditioner, or network equipment etc.) perform method described in each embodiment of the invention.
The preferred embodiments of the present invention are these are only, the scope of the claims of the invention is not thereby limited, it is every to utilize this hair Equivalent structure or equivalent flow conversion that bright specification and accompanying drawing content are made, or directly or indirectly it is used in other related skills Art field, is included within the scope of the present invention.

Claims (10)

1. a kind of dynamic shadow processing terminal, it is characterised in that including:
Memory module, for caching original dynamic shadow region;
Reduction module, for reducing to the original dynamic shadow region area according to preset rules, obtains reduction dynamic Shadow region.
2. dynamic shadow processing terminal according to claim 1, it is characterised in that the reduction module includes:
Scaled down module, for being reduced to the original dynamic shadow region area according to preset ratio;
And/or,
Summation module, for the pixel summation to vertical shading region moving direction.
3. dynamic shadow processing terminal according to claim 1, it is characterised in that the dynamic shadow processing terminal is also wrapped Include multiple stream handles;
The stream handle, for carrying out carrying out differentiation treatment to respective pixel according to default GPU shader programs.
4. dynamic shadow processing terminal according to claim 3, it is characterised in that the dynamic shadow processing terminal is also wrapped Include:
Determining module, the Shadow Parameters for determining the reduction dynamic shadow area pixel;
Assignment module, for carrying out assignment to reduction dynamic shadow region respective pixel according to the Shadow Parameters.
5. dynamic shadow processing terminal according to claim 4, it is characterised in that the determining module includes:
Respective modules, for determining reduction dynamic shadow area pixel position in the corresponding pixel in the original dynamic shadow region Position;
Acquisition module, the Shadow Parameters for gathering the original dynamic shadow region respective pixel position are dynamic as the reduction The Shadow Parameters of state shadow region pixel.
6. a kind of dynamic shadow processing method, it is characterised in that including:
Cache original dynamic shadow region;
The original dynamic shadow region area is reduced according to preset rules, obtains reduction dynamic shadow region.
7. dynamic shadow processing method according to claim 6, it is characterised in that it is described according to preset rules to described the moon Pixel Information in the domain of shadow zone carries out reduction to be included:
The original dynamic shadow region area is reduced according to preset ratio;
And/or,
Pixel summation to vertical shading region moving direction.
8. the dynamic shadow processing method according to claim 6 or 7, it is characterised in that:Methods described also includes:
Determine the Shadow Parameters of the reduction dynamic shadow area pixel;
Assignment is carried out to reduction dynamic shadow region respective pixel according to the Shadow Parameters.
9. dynamic shadow processing method according to claim 8, it is characterised in that the determination reduction dynamic shadow The Shadow Parameters of area pixel include:
It is determined that reduction dynamic shadow area pixel position is in the corresponding location of pixels in the original dynamic shadow region;
The Shadow Parameters of the original dynamic shadow region respective pixel position are gathered as reduction dynamic shadow region picture The Shadow Parameters of element.
10. dynamic shadow processing method according to claim 8, it is characterised in that the Shadow Parameters include:Shade face Color, shade direction, viewpoint.
CN201710018420.6A 2017-01-10 2017-01-10 Dynamic shadow processing terminal and method Active CN106846455B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710018420.6A CN106846455B (en) 2017-01-10 2017-01-10 Dynamic shadow processing terminal and method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710018420.6A CN106846455B (en) 2017-01-10 2017-01-10 Dynamic shadow processing terminal and method

Publications (2)

Publication Number Publication Date
CN106846455A true CN106846455A (en) 2017-06-13
CN106846455B CN106846455B (en) 2020-12-15

Family

ID=59118027

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710018420.6A Active CN106846455B (en) 2017-01-10 2017-01-10 Dynamic shadow processing terminal and method

Country Status (1)

Country Link
CN (1) CN106846455B (en)

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102739976A (en) * 2011-05-17 2012-10-17 新奥特(北京)视频技术有限公司 Method and system for realizing dynamic two-dimensional subtitle of shadow
CN103886577A (en) * 2013-11-26 2014-06-25 天津思博科科技发展有限公司 Shadow processor
CN104103092A (en) * 2014-07-24 2014-10-15 无锡梵天信息技术股份有限公司 Real-time dynamic shadowing realization method based on projector lamp
CN104933746A (en) * 2015-05-21 2015-09-23 广东欧珀移动通信有限公司 Method and device for setting dynamic shadow for plane image
CN104966313A (en) * 2015-06-12 2015-10-07 浙江大学 Geometric shadow map method for triangle reconstruction
US9530243B1 (en) * 2013-09-24 2016-12-27 Amazon Technologies, Inc. Generating virtual shadows for displayable elements

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102739976A (en) * 2011-05-17 2012-10-17 新奥特(北京)视频技术有限公司 Method and system for realizing dynamic two-dimensional subtitle of shadow
US9530243B1 (en) * 2013-09-24 2016-12-27 Amazon Technologies, Inc. Generating virtual shadows for displayable elements
CN103886577A (en) * 2013-11-26 2014-06-25 天津思博科科技发展有限公司 Shadow processor
CN104103092A (en) * 2014-07-24 2014-10-15 无锡梵天信息技术股份有限公司 Real-time dynamic shadowing realization method based on projector lamp
CN104933746A (en) * 2015-05-21 2015-09-23 广东欧珀移动通信有限公司 Method and device for setting dynamic shadow for plane image
CN104966313A (en) * 2015-06-12 2015-10-07 浙江大学 Geometric shadow map method for triangle reconstruction

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
叶勤 等: "城市航空影像中基于颜色恒常性的阴影消除", 《光电子·激光》 *
曾平平: "大规模实例化场景的实时动态阴影生成算法", 《太原科技》 *

Also Published As

Publication number Publication date
CN106846455B (en) 2020-12-15

Similar Documents

Publication Publication Date Title
CN104750420B (en) Screenshotss method and device
CN104808944B (en) Touch operation inducing method and device
CN104735255B (en) Multi-screen display method and system
CN106911850A (en) Mobile terminal and its screenshotss method
CN106791480A (en) A kind of terminal and video skimming creation method
CN105430258B (en) A kind of method and apparatus of self-timer group photo
CN106850941A (en) Method, photo taking and device
CN106843723A (en) A kind of application program associates application method and mobile terminal
CN107018334A (en) A kind of applied program processing method and device based on dual camera
CN107092418A (en) The terminal and method of operation application suspension windows
CN106383707A (en) Picture display method and system
CN106791155A (en) A kind of volume adjustment device, volume adjusting method and mobile terminal
CN106406621B (en) A kind of mobile terminal and its method for handling touch control operation
CN104731484B (en) The method and device that picture is checked
CN106791149A (en) A kind of method of mobile terminal and control screen
CN106790994A (en) The triggering method and mobile terminal of control
CN106484534A (en) Control method for the mobile terminal of displaying and control device
CN105487710B (en) Screen video recorder and method based on pressure screen
CN104636044B (en) The method and mobile terminal of one-handed performance
CN104751074B (en) Image display processing method and device
CN106775381A (en) The apparatus and method of adjustment screen touch area
CN104750388B (en) Screen extended method and device
CN106802751A (en) A kind of terminal and screen display method
CN106713645A (en) Method of controlling loudspeaker playing and mobile terminal
CN106780408A (en) Image processing method and device

Legal Events

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