Summary of the invention
The embodiment of the present invention provides a kind of method for processing video frequency and device, can improve the interest of Video processing, the Consumer's Experience of augmented video process.
Embodiment of the present invention first aspect provides a kind of method for processing video frequency, and it can comprise:
Obtain pending video, determine each two field picture pending in described pending video;
According to predefined image procossing rule, determine the pending image-region in described each two field picture;
According to the pixel value limited in described image procossing rule, the pixel value of described pending image-region is adjusted to the pixel value of described restriction, obtain the destination image data with predetermined display effect, and described destination image data is added in described pending video, obtain processing rear video.
Wherein, described pending video is obtained by multiple video segment splicing;
The pending video of described acquisition comprises:
From the network communal space or terminal local memory space, obtain multiple video segment, and described multiple video segment is spliced into described pending video.
Wherein, described pending video is obtained by multiple video segment splicing;
The pending video of described acquisition, determine each two field picture pending in described pending video, comprising:
Obtain multiple video segment and splice the pending video obtained, and obtain at least one two field picture of each described stitching portion at least one stitching portion in described pending video;
At least one two field picture of stitching portion described at least one is defined as pending each two field picture.
Wherein, described according to predefined image procossing rule, before determining the pending image-region in described each two field picture, described method also comprises:
According to predetermined display effect, define the image procossing rule that each two field picture pending in pending video is processed;
Wherein, described predetermined display effect is specially: latticed display effect, or right-angled intersection wire display effect, or rotational display effect.
Wherein, the image processing data limited in described image procossing rule comprises: the pixel value that the position of described pending image-region, described pending image-region will be filled.
Wherein, the position of described pending image-region, comprising: the dividing line region every two field picture being divided into the subgraph of multiple enclosed region, or the appointment subregion in described enclosed region.
Wherein, described according to predefined image procossing rule, determine the pending image-region in described each two field picture, comprising:
According to the described dividing line region limited in described image procossing rule, the image-region corresponding with described dividing line region in described pending each two field picture is defined as described pending image-region; Or
According to the described dividing line region limited in described image procossing rule and described appointment subregion, image-region corresponding with described dividing line region and described appointment subregion in described pending each two field picture is defined as described pending image-region.
Wherein, the pixel value that described pending region will be filled is black;
The described pixel value according to limiting in described image procossing rule, is adjusted to the pixel value of described restriction by the pixel value of described pending image-region, obtain the destination image data with predetermined display effect, comprising:
The pixel value of described pending image-region is adjusted to black, obtains the destination image data with described predetermined display effect.
Wherein, described described destination image data to be added in described pending video, to obtain processing rear video, comprising:
Described each two field picture pending in described pending video is replaced, described destination image data to be added in described pending video with the two field picture comprising described destination image data; Or
The original digital image data of described pending image-region is covered, described destination image data to be added in described pending video by described destination image data.
Wherein, describedly described destination image data to be added in described pending video, after obtaining process rear video, described method also comprises:
The described process rear video comprising described destination image data is saved to terminal local memory space, or shares to the communal space.
Embodiment of the present invention second aspect provides a kind of video process apparatus, and it can comprise:
Acquisition module, for obtaining pending video, determines each two field picture pending in described pending video;
Determination module, for according to predefined image procossing rule, determines the pending image-region in described each two field picture;
Processing module, for according to the pixel value limited in described image procossing rule, the pixel value of described pending image-region is adjusted to the pixel value of described restriction, obtain the destination image data with predetermined display effect, and described destination image data is added in described pending video, obtain processing rear video.
Wherein, described pending video is obtained by multiple video segment splicing; Described acquisition module specifically for:
From the network communal space or terminal local memory space, obtain multiple video segment, and described multiple video segment is spliced into described pending video.
Wherein, described pending video is obtained by multiple video segment splicing; Described acquisition module specifically for:
Obtain multiple video segment and splice the pending video obtained, and obtain at least one two field picture of each described stitching portion at least one stitching portion in described pending video;
At least one two field picture of stitching portion described at least one is defined as pending each two field picture.
Wherein, described device also comprises:
Module is set, for according to predetermined display effect, defines the image procossing rule that each two field picture pending in pending video is processed;
Wherein, described predetermined display effect is specially: latticed display effect, or right-angled intersection wire display effect, or rotational display effect.
Wherein, the image processing data limited in described image procossing rule comprises: the pixel value that the position of described pending image-region, described pending image-region will be filled.
Wherein, the position of described pending image-region, comprising: the dividing line region every two field picture being divided into the subgraph of multiple enclosed region, or the appointment subregion in described enclosed region.
Wherein, described determination module specifically for:
According to the described dividing line region limited in described image procossing rule, the image-region corresponding with described dividing line region in described pending each two field picture is defined as described pending image-region; Or
According to the described dividing line region limited in described image procossing rule and described appointment subregion, image-region corresponding with described dividing line region and described appointment subregion in described pending each two field picture is defined as described pending image-region.
Wherein, the pixel value that described pending region will be filled is black;
Described processing module specifically for:
The pixel value of described pending image-region is adjusted to black, obtains the destination image data with described predetermined display effect.
Wherein, described processing module specifically for:
Described each two field picture pending in described pending video is replaced, described destination image data to be added in described pending video with the two field picture comprising described destination image data; Or
The original digital image data of described pending image-region is covered, so that described destination image data is added into described pending video by described destination image data.
Wherein, described terminal also comprises:
Preserve module, for the described process rear video comprising described destination image data is saved to terminal local memory space, or share to the communal space.
The embodiment of the present invention third aspect provides a kind of terminal, and it can comprise: the video process apparatus that embodiment of the present invention second aspect provides and memory;
Described memory, for storing batch processing code;
Described video process apparatus, performs operations in the video process apparatus provided as above-mentioned embodiment of the present invention second aspect for calling the program code that stores in described memory.
First the embodiment of the present invention can obtain pending video and determine each two field picture pending in pending video, the pending image-region in each two field picture of pending video is determined according to predefined image procossing rule, and then the pixel value of above-mentioned appointment view data is filled to the pixel value preset, obtain having the destination image data of predetermined display effect and be added in pending video and obtain the video after processing.The embodiment of the present invention processes pending video according to predefined image procossing rule, enhance the appreciation effect of pending video, improve the Consumer's Experience of Video processing, also can be saved to pending video by processing the destination image data obtained, to share to the communal space by the destination image data with specific display effect, improve the interest of video sharing.
Embodiment
Below in conjunction with the accompanying drawing in the embodiment of the present invention, be clearly and completely described the technical scheme in the embodiment of the present invention, obviously, described embodiment is only the present invention's part embodiment, instead of whole embodiments.Based on the embodiment in the present invention, those of ordinary skill in the art, not making the every other embodiment obtained under creative work prerequisite, belong to the scope of protection of the invention.
In specific implementation, the terminal described in the embodiment of the present invention can comprise: mobile phone, panel computer, notebook computer or digital camera etc., and above-mentioned terminal is only citing, and non exhaustive, including but not limited to above-mentioned terminal.Below will for mobile phone, composition graphs 1 to Fig. 5, the method for processing video frequency provide the embodiment of the present invention and device are specifically described.
See Fig. 1, it is the first embodiment schematic flow sheet of the method for processing video frequency that the embodiment of the present invention provides.Method for processing video frequency described in the present embodiment, comprises step:
S101, obtains pending video, determines each two field picture pending in described pending video.
In specific implementation, the method for processing video frequency that the embodiment of the present invention provides can be performed by certain module in mobile phone or mobile phone, will be specifically described below for mobile phone.
In the execution mode that some are feasible, mobile phone first can obtain pending video from the network communal space or the local memory space of mobile phone, and above-mentioned pending video can be obtained by multiple video segment splicing.In specific implementation, after mobile phone acquires pending video, then can carry out dissection process to above-mentioned pending video, and record the image data information of each frame pending in above-mentioned pending video.Concrete, mobile phone realizes the process to pending video by open GL (Open Graphics Library, OpenGL) shading language (Shading Language, SL).Mobile phone is by the parsing to pending video, obtain the image data information of each frame in pending video, wherein, above-mentioned image data information comprises: the view data of each frame in pending video, or the time location of the view data of each frame above-mentioned in above-mentioned pending video.Namely, when mobile phone can obtain video playback from above-mentioned pending video, the time point that the view data of each frame is corresponding, or the view data etc. that each moment is corresponding, and then can when video playback, according to image procossing rule corresponding to the video display area of terminal during video playback, the view data of each frame above-mentioned or view data corresponding to each moment are processed.
S102, according to predefined image procossing rule, determines the pending image-region in described each two field picture.
In the execution mode that some are feasible, mobile phone can pre-define the image procossing rule processed pending video, concrete, mobile phone can limit the position of pending image-region in video display area in above-mentioned image procossing rule, and the pixel value that above-mentioned pending image-region will be filled.In specific implementation, mobile phone can pre-define the dividing line of the subgraph every two field picture being divided into multiple enclosed region, and record the particular location of every bar dividing line in the video display area position of pending image-region (namely in video display area), comprise: the width W of dividing line start position A, dividing line and length L etc., as a schematic diagram of the Video processing that Fig. 2, Fig. 2 provide for the embodiment of the present invention.Wherein, above-mentioned multiple enclosed region can be any number of (such as 4,9 or 16 etc.), and cellphone subscriber can self-defining according to the actual requirements, does not limit at this.Mobile phone limit in above-mentioned image procossing rule above-mentioned by video display area show every two field picture be divided into the position of the dividing line of the subgraph of multiple enclosed region after, when above-mentioned pending video is play on mobile phone, mobile phone then can according to the image data information of each frame in pending video, determine in above-mentioned pending video with the pending image-region that limits in above-mentioned image procossing rule.Concrete, mobile phone can in the process of pending video playback, according to the time location of view data in above-mentioned pending video of each frame, in conjunction with the position of above-mentioned dividing line, determine the image information (specifying view data) in concrete region corresponding with the position of above-mentioned dividing line in the view data of each frame during pending video playback, and then can be further processed above-mentioned appointment view data according to predefined image procossing rule.
S103, according to the pixel value limited in described image procossing rule, the pixel value of described pending image-region is adjusted to the pixel value of described restriction, obtain the destination image data with predetermined display effect, and described destination image data is added in described pending video, obtain processing rear video.
In the execution mode that some are feasible, when mobile phone defines above-mentioned image procossing rule, the pixel value will filled the pending image-region limited in above-mentioned image procossing rule can be pre-defined.In specific implementation, when mobile phone is according to after in above-mentioned image procossing rule and pending video, the image data information of each frame determines pending image-region, then can modify according to the pixel value of the pixel value limited in above-mentioned image procossing rule to above-mentioned pending image-region, the pixel value of above-mentioned pending image-region is revised as the pixel value limited in image procossing rule, obtains the destination image data with predetermined display effect.As Fig. 2, when pending video is play on mobile phone, after mobile phone determines pending image-region corresponding with each bar dividing line region in Fig. 2 in pending video according to above-mentioned image procossing rule, if the filler pixels value limited in image procossing rule is black, then the pixel value of above-mentioned pending image-region can be revised as black, and then obtain the view data with latticed display effect.After the pixel value of mobile phone to above-mentioned pending image-region is revised as black, then can be saved in above-mentioned pending video by processing the destination image data obtained, when playing above-mentioned destination image data in pending video display process, then can see the video image with latticed display effect, enhance the interest of video playback.In embodiments of the present invention, mobile phone can determine each two field picture in pending video according to the pending video obtained, and the pending image-region in each two field picture can be determined, and then predetermined display effect can be added on above-mentioned pending image-region, such as latticed display effect etc., reduce the lofty property that the view data of pending image-region in video is excessive, the Consumer's Experience of augmented video process.
In embodiments of the present invention, first mobile phone can obtain multiple video segment and splice the pending video obtained, and according to predefined image procossing rule, in conjunction with the image data information of each frame in pending video, determine the pending image-region in pending video, and then the pixel value of above-mentioned pending image-region is adjusted to predefined pixel value, obtain the destination image data with predetermined display effect.The embodiment of the present invention processes splicing the pending video obtained according to predefined image procossing rule, enhances the appreciation effect of pending video, improves the Consumer's Experience of splicing video, improve the interest of video sharing.
See Fig. 3, it is the second embodiment schematic flow sheet of the method for processing video frequency that the embodiment of the present invention provides.Method for processing video frequency described in the present embodiment, comprises step:
S201, obtains multiple video segment from the network communal space or terminal local memory space, and described multiple video segment is spliced into described pending video.
In the execution mode that some are feasible, cellphone subscriber by the camera function capture video fragment voluntarily of mobile phone, and is stored to taking the multiple video segments obtained in the local memory space of mobile phone.When mobile phone carries out video-splicing, directly can obtain multiple video segment from the local memory space of mobile phone, the multiple video segments acquired are spliced into a video (i.e. pending video).In specific implementation, when mobile phone is in networking state, mobile phone also can download multiple video segment from the network communal space, also can be stored to the local memory space of mobile phone by downloading the video segment obtained, and then the video segment that above-mentioned download can be obtained carries out cutting, splicing, obtain one and spliced the pending video obtained by multiple video segment.After mobile phone acquires pending video, by above-mentioned pending video storage in the local memory space of mobile phone, also can share to the network communal space, not limit at this.Wherein, the above-mentioned network communal space can comprise: QQ space, Renren Network, microblogging, micro-letter, Baidu's cloud, ends of the earth community or the communal space that social network-i i-platform provides such as to know, above-mentioned social network-i i-platform is only citing, and it is non exhaustive, including but not limited to above-mentioned social network-i i-platform, do not limit at this.
S202, obtain multiple video segment and splice the pending video obtained, and obtain at least one two field picture of each described stitching portion at least one stitching portion in described pending video, at least one two field picture of stitching portion described at least one is defined as pending each two field picture.
In the execution mode that some are feasible, first mobile phone can obtain pending video from the network communal space or the local memory space of mobile phone, and above-mentioned pending video is obtained by multiple video segment splicing.In specific implementation, after mobile phone acquires pending video, then can carry out dissection process to above-mentioned pending video, obtain each two field picture of each stitching portion in pending video, multiple two field pictures of each stitching portion in stitching portion multiple in pending video are defined as pending each two field picture, to process each two field picture of each stitching portion.Concrete, mobile phone realizes the process to pending video by OpenGL SL.Mobile phone is by the parsing to pending video, process obtains the image data information of each frame pending in pending video, wherein, the image data information of each frame above-mentioned comprises: the view data of each frame in pending video, or the time location of the view data of each frame above-mentioned in above-mentioned pending video.Namely, when mobile phone can obtain video playback from above-mentioned pending video, the time point that the view data of each frame is corresponding, or the view data etc. that each moment is corresponding, and then can when video playback, according to image procossing rule corresponding to the video display area of terminal during video playback, the view data of each frame above-mentioned or view data corresponding to each moment are processed.
S203, according to predetermined display effect, defines the image procossing rule processed each two field picture pending in pending video.
S204, according to predefined image procossing rule, determines the pending image-region in described each two field picture.
In the execution mode that some are feasible, when mobile phone can pre-define terminal plays video, the image procossing rule of the vedio data that the video display area of mobile phone shows, wherein, the image processing data limited in above-mentioned image procossing rule comprises: the position of pending image-region in above-mentioned video display area, or the information such as the pixel value that will fill of above-mentioned pending image-region.Wherein, in above-mentioned video display area, the position of pending image-region comprises: the dividing line region every two field picture being divided into the subgraph of multiple enclosed region, or the appointment subregion etc. in above-mentioned enclosed region.In specific implementation, mobile phone can pre-define dividing line video display area being divided into multiple enclosed region, and record the particular location of every bar dividing line in video display area, wherein, the viewing area at above-mentioned every bar dividing line place is pending image-region, comprising: the width W of dividing line start position A, dividing line and length L etc.Division effect as shown in Fig. 2, Fig. 2 is latticed image display area video display area being divided into multiple enclosed region.In addition, video display area also can be divided into the image display area of the cross wire of multiple enclosed region by the embodiment of the present invention when video display area being divided into multiple enclosed region, as another schematic diagram of the Video processing that Fig. 4, Fig. 4 provide for the embodiment of the present invention.After mobile phone limits the position of the viewing area at dividing line place video display area being divided into multiple enclosed region in above-mentioned image procossing rule, when above-mentioned pending video is play on mobile phone, mobile phone then according to the image data information of each frame in pending video, can determine appointment view data corresponding with the viewing area at above-mentioned dividing line place in above-mentioned pending video.Concrete, mobile phone can in the process of pending video playback, according to the time location of view data in above-mentioned pending video of each frame, in conjunction with the position of above-mentioned dividing line, determine image information (the pending image-region in concrete region corresponding with the position of above-mentioned dividing line in the view data of each frame during pending video playback, or claim to specify view data), and then can be further processed above-mentioned appointment view data according to predefined image procossing rule.
In the execution mode that some are feasible, in the video display area limited in the image procossing rule described in the embodiment of the present invention, the position of pending viewing area also comprises: above-mentioned dividing line divides the appointment subregion in the enclosed region obtained.Namely, in embodiments of the present invention, mobile phone is except processing the appointment view data corresponding with the viewing area at dividing line place, further, also can divide setting in the enclosed region obtained at dividing line and specify subregion, to be further processed by appointment subregion, such as, add predetermined display effect etc.As the another schematic diagram of the Video processing that Fig. 5, Fig. 5 provide for the embodiment of the present invention, mobile phone also can divide setting in the enclosed region obtained at dividing line and specify subregion, to be further processed by appointment subregion.Such as, can set appointment subregion in enclosed region B is: all regions in enclosed region B except enclosed region B1, or in enclosed region C, setting specifies subregion to be: all regions in enclosed region C except enclosed region C1, or in enclosed region D, setting specifies subregion to be: except all regions etc. that enclosed region D1 thinks in enclosed region D.Mobile phone sets above-mentioned position video display area being divided into the dividing line of multiple enclosed region in image procossing rule, and after appointment subregion in each enclosed region above-mentioned, then can be further processed appointment view data corresponding with the position of above-mentioned dividing line or above-mentioned appointment subregion in pending video according to information such as the pixel values set in image procossing rule.
S205, according to the pixel value limited in described image procossing rule, the pixel value of described pending image-region is adjusted to the pixel value of described restriction, obtain the destination image data with predetermined display effect, and described destination image data is added in described pending video, obtain processing rear video.
In the execution mode that some are feasible, when mobile phone defines above-mentioned image procossing rule, the pixel value that the pending image-region limited in above-mentioned image procossing rule is filled can be pre-defined.In specific implementation, after mobile phone to determine according to the image data information of each frame in above-mentioned image procossing rule and pending video and specifies view data (i.e. the view data of pending image-region), then can modify according to the pixel value of the pixel value limited in above-mentioned image procossing rule to above-mentioned pending image-region, the pixel value of above-mentioned pending image is adjusted to the pixel value limited in image procossing rule, obtains the destination image data with predetermined display effect.As Fig. 2, when pending video is play on mobile phone, after mobile phone determines pending image-region corresponding with each bar dividing line region in Fig. 2 in pending video according to above-mentioned image procossing rule, if the filler pixels value limited in image procossing rule is black, then the pixel value of above-mentioned pending image-region can be filled to black, and then obtain the view data with latticed display effect.As Fig. 4, when pending video is play on mobile phone, after mobile phone determines pending image-region corresponding with each bar dividing line region in Fig. 4 in pending video according to above-mentioned image procossing rule, if the filler pixels value limited in image procossing rule is black, then the pixel value of above-mentioned pending image-region can be adjusted to black, and then obtain the view data of the display effect with cross wire.In addition, as Fig. 5, when pending video is play on mobile phone, mobile phone according to above-mentioned image procossing rule determine in pending video with each bar dividing line region in Fig. 5 and specify subregion corresponding pending image-region after, if the filler pixels value limited in image procossing rule is black, then the pixel value of above-mentioned pending image-region can be adjusted to black, and then obtain the view data with latticed display effect and rotational display effect, as Fig. 6.Fig. 6 is by specifying the pixel value of view data corresponding to subregion to be adjusted to black (wherein, shade is filled and is represented black), broadcasting along with pending video can realize the simulate effect that the image in three enclosed region (B, C and D) overturns simultaneously, improves the interest of video.
S206, is saved to terminal local memory space by the described process rear video comprising described destination image data, or shares to the communal space.
In the execution mode that some are feasible, the pixel value of mobile phone to above-mentioned pending image-region is adjusted to after black obtains destination image data, then above-mentioned view data can be saved in above-mentioned pending video.Concrete, mobile phone available packages replaces each two field picture pending in pending video, destination image data to be added in pending video containing the two field picture of above-mentioned destination image data.Further, mobile phone also available targets view data covers the original digital image data of pending image-region, destination image data to be added in pending video.When playing above-mentioned destination image data in pending video display process, then can see the video image with latticed display effect, enhance the interest of video playback.In embodiments of the present invention, mobile phone can according to the feature of splicing video, each frame image data information that the stitching portion that recording of video splices is corresponding, and when defining image procossing rule, the position of pending viewing area can be set as the region corresponding with the image data information of each stitching portion, and then predetermined display effect can be added in the view data at above-mentioned video-splicing place, such as latticed display effect etc.Reduce the lofty property that the view data at video-splicing place is excessive, the Consumer's Experience of augmented video splicing.In specific implementation, after the destination image data that above-mentioned process obtains is saved to pending video by mobile phone, also the process rear video comprising above-mentioned destination image data can be saved to the local memory space of mobile phone, or shares to the network communal space.After the above-mentioned process rear video comprising target image is saved to the network communal space by mobile phone, after other-end downloads above-mentioned process rear video from the above-mentioned network communal space, above-mentioned process rear video is play, directly can view the video image with above-mentioned latticed display effect or cross wire display effect or rotational display effect, weaken the lofty transition effect at video-splicing place, enhance the appreciating of video.
In embodiments of the present invention, mobile phone is dynamic adjustment image procossing rule also, namely As time goes on, the pending viewing area limited in image procossing rule is carried out converting, adjusting, obtain dynamic pending image-region, mobile phone can be determined pending image-region according to above-mentioned image procossing rule and the pixel value of pending image-region is modified, preserved.When the process rear video comprising the destination image data that above-mentioned amendment obtains is play, along with the passing of reproduction time, then can see grid or the display effect such as cross wire or image rotating of conversion, enhance video playback interest.
In embodiments of the present invention, first mobile phone can obtain multiple video segment and be spliced by above-mentioned multiple video segment, obtain pending video, and according to predefined image procossing rule, in conjunction with the image data information of each frame in pending video, determine pending image-region corresponding with the appointment subregion that predefined dividing line region or dividing line divide in the enclosed region obtained in pending video, and then the pixel value of above-mentioned pending image-region is adjusted to black, obtain the destination image data with latticed display effect or cross wire display effect or rotate effect.The embodiment of the present invention processes splicing the pending video obtained according to predefined image procossing rule, enhance the appreciation effect of pending video, improve the Consumer's Experience of splicing video, also can be saved to pending video by processing the destination image data obtained, and then by there is the video sharing of specific display effect to the communal space, the interest of video sharing can be improve.
See Fig. 7, it is the first example structure schematic diagram of the video process apparatus that the embodiment of the present invention provides.Video process apparatus described in the present embodiment, comprising:
Acquisition module 10, for obtaining pending video, determines each two field picture pending in described pending video.
Determination module 20, for according to predefined image procossing rule, determines the pending image-region in described each two field picture.
Processing module 30, for according to the pixel value limited in described image procossing rule, the pixel value of described pending image-region is adjusted to the pixel value of described restriction, obtain the destination image data with predetermined display effect, and described destination image data is added in described pending video, obtain processing rear video.
In specific implementation, the video process apparatus that the embodiment of the present invention provides specifically can be certain module in mobile phone or mobile phone, will be specifically described below for mobile phone.
In the execution mode that some are feasible, mobile phone first can obtain pending video by acquisition module 10 from the network communal space or the local memory space of mobile phone, and above-mentioned pending video can be obtained by multiple video segment splicing.In specific implementation, after acquisition module 10 acquires pending video, then can carry out dissection process to above-mentioned pending video, and record the image data information of each frame pending in above-mentioned pending video.Concrete, acquisition module 10 realizes the process to pending video by OpenGL SL.Acquisition module 10 is by the parsing to pending video, obtain the image data information of each frame in pending video, wherein, above-mentioned image data information comprises: the view data of each frame in pending video, or the time location of the view data of each frame above-mentioned in above-mentioned pending video.Namely, when acquisition module 10 can obtain video playback from above-mentioned pending video, the time point that the view data of each frame is corresponding, or the view data etc. that each moment is corresponding, and then by determination module 20 and processing module 30 when video playback, according to image procossing rule corresponding to the video display area of terminal during video playback, the view data of each frame above-mentioned or view data corresponding to each moment are processed.In specific implementation, the step S101 in the first embodiment of the method for processing video frequency that the specific implementation process of above-mentioned acquisition module can provide see the embodiment of the present invention, does not repeat them here.
In the execution mode that some are feasible, mobile phone can pre-define the image procossing rule processed pending video, concrete, mobile phone can limit the position of pending image-region in video display area in above-mentioned image procossing rule, and the pixel value that above-mentioned pending image-region will be filled.In specific implementation, mobile phone can pre-define the dividing line of the subgraph every two field picture being divided into multiple enclosed region, and record the particular location of every bar dividing line in the video display area position of pending image-region (namely in video display area), comprise: the width W of dividing line start position A, dividing line and length L etc., as a schematic diagram of the Video processing that Fig. 2, Fig. 2 provide for the embodiment of the present invention.Wherein, above-mentioned multiple enclosed region can be any number of (such as 4,9 or 16 etc.), and cellphone subscriber can self-defining according to the actual requirements, does not limit at this.Mobile phone limit in above-mentioned image procossing rule above-mentioned by video display area show every two field picture be divided into the position of the dividing line of the subgraph of multiple enclosed region after, when above-mentioned pending video is play on mobile phone, determination module 20 can in conjunction with above-mentioned image procossing rule, according to the image data information of each frame in pending video, determine in above-mentioned pending video with the pending image-region that limits in above-mentioned image procossing rule.Concrete, determination module 20 can in the process of pending video playback, according to the time location of view data in above-mentioned pending video of each frame, in conjunction with the position of above-mentioned dividing line, determine the image information (specifying view data) in concrete region corresponding with the position of above-mentioned dividing line in the view data of each frame during pending video playback, and then according to predefined image procossing rule, above-mentioned appointment view data is further processed by processing module 30.In specific implementation, the step S102 in the first embodiment of the method for processing video frequency that the specific implementation process of above-mentioned determination module can provide see the embodiment of the present invention, does not repeat them here.
In the execution mode that some are feasible, when mobile phone defines above-mentioned image procossing rule, the pixel value will filled the pending image-region limited in above-mentioned image procossing rule can be pre-defined.In specific implementation, after in the pending video that determination module 20 acquires according to above-mentioned predefined image procossing rule and acquisition module 10, the image data information of each frame determines pending image-region, processing module 30 can be modified according to the pixel value of the pixel value limited in above-mentioned image procossing rule to above-mentioned pending image-region, the pixel value of above-mentioned pending image-region is revised as the pixel value limited in image procossing rule, obtains the destination image data with predetermined display effect.As Fig. 2, when pending video is play on mobile phone, after determination module 20 determines pending image-region corresponding with each bar dividing line region in Fig. 2 in pending video according to above-mentioned image procossing rule, if the filler pixels value limited in above-mentioned image procossing rule is black, the pixel value of above-mentioned pending image-region can be adjusted to black by processing module 30, and then obtains the view data with latticed display effect.After the pixel value of processing module 30 to above-mentioned pending image-region is adjusted to black, preserving module 40 can be saved in above-mentioned pending video by processing the destination image data obtained, when playing above-mentioned destination image data in pending video display process, then can see the video image with latticed display effect, enhance the interest of video playback.In embodiments of the present invention, acquisition module 10 can determine each two field picture in pending video according to the pending video obtained, and the pending image-region in each two field picture can be determined, determination module 20 can add predetermined display effect on above-mentioned pending image-region, such as latticed display effect etc., reduce the lofty property that the view data of pending image-region in video is excessive, the Consumer's Experience of augmented video process.In specific implementation, the step S103 in the first embodiment of the method for processing video frequency that above-mentioned processing module and the specific implementation process of preserving module can provide see the embodiment of the present invention, does not repeat them here.
In embodiments of the present invention, first mobile phone can obtain multiple video segment and splice the pending video obtained, and according to predefined image procossing rule, in conjunction with the image data information of each frame in pending video, determine the pending image-region in pending video, and then the pixel value of above-mentioned pending image-region is adjusted to predefined pixel value, obtain the destination image data with predetermined display effect.The embodiment of the present invention processes splicing the pending video obtained according to predefined image procossing rule, enhances the appreciation effect of pending video, improves the Consumer's Experience of splicing video, improve the interest of video sharing.
See Fig. 8, it is the second example structure schematic diagram of the video process apparatus that the embodiment of the present invention provides.Video process apparatus described in the present embodiment, comprising:
Acquisition module 11, for obtaining pending video, determines each two field picture pending in described pending video.
Determination module 70, for according to predefined image procossing rule, determines the pending image-region in described each two field picture.
Processing module 80, for according to the pixel value limited in described image procossing rule, the pixel value of described pending image-region is adjusted to the pixel value of described restriction, obtain the destination image data with predetermined display effect, and described destination image data is added in described pending video, obtain processing rear video.
In the execution mode that some are feasible, acquisition module 11 described in the embodiment of the present invention can perform the implementation performed by acquisition module 10 in above-mentioned first embodiment, also can perform following operation:
In the execution mode that some are feasible, above-mentioned pending video is obtained by multiple video segment splicing; Above-mentioned acquisition module 11 specifically for:
From the network communal space or terminal local memory space, obtain multiple video segment, and described multiple video segment is spliced into described pending video.
In the execution mode that some are feasible, above-mentioned pending video is obtained by multiple video segment splicing; Above-mentioned acquisition module 11 specifically for:
Obtain multiple video segment and splice the pending video obtained, and obtain at least one two field picture of each described stitching portion at least one stitching portion in described pending video;
At least one two field picture of stitching portion described at least one is defined as pending each two field picture.
In the execution mode that some are feasible, video process apparatus described in the embodiment of the present invention, also comprises:
Module 60 is set, for according to predetermined display effect, defines the image procossing rule that each two field picture pending in pending video is processed;
Wherein, described predetermined display effect is specially: latticed display effect, or right-angled intersection wire display effect, or rotational display effect.
In the execution mode that some are feasible, above-mentioned determination module 70 specifically can perform the implementation performed by determination module 20 in above-described embodiment, also specifically for:
According to the described dividing line region limited in described image procossing rule, the image-region corresponding with described dividing line region in described pending each two field picture is defined as described pending image-region; Or
According to the described dividing line region limited in described image procossing rule and described appointment subregion, image-region corresponding with described dividing line region and described appointment subregion in described pending each two field picture is defined as described pending image-region.
In the execution mode that some are feasible, above-mentioned processing module 80 specifically can perform the implementation performed by processing module 30 described in above-described embodiment, also specifically for:
The pixel value of described pending image-region is adjusted to black, obtains the destination image data with described predetermined display effect.
In the execution mode that some are feasible, above-mentioned processing module 80 specifically for:
Described each two field picture pending in described pending video is replaced, described destination image data to be added in described pending video with the two field picture comprising described destination image data; Or
The original digital image data of described pending image-region is covered, described destination image data to be added in described pending video by described destination image data.
In the execution mode that some are feasible, the video process apparatus described by the embodiment of the present invention, also comprises:
Preserve module 90, for the described process rear video comprising described destination image data is saved to terminal local memory space, or share to the communal space.
In the execution mode that some are feasible, cellphone subscriber by the camera function capture video fragment voluntarily of mobile phone, and is stored to taking the multiple video segments obtained in the local memory space of mobile phone.When the acquisition module 11 of mobile phone carries out video-splicing, directly can obtain multiple video segment from the local memory space of mobile phone, the multiple video segments acquired are spliced into a video (i.e. pending video).In specific implementation, when mobile phone is in networking state, acquisition module 11 can download multiple video segment from the network communal space, also can be stored to the local memory space of mobile phone by downloading the video segment obtained, and then the video segment that above-mentioned download can be obtained carries out cutting, splicing, obtain one and spliced the pending video obtained by multiple video segment.After acquisition module 11 process obtains pending video, by above-mentioned pending video storage in the local memory space of mobile phone, also can share to the network communal space, not limit at this.Wherein, the above-mentioned network communal space can comprise: QQ space, Renren Network, microblogging, micro-letter, Baidu's cloud, ends of the earth community or the communal space that social network-i i-platform provides such as to know, above-mentioned social network-i i-platform is only citing, and it is non exhaustive, including but not limited to above-mentioned social network-i i-platform, do not limit at this.In specific implementation, the step S201 in the first embodiment of the method for processing video frequency that the specific implementation process of above-mentioned acquisition module 11 can provide see the embodiment of the present invention, does not repeat them here.
In the execution mode that some are feasible, acquisition module 11 can obtain pending video from the network communal space or the local memory space of mobile phone.In specific implementation, after acquisition module 11 acquires pending video, then can carry out dissection process to above-mentioned pending video, obtain each two field picture of each stitching portion in pending video, multiple two field pictures of each stitching portion in stitching portion multiple in pending video are defined as pending each two field picture, to process each two field picture of each stitching portion.Concrete, acquisition module 11 realizes the process to pending video by OpenGL SL, and by the parsing to pending video, process obtains the image data information of each frame pending in pending video.Wherein, the image data information of each frame above-mentioned comprises: the view data of each frame in pending video, or the time location of the view data of each frame above-mentioned in above-mentioned pending video.Namely, when acquisition module 11 can obtain video playback from above-mentioned pending video, the time point that the view data of each frame is corresponding, or the view data etc. that each moment is corresponding, and then by determination module 70 and processing module 80 when video playback, according to image procossing rule corresponding to the video display area of terminal during video playback, the view data of each frame above-mentioned or view data corresponding to each moment are processed.In specific implementation, the step S202 in the first embodiment of the method for processing video frequency that the specific implementation process of above-mentioned acquisition module can provide see the embodiment of the present invention, does not repeat them here.
In the execution mode that some are feasible, when mobile phone pre-defines terminal plays video by arranging module 60, the image procossing rule of the vedio data that the video display area of mobile phone shows.Wherein, the image processing data limited in above-mentioned image procossing rule comprises: the position of pending image-region in above-mentioned video display area, or the information such as the pixel value that will fill of above-mentioned pending image-region.In above-mentioned video display area, the position of pending image-region comprises: the dividing line region every two field picture being divided into the subgraph of multiple enclosed region, or the appointment subregion etc. in above-mentioned enclosed region.In specific implementation, module 60 is set and can pre-defines dividing line video display area being divided into multiple enclosed region, and record the particular location of every bar dividing line in video display area, wherein, the viewing area at above-mentioned every bar dividing line place is pending image-region, comprising: the width W of dividing line start position A, dividing line and length L etc.Division effect as shown in Fig. 2, Fig. 2 is latticed image display area video display area being divided into multiple enclosed region.In addition, the image display area that also video display area can be divided into the cross wire of multiple enclosed region when video display area is divided into multiple enclosed region by module 60 is set, as another schematic diagram of the Video processing that Fig. 4, Fig. 4 provide for the embodiment of the present invention.Arrange after module 60 limits the position of the viewing area at dividing line place video display area being divided into multiple enclosed region in above-mentioned image procossing rule, when above-mentioned pending video is play on mobile phone, determination module 70 according to the image data information of each frame in pending video, can determine appointment view data corresponding with the viewing area at above-mentioned dividing line place in above-mentioned pending video.Concrete, determination module 70 can in the process of pending video playback, according to the time location of view data in above-mentioned pending video of each frame, in conjunction with the above-mentioned position arranging the dividing line that module 60 sets, determine image information (the pending image-region in concrete region corresponding with the position of above-mentioned dividing line in the view data of each frame during pending video playback, or claim to specify view data), and then above-mentioned appointment view data is further processed according to arranging module 60 predefined image procossing rule by processing module 80.
In the execution mode that some are feasible, the above-mentioned position arranging pending viewing area in the video display area limited in module 60 predefined image procossing rule also comprises: above-mentioned dividing line divides the appointment subregion in the enclosed region obtained.Namely, in embodiments of the present invention, processing module 80 is except can processing the appointment view data corresponding with the viewing area at dividing line place, further, module 60 is set and also can divides setting appointment subregion in the enclosed region obtained at dividing line, to be further processed by appointment subregion by processing module 80, such as, add predetermined display effect etc.As the another schematic diagram of the Video processing that Fig. 5, Fig. 5 provide for the embodiment of the present invention, module 60 is set and also can divides setting appointment subregion in the enclosed region obtained, to be further processed by appointment subregion by processing module 80 at dividing line.Such as, arrange module 60 can set in enclosed region B specify subregion be: all regions in enclosed region B except enclosed region B1, or in enclosed region C, setting specifies subregion to be: all regions in enclosed region C except enclosed region C1, or in enclosed region D, setting specifies subregion to be: except all regions etc. that enclosed region D1 thinks in enclosed region D.Module 60 is set in image procossing rule, sets above-mentioned position video display area being divided into the dividing line of multiple enclosed region, and after appointment subregion in each enclosed region above-mentioned, processing module 80 can be further processed appointment view data corresponding with the position of above-mentioned dividing line or above-mentioned appointment subregion in pending video according to information such as arranging the pixel value that limits in image procossing rule that module 60 sets.In specific implementation, the step S203-S204 in the first embodiment of the method for processing video frequency that the above-mentioned specific implementation process arranging module and determination module can provide see the embodiment of the present invention, does not repeat them here.
In the execution mode that some are feasible, arrange module 60 define above-mentioned image procossing rule time, the pixel value that the pending image-region limited in above-mentioned image procossing rule is filled can be pre-defined.In specific implementation, when determination module 70 is according to after in above-mentioned image procossing rule and pending video, the image data information of each frame determines pending image-region, processing module 80 can be modified according to the pixel value of the pixel value limited in above-mentioned image procossing rule to above-mentioned pending image-region, the pixel value of above-mentioned pending image-region is revised as the pixel value limited in image procossing rule, obtains the destination image data with predetermined display effect.As Fig. 2, when pending video is play on mobile phone, after determination module 70 determines pending image-region corresponding with each bar dividing line region in Fig. 2 in pending video according to above-mentioned image procossing rule, if arranging the filler pixels value limited in the image procossing rule of module 60 setting is black, the pixel value of above-mentioned pending image-region can be revised as black by processing module 80, and then obtains the view data with latticed display effect.As Fig. 4, when pending video is play on mobile phone, after determination module 70 determines pending image-region corresponding with each bar dividing line region in Fig. 4 in pending video according to above-mentioned image procossing rule, if arranging the filler pixels value limited in the image procossing rule of module 60 setting is black, the pixel value of above-mentioned pending image-region can be revised as black by processing module 80, and then obtains the view data of the display effect with cross wire.In addition, as Fig. 5, when pending video is play on mobile phone, determination module 70 according to above-mentioned image procossing rule determine in pending video with each bar dividing line region in Fig. 5 and specify subregion corresponding pending image-region after, if arranging the filler pixels value limited in the image procossing rule of module 60 setting is black, the pixel value of above-mentioned pending image-region can be revised as black by processing module 80, and then obtain the view data with latticed display effect and rotational display effect, as Fig. 6.Fig. 6 is by specifying the pixel value of view data corresponding to subregion to be adjusted to black (wherein, shade is filled and is represented black), broadcasting along with pending video can realize the simulate effect that the image in three enclosed region (B, C and D) overturns simultaneously, improves the interest of video.In specific implementation, the step S205 in the first embodiment of the method for processing video frequency that the specific implementation process of above-mentioned processing module can provide see the embodiment of the present invention, does not repeat them here.
In the execution mode that some are feasible, the pixel value of processing module 80 to above-mentioned pending image-region is revised as after black obtains destination image data, then above-mentioned view data be saved in above-mentioned pending video by preserving module 90.Concrete, preserve module 90 available packages and replace each two field picture pending in pending video, destination image data to be added in pending video containing the two field picture of above-mentioned destination image data.Further, preserve module 90 and go back the original digital image data that available targets view data covers pending image-region, destination image data to be added in pending video.When playing above-mentioned destination image data in pending video display process, then can see the video image with latticed display effect, enhance the interest of video playback.In embodiments of the present invention, acquisition module 11 can according to the feature of splicing video, each frame image data information that the stitching portion that recording of video splices is corresponding, and by arranging module 60 when defining image procossing rule, the position of pending viewing area is set as the region corresponding with the image data information of each stitching portion, and then in the view data at above-mentioned video-splicing place, add predetermined display effect by processing module 80, such as latticed display effect etc., reduce the lofty property that the view data at video-splicing place is excessive, the Consumer's Experience of augmented video splicing.In specific implementation, preserve module 90 and processing module 80 process after the destination image data obtained is saved to pending video, also the process rear video comprising above-mentioned destination image data can be saved to mobile phone this locality memory space, or share to the network communal space.After the above-mentioned process rear video comprising target image is saved to the network communal space by preservation module 90, after other-end downloads above-mentioned process rear video from the above-mentioned network communal space, above-mentioned process rear video is play, directly can view the video image with above-mentioned latticed display effect or cross wire display effect or rotational display effect, weaken the lofty transition effect at video-splicing place, enhance the appreciating of video.
In embodiments of the present invention, module 60 is set and goes back dynamic adjustment image procossing rule, namely As time goes on, the pending viewing area limited in image procossing rule is carried out converting, adjusting, obtain dynamic pending image-region, determination module 70 can determine pending image-region according to above-mentioned image procossing rule, and by processing module 80, the pixel value of pending image-region is modified, preserved.When the process rear video comprising the destination image data that above-mentioned amendment obtains is play, along with the passing of reproduction time, then can see grid or the display effect such as cross wire or image rotating of conversion, enhance video playback interest.In specific implementation, the step S206 in the first embodiment of the method for processing video frequency that the specific implementation process of above-mentioned preservation module can provide see the embodiment of the present invention, does not repeat them here.
In embodiments of the present invention, first mobile phone can obtain multiple video segment and be spliced by above-mentioned multiple video segment, obtain pending video, and according to predefined image procossing rule, in conjunction with the image data information of each frame in pending video, determine pending image-region corresponding with the appointment subregion that predefined dividing line region or dividing line divide in the enclosed region obtained in pending video, and then the pixel value of above-mentioned pending image-region is adjusted to black, obtain the destination image data with latticed display effect or cross wire display effect or rotate effect.The embodiment of the present invention processes splicing the pending video obtained according to predefined image procossing rule, enhance the appreciation effect of pending video, improve the Consumer's Experience of splicing video, also can be saved to pending video by processing the destination image data obtained, and then by there is the video sharing of specific display effect to the communal space, the interest of video sharing can be improve.
See Fig. 9, it is the example structure schematic diagram of the terminal that the embodiment of the present invention provides.Terminal described in the present embodiment, comprising: memory 1000 and video process apparatus 2000, and above-mentioned memory 1000 is connected with video process apparatus 2000.
In specific implementation, above-mentioned memory 1000 is for storing batch processing code, above-mentioned video process apparatus 2000, for calling the program code stored in above-mentioned memory 1000, performs the implementation described in method for processing video frequency that above-described embodiment provides, does not repeat them here.Namely, in embodiments of the present invention, above-mentioned video process apparatus 2000 specifically can be the first embodiment of the video process apparatus that the embodiment of the present invention provides or the video process apparatus described in the second embodiment, and its implementation see above-described embodiment, can not repeat them here.
In the description of this specification, specific features, structure, material or feature that the description of reference term " embodiment ", " some embodiments ", " example ", " concrete example " or " some examples " etc. means to describe in conjunction with this embodiment or example are contained at least one embodiment of the present invention or example.In this manual, to the schematic representation of above-mentioned term not must for be identical embodiment or example.And the specific features of description, structure, material or feature can combine in one or more embodiment in office or example in an appropriate manner.In addition, when not conflicting, the feature of the different embodiment described in this specification or example and different embodiment or example can carry out combining and combining by those skilled in the art.
In addition, term " first ", " second " only for describing object, and can not be interpreted as instruction or hint relative importance or imply the quantity indicating indicated technical characteristic.Thus, be limited with " first ", the feature of " second " can express or impliedly comprise at least one this feature.In describing the invention, the implication of " multiple " is at least two, such as two, three etc., unless otherwise expressly limited specifically.
Describe and can be understood in flow chart or in this any process otherwise described or method, represent and comprise one or more for realizing the module of the code of the executable instruction of the step of specific logical function or process, fragment or part, and the scope of the preferred embodiment of the present invention comprises other realization, wherein can not according to order that is shown or that discuss, comprise according to involved function by the mode while of basic or by contrary order, carry out n-back test, this should understand by embodiments of the invention person of ordinary skill in the field.
In flow charts represent or in this logic otherwise described and/or step, such as, the sequencing list of the executable instruction for realizing logic function can be considered to, may be embodied in any computer-readable medium, for instruction execution system, device or equipment (as computer based system, comprise the system of processor or other can from instruction execution system, device or equipment instruction fetch and perform the system of instruction) use, or to use in conjunction with these instruction execution systems, device or equipment.With regard to this specification, " computer-readable medium " can be anyly can to comprise, store, communicate, propagate or transmission procedure for instruction execution system, device or equipment or the device that uses in conjunction with these instruction execution systems, device or equipment.The example more specifically (non-exhaustive list) of computer-readable medium comprises following: the electrical connection section (electronic installation) with one or more wiring, portable computer diskette box (magnetic device), random access memory (RAM), read-only memory (ROM), erasablely edit read-only memory (EPROM or flash memory), fiber device, and portable optic disk read-only memory (CDROM).In addition, computer-readable medium can be even paper or other suitable media that can print described program thereon, because can such as by carrying out optical scanner to paper or other media, then carry out editing, decipher or carry out process with other suitable methods if desired and electronically obtain described program, be then stored in computer storage.
Should be appreciated that each several part of the present invention can realize with hardware, software, firmware or their combination.In the above-described embodiment, multiple step or method can with to store in memory and the software performed by suitable instruction execution system or firmware realize.Such as, if realized with hardware, the same in another embodiment, can realize by any one in following technology well known in the art or their combination: the discrete logic with the logic gates for realizing logic function to data-signal, there is the application-specific integrated circuit (ASIC) of suitable combinational logic gate circuit, programmable gate array (PGA), field programmable gate array (FPGA) etc.
Those skilled in the art are appreciated that realizing all or part of step that above-described embodiment method carries is that the hardware that can carry out instruction relevant by program completes, described program can be stored in a kind of computer-readable recording medium, this program perform time, step comprising embodiment of the method one or a combination set of.
In addition, each functional unit in each embodiment of the present invention can be integrated in a processing module, also can be that the independent physics of unit exists, also can be integrated in a module by two or more unit.Above-mentioned integrated module both can adopt the form of hardware to realize, and the form of software function module also can be adopted to realize.If described integrated module using the form of software function module realize and as independently production marketing or use time, also can be stored in a computer read/write memory medium.
The above-mentioned storage medium mentioned can be read-only memory, disk or CD etc.Although illustrate and describe embodiments of the invention above, be understandable that, above-described embodiment is exemplary, can not be interpreted as limitation of the present invention, and those of ordinary skill in the art can change above-described embodiment within the scope of the invention, revises, replace and modification.
One of ordinary skill in the art will appreciate that all or part of flow process realized in above-described embodiment method, that the hardware that can carry out instruction relevant by computer program has come, described program can be stored in computer read/write memory medium, this program, when performing, can comprise the flow process of the embodiment as above-mentioned each side method.Wherein, described storage medium can be magnetic disc, CD, read-only store-memory body (Read-Only Memory, ROM) or random store-memory body (Random Access Memory, RAM) etc.
Above disclosedly be only present pre-ferred embodiments, certainly can not limit the interest field of the present invention with this, therefore according to the equivalent variations that the claims in the present invention are done, still belong to the scope that the present invention is contained.