[go: up one dir, main page]
More Web Proxy on the site http://driver.im/

CN106453869A - Messy code correction method for music additional information and mobile terminal - Google Patents

Messy code correction method for music additional information and mobile terminal Download PDF

Info

Publication number
CN106453869A
CN106453869A CN201610858362.3A CN201610858362A CN106453869A CN 106453869 A CN106453869 A CN 106453869A CN 201610858362 A CN201610858362 A CN 201610858362A CN 106453869 A CN106453869 A CN 106453869A
Authority
CN
China
Prior art keywords
additional information
information
music additional
music
utf
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN201610858362.3A
Other languages
Chinese (zh)
Inventor
蔡创业
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
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 CN201610858362.3A priority Critical patent/CN106453869A/en
Publication of CN106453869A publication Critical patent/CN106453869A/en
Pending legal-status Critical Current

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M1/00Substation equipment, e.g. for use by subscribers
    • H04M1/72Mobile telephones; Cordless telephones, i.e. devices for establishing wireless links to base stations without route selection
    • H04M1/724User interfaces specially adapted for cordless or mobile telephones
    • H04M1/72403User interfaces specially adapted for cordless or mobile telephones with means for local support of applications that increase the functionality

Landscapes

  • Engineering & Computer Science (AREA)
  • Human Computer Interaction (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Mobile Radio Communication Systems (AREA)

Abstract

The invention discloses a messy code correction method for music additional information and a mobile terminal. The method comprises steps of acquiring the music additional information; reading original byte information of the music additional information; comparing the original byte information with a preset encoding format in a coding dictionary to obtain an encoding format of the music additional information, wherein the preset coding format in the encoding dictionary is modified or added through CheckInterface; and correcting the music additional information based on the acquired encoding format of the music additional information. The invention solves the messy code problem in the application layer, and the preset encoding format is modified or added by CheckInterface. The application updating way enables each application program to be added with support for a new encoding format through multiple modes of the application market, server pushing and the like based on the actual situation.

Description

A kind of mess code bearing calibration of music additional information and mobile terminal
Technical field
The present invention relates to field of mobile terminals, more particularly to a kind of mess code bearing calibration of music additional information and movement are eventually End.
Background technology
Music additional information be with regard to information such as the singer of the MP3 song files, title, album name, age, styles, Its storage is generally basede on ID3 agreement, therefore, also referred to as ID3 information, ID3 information is located at the beginning of a MP3 song files file Or in some bytes at end.At present, ID3 information is divided into two versions i.e. v1 version and v2 version.The ID3 information of v1 version is sung in MP3 128 byte of end of bent File, with tri- character beginnings of TAG, followed by upper song information.V2 version is normally at MP3 song The beginning of bent file, can store the lyrics, the jumbo information such as picture of the special edition.
When MP3 song files song files are made, agreement coded format that producer may not according to agreement is filling out Music additional information is filled, causes player that song information can not be correctly parsed, so as to cause song information as shown in Figure 1 disorderly Code, Consumer's Experience is very bad.
Content of the invention
Present invention is primarily targeted at proposing a kind of mess code bearing calibration of music additional information, it is intended to solve to make Person may not according to agreement agreement coded format come the mess code filling music additional information and cause.
For achieving the above object, the mess code bearing calibration of a kind of music additional information that the present invention is provided, it is characterised in that Including step:
Obtain music additional information;
Read the raw bytes information of the music additional information;
Will be attached for the acquisition music of comparing of the pre-arranged code form in the raw bytes information and encoder dictionary storehouse Plus the coded format of information;Wherein, the pre-arranged code form in the encoder dictionary storehouse is repaiied by CheckInterface Just or increase;
Coded format according to the music additional information for obtaining is corrected to the music additional information.
Alternatively, the pre-arranged code form in the raw bytes information and encoder dictionary storehouse is being compared acquisition institute State music additional information coded format when, including step:
Obtain at least two bytes in the raw bytes information;
Judge whether at least two byte is consistent with the respective byte in the pre-arranged code form;
If so, then show that the raw bytes information is the one kind in the pre-arranged code form.
Alternatively, at least two byte is the first byte and the second byte.
Alternatively, the pre-arranged code form includes UTF-16big endian, UTF-16little endian, UTF- 32big endian, UTF-32little endian, at least one in UTF-8, GBK.
Alternatively, the pre-arranged code form in the raw bytes information and encoder dictionary storehouse is being compared acquisition institute State music additional information coded format when, carried out using strategy mode in design mode.
Additionally, for achieving the above object, the present invention also proposes a kind of mobile terminal, including:Music additional information obtains single Unit, for obtaining music additional information;Byte information reading unit, the raw bytes for reading the music additional information are believed Breath;Comparing unit, for comparing acquisition institute the pre-arranged code form in the raw bytes information and encoder dictionary storehouse State the coded format of music additional information;Wherein, the pre-arranged code form in the encoder dictionary storehouse passes through CheckI Nterface is modified or increases;Correction unit, for according to the coded format of the music additional information for obtaining to institute State music additional information to be corrected.
Alternatively, the comparing unit is additionally operable to obtain at least two bytes in the raw bytes information;Judge institute State whether at least two bytes are consistent with the respective byte in the pre-arranged code form;If so, the raw bytes are then shown Information is the one kind in the pre-arranged code form.
Alternatively, at least two byte is the first byte and the second byte.
Alternatively, the pre-arranged code form includes UTF-16big endian, UTF-16little endian, UTF- 32big endian, UTF-32little endian, at least one in UTF-8, GBK.
Alternatively, the comparing unit carries out the raw bytes information using strategy mode in design mode With comparing for pre-arranged code form in encoder dictionary storehouse.
A kind of mess code bearing calibration of music additional information proposed by the present invention and mobile terminal, based on encoder dictionary storehouse, The identification of coded format is carried out according to raw bytes information, and is corrected according to the result of identification;Encoder dictionary storehouse passes through CheckInterface is modified or increases, fast and easy, can expand at any time.
Description of the drawings
Fig. 1 is the mess code display schematic diagram of music additional information;
Fig. 2 is the hardware architecture diagram of an optional mobile terminal for realizing each embodiment of the present invention;
Fig. 3 is the wireless communication system schematic diagram of mobile terminal as shown in Figure 2;
Fig. 4 is the structural representation of the mobile terminal of the embodiment of the present invention;
Fig. 5 is the schematic flow sheet of the mess code bearing calibration of the music additional information of the embodiment of the present invention;
The idiographic flow schematic diagram of the step of Fig. 6 is embodiment of the present invention S3;
The realization of the object of the invention, functional characteristics and advantage will be described further in conjunction with the embodiments referring to the drawings.
Specific embodiment
It should be appreciated that specific embodiment described herein is not intended to limit the present invention only in order to explain the present invention.
The mobile terminal of each embodiment of the present invention is realized referring now to Description of Drawings.In follow-up description, use For representing the suffix of such as " module ", " part " or " unit " of element only for being conducive to the explanation of the present invention, itself Not specific meaning.Therefore, " module " mixedly can be used 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 to move 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, desk computer etc. consolidate 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. 2 is that the hardware configuration of the mobile terminal for realizing each embodiment of the present 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, memorizer 160, interface unit 170, controller 180 and power subsystem 190 Etc..Fig. 1 shows the mobile terminal with various assemblies, it should be understood that being not required for implementing all groups for illustrating Part.More or less of component can alternatively be implemented.Will be discussed in more detail below the element of mobile terminal.
Wireless communication unit 110 generally includes one or more assemblies, and which 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 for generating before the server or reception of broadcast singal and/or broadcast related information and/or broadcast related information And send it to the server of terminal.Broadcast singal can include TV broadcast singal, radio signals, data broadcasting Signal etc..And, broadcast singal may further include the broadcast singal for combining 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 receiving.Broadcast singal can be present in a variety of manners, and for example, which 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 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 of signal and above-mentioned digit broadcasting system.Via broadcasting reception module 111 receive broadcast singal and/ Or broadcast related information can be stored in memorizer 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 be for supporting the module of junction service.Some examples of short-range communication technology include indigo plant ToothTM, RF identification (RFID), Infrared Data Association (IrDA), ultra broadband (UWB), purple honeybeeTMEtc..
Location information module 115 be for check or obtain mobile terminal positional information module.Location information module Typical case be GPS (global positioning system).According to current technology, GPS module 115 is calculated from three or more satellites Range information and correct time information and for calculate Information application triangulation, so as to according to longitude, latitude Three-dimensional current location information is highly accurately calculated.Currently, defended using three for calculating the method for position and temporal information Star and the error of the position that calculated by using other satellite correction and temporal information.Additionally, GPS module 115 Can be by Continuous plus current location information in real time come calculating speed information.
A/V input block 120 is used for receiving audio or video signal.A/V input block 120 can include 121 He of camera Mike 1220,121 pairs of static maps for being obtained by image capture apparatus in Video Capture pattern or image capture mode of camera The view data of piece or video is processed.Picture frame after process is may be displayed on display unit 151.At camera 121 Picture frame after reason can be stored in memorizer 160 (or other storage mediums) or carry out via wireless communication unit 110 Send, two or more cameras 1210 can be provided according to the construction of mobile terminal.Mike 122 can be in telephone relation mould Sound (voice data) is received via mike in formula, logging mode, speech recognition mode etc. operational mode, and can be by Such acoustic processing is voice data.Audio frequency (voice) data after process can be changed in the case of telephone calling model For can be sent to the form output of mobile communication base station via mobile communication module 112.Mike 122 can implement all kinds Noise eliminate (or suppression) algorithm with eliminate noise that (or suppression) is produced during receiving and 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 (resistance that for example, detection causes due to being touched, pressure, the sensitive component of the change of electric capacity etc.), roller, rocking bar etc. Deng.Especially, when touch pad is superimposed upon on display unit 151 as a layer, touch screen can be formed.
Sensing unit 140 detect mobile terminal 1 00 current state, (for example, mobile terminal 1 00 open or close shape State), the position of mobile terminal 1 00, user for mobile terminal 1 00 the presence or absence of contact (that is, touch input), mobile terminal 100 orientation, the acceleration or deceleration movement of 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 is cut out.In addition, sensing unit 140 can detect power subsystem 190 whether provide electric power or Whether person's interface unit 170 is coupled with external device (ED).Sensing unit 140 can will be combined below including proximity transducer 1410 Touch screen is being described to this.
Interface unit 170 is connected, as at least one external device (ED), the interface that can pass through with mobile terminal 1 00.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 being used for device of the connection with identification module, audio input/output (I/O) end Mouth, video i/o port, ear port etc..Identification module can be stored for verifying user using each of mobile terminal 1 00 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 with mobile terminal 1 00 via port or other attachment means.Interface unit 170 can be used for receive from The input (for example, data message, electric power etc.) of external device (ED) and the input for receiving is transferred in mobile terminal 1 00 One or more elements or can be used for transmission 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 which by electricity Power provides the path of mobile terminal 1 00 from base or can serve as allowing the various command signals from base input to pass through which It is transferred to the path of mobile terminal.The various command signals being input into from base or electric power may serve as recognizing that mobile terminal is The no signal being accurately fitted within base.Output unit 150 is configured to defeated with the offer of vision, audio frequency and/or tactile manner Go out signal (for example, audio signal, video signal, alarm signal, vibration signal etc.).Output unit 150 can include to show Unit 151, dio Output Modules 152, alarm unit 153 etc..
Display unit 151 may be displayed on the information for processing 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 call or other communicate (for example, text messaging, multimedia files 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, illustrate video or figure UI or GUI of picture and correlation function etc..
Meanwhile, when the display unit 151 and touch pad touch screen with formation superposed on one another as a layer, display unit 151 can serve as input equipment 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 A kind of.Some in these display may be constructed such that transparence to allow user from outside viewing, 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 The embodiment that wants, mobile terminal 1 00 can include two or more display units (or other display devices), for example, move Dynamic terminal can include outernal display unit (not shown) and inner display unit (not shown).Touch screen can be used for detection and touch Input pressure and touch input position and touch input area.
Dio Output Modules 152 can mobile terminal in call signal reception pattern, call mode, logging mode, When under the isotypes such as speech recognition mode, broadcast reception mode, that wireless communication unit 110 is received or in memorizer 160 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 executed. Dio Output Modules 152 can include speaker, buzzer etc..
Alarm unit 153 can provide output to notify event to mobile terminal 1 00.Typical event is permissible Including calling reception, message sink, key signals input, touch input etc..In addition to audio or video output, alarm unit 153 can provide output in a different manner with the generation of notification event.For example, alarm unit 153 can be in the form of vibration 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.By providing such tactile output, even if When the mobile phone of user is in the pocket of 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.
Memorizer 160 can store software program for the process and control operation for being executed 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, memorizer 160 can be with storage with regard to the vibration of various modes that exports when touching and being applied to touch screen and audio signal Data.
Memorizer 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 memorizer (for example, SD or DX memorizer etc.), random access storage device (RAM), static random-access storage Device (SRAM), read only memory (ROM), Electrically Erasable Read Only Memory (EEPROM), programmable read only memory (PROM), magnetic storage, disk, CD etc..And, mobile terminal 1 00 can execute memorizer with by network connection The network storage device cooperation of 160 store function.
Controller 180 generally controls the overall operation of mobile terminal.For example, controller 180 is executed and voice call, data The related control of communication, video calling etc. and process.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 it is so structured that and control Device processed 180 is separated.Controller 180 can be with execution pattern identifying processing, by the handwriting input for executing on the touchscreen or figure Piece is drawn 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 embodiments described herein can be with using such as computer software, hardware or its any combination of calculating Machine computer-readable recording medium is implementing.Hardware is implemented, embodiment 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 Program gate array (FPGA), processor, controller, microcontroller, microprocessor, be designed to execute function described herein At least one in electronic unit is implementing, and in some cases, such embodiment can be implemented in controller 180. Software is implemented, the embodiment of such as process or function can with allow to execute the single of at least one function or operation Software module is implementing.Software code can be come by the software application (or program) that is write with any appropriate programming language Implement, software code can be stored in memorizer 160 and be executed by controller 180.
So far, oneself is through describing mobile terminal according to its function.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.
As shown in Figure 2 mobile terminal 1 00 may be constructed such that using via frame or packet transmission data all if any Line and wireless communication system and satellite-based communication system are operating.
Referring now to the communication system that Fig. 2 description is wherein operable to according to the mobile terminal of the present invention.
Such communication system can use different air interfaces 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. 3, cdma wireless communication system can include multiple mobile terminal 1s 00, multiple base stations (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 back haul link can be constructed according to any one in the interface that Ganji knows, 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 that line is covered is radially away from BS270.Or, each subregion can by for diversity reception two or more Antenna is covered.Each BS270 may be constructed such that the multiple frequency distribution of support, and each frequency is distributed with specific frequency spectrum (for example, 1.25MHz, 5MHz etc.).
Intersecting that subregion and frequency are distributed 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 For multiple cellular stations.
As shown in Figure 3, broadcast singal is sent to broadcsting transmitter (BT) 295 mobile terminal that operate in system 100.Broadcasting reception module 111 is arranged on to receive the broadcast for being sent by BT295 at mobile terminal 1 00 as shown in Figure 1 Signal.In fig. 2 it is shown that several global positioning system (GPS) satellite 300.Satellite 300 helps position multiple mobile terminals At least one of 100.
In figure 3, 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 is generally configured to coordinate with satellite 300 to obtain the positioning that wants letter as shown in Figure 1 Breath.Substitute GPS tracking technique or outside GPS tracking technique, it is possible to use can track the position of mobile terminal other 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.BSC275 is also by the number for receiving According to being routed to MSC280, which provides the extra route service for forming interface with PSTN290.Similarly, PSTN290 with MSC280 forms interface, and MSC and BSC275 forms 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 inventive method is proposed.
As shown in figure 4, first embodiment of the invention proposes a kind of mobile terminal, including:Music additional information acquiring unit 10, for obtaining music additional information;Byte information reading unit 20, for reading the raw bytes of the music additional information Information;Comparing unit 30, for comparing acquisition sound the pre-arranged code form in raw bytes information and encoder dictionary storehouse The coded format of happy additional information;Wherein, the pre-arranged code form in encoder dictionary storehouse is repaiied by CheckInterface Just or increase;Correction unit 40, for carrying out school according to the coded format of the music additional information for obtaining to music additional information Just.
Above-mentioned pre-arranged code form can include UTF-16big endian, UTF-16little endian, UTF- 32big endian, UTF-32little endian, at least one in UTF-8, GBK, its corresponding byte stream information is as follows Shown in table 1:
The common coded format of table 1 and corresponding byte stream
In the present embodiment, the raw bytes information of music additional information and pre-arranged code form in encoder dictionary storehouse are entered Row compare obtain music additional information coded format and according to obtain music additional information coded format to the music Additional information is corrected.Pre-arranged code form is modified by CheckInterface or increases, this from application layer more New mode so that each application program can according to practical situation can by the various ways such as application market, server push come Add the support to new coded format.
Second embodiment of the invention proposes a kind of mobile terminal, including:Music additional information acquiring unit 10, for obtaining Music additional information;Byte information reading unit 20, for reading the raw bytes information of the music additional information;Compare single Unit 30, obtains music additional information for the pre-arranged code form in raw bytes information and encoder dictionary storehouse is compared Coded format;Wherein, the pre-arranged code form in encoder dictionary storehouse is modified by CheckInterface or increases;Correction Unit 40, for being corrected to music additional information according to the coded format of the music additional information for obtaining.
Above-mentioned pre-arranged code form can include UTF-16big endian, UTF-16littleendian, UTF-32big At least one in endian, UTF-32little endian, UTF-8, GBK, its corresponding byte stream information as above 1 institute of table Show.
In the present embodiment, comparing unit 30 using strategy mode in design mode carry out raw bytes information with The comparison of the pre-arranged code form in encoder dictionary storehouse.
In the present embodiment, the raw bytes information of music additional information and pre-arranged code form in encoder dictionary storehouse are entered Row compare obtain music additional information coded format and according to obtain music additional information coded format to the music Additional information is corrected.Pre-arranged code form is modified by CheckInterface or increases, this from application layer more New mode so that each application program can according to practical situation can by the various ways such as application market, server push come Add the support to new coded format;Raw bytes information and coding are carried out using strategy mode in design mode The comparison of the pre-arranged code form in dictionary library, so as to solve Confused-code in application layer, easily and efficiently can be transplanted to On the platforms such as Windows, IOS, Ubuntu, with extensive usability and representativeness.
Third embodiment of the invention proposes a kind of mobile terminal, including:Music additional information acquiring unit 10, for obtaining Music additional information;Byte information reading unit 20, for reading the raw bytes information of the music additional information;Compare single Unit 30, obtains music additional information for the pre-arranged code form in raw bytes information and encoder dictionary storehouse is compared Coded format;Wherein, the pre-arranged code form in encoder dictionary storehouse is modified by CheckInterface or increases;Correction Unit 40, for being corrected to music additional information according to the coded format of the music additional information for obtaining.
Above-mentioned pre-arranged code form can include UTF-16big endian, UTF-16little endian, UTF- 32big endian, UTF-32little endian, at least one in UTF-8, GBK, its corresponding byte stream information is as above Shown in table 1.
In the present embodiment, comparing unit 30 is additionally operable to obtain at least two bytes in raw bytes information;Judge, at least Whether two bytes are consistent with the respective byte in the pre-arranged code form;If so, then show that the raw bytes information is One kind in pre-arranged code form.At least two byte can be the first byte and the second byte;For example, to UTF- The identification false code of 16litter endian;Comparing unit 30 may determine that whether the first byte is 0xFE and second word Whether section is 0xFF.In the present embodiment, comparing unit 30 carries out raw bytes using strategy mode in design mode The comparing of pre-arranged code form in information and encoder dictionary storehouse.
In the present embodiment, the raw bytes information of music additional information and pre-arranged code form in encoder dictionary storehouse are entered Row compare obtain music additional information coded format and according to obtain music additional information coded format to the music Additional information is corrected.Pre-arranged code form is modified by CheckInterface or increases, this from application layer more New mode so that each application program can according to practical situation can by the various ways such as application market, server push come Add the support to new coded format;Raw bytes information and coding are carried out using strategy mode in design mode The comparison of the pre-arranged code form in dictionary library, so as to solve Confused-code in application layer, easily and efficiently can be transplanted to On the platforms such as Windows, IOS, Ubuntu, with extensive usability and representativeness.
As shown in figure 5, fourth embodiment of the invention further provides for a kind of mess code bearing calibration of music additional information, bag Include step:
S1, acquisition music additional information;
S2, the raw bytes information of reading music additional information;
S3, acquisition music additional information that the pre-arranged code form in raw bytes information and encoder dictionary storehouse is compared Coded format;
Wherein, the pre-arranged code form in encoder dictionary storehouse is modified by CheckInterface or increases;Above-mentioned Pre-arranged code form can include UTF-16big endian, UTF-16little endian, UTF-32big endian, At least one in UTF-32little endian, UTF-8, GBK, its corresponding byte stream information is as listed in Table 1;
S4, according to the coded format of music additional information for obtaining, music additional information is corrected.
In the present embodiment, the raw bytes information of music additional information and pre-arranged code form in encoder dictionary storehouse are entered Row compare obtain music additional information coded format and according to obtain music additional information coded format to the music Additional information is corrected.Pre-arranged code form is modified by CheckInterface or increases, this from application layer more New mode so that each application program can according to practical situation can by the various ways such as application market, server push come Add the support to new coded format.
Fifth embodiment of the invention further provides for a kind of mess code bearing calibration of music additional information, including step:
S1, acquisition music additional information;
S2, the raw bytes information of reading music additional information;
S3, acquisition music additional information that the pre-arranged code form in raw bytes information and encoder dictionary storehouse is compared Coded format;
Wherein, the pre-arranged code form in encoder dictionary storehouse is modified by CheckInterface or increases;Above-mentioned Pre-arranged code form can include UTF-16big endian, UTF-16little endian, UTF-32big endian, At least one in UTF-32little endian, UTF-8, GBK, its corresponding byte stream information is as listed in Table 1;This reality Apply in example, the pre-arranged code in raw bytes information and encoder dictionary storehouse is carried out using strategy mode in design mode The comparison of form;
In the present embodiment, the raw bytes information of music additional information and pre-arranged code form in encoder dictionary storehouse are entered Row compare obtain music additional information coded format and according to obtain music additional information coded format to the music Additional information is corrected.Pre-arranged code form is modified by CheckInterface or increases, this from application layer more New mode so that each application program can according to practical situation can by the various ways such as application market, server push come Add the support to new coded format;Raw bytes information and coding are carried out using strategy mode in design mode The comparison of the pre-arranged code form in dictionary library, so as to solve Confused-code in application layer, easily and efficiently can be transplanted to On the platforms such as Windows, IOS, Ubuntu, with extensive usability and representativeness.
Sixth embodiment of the invention further provides for a kind of mess code bearing calibration of music additional information, including step:
S1, acquisition music additional information;
S2, the raw bytes information of reading music additional information;
S3, acquisition music additional information that the pre-arranged code form in raw bytes information and encoder dictionary storehouse is compared Coded format;
Wherein, the pre-arranged code form in encoder dictionary storehouse is modified by CheckInterface or increases;Above-mentioned Pre-arranged code form can include UTF-16big endian, UTF-16little endian, UTF-32big endian, At least one in UTF-32little endian, UTF-8, GBK, its corresponding byte stream information is as listed in Table 1;This reality Apply in example, the pre-arranged code in raw bytes information and encoder dictionary storehouse is carried out using strategy mode in design mode The comparison of form;
As shown in fig. 6, step S3 specifically includes step:
S31, at least two bytes for obtaining in raw bytes information;
At least two byte can be the first byte and the second byte;In the present embodiment, comparing unit 30 is adopted In design mode, strategy mode carries out comparing for the pre-arranged code form in raw bytes information and encoder dictionary storehouse.
S32, judge whether at least two byte is consistent with the respective byte in the pre-arranged code form;If so, Then show that the raw bytes information, for the one kind in pre-arranged code form, enters step S33;If it is not, then as shown in step s 5 End process;
For example, in the identification false code to UTF-16litter endian;May determine that the first byte be whether 0xFE simultaneously And whether second byte is 0xFF;
S33 obtains the pre-arranged code form;
S4, according to the coded format of music additional information for obtaining, music additional information is corrected.
S4, according to the coded format of music additional information for obtaining, music additional information is corrected.
In the present embodiment, the raw bytes information of music additional information and pre-arranged code form in encoder dictionary storehouse are entered Row compare obtain music additional information coded format and according to obtain music additional information coded format to the music Additional information is corrected.Pre-arranged code form is modified by CheckInterface or increases, this from application layer more New mode so that each application program can according to practical situation can by the various ways such as application market, server push come Add the support to new coded format;Raw bytes information and coding are carried out using strategy mode in design mode The comparison of the pre-arranged code form in dictionary library, so as to solve Confused-code in application layer, easily and efficiently can be transplanted to On the platforms such as Windows, IOS, Ubuntu, with extensive usability and representativeness.
The mess code bearing calibration of the music additional information that the present invention is provided and mobile terminal, based on encoder dictionary storehouse, adopt Strategy mode in design mode, adopts different recognition strategies for different codings.If there is new coded format Occur, it is only necessary to implement CheckInterface, without the framework that modification is overall.
It should be noted that herein, term " including ", "comprising" or its any other variant are intended to non-row The including of his property, so that a series of process including key elements, method, article or device not only include those key elements, and And also include other key elements for being not expressly set out, or also include intrinsic for this process, method, article or device institute Key element.In the absence of more restrictions, the key element for being limited by sentence "including a ...", it is not excluded that including to be somebody's turn to do Also there is other identical element in the process, method of key element, article or device.
The embodiments of the present invention are for illustration only, do not represent the quality of embodiment.
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 by software to realize, naturally it is also possible to by hardware, but in many cases The former is more preferably embodiment.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 (as ROM/RAM, magnetic disc, CD), use so that a station terminal equipment including some instructions (can be mobile phone, computer, clothes Business device, air-conditioner, or network equipment etc.) execute method described in each embodiment of the present invention.
The preferred embodiments of the present invention are these are only, the scope of the claims of the present invention is not thereby limited, every using this Equivalent structure or equivalent flow conversion that bright description 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 mess code bearing calibration of music additional information, it is characterised in that including step:
Obtain music additional information;
Read the raw bytes information of the music additional information;
Pre-arranged code form in the raw bytes information and encoder dictionary storehouse is compared the additional letter of the acquisition music The coded format of breath;
Coded format according to the music additional information for obtaining is corrected to the music additional information.
2. the mess code bearing calibration of music additional information according to claim 1, it is characterised in that by the raw bytes Pre-arranged code form in information and encoder dictionary storehouse compare the coded format for obtaining the music additional information when, including Step:
Obtain at least two bytes in the raw bytes information;
Judge whether at least two byte is consistent with the respective byte in the pre-arranged code form;
If so, then show that the raw bytes information is the one kind in the pre-arranged code form.
3. the mess code bearing calibration of music additional information according to claim 2, it is characterised in that at least two byte For the first byte and the second byte.
4. the mess code bearing calibration of music additional information according to claim 1 or claim 2, it is characterised in that the pre-arranged code Form includes UTF-16 big endian, UTF-16 little endian, UTF-32 big endian, UTF-32 At least one in little endian, UTF-8, GBK.
5. the mess code bearing calibration of music additional information according to claim 1, it is characterised in that by the raw bytes Pre-arranged code form in information and encoder dictionary storehouse compare the coded format for obtaining the music additional information when, adopt In design mode, strategy mode is carried out.
6. a kind of mobile terminal, it is characterised in that include:
Music additional information acquiring unit, for obtaining music additional information;
Byte information reading unit, for reading the raw bytes information of the music additional information;
Comparing unit, for comparing acquisition institute the pre-arranged code form in the raw bytes information and encoder dictionary storehouse State the coded format of music additional information;
Correction unit, for carrying out school according to the coded format of the music additional information for obtaining to the music additional information Just.
7. mobile terminal according to claim 6, it is characterised in that the comparing unit is additionally operable to obtain the raw bytes At least two bytes in information;Judge respective byte at least two byte and the pre-arranged code form whether phase Symbol;If so, then show that the raw bytes information is the one kind in the pre-arranged code form.
8. mobile terminal according to claim 7, it is characterised in that at least two byte is the first byte and the second word Section.
9. mobile terminal according to claim 6 or 7, it is characterised in that the pre-arranged code form includes UTF-16 big endian、UTF-16 little endian、UTF-32 big endian、UTF-32 little endian、UTF-8、GBK In at least one.
10. mobile terminal according to claim 6, it is characterised in that the comparing unit is using in design mode Strategy mode carries out comparing for the pre-arranged code form in the raw bytes information and encoder dictionary storehouse.
CN201610858362.3A 2016-09-28 2016-09-28 Messy code correction method for music additional information and mobile terminal Pending CN106453869A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201610858362.3A CN106453869A (en) 2016-09-28 2016-09-28 Messy code correction method for music additional information and mobile terminal

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201610858362.3A CN106453869A (en) 2016-09-28 2016-09-28 Messy code correction method for music additional information and mobile terminal

Publications (1)

Publication Number Publication Date
CN106453869A true CN106453869A (en) 2017-02-22

Family

ID=58170700

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201610858362.3A Pending CN106453869A (en) 2016-09-28 2016-09-28 Messy code correction method for music additional information and mobile terminal

Country Status (1)

Country Link
CN (1) CN106453869A (en)

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20090240357A1 (en) * 2008-03-20 2009-09-24 Mediatek Inc. Method for finding out the frame of a multimedia sequence
CN102508688A (en) * 2011-09-30 2012-06-20 福州瑞芯微电子有限公司 Method for solving media label information messy codes of multi-media file of android system
CN102567293A (en) * 2010-12-13 2012-07-11 汉王科技股份有限公司 Coded format detection method and coded format detection device for text files
CN104391993A (en) * 2014-12-15 2015-03-04 浪潮(北京)电子信息产业有限公司 Method and system for recognizing webpage codes

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20090240357A1 (en) * 2008-03-20 2009-09-24 Mediatek Inc. Method for finding out the frame of a multimedia sequence
CN102567293A (en) * 2010-12-13 2012-07-11 汉王科技股份有限公司 Coded format detection method and coded format detection device for text files
CN102508688A (en) * 2011-09-30 2012-06-20 福州瑞芯微电子有限公司 Method for solving media label information messy codes of multi-media file of android system
CN104391993A (en) * 2014-12-15 2015-03-04 浪潮(北京)电子信息产业有限公司 Method and system for recognizing webpage codes

Similar Documents

Publication Publication Date Title
CN104917896A (en) Data pushing method and terminal equipment
CN104967802B (en) The method for recording and device of mobile terminal and its plurality of regions on screen
CN106603823A (en) Content sharing method and device and terminal
CN105718071A (en) Terminal and method for recommending associational words in input method
CN104954867A (en) Media playing method and device
CN105208082B (en) A kind of method and device for instructing user's using terminal, terminal
CN104766604A (en) Voice data marking method and device
CN106453939A (en) Streaming media access method and apparatus
CN109033263A (en) A kind of application recommended method and terminal
CN106909681A (en) A kind of information processing method and its device
CN104731508B (en) Audio frequency playing method and device
CN106598538A (en) Method and system for updating instruction set
CN104661095A (en) Audio and video data recommendation method and system
CN106506364A (en) A kind of cut-in method, client and routing server
CN106406733A (en) Anti-mistaken-touch terminal and method
CN105335055A (en) Self-response type realization method and system of menu as well as terminal equipment
CN105187621B (en) The method, apparatus and terminal of message notifying
CN107071161A (en) The aggregation display method and mobile terminal of icon in a kind of status bar
CN106850080A (en) The sending method and mobile terminal of a kind of associated person information
CN106547674A (en) A kind of fingerprint input method, device and terminal
CN106447595A (en) Distributed image and graph rendering method and terminal
CN106777251A (en) A kind of file management method and device
CN106454771A (en) Information sending method and device and terminal
CN106686211A (en) Processing method and terminal for sound playing in split screen mode
CN106776845A (en) A kind of information flow adaptive management method and terminal

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20170222