Multimedia resource decodes player method and device
Technical field
This disclosure relates to field of computer technology, more particularly to a kind of multimedia resource decoding player method and device.
Background technology
With the continuous popularization of terminal device, to high-quality multimedia resource (such as high definition, super clear, 1080P videos)
Broadcasting demand it is more and more, the broadcasting of multimedia resource experience is increasingly taken seriously.Meanwhile, in order to reduce high-quality video
H.265, transmission bandwidth, video compression standard of new generation also can be popularized more.Therefore, the decoding efficiency of terminal device would is that certainly
The fixed key factor for playing experience.
In the related art, multimedia resource is played in terminal device mainly has hard solution and soft solution two schemes, for example,
In the terminal device using Android system, a kind of scheme is that the Java layers of API provided using Android system player (applies journey
Sequence DLL) carry out hard solution broadcasting;Another scheme is to carry out soft solution using multimedia gallery of increasing income in local (Native) layer
Play.However, the encapsulation format that hard solution plays support is limited, the encapsulation format such as 3GPP, MPEG-4, MPEG-TS are only supported, can determined
Low degree processed;The broadcasting of soft solution can support multiple format, but when in face of high-resolution video, due to being decoded using software,
CPU usage is higher, and machine is easily hot, and power consumption is huge.
The content of the invention
In view of this, the present disclosure proposes a kind of multimedia resource decoding player method and device, in compatible various forms
While, reduce CPU usage and reduce power consumption.
According to the first aspect of the disclosure, there is provided a kind of multimedia resource decodes player method, including:Using multimedia
Resource processing routine, is decapsulated and is demultiplexed to multimedia resource file, is obtained first resource data to be decoded, is waited to solve
The Secondary resource data and decoding parametric of code;The Secondary resource data are decoded using multimedia resource processing routine,
Obtain decoded Secondary resource data;Based on the decoding parametric, the first resource data are carried out using hard decoders
Decoding, obtains decoded first resource data;To the decoded first resource data and decoded Secondary resource number
According to synchronizing;Play the decoded first resource data and the decoded Secondary resource data.
For the above method, in a kind of possible implementation, first resource data to be decoded, to be decoded are obtained
Secondary resource data and decoding parametric, including:The first resource data are delayed from the Native layers of byte for copying to Java layers
In depositing space.
For the above method, in a kind of possible implementation, first resource data to be decoded, to be decoded are obtained
Secondary resource data and decoding parametric, including:The input-buffer space of hard decoders is obtained, and using fair lock to described defeated
Enter spatial cache locking;The input that the first resource data Cun Chudao in the byte cache space has been locked is delayed
In depositing space.
For the above method, in a kind of possible implementation, based on the decoding parametric, using hard decoders to institute
State first resource data to be decoded, obtain decoded first resource data, including:The output caching for obtaining hard decoders is empty
Between, and the output spatial cache is locked using fair lock;By hard decoders to the input-buffer space that has locked
In the first resource data decoded, obtain decoded first resource data;By decoded first resource data
In storing the output spatial cache for having locked.
For the above method, in a kind of possible implementation, the multimedia resource processing routine includes FFmpeg.
For the above method, in a kind of possible implementation, the hard decoders include decoder MediaCodec.
For the above method, in a kind of possible implementation, the first resource data are video data, described the
Two resource datas are voice data.
According to the second aspect of the disclosure, there is provided a kind of multimedia resource decodes playing device, including:
Data acquisition module to be decoded, for utilizing multimedia resource processing routine, solves to multimedia resource file
Encapsulation and demultiplexing, obtain first resource data to be decoded, Secondary resource data to be decoded and decoding parametric;
Secondary resource data decoder module, for being carried out to the Secondary resource data using multimedia resource processing routine
Decoding, obtains decoded Secondary resource data;
First resource data decoder module, for based on the decoding parametric, using hard decoders to the first resource
Data are decoded, and obtain decoded first resource data;
Data simultaneous module, for being carried out to the decoded first resource data and decoded Secondary resource data
It is synchronous;
Playing module, for playing the decoded first resource data and the decoded Secondary resource data.
For said apparatus, in a kind of possible implementation, the data acquisition module to be decoded includes:
Data duplication submodule, the byte cache for the first resource data to be copied to Java layers from Native layers
In space.
For said apparatus, in a kind of possible implementation, the data acquisition module to be decoded includes:
Input-buffer obtains and locks submodule, the input-buffer space for obtaining hard decoders, and is locked using fair
The input-buffer space is locked;
Data input buffer submodule, for by the first resource data Cun Chudao in the byte cache space
In the input-buffer space for locking.
For said apparatus, in a kind of possible implementation, the first resource data decoder module includes:
Output caching obtains and locks submodule, the output spatial cache for obtaining hard decoders, and is locked using fair
The output spatial cache is locked;
Hard decoder submodule, for by hard decoders to first money in the input-buffer space that has locked
Source data is decoded, and obtains decoded first resource data;
Data output cache sub-module, for the output that decoded first resource data Cun Chudao has been locked to be delayed
In depositing space.
For said apparatus, in a kind of possible implementation, the multimedia resource processing routine includes FFmpeg.
For said apparatus, in a kind of possible implementation, the hard decoders include decoder MediaCodec.
For said apparatus, in a kind of possible implementation, the first resource data are video data, described the
Two resource datas are voice data.
According to the third aspect of the disclosure, there is provided a kind of multimedia resource decodes playing device, including:Processor;With
In the memory of storage processor-executable instruction;
Wherein, the processor is configured as:Using multimedia resource processing routine, multimedia resource file is solved
Encapsulation and demultiplexing, obtain first resource data to be decoded, Secondary resource data to be decoded and decoding parametric;Using many
Media resource processing routine is decoded to the Secondary resource data, obtains decoded Secondary resource data;Based on described
The first resource data are decoded by decoding parametric using hard decoders, obtain decoded first resource data;To institute
Decoded first resource data are stated to be synchronized with decoded Secondary resource data;Play the decoded first resource
Data and the decoded Secondary resource data.
According to the fourth aspect of the disclosure, there is provided a kind of non-volatile computer readable storage medium storing program for executing, when the storage
Instruction in medium by terminal and/or server computing device when so that it is many that terminal and/or server are able to carry out one kind
Media resource decodes player method, and methods described includes:Using multimedia resource processing routine, multimedia resource file is carried out
Decapsulation and demultiplexing, obtain first resource data to be decoded, Secondary resource data to be decoded and decoding parametric;Utilize
Multimedia resource processing routine is decoded to the Secondary resource data, obtains decoded Secondary resource data;Based on institute
Decoding parametric is stated, the first resource data are decoded using hard decoders, obtain decoded first resource data;It is right
The decoded first resource data are synchronized with decoded Secondary resource data;Play decoded first money
Source data and the decoded Secondary resource data.
Multimedia resource decoding player method and device according to the embodiment of the present disclosure, can be processed using multimedia resource
Program is decapsulated and demultiplexed to multimedia resource file, and first resource data are decoded using hard decoders, and
Played out after data syn-chronization, can compatible various encapsulation format, reduce CPU usage simultaneously reduce power consumption, lifted user's body
Test.
According to below with reference to the accompanying drawings to detailed description of illustrative embodiments, the further feature and aspect of the disclosure will become
It is clear.
Brief description of the drawings
Comprising in the description and accompanying drawing and the specification of the part that constitutes specification together illustrates the disclosure
Exemplary embodiment, feature and aspect, and for explaining the principle of the disclosure.
Fig. 1 is a kind of flow chart of multimedia resource decoding player method according to an exemplary embodiment.
Fig. 2 is a kind of flow chart of multimedia resource decoding player method according to an exemplary embodiment.
Fig. 3 is a kind of flow chart of multimedia resource decoding player method according to an exemplary embodiment.
The flow of the step of Fig. 4 is a kind of multimedia resource decoding player method according to an exemplary embodiment 13
Figure.
Fig. 5 is a kind of block diagram of multimedia resource decoding playing device according to an exemplary embodiment.
Fig. 6 is a kind of block diagram of multimedia resource decoding playing device according to an exemplary embodiment.
Fig. 7 is a kind of block diagram of multimedia resource decoding playing device according to an exemplary embodiment.
Specific embodiment
Describe various exemplary embodiments, feature and the aspect of the disclosure in detail below with reference to accompanying drawing.It is identical in accompanying drawing
Reference represent the same or analogous element of function.Although the various aspects of embodiment are shown in the drawings, remove
Non-specifically is pointed out, it is not necessary to accompanying drawing drawn to scale.
Special word " exemplary " means " being used as example, embodiment or illustrative " herein.Here as " exemplary "
Illustrated any embodiment should not necessarily be construed as preferred or advantageous over other embodiments.
In addition, in order to better illustrate the disclosure, numerous details are given in specific embodiment below.
It will be appreciated by those skilled in the art that without some details, the disclosure can equally be implemented.In some instances, for
Method well known to those skilled in the art, means, element and circuit are not described in detail, in order to highlight the purport of the disclosure.
Embodiment 1
Fig. 1 is a kind of flow chart of multimedia resource decoding player method according to an exemplary embodiment.The party
Method can be applied in terminal device (such as smart mobile phone) or server.As shown in figure 1, according to the multimedia of the embodiment of the present disclosure
Resource decoding player method includes:
Step S11, using multimedia resource processing routine, is decapsulated and is demultiplexed to multimedia resource file, is obtained
Take first resource data to be decoded, Secondary resource data to be decoded and decoding parametric;
The Secondary resource data are decoded by step S12 using multimedia resource processing routine, are obtained decoded
Secondary resource data;
The first resource data, based on the decoding parametric, are decoded by step S13 using hard decoders, are obtained
Decoded first resource data;
The decoded first resource data and decoded Secondary resource data are synchronized by step S14;
Step S15, plays the decoded first resource data and the decoded Secondary resource data.
Multimedia resource file can be unsealed using multimedia resource processing routine in accordance with an embodiment of the present disclosure
First resource data are decoded by dress and demultiplexing using hard decoders, and are played out after data syn-chronization, can be compatible
Various encapsulation format, reduce CPU usage and reduce power consumption, lift Consumer's Experience.
For example, for multimedia resource file, decapsulation reconciliation can be carried out using multimedia resource processing routine
The process of multiplexing, the decapsulation and demultiplexing is software mode, it is possible to achieve the multimedia resource file of various encapsulation format
Decapsulation and demultiplexing.By decapsulating and demultiplexing, first resource data to be decoded, the second money to be decoded can be obtained
Source data and decoding parametric.For Secondary resource data to be decoded, can be solved using multimedia resource processing routine
Code, obtains decoded Secondary resource data;For first resource data to be decoded, can be solved using hard decoders
Code, obtains decoded first resource data.
In a kind of possible implementation, the multimedia resource file can be, for example, video file, many matchmakers
Body resource processing routine can be, for example, FFmpeg, through decapsulation and demultiplexing after, acquired first resource number to be decoded
According to that can be video data, Secondary resource data to be decoded can be voice data.
This mode considers that video data decoding operand is larger, and video data is decoded using hard decoders,
The partial decoding of h work of CPU GPU is gone into, CPU usage is substantially reduced, CPU power consumption has been reduced, APP can have been made using more
It is smooth, it is to avoid cell-phone heating caused by CPU usage is too high, the problems such as power down is too fast, meanwhile, this mode considers audio
Data decoding operation amount is smaller, the decoding audio data by the way of soft decoding, the treatment of one side balance CPU and hardware code device
Amount, on the other hand can be such that soft, hard decoder carries out parallel, further improve treatment effeciency.In this way, improve terminal
Decoding capability so that terminal can play the video of more fine definition, meet user play high definition video demand.
In a kind of possible implementation, when terminal device uses Android system, the hard decoders can be peace
Tall and erect decoder MediaCodec.Wherein, the parameter required for the decoding parametric can be decoded including hard decoders, for example
Information parameter SPS/PPS, the painting canvas Surface for rendering needs, the timestamp comprising temporal information etc., information parameter SPS/PPS
Can be obtained by the additional information (extradata) in the outside API structures AVCodecContext data structures of FFmpeg
Take.
In a kind of possible implementation, decoder MediaCodec (hard decoders) can be started at Java layers and is opened
Begin decoding thread.In demultiplexing (Demux) thread of local layer, decoder MediaCodec can be called, obtain input slow
Space (InputBuffer) is deposited, if obtaining failure, needs to reacquire.After input-buffer space is got, can be by
First resource data duplication to be decoded is in the input-buffer space.The input-buffer space is put into decoder at Java layers
In the input-buffer space queue of MediaCodec, decoded by decoder MediaCodec.Meanwhile, will be comprising temporal information
Timestamp be also placed in the input-buffer space, the synchronization process after being is prepared.
In a kind of possible implementation, in Java layers of decoding thread, output spatial cache can be obtained
(OutputBuffer), if obtaining failure, need to reacquire.After output spatial cache is got, will can decode
The decoded first resource data of device MediaCodec are put into the output spatial cache, and can discharge be stored with it is to be decoded
First resource data input-buffer space.Wherein, when first resource data are video data, decoded first resource
Data can be frame of video.
In a kind of possible implementation, can be by the timestamp of decoded first resource data (such as frame of video)
Timestamp with decoded Secondary resource data (such as voice data) is contrasted, and realizes decoded first resource data
It is synchronous between decoded Secondary resource data.And it is possible to be decided whether to render decoded first money by local layer
Decoded first resource data, when needing to render, are rendered by source data (such as frame of video), otherwise, do not carry out wash with watercolours
Dye.Then, the decoded first resource data and the decoded Secondary resource data are played, and can be discharged and deposited
Contain the output spatial cache of decoded first resource data.
Fig. 2 is a kind of flow chart of multimedia resource decoding player method according to an exemplary embodiment.Such as Fig. 2
Shown, in a kind of possible implementation, step S11 includes:
In step S111, the first resource data are copied to Java layers of byte cache space from Native layers
In.
For example, in demultiplexing (Demux) thread of local layer, it is demultiplexed after, first resource number to be decoded
According to being stored in local layer, and the input-buffer space (InputBuffer) for getting is located at Java layer, accordingly, it would be desirable to general
Native layers of data transfer is to Java layers.Causing to replicate once data using traditional data transfer operations more.In this public affairs
In the embodiment opened, Native layers of data (first resource data) directly can be copied into the Java layers of byte cache of establishment
In space (ByteBuffer), then by the first resource data Cun Chudao input-buffers space in byte cache space.Due to
ByteBuffer has used the internal memory in Installed System Memory rather than JVM, thus avoids data and transmitted at JVM layers and Native layers
Duplication in journey.
In this way, it is possible to reduce the number of copy times in first resource data transfer, data transfer effect is improved
Rate.
Fig. 3 is a kind of flow chart of multimedia resource decoding player method according to an exemplary embodiment.Such as Fig. 3
Shown, in a kind of possible implementation, step S11 includes:
In step S112, the input-buffer space of hard decoders is obtained, and it is empty to the input-buffer using fair lock
Between lock;
In step S113, the first resource data Cun Chudao in the byte cache space has been locked described in
In input-buffer space.
For example, when the spatial cache inside to decoder Mediacodec is operated, such as in demultiplexing
(Demux) thread obtains the operation in input-buffer space, the operation of output spatial cache is obtained in decoding thread, and is playing
Device is washed away the operation of (flush) etc. to Mediacodec, it is necessary to the spatial cache inside decoder when searching (seek)
Locked, so as to avoid the inconsistent caused various mistakes of the data in spatial cache.Input is obtained in decoding process
Spatial cache and obtain the operation in input-buffer space and can frequently execute, if using traditional non-fair lock (for example with
Synchronized keywords are locked), then obtain the operation of spatial cache and flush operation is likely to cannot get
Timely respond, so as to cause flush operation delayed or cannot obtain spatial cache for a period of time.
In a kind of possible implementation, when the input-buffer space of hard decoders is obtained, using justice lock (for example
The fair lock that ReentrantLock is provided) the input-buffer space is locked.Fair lockset has the spy of queue first in first out
Property, it is ensured that flush operation can be timely responded to, while ensure that acquisition input-buffer space and obtain output spatial cache behaviour
Make to perform frequency unanimously, be not in the problem for causing certain operation to perform in time because locking competition.To input-buffer
After space locks, the input-buffer space that the first resource data Cun Chudao in byte cache space can have been locked
In, to be decoded.The disclosure is not limited to the particular type of fair lock, can use various justices commonly used in the art
Lock.
In this way, input-buffer space is locked using justice lock, can avoids mistake occur in spatial cache,
And ensure that obtain input-buffer space operates execution frequency consistent with output spatial cache is obtained, and improves decoding efficiency.
The flow of the step of Fig. 4 is a kind of multimedia resource decoding player method according to an exemplary embodiment 13
Figure.As shown in figure 4, in a kind of possible implementation, step S13 includes:
In step S131, the output spatial cache of hard decoders is obtained, and it is empty to the output caching using fair lock
Between lock;
In step S132, by hard decoders to the first resource number in the input-buffer space that has locked
According to being decoded, decoded first resource data are obtained;
In step S133, in the output spatial cache that decoded first resource data Cun Chudao has been locked.
For example, in thread is decoded, the output spatial cache of decoder Mediacodec can be obtained, and using public
Flat lock (the fair lock that such as ReentrantLock is provided) locks to the output spatial cache.Getting, output caching is empty
Between after, the first resource data in the input-buffer space that has locked are decoded by hard decoders, obtain decoded
First resource data (such as frame of video), and the output caching that decoded first resource data Cun Chudao has been locked
In space.
In this way, output spatial cache is locked using justice lock, can avoids mistake occur in spatial cache,
And ensure that obtain input-buffer space operates execution frequency consistent with output spatial cache is obtained so that obtain input, output
The operation of spatial cache can be not in order alternately that certain operation there is no the feelings locked and cannot perform for a long time
Condition, it is to avoid lock competition, improves decoding efficiency.
Embodiment 2
Fig. 5 is the block diagram that a kind of multimedia resource decoding according to an exemplary embodiment is played.As shown in figure 5,
Multimedia resource decoding playing device includes:Data acquisition module to be decoded 51, Secondary resource data decoder module 52, first
Resource data decoder module 53, data simultaneous module 54 and playing module 55.
Data acquisition module to be decoded 51, for utilizing multimedia resource processing routine, is carried out to multimedia resource file
Decapsulation and demultiplexing, obtain first resource data to be decoded, Secondary resource data to be decoded and decoding parametric;
Secondary resource data decoder module 52, for being entered to the Secondary resource data using multimedia resource processing routine
Row decoding, obtains decoded Secondary resource data;
First resource data decoder module 53, for based on the decoding parametric, being provided to described first using hard decoders
Source data is decoded, and obtains decoded first resource data;
Data simultaneous module 54, for entering to the decoded first resource data and decoded Secondary resource data
Row is synchronous;
Playing module 55, for playing the decoded first resource data and the decoded Secondary resource number
According to.
Fig. 6 is the block diagram that a kind of multimedia resource decoding according to an exemplary embodiment is played.As shown in fig. 6,
In a kind of possible implementation, the data acquisition module to be decoded 51 includes:
Data duplication submodule 511, the byte for the first resource data to be copied to Java layers from Native layers
In spatial cache.
As shown in fig. 6, in a kind of possible implementation, the data acquisition module to be decoded 51 includes:
Input-buffer obtains and locks submodule 512, the input-buffer space for obtaining hard decoders, and uses fair
Lock is locked to the input-buffer space;
Data input buffer submodule 513, for by the first resource data storage in the byte cache space
To in the input-buffer space for having locked.
As shown in fig. 6, in a kind of possible implementation, the first resource data decoder module 53 includes:
Output caching obtains and locks submodule 531, the output spatial cache for obtaining hard decoders, and uses fair
Lock is locked to the output spatial cache;
Hard decoder submodule 532, for by hard decoders to described in the input-buffer space that has locked
One resource data is decoded, and obtains decoded first resource data;
Data output cache sub-module 533, it is described defeated for locked decoded first resource data Cun Chudao
Go out in spatial cache.
In a kind of possible implementation, the multimedia resource processing routine includes FFmpeg.
In a kind of possible implementation, the hard decoders include decoder MediaCodec.
In a kind of possible implementation, the first resource data are video data, and the Secondary resource data are
Voice data.
Multimedia resource file can be unsealed using multimedia resource processing routine in accordance with an embodiment of the present disclosure
First resource data are decoded by dress and demultiplexing using hard decoders, and are played out after data syn-chronization, can be compatible
Various encapsulation format, reduce CPU usage and reduce power consumption, lift Consumer's Experience.
Embodiment 3
Fig. 7 is a kind of block diagram of multimedia resource decoding playing device 800 according to an exemplary embodiment.Example
Such as, device 800 can be mobile phone, and computer, digital broadcast terminal, messaging devices, game console, flat board sets
It is standby, Medical Devices, body-building equipment, personal digital assistant etc..
Reference picture 7, device 800 can include following one or more assemblies:Processing assembly 802, memory 804, power supply
Component 806, multimedia groupware 808, audio-frequency assembly 810, the interface 812 of input/output (I/O), sensor cluster 814, and
Communication component 816.
The integrated operation of the usual control device 800 of processing assembly 802, such as with display, call, data communication, phase
Machine is operated and the associated operation of record operation.Processing assembly 802 can refer to including one or more processors 820 to perform
Order, to complete all or part of step of above-mentioned method.Additionally, processing assembly 802 can include one or more modules, just
Interaction between processing assembly 802 and other assemblies.For example, processing assembly 802 can include multi-media module, it is many to facilitate
Interaction between media component 808 and processing assembly 802.
Memory 804 is configured as storing various types of data supporting the operation in device 800.These data are shown
Example includes the instruction for any application program or method operated on device 800, and contact data, telephone book data disappears
Breath, picture, video etc..Memory 804 can be by any kind of volatibility or non-volatile memory device or their group
Close and realize, such as static RAM (SRAM), Electrically Erasable Read Only Memory (EEPROM) is erasable to compile
Journey read-only storage (EPROM), programmable read only memory (PROM), read-only storage (ROM), magnetic memory, flash
Device, disk or CD.
Power supply module 806 provides electric power for the various assemblies of device 800.Power supply module 806 can include power management system
System, one or more power supplys, and other generate, manage and distribute the component that electric power is associated with for device 800.
Multimedia groupware 808 is included in one screen of output interface of offer between described device 800 and user.One
In a little embodiments, screen can include liquid crystal display (LCD) and touch panel (TP).If screen includes touch panel, screen
Curtain may be implemented as touch-screen, to receive the input signal from user.Touch panel includes one or more touch sensings
Device is with the gesture on sensing touch, slip and touch panel.The touch sensor can not only sensing touch or sliding action
Border, but also detection and the touch or slide related duration and pressure.In certain embodiments, many matchmakers
Body component 808 includes a front camera and/or rear camera.When device 800 be in operator scheme, such as screening-mode or
During video mode, front camera and/or rear camera can receive outside multi-medium data.Each front camera and
Rear camera can be a fixed optical lens system or with focusing and optical zoom capabilities.
Audio-frequency assembly 810 is configured as output and/or input audio signal.For example, audio-frequency assembly 810 includes a Mike
Wind (MIC), when device 800 is in operator scheme, such as call model, logging mode and speech recognition mode, microphone is matched somebody with somebody
It is set to reception external audio signal.The audio signal for being received can be further stored in memory 804 or via communication set
Part 816 sends.In certain embodiments, audio-frequency assembly 810 also includes a loudspeaker, for exports audio signal.
, to provide interface between processing assembly 802 and peripheral interface module, above-mentioned peripheral interface module can for I/O interfaces 812
To be keyboard, click wheel, button etc..These buttons may include but be not limited to:Home button, volume button, start button and lock
Determine button.
Sensor cluster 814 includes one or more sensors, and the state for providing various aspects for device 800 is commented
Estimate.For example, sensor cluster 814 can detect the opening/closed mode of device 800, the relative positioning of component is for example described
Component is the display and keypad of device 800, and sensor cluster 814 can be with 800 1 components of detection means 800 or device
Position change, user is presence or absence of with what device 800 was contacted, the orientation of device 800 or acceleration/deceleration and device 800
Temperature change.Sensor cluster 814 can include proximity transducer, be configured to be detected when without any physical contact
The presence of neighbouring object.Sensor cluster 814 can also include optical sensor, such as CMOS or ccd image sensor, for into
As being used in application.In certain embodiments, the sensor cluster 814 can also include acceleration transducer, gyro sensors
Device, Magnetic Sensor, pressure sensor or temperature sensor.
Communication component 816 is configured to facilitate the communication of wired or wireless way between device 800 and other equipment.Device
800 can access the wireless network based on communication standard, such as WiFi, 2G or 3G, or combinations thereof.In an exemplary implementation
In example, communication component 816 receives broadcast singal or broadcast related information from external broadcasting management system via broadcast channel.
In one exemplary embodiment, the communication component 816 also includes near-field communication (NFC) module, to promote junction service.Example
Such as, NFC module can be based on radio frequency identification (RFID) technology, Infrared Data Association (IrDA) technology, ultra wide band (UWB) technology,
Bluetooth (BT) technology and other technologies are realized.
In the exemplary embodiment, device 800 can be by one or more application specific integrated circuits (ASIC), numeral letter
Number processor (DSP), digital signal processing appts (DSPD), PLD (PLD), field programmable gate array
(FPGA), controller, microcontroller, microprocessor or other electronic components realization, for performing the above method.
In the exemplary embodiment, a kind of non-volatile computer readable storage medium storing program for executing including instructing, example are additionally provided
Such as include the memory 804 of instruction, above-mentioned instruction can be performed to complete the above method by the processor 820 of device 800.
The disclosure can be system, method and/or computer program product.Computer program product can include computer
Readable storage medium storing program for executing, containing for making processor realize the computer-readable program instructions of various aspects of the disclosure.
Computer-readable recording medium can be the tangible of the instruction that holding and storage are used by instruction execution equipment
Equipment.Computer-readable recording medium for example can be-- but be not limited to-- storage device electric, magnetic storage apparatus, optical storage
Equipment, electromagnetism storage device, semiconductor memory apparatus or above-mentioned any appropriate combination.Computer-readable recording medium
More specifically example (non exhaustive list) includes:Portable computer diskette, hard disk, random access memory (RAM), read-only deposit
It is reservoir (ROM), erasable programmable read only memory (EPROM or flash memory), static RAM (SRAM), portable
Compact disk read-only storage (CD-ROM), digital versatile disc (DVD), memory stick, floppy disk, mechanical coding equipment, for example thereon
Be stored with instruction punch card or groove internal projection structure and above-mentioned any appropriate combination.Calculating used herein above
Machine readable storage medium storing program for executing is not construed as instantaneous signal in itself, the electromagnetic wave of such as radio wave or other Free propagations, logical
Cross electromagnetic wave (for example, the light pulse for passing through fiber optic cables) that waveguide or other transmission mediums propagate or by wire transfer
Electric signal.
Computer-readable program instructions as described herein can from computer-readable recording medium download to each calculate/
Processing equipment, or outer computer or outer is downloaded to by network, such as internet, LAN, wide area network and/or wireless network
Portion's storage device.Network can include copper transmission cable, Optical Fiber Transmission, be wirelessly transferred, router, fire wall, interchanger, gateway
Computer and/or Edge Server.Adapter or network interface in each calculating/processing equipment are received from network to be counted
Calculation machine readable program instructions, and the computer-readable program instructions are forwarded, for storing the meter in each calculating/processing equipment
In calculation machine readable storage medium storing program for executing.
For perform the disclosure operation computer program instructions can be assembly instruction, instruction set architecture (ISA) instruction,
Machine instruction, machine-dependent instructions, microcode, firmware instructions, condition setup data or with one or more programming language
Source code or object code that any combination is write, programming language of the programming language including object-oriented-such as
Smalltalk, C++ etc., and routine procedural programming languages-such as " C " language or similar programming language.Computer
Readable program instructions can perform fully on the user computer, partly perform on the user computer, as one solely
Vertical software kit is performed, part performs or completely in remote computer on the remote computer on the user computer for part
Or performed on server.In the situation for being related to remote computer, remote computer can be by the network-bag of any kind
LAN (LAN) or wide area network (WAN)-be connected to subscriber computer are included, or, it may be connected to outer computer (such as profit
With ISP come by Internet connection).In certain embodiments, by using computer-readable program instructions
Status information carry out personalized customization electronic circuit, such as PLD, field programmable gate array (FPGA) or can
Programmed logic array (PLA) (PLA), the electronic circuit can perform computer-readable program instructions, so as to realize each side of the disclosure
Face.
Referring herein to the method according to the embodiment of the present disclosure, device (system) and computer program product flow chart and/
Or block diagram describes various aspects of the disclosure.It should be appreciated that each square frame and flow chart of flow chart and/or block diagram and/
Or in block diagram each square frame combination, can be realized by computer-readable program instructions.
These computer-readable program instructions can be supplied to all-purpose computer, special-purpose computer or other programmable datas
The processor of processing unit, so as to produce a kind of machine so that these instructions are by computer or other programmable datas
During the computing device of processing unit, work(specified in one or more square frames realized in flow chart and/or block diagram is generated
The device of energy/action.Can also be the storage of these computer-readable program instructions in a computer-readable storage medium, these refer to
Order causes that computer, programmable data processing unit and/or other equipment work in a specific way, so that, be stored with instruction
Computer-readable medium then includes a manufacture, and it includes realizing in one or more square frames in flow chart and/or block diagram
The instruction of the various aspects of the function/action of regulation.
Can also computer-readable program instructions be loaded into computer, other programmable data processing units or other
In equipment so that perform series of operation steps on computer, other programmable data processing units or miscellaneous equipment, to produce
The computer implemented process of life, so that performed on computer, other programmable data processing units or miscellaneous equipment
Instruct function/action specified in one or more square frames realized in flow chart and/or block diagram.
Flow chart and block diagram in accompanying drawing show system, method and the computer journey of the multiple embodiments according to the disclosure
The architectural framework in the cards of sequence product, function and operation.At this point, each square frame in flow chart or block diagram can generation
One part for module, program segment or instruction of table a, part for the module, program segment or instruction is used comprising one or more
In the executable instruction of the logic function for realizing regulation.In some realizations as replacement, the function of being marked in square frame
Can occur with different from the order marked in accompanying drawing.For example, two continuous square frames can essentially be held substantially in parallel
OK, they can also be performed in the opposite order sometimes, and this is depending on involved function.It is also noted that block diagram and/or
The combination of the square frame in each square frame and block diagram and/or flow chart in flow chart, can use the function of performing regulation or dynamic
The special hardware based system made is realized, or can be realized with the combination of computer instruction with specialized hardware.
It is described above the presently disclosed embodiments, described above is exemplary, and non-exclusive, and
It is not limited to disclosed each embodiment.In the case of without departing from the scope and spirit of illustrated each embodiment, for this skill
Many modifications and changes will be apparent from for the those of ordinary skill in art field.The selection of term used herein, purport
Best explaining principle, practical application or the technological improvement to the technology in market of each embodiment, or lead this technology
Other those of ordinary skill in domain are understood that each embodiment disclosed herein.