Specific embodiment
Below in conjunction with the accompanying drawing in the embodiment of the present invention, the technical scheme in the embodiment of the present invention is carried out clear, complete
Site preparation is described, it is clear that described embodiment is a part of embodiment of the invention, rather than whole embodiments.Based on this hair
Embodiment in bright, the every other implementation that those of ordinary skill in the art are obtained under the premise of creative work is not made
Example, belongs to the scope of protection of the invention.
First embodiment
Fig. 1 shows the flow chart of multimedia data processing method in the present embodiment.The multimedia data processing method can be answered
With on the mobile terminals such as smart mobile phone, panel computer, PAD, camera can be installed on mobile terminal.As shown in figure 1, many matchmakers
Volume data processing method includes:
Step 101:Obtain original video data.
Wherein, original video data can be video data or movie video data, or slr camera, intelligence
The video data that the mobile terminals such as energy mobile phone, panel computer, PAD are recorded.
Step 102:Color motif study, the three-dimensional color lookup table of generation are carried out to original video data.
Wherein, three-dimensional color lookup table is associated with the color motif of original video data, can be based on three-dimensional color lookup
Table carries out filter treatment to any multi-medium data, makes its filtering effects identical with the color motif of original video data or phase
Seemingly.In the present embodiment, color motif study is carried out using original video data, because video data is compared to view data, its
The color value sum of appearance approaches rgb space color value sum, makes the color motif of its three-dimensional color lookup table for generating more accurate
Really.
Step 103:Obtain the first multi-medium data.
Wherein, the first multi-medium data includes at least one in image, video and preview frame stream.First multimedia number
According to being the data that carry out filter before processing.First multi-medium data can be the image or video of preservation in mobile terminal,
Can be mobile terminal during multimedia-data procession is carried out, preview image data or the corresponding preview of preview video data
Frame stream.
Step 104:According to three-dimensional color lookup table, filter treatment is carried out to the first multi-medium data, export matchmaker more than second
Volume data.
Wherein, the second multi-medium data is the data that the first multi-medium data formed after filter treatment.Due to solid
Color lookup table is generated after original video data carries out color motif study, color motif and the original of three-dimensional color lookup table
The color motif of beginning video data is same or like, and filter treatment is carried out to the first multi-medium data according to three-dimensional look-up table, makes
The color motif for obtaining its second multi-medium data for being formed is same or like with the color motif of original video data, so that second
Multi-medium data has the filtering effects reached desired by user, realizes that user independently participates in the decision-making of filtering effects design
Journey so that filtering effects design has the advantages that alternative is strong, flexibility is high and the update cycle is fast.
The multimedia data processing method of the embodiment of the present invention, only need to carry out a color motif to original video data
Practise, obtain corresponding three-dimensional color lookup table, you can filter is carried out to the first multi-medium data using the three-dimensional color lookup table
Treatment, without carrying out parameter testing or camera standard effect design again, operating process is simple and can effectively save process time,
Have the advantages that process time is short, flexibility is high, the alternative strong and update cycle is fast.And, the multimedia-data procession side
In method, original video data can independently be determined by user so that user participates in the three-dimensional face formed based on original video data
In the filtering effects design process of color look-up table, independence is strong so that customer acceptance degree is high, can improve the extensive of user group
Property.
Second embodiment
Fig. 2 shows the flow chart of multimedia data processing method in the present embodiment.The multimedia data processing method can be answered
With on the mobile terminals such as smart mobile phone, panel computer, PAD, camera can be installed on mobile terminal.As shown in Fig. 2 many matchmakers
Volume data processing method includes:
Step 201:Obtain original video data.
Wherein, original video data can be video data or movie video data, or slr camera, intelligence
The video data that the mobile terminals such as energy mobile phone, panel computer, PAD are recorded.
Step 202:Original video data is decoded, original video frame stream is generated.
Wherein, original video data can be the Video coding of the forms such as AVI, MOV and MP4, be provided with the terminal
Codec Codec, codec Codec is made up of codec/decoder, for being responsible for compiling original video data
Code/decoding.In the present embodiment, codec Codec is decoded to original video data, to form original video frame stream, with
It is easy to process original video frame stream, including but not limited to step S203 and step S204.
Step 203:Carry out white balance correction and colour correction successively to original video frame stream, generate intermediate video frame stream.
Wherein, mobile terminal carries out white balance correction using white balance algorithm to original video frame stream, to improve original regarding
R, G, B three primary colours mixing of frequency frame stream accuracy white after generating, it is to avoid existing partially green, partially blue, inclined in original video frame outflow
It is red to wait color error ratio phenomenon.White balance algorithm includes but is not limited to grey world (grey world method), based on dynamic
AWB method (Automatic White Balance Method) of threshold value etc..
Wherein, mobile terminal carries out colour correction using color correcting algorithms to original video frame stream, i.e., using standard face
Color carries out colour correction to original video frame stream.Color correcting algorithms include but is not limited to polynomial regression, error and reversely pass
Broadcast (Error Back Propagation, BP) algorithm and SVMs (support vector machine, SVR) method.
Step 204:By deep learning neutral net, three-dimensional color lookup table training is carried out to middle stream of video frames, it is raw
Into three-dimensional color lookup table.Three-dimensional color lookup table includes the original rgb space color value with mapping relations and by three-dimensional
The filter rgb space color value for filter treatment after color lookup table training.
Specifically, when being trained to color correction storehouse using deep learning neutral net (deep leanning), god is made
Through the color sum in first sum corresponding color space, and the color of each color space one neuron of correspondence, using deep learning
Neutral net is trained, and has the advantages that the training time is short, required memory space is small, treatment effeciency is fast.
Three-dimensional color lookup table (i.e. 3D-LUT) includes the original rgb space color value with mapping relations and by three-dimensional
The filter rgb space color value for filter treatment after color lookup table training, wherein, original rgb space color value and filter
Mirror rgb space color value is the color value of RGB color.In RGB color, based on the principle of three primary colours, primary colours are used
Light unit represents the amount of light, and any coloured light F can be different using R (Red, red), G (Green, green), B (Blue, blue) three colors
The addition of component is mixed, i.e. F=r [R]+g [G]+b [B].In RGB color store rgb space color value sum compared with
It is many, make it more simple and convenient in space translation process.
In the present embodiment, original video data is decoded, white balance correction and colour correction are then carried out again, finally
It is trained by deep learning neutral net again, to complete to carry out original video data Color mode study, generation is three-dimensional
Color lookup table.Color motif study is carried out using original video data, because video data is compared to view data, its appearance
Color value sum approach rgb space color value sum, make its generate three-dimensional color lookup table color motif it is more accurate.
Step 205:Obtain the first multi-medium data.
Wherein, the first multi-medium data includes at least one in image, video and preview frame stream.First multimedia number
According to being the data that carry out filter before processing.First multi-medium data can be the image or video of preservation in mobile terminal,
Can be mobile terminal during multimedia-data procession is carried out, preview image data or the corresponding preview of preview video data
Frame stream.
Step 206:Obtain the data type of the first multi-medium data.
The scheme of the embodiment of the present invention can both process the multi-medium data of yuv data type, it is also possible to process RGB data
The multi-medium data of type, the data type of the first multi-medium data has diversity so that mobile terminal can be more based on this
The range of application that media data processing method carries out filter treatment is wider.
Step 207:If data type is RGB types, step 209 is performed.
Specifically, if the data type of the first multi-medium data be RGB types, i.e. the first multi-medium data appoint between coloured light it is equal
Can be added using the color component of the color of R, G, B tri- and mixed, can be with rgb space color value come with three-dimensional color lookup table
The data type of the original rgb space color value with mapping relations of middle storage is identical, can be directly based upon three-dimensional color lookup
Table obtains filter rgb space color value, therefore jumps directly to step 209.
Step 208:If data type is YVU types, the first multi-medium data is converted into rgb format, then performed
Step 209.
Specifically, if the first multi-medium data is YVU types, and stored in three-dimensional color lookup table with mapping relations
The data type of original rgb space color value be RGB types, therefore the first multi-medium data need to be converted into rgb format, and
Perform step 209.
Wherein " Y " represents lightness (Luminance or Luma), that is, grey decision-making;And " U " and " V " expression is then
Colourity (Chrominance or Chroma), effect is description colors of image and saturation degree, for the color of specified pixel.It is " bright
Degree " is set up through RGB input signals, and method is that the specific part of rgb signal is superimposed together." colourity " is then defined
Two aspects-tone and the saturation degree of color, is represented with Cr and CB respectively.Wherein, Cr reflects GB input signals red
Difference between part and rgb signal brightness value.And CB reflections is RGB input signals blue portion and rgb signal brightness value
With difference.YVU codings are that RGB codings are obtained into luminance signal Y and two colour difference signal R-Y by matrixer
(i.e. U), B-Y (i.e. V), then three signals of brightness and aberration are encoded respectively obtained by, therefore YUV codings and RBG codings
Between it is interchangeable.
Step 209:According to described original rgb space color value and the filter rgb space in three-dimensional color lookup table
The mapping relations of color value, map first multi-medium data, export the second multi-medium data.
Because step 207 and step 208 determine that the data type of the first multi-medium data of final output is RGB types,
Data type with the original rgb space color value in three-dimensional color lookup table is consistent, using the first multi-medium data as original
The three-dimensional color lookup table of rgb space color value input, you can obtain by the filter rgb space after the training of three-dimensional color lookup table
Color value, is output as the second multi-medium data.Specific mapping method is, f (r, g, b)=color, in three-dimensional color lookup table
The color value identical coordinate with the first multi-medium data is found respectively, and mapping is found in three-dimensional color lookup table according to coordinate
Color value, this color value be filter treatment end value.
Step 210:Receive the idsplay order for the second multi-medium data.
The idsplay order is used to make mobile terminal show that the first multi-medium data carries out more than second of formation after filter treatment
Media data.Idsplay order can be touched using modes such as button triggering, touch-screen triggering, gesture triggering or speech recognition triggerings
Hair, so that user can select a triggering mode input idsplay order, simple operation according to use habit.
Step 211:Show the second multi-medium data.
I.e. user can be to mobile terminal input pin to the idsplay order of the second multi-medium data, and mobile terminal is according to receiving
Idsplay order shows corresponding the second multi-medium data with filtering effects, so that user is seen whenever and wherever possible by mobile terminal
See the second multi-medium data.
Step 212:Receive the store instruction for the second multi-medium data.
The store instruction is the instruction for making mobile terminal store the second multi-medium data.Store instruction can use button
The modes such as triggering, touch-screen triggering, gesture triggering or speech recognition triggering are triggered, so that user can select according to use habit
One triggering mode is input into store instruction, simple operation.
Step 213:Second multi-medium data is converted into target data form.
Wherein, target data form is the data form with the pre-arranged code type matching of the second multi-medium data.Mesh
Mark data form include but is not limited to MPEG-2, PMEG-4, H.264/AVC, the form such as AVS.
Step 214:The second multi-medium data by data conversion is encoded.
Wherein, mobile terminal is encoded using codec Codec to the second multi-medium data by data conversion,
It is used to remove substantial amounts of redundancy in the second multi-medium data, to compress the second multi-medium data.
Step 214:The second multi-medium data after storage is encoded.
Mobile terminal storage it is encoded after the second multi-medium data, due to coding after the second multi-medium data removal
Substantial amounts of redundancy so that the memory space needed for it is small.Be stored with the second multi-medium data in mobile terminal, so that user
Second multi-medium data can be at any time checked, and without entering to be about to again to obtain three-dimensional color lookup table based on original video data,
Being then based on the first multi-medium data and three-dimensional color lookup table carries out the steps such as filter treatment, can be effectively time-consuming.
The multimedia data processing method of the embodiment of the present invention, only need to carry out a color motif to original video data
Practise, obtain corresponding three-dimensional color lookup table, you can filter is carried out to the first multi-medium data using the three-dimensional color lookup table
Treatment, without carrying out parameter testing or camera standard effect design again, operating process is simple and can effectively save process time,
Have the advantages that process time is short, flexibility is high, the alternative strong and update cycle is fast.Secondly, the multimedia-data procession side
In method, original video data can independently be determined by user so that user participates in the three-dimensional face formed based on original video data
In the filtering effects design process of color look-up table, independence is strong so that customer acceptance degree is high, can improve the extensive of user group
Property.Furthermore, in the multimedia data processing method, by being decoded to original video data after obtain original video frame stream successively
White balance correction and colour correction are carried out, to ensure the color effect of the intermediate video frame stream of generation;And again by depth
Stream of video frames carries out three-dimensional color lookup table training between practising Internet on middle, can effectively save the training time, improves treatment effeciency.And
And, mobile terminal can show corresponding the second multi-medium data with filtering effects according to idsplay order is received, to use
The second multi-medium data is watched in family whenever and wherever possible by mobile terminal.In addition, the second multimedia after mobile terminal storage coding
Data, required memory space is small so that can be directly invoked when user checks the second multi-medium data next time, when can effectively save
Between.
3rd embodiment
Corresponding to the multimedia data processing method of foregoing embodiments, Fig. 3 and Fig. 4 be shown respectively in the present embodiment with above
The structured flowchart of the one-to-one mobile terminal of multimedia data processing method that first embodiment and second embodiment are provided,
The mobile terminal can realize the details of the multimedia data processing method in first embodiment and second embodiment, and reach identical
Effect.As shown in figure 3, the mobile terminal includes:
Original video receiver module 310, for obtaining original video data.
Color motif study module 320, for carrying out color motif study, the three-dimensional face of generation to the original video data
Color look-up table.
Multi-medium data acquisition module 330, for obtaining the first multi-medium data.
Filter processing module 340, for according to the three-dimensional color lookup table, being filtered to first multi-medium data
Mirror treatment, exports the second multi-medium data.
Optionally, as shown in Fig. 3 combinations Fig. 4, mobile terminal also includes:
Original video decoder module 350, for being decoded to the original video data, generates original video frame stream.
Optionally, as shown in Fig. 3 combinations Fig. 4, color motif study module 320 includes:
Intermediate video frame stream generate submodule 321, for the original video frame stream is carried out successively white balance correction and
Colour correction, generates intermediate video frame stream.
Look-up table trains submodule 322, for by deep learning neutral net, being stood to the intermediate video frame stream
Body color lookup table is trained, the three-dimensional color lookup table of generation.
Optionally, as shown in Fig. 3 combinations Fig. 4, mobile terminal also includes:
Data type acquisition module 360, the data type for obtaining first multi-medium data.
First processing module 371, if being RGB types for the data type, jumps to the filter processing module.
Second processing module 372, if being YVU types for the data type, first multi-medium data is turned
Rgb format is changed to, the filter processing module is then branched to.
Optionally, the three-dimensional color lookup table includes the original rgb space color value with mapping relations and by vertical
The filter rgb space color value for filter treatment after the training of body color lookup table.
Optionally, the filter processing module 340 is additionally operable to, according to described original in the three-dimensional color lookup table
The mapping relations of rgb space color value and the filter rgb space color value, map first multi-medium data,
Export the second multi-medium data.
Optionally, as shown in Fig. 3 combinations Fig. 4, mobile terminal also includes:
Idsplay order receiver module 381, for receiving the idsplay order for second multi-medium data.
Media data display module 382, for showing second multi-medium data.
Optionally, as shown in Fig. 3 combinations Fig. 4, stating mobile terminal also includes:
Store instruction receiver module 391, for receiving the store instruction for second multi-medium data.
Data format conversion module 392, for second multi-medium data to be converted into target data form.
Data coding module 393, for being encoded to second multi-medium data by data conversion.
Data memory module 394, for store it is encoded after second multi-medium data.
Wherein, the target data form is the data with the pre-arranged code type matching of second multi-medium data
Form.
Optionally, first multi-medium data includes at least one in image, video and preview frame stream.
The mobile terminal of the embodiment of the present invention, by above-mentioned module, can carry out color to the original video data of user input
Color keynote study, three-dimensional color lookup table of the generation with filtering effects;Then using three-dimensional color lookup table to obtain the
One multi-medium data carries out filter treatment, to export the second multi-medium data with filtering effects.And, need to only be regarded to original
Frequency obtains corresponding three-dimensional color lookup table, you can utilize the three-dimensional color lookup table according to a color motif study is carried out
Filter treatment is carried out to the first multi-medium data, without carrying out parameter testing or camera standard effect design, operating process again
It is simple and can effectively save process time, with process time it is short, that flexibility is high, the alternative strong and update cycle is fast is excellent
Point.Secondly, in the mobile terminal, original video data can independently be determined by user so that user is participated in based on original video
In the filtering effects design process of the three-dimensional color lookup table that data are formed, independence is strong so that customer acceptance degree is high, can carry
The popularity of user group high.Furthermore, in the mobile terminal, by being decoded to original video data after obtain original video frame
Stream carries out white balance correction and colour correction successively, to ensure the color effect of the intermediate video frame stream of generation;And pass through again
Stream of video frames carries out three-dimensional color lookup table training between deep learning Internet on middle, can effectively save the training time, raising treatment
Efficiency.And, mobile terminal can show corresponding the second multi-medium data with filtering effects according to idsplay order is received,
So that user watches the second multi-medium data whenever and wherever possible by mobile terminal.In addition, after mobile terminal storage coding second
Multi-medium data, required memory space is small so that can be directly invoked when user checks the second multi-medium data next time, can effectively save
Save time.
Fourth embodiment
Fig. 5 is the block diagram of the mobile terminal of fourth embodiment of the invention.Mobile terminal 500 shown in Fig. 5 includes:At least one
Individual processor 501, memory 502, at least one network interface 504 and user interface 503.Each group in mobile terminal 500
Part is coupled by bus system 505.It is understood that bus system 505 is used to realize the connection communication between these components.
Bus system 505 in addition to including data/address bus, also including power bus, controlling bus and status signal bus in addition.But in order to
For the sake of clear explanation, various buses are all designated as bus system 505 in Figure 5.
Wherein, user interface 503 can include display, keyboard or pointing device (for example, mouse, trace ball
(trackball), touch-sensitive plate or touch-screen etc..
It is appreciated that the memory 502 in the embodiment of the present invention can be volatile memory or nonvolatile memory,
Or may include both volatibility and nonvolatile memory.Wherein, nonvolatile memory can be read-only storage (Read-
OnlyMemory, ROM), programmable read only memory (ProgrammableROM, PROM), Erasable Programmable Read Only Memory EPROM
(ErasablePROM, EPROM), Electrically Erasable Read Only Memory (ElectricallyEPROM, EEPROM) dodge
Deposit.Volatile memory can be random access memory (RandomAccessMemory, RAM), and it is used as outside slow at a high speed
Deposit.By exemplary but be not restricted explanation, the RAM of many forms can use, such as static RAM
(StaticRAM, SRAM), dynamic random access memory (DynamicRAM, DRAM), Synchronous Dynamic Random Access Memory
(SynchronousDRAM, SDRAM), double data speed synchronous dynamic RAM (DoubleDataRate
SDRAM, DDRSDRAM), enhanced Synchronous Dynamic Random Access Memory (Enhanced SDRAM, ESDRAM), synchronized links
Dynamic random access memory (SynchlinkDRAM, SLDRAM) and direct rambus random access memory
(DirectRambusRAM, DRRAM).The memory 502 of system and method described herein be intended to including but not limited to these and
The memory of any other suitable type.
In some embodiments, memory 502 stores following element, can perform module or data structure, or
Person their subset, or their superset:Operating system 5021 and application program 5022.
Wherein, operating system 5021, comprising various system programs, such as ccf layer, core library layer, driving layer etc. are used for
Realize various basic businesses and process hardware based task.Application program 5022, comprising various application programs, such as media
Player (MediaPlayer), browser (Browser) etc., for realizing various applied business.Realize embodiment of the present invention side
The program of method may be embodied in application program 5022.
In embodiments of the present invention, by the program for calling memory 502 to store or instruction, specifically, can be application
The program stored in program 5022 or instruction, processor 501 are used for:Obtain original video data;To the original video data
Carry out color motif study, the three-dimensional color lookup table of generation;Obtain the first multi-medium data;According to the three-dimensional color lookup
Table, filter treatment is carried out to first multi-medium data, exports the second multi-medium data.
The method that the embodiments of the present invention are disclosed can apply in processor 501, or be realized by processor 501.
Processor 501 is probably a kind of integrated circuit sensor, the disposal ability with signal.In implementation process, the above method
Each step can be completed by the instruction of the integrated logic circuit of the hardware in processor 501 or software form.Above-mentioned place
Reason device 501 can be general processor, digital signal processor (DigitalSignalProcessor, DSP), special integrated electricity
Road (ApplicationSpecific IntegratedCircuit, ASIC), ready-made programmable gate array
(FieldProgrammableGateArray, FPGA), GPU or other PLDs, discrete gate or transistor
Logical device, discrete hardware components.Can realize or perform disclosed each method in the embodiment of the present invention, step and logic
Block diagram.General processor can be microprocessor or the processor can also be any conventional processor etc..With reference to this hair
The step of method disclosed in bright embodiment, can be embodied directly in hardware decoding processor and perform completion, or be processed with decoding
Hardware and software module combination in device performs completion.Software module may be located at random access memory, flash memory, read-only storage,
In the ripe storage medium in this area such as programmable read only memory or electrically erasable programmable memory, register.This is deposited
Storage media is located at memory 502, and processor 501 reads the information in memory 502, and the step of the above method is completed with reference to its hardware
Suddenly.
It is understood that embodiments described herein can with hardware, software, firmware, middleware, microcode or its
Combine to realize.Realized for hardware, processing module can be realized in one or more application specific integrated circuits
(ApplicationSpecificIntegratedCircuits, ASIC), digital signal processor
(DigitalSignalProcessing, DSP), digital signal processing appts (DSPDevice, DSPD), programmable logic device
(ProgrammableLogicDevice, PLD), field programmable gate array (Field-ProgrammableGateArray,
FPGA), GPU, general processor, controller, microcontroller, microprocessor, other electricity for performing herein described function
In submodule or its combination.
Realized for software, can be realized by performing the module (such as process, function etc.) of function described herein herein
Described technology.Software code is storable in memory and by computing device.Memory can within a processor or
Realize processor outside.
Optionally, it is described that color motif study, the step of the three-dimensional color lookup table of generation are carried out to the original video data
Before rapid, processor 501 is additionally operable to:The original video data is decoded, original video frame stream is generated.
Optionally, it is described that color motif study, the step of the three-dimensional color lookup table of generation are carried out to the original video data
Suddenly, processor 501 is additionally operable to:Carry out white balance correction and colour correction successively to the original video frame stream, generate Intermediate View
Frequency frame stream;By deep learning neutral net, three-dimensional color lookup table training is carried out to the intermediate video frame stream, generation is three-dimensional
Color lookup table.
Optionally, it is described that filter treatment is carried out to first multi-medium data according to the three-dimensional color lookup table, it is defeated
Before the step of going out the second multi-medium data, it is described acquisition the first multi-medium data the step of after, processor 501 is additionally operable to:
Obtain the data type of first multi-medium data;If the data type is RGB types, perform described according to described vertical
Body color lookup table, carries out filter treatment to first multi-medium data, the step of the second multi-medium data of output;If described
Data type is YVU types, then first multi-medium data is converted into rgb format, is then performed described according to described vertical
Body color lookup table, carries out filter treatment to first multi-medium data, the step of the second multi-medium data of output.
Optionally, the three-dimensional color lookup table includes the original rgb space color value with mapping relations and by vertical
The filter rgb space color value for filter treatment after the training of body color lookup table.
Optionally, it is described that filter treatment is carried out to first multi-medium data according to the three-dimensional color lookup table, it is defeated
The step of going out the second multi-medium data, including:According to the described original rgb space color value in the three-dimensional color lookup table and
The mapping relations of the filter rgb space color value, map first multi-medium data, export the second multimedia number
According to.
Optionally, it is described that filter treatment is carried out to first multi-medium data according to the three-dimensional color lookup table, it is defeated
After the step of going out the second multi-medium data, processor 501 is additionally operable to:The display received for second multi-medium data refers to
Order;Show second multi-medium data.
Alternatively, it is described that filter treatment is carried out to first multi-medium data according to the three-dimensional color lookup table, it is defeated
After the step of going out the second multi-medium data, processor 501 is additionally operable to:The storage received for second multi-medium data refers to
Order;Second multi-medium data is converted into target data form;To second multi-medium data by data conversion
Encoded;Second multi-medium data after storage is encoded;Wherein, the target data form is and described second
The data form of the pre-arranged code type matching of multi-medium data.
Optionally, first multi-medium data includes at least one in image, video and preview frame stream.
Mobile terminal 500 can realize each process of mobile terminal realization in previous embodiment, to avoid repeating, here
Repeat no more.
The mobile terminal of the embodiment of the present invention, processor 501 can carry out color base to the original video data of user input
Adjust study, three-dimensional color lookup table of the generation with filtering effects;Then using three-dimensional color lookup table to more than the first of acquisition
Media data carries out filter treatment, to export the second multi-medium data with filtering effects.The multimedia data processing method
And in mobile terminal, a color motif study need to be only carried out to original video data, corresponding three-dimensional color lookup table is obtained,
Filter treatment is carried out to the first multi-medium data using the three-dimensional color lookup table, without carrying out parameter testing or phase again
Machine standard effect design, operating process is simple and can effectively save process time, with process time it is short, flexibility is high, optional
The advantage that selecting property is strong and the update cycle is fast.And, in the multimedia data processing method, original video data can be autonomous by user
Determine so that user is participated in the filtering effects design process of the three-dimensional color lookup table formed based on original video data,
Independence is strong so that customer acceptance degree is high, can improve the popularity of user group.
5th embodiment
Fig. 6 is the structural representation of the mobile terminal of fifth embodiment of the invention.Specifically, the mobile terminal 600 in Fig. 6
Can be mobile phone, panel computer, personal digital assistant (PersonalDigital Assistant, PDA) or vehicle-mounted computer etc..
Mobile terminal 600 in Fig. 6 includes radio frequency (RadioFrequency, RF) circuit 610, memory 620, input mould
Block 630, display module 640, processor 660, voicefrequency circuit 670, WiFi (WirelessFidelity) module 680 and power supply
690。
Wherein, input module 630 can be used to receive the numeral or character information of user input, and produce and mobile terminal
600 user is set and the relevant signal input of function control.Specifically, in the embodiment of the present invention, the input module 630 can
With including contact panel 631.Contact panel 631, also referred to as touch-screen, can collect user thereon or neighbouring touch operation
(such as user uses the operations of any suitable object or annex on contact panel 631 such as finger, stylus), and according to advance
The formula of setting drives corresponding attachment means.Optionally, contact panel 631 may include touch detecting apparatus and touch controller
Two parts.Wherein, touch detecting apparatus detect the touch orientation of user, and detect the signal that touch operation brings, by signal
Send touch controller to;Touch controller receives touch information from touch detecting apparatus, and is converted into contact coordinate,
Give the processor 660 again, and the order sent of receiving processor 660 and can be performed.Furthermore, it is possible to using resistance-type,
The polytypes such as condenser type, infrared ray and surface acoustic wave realize contact panel 631.Except contact panel 631, input module
630 can also include other input equipments 632, and other input equipments 632 can include but is not limited to physical keyboard, function key
One or more in (such as volume control button, switch key etc.), trace ball, mouse, action bars etc..
Wherein, display module 640 can be used for display by the information of user input or be supplied to information and the movement of user
The various menu interfaces of terminal 600.Display module 640 may include display panel 641, optionally, can use LCD or organic hairs
The forms such as optical diode (OrganicLight-EmittingDiode, OLED) configure display panel 641.
It should be noted that contact panel 631 can cover display panel 641, touch display screen is formed, when touch display screen inspection
Measure thereon or after neighbouring touch operation, processor 660 is sent to determine the type of touch event, with preprocessor
660 provide corresponding visual output according to the type of touch event in touch display screen.
Touch display screen includes Application Program Interface viewing area and conventional control viewing area.The Application Program Interface viewing area
And the arrangement mode of the conventional control viewing area is not limited, can be arranged above and below, left-right situs etc. can distinguish two and show
Show the arrangement mode in area.The Application Program Interface viewing area is displayed for the interface of application program.Each interface can be with
The interface element such as the icon comprising at least one application program and/or widget desktop controls.The Application Program Interface viewing area
It can also be the empty interface not comprising any content.The conventional control viewing area be used for show utilization rate control higher, for example,
Application icons such as settings button, interface numbering, scroll bar, phone directory icon etc..
Wherein processor 660 is the control centre of mobile terminal 600, using various interfaces and connection whole mobile phone
Various pieces, by running or performing software program and/or module of the storage in first memory 621, and call storage
Data in second memory 622, perform the various functions and processing data of mobile terminal 600, so as to mobile terminal 600
Carry out integral monitoring.Optionally, processor 660 may include one or more processing modules.
In embodiments of the present invention, by call store the first memory 621 in software program and/or module and/
Or the data in the second memory 622, processor 660 is used for:Obtain original video data;The original video data is entered
Row color motif learns, the three-dimensional color lookup table of generation;Obtain the first multi-medium data;According to the three-dimensional color lookup table,
Filter treatment is carried out to first multi-medium data, the second multi-medium data is exported.
Optionally, it is described that color motif study, the step of the three-dimensional color lookup table of generation are carried out to the original video data
Before rapid, processor 660 is additionally operable to:The original video data is decoded, original video frame stream is generated.
Optionally, it is described that color motif study, the step of the three-dimensional color lookup table of generation are carried out to the original video data
Suddenly, processor 660 is additionally operable to:Carry out white balance correction and colour correction successively to the original video frame stream, generate Intermediate View
Frequency frame stream;By deep learning neutral net, three-dimensional color lookup table training is carried out to the intermediate video frame stream, generation is three-dimensional
Color lookup table.
Optionally, it is described that filter treatment is carried out to first multi-medium data according to the three-dimensional color lookup table, it is defeated
Before the step of going out the second multi-medium data, it is described acquisition the first multi-medium data the step of after, processor 660 is additionally operable to:
Obtain the data type of first multi-medium data;If the data type is RGB types, perform described according to described vertical
Body color lookup table, carries out filter treatment to first multi-medium data, the step of the second multi-medium data of output;If described
Data type is YVU types, then first multi-medium data is converted into rgb format, is then performed described according to described vertical
Body color lookup table, carries out filter treatment to first multi-medium data, the step of the second multi-medium data of output.
Optionally, the three-dimensional color lookup table includes the original rgb space color value with mapping relations and by vertical
The filter rgb space color value for filter treatment after the training of body color lookup table.
Optionally, it is described that filter treatment is carried out to first multi-medium data according to the three-dimensional color lookup table, it is defeated
The step of going out the second multi-medium data, including:According to the described original rgb space color value in the three-dimensional color lookup table and
The mapping relations of the filter rgb space color value, map first multi-medium data, export the second multimedia number
According to.
Optionally, it is described that filter treatment is carried out to first multi-medium data according to the three-dimensional color lookup table, it is defeated
After the step of going out the second multi-medium data, processor 660 is additionally operable to:The display received for second multi-medium data refers to
Order;Show second multi-medium data.
Alternatively, it is described that filter treatment is carried out to first multi-medium data according to the three-dimensional color lookup table, it is defeated
After the step of going out the second multi-medium data, processor 660 is additionally operable to:The storage received for second multi-medium data refers to
Order;Second multi-medium data is converted into target data form;To second multi-medium data by data conversion
Encoded;Second multi-medium data after storage is encoded;Wherein, the target data form is and described second
The data form of the pre-arranged code type matching of multi-medium data.
Optionally, first multi-medium data includes at least one in image, video and preview frame stream.The present invention
The mobile terminal of embodiment, processor 660 can carry out color motif study to the original video data of user input, and generation has
The three-dimensional color lookup table of filtering effects;Then filter is carried out to the first multi-medium data for obtaining using three-dimensional color lookup table
Treatment, to export the second multi-medium data with filtering effects.In the multimedia data processing method and mobile terminal, only need
A color motif study is carried out to original video data, corresponding three-dimensional color lookup table is obtained, you can utilize the three-dimensional face
Color look-up table carries out filter treatment to the first multi-medium data, without carrying out parameter testing or camera standard effect design again,
Operating process is simple and can effectively save process time, with process time it is short, flexibility is high, the alternative strong and update cycle
Fast advantage.And, in the multimedia data processing method, original video data can independently be determined by user so that Yong Hucan
In the filtering effects design process to the three-dimensional color lookup table formed based on original video data, independence is strong so that use
The family degree of recognition is high, can improve the popularity of user group.
Those of ordinary skill in the art are it is to be appreciated that the mould of each example described with reference to the embodiments described herein
Block and algorithm steps, can be realized with the combination of electronic hardware or computer software and electronic hardware.These functions are actually
Performed with hardware or software mode, depending on the application-specific and design constraint of technical scheme.Professional and technical personnel
Described function, but this realization can be realized it is not considered that exceeding using distinct methods to each specific application
The scope of the present invention.
It is apparent to those skilled in the art that, for convenience and simplicity of description, the system of foregoing description,
The specific work process of device and module, may be referred to the corresponding process in preceding method embodiment, will not be repeated here.
In embodiment provided herein, it should be understood that disclosed apparatus and method, can be by other
Mode is realized.For example, device embodiment described above is only schematical, for example, the division of the module, is only
A kind of division of logic function, can there is other dividing mode when actually realizing, such as multiple module or components can combine or
Person is desirably integrated into another system, or some features can be ignored, or does not perform.Another, shown or discussed is mutual
Between coupling or direct-coupling or communication connection can be the INDIRECT COUPLING or communication link of device or module by some interfaces
Connect, can be electrical, mechanical or other forms.
The module that is illustrated as separating component can be or may not be it is physically separate, it is aobvious as module
The part for showing can be or may not be physical module, you can with positioned at a place, or can also be distributed to multiple
On mixed-media network modules mixed-media.Some or all of module therein can be according to the actual needs selected to realize the mesh of this embodiment scheme
's.
In addition, during each functional module in each embodiment of the invention can be integrated in a processing module, it is also possible to
It is that modules are individually physically present, it is also possible to which two or more modules are integrated in a module.
If the function is to realize in the form of software function module and as independent production marketing or when using, can be with
Storage is in a computer read/write memory medium.Based on such understanding, technical scheme is substantially in other words
The part contributed to prior art or the part of the technical scheme can be embodied in the form of software product, the meter
Calculation machine software product is stored in a storage medium, including some instructions are used to so that a computer equipment (can be individual
People's computer, server, or network equipment etc.) perform all or part of step of each embodiment methods described of the invention.
And foregoing storage medium includes:USB flash disk, mobile hard disk, ROM, RAM, magnetic disc or CD etc. are various can be with store program codes
Medium.
The above is the preferred embodiment of the present invention, it is noted that for those skilled in the art
For, on the premise of principle of the present invention is not departed from, some improvements and modifications can also be made, these improvements and modifications
Should be regarded as protection scope of the present invention.