Summary of the invention
Technical problem to be solved by this invention is that a kind of playback of media files technology need be provided, and overcoming prior art can not provide the more reasonably defective of display effect for the user according to the characteristics of stereo-picture and plane picture.
In order to solve the problems of the technologies described above, the invention provides a kind of player method of media file, comprising:
Detect the stereo display zone;
Adjustment is in the stereo-picture in the described stereo display zone;
Control the 3 D grating on plane, place, described stereo display zone;
Realize that on described plane stereo display and plane show.
Preferably, this method may further include:
Obtain beholder's positional information;
Wherein, be in stereo-picture in the described stereo display zone according to described positional information adjustment.
Preferably, described positional information comprises beholder's the positional information of real-time acquisition or default beholder's positional information.
Preferably, the beholder's of described real-time acquisition positional information comprises the beholder's who obtains in real time by video input apparatus positional information or passes through the location technology beholder's of acquisition positional information in real time.
Preferably, be in stereo-picture in the described stereo display zone, comprise according to described positional information adjustment:
According to described beholder's positional information, adjust the pixel arrangement mode of described stereo-picture, so that first view in the described stereo-picture and second view display position on display floater exchanges.
Preferably, be in stereo-picture in the described stereo display zone, comprise according to described positional information adjustment:
Positional information according to the beholder, generate last relatively first view and have current first view of motion parallax and current second view that last relatively second view has motion parallax, and utilize described current first view and the synthetic described stereo-picture of described current second view.
Preferably, control the 3 D grating on plane, place, described stereo display zone, comprising:
On pixel or inferior pixel aspect, cycle period and the deflection angle of image according to 3 D grating rearranged;
Controlling described stereo-picture and 3 D grating coincides in described stereo display zone.
Preferably, control the 3 D grating on plane, place, described stereo display zone, comprising:
Described 3 D grating is controlled by the signal of telecommunication or driver.
Preferably, control the unlatching and the closing speed of described 3 D grating.
Preferably, adopt the information in the described stereo display of plane index table record zone.
The present invention also provides a kind of playing device of media file, comprising:
Detection module is used to detect the stereo display zone;
Adjusting module is used to adjust the stereo-picture that is in the described stereo display zone;
Control module is used to control the 3 D grating on plane, place, described stereo display zone;
Display module is used for realizing that stereo display and plane show on described plane.
Preferably, this device further comprises:
Acquisition module is used to obtain beholder's positional information;
Wherein, described adjusting module is used for being in stereo-picture in the described stereo display zone according to described positional information adjustment.
Preferably, described acquisition module is used for obtaining in real time beholder's positional information or the beholder's that acquisition is preset positional information.
Preferably, described adjusting module is used for the positional information according to described beholder, adjusts the pixel arrangement mode of described stereo-picture, so that first view in the described stereo-picture and second view display position on display floater exchanges.
Preferably, described adjusting module is used for the positional information according to the beholder, generate last relatively first view and have current first view of motion parallax and current second view that last relatively second view has motion parallax, and utilize described current first view and the synthetic described stereo-picture of described current second view.
Preferably, described control module is used on pixel or inferior pixel aspect cycle period and the deflection angle of image according to 3 D grating being rearranged, and is used to control described stereo-picture and 3 D grating coincides in described stereo display zone.
Preferably, described control module is further used for controlling the unlatching and the closing speed of described 3 D grating.
Preferably, described detection module is used to adopt the information in the described stereo display of index table record zone, plane.
Compared with prior art, technical scheme embodiment of the present invention is by carrying out fusion treatment to plane and stereo display technique, make the subregion in the same plane adopt the plane Display Technique to show, another part zone adopts stereo display technique to show, plane Display Technique and stereo display technique characteristics have separately been made full use of, improved audience's impression, having overcome prior art can not provide the more reasonably defective of display effect for the user according to the characteristics of stereo-picture and plane picture.
Embodiment
Following with reference to the accompanying drawing embodiment that develops simultaneously, the embodiment of the invention is further described.
Each feature among the embodiment of the invention and the embodiment mutually combining under the prerequisite of not conflicting mutually is all within protection scope of the present invention.Can in computer system, carry out in the step shown in the flow chart of accompanying drawing such as a set of computer-executable instructions, and, though there is shown logical order in flow process, in some cases, can be to be different from shown in the order execution herein or the step of describing.
The player method of embodiment one, media file
Fig. 1 is the schematic flow sheet of the player method embodiment of media file of the present invention.As shown in Figure 1, present embodiment comprises the steps:
110 detect the stereo display zone.
Player detects the stereo display zone to each frame, with the information in index table record stereo display zone, plane, needing to obtain the position and the size in stereo display zone.
With the rectangular area is example, need obtain length and the width of any one summit, rectangular area with respect to position more known on the screen and rectangular area.
120 adjust the stereo-picture that is in the stereo display zone.
The stereo display zone is carried out dynamic arrangement by real-time the passing out of plane concordance list of every frame to the image that is in the stereo display zone, adjusts stereo-picture.
Generate the stereo-picture that adapts to the stereo display regional location by dynamic arrangement in the stereo display zone, the image in the viewing area, plane does not process.
The 3 D grating on plane, place, 130 control stereo display zone.
The stereo-picture that dynamic arrangement generates is according to the optical characteristics of grating, on pixel or inferior pixel aspect, cycle period and the deflection angle of image to display according to grating rearranged, reflect or block and the effect of beam split thereby reach by grating.
3 D grating can be controlled the formation position and the shape of grating by the signal of telecommunication, also can control by driver, makes that in the stereo display zone stereo-picture and 3 D grating zone coincide.
Fig. 2 is the partial schematic diagram of a concordance list, wherein 0 represents this point not open 3 D grating, and 3 D grating is opened in 1 representative, shown in concordance list represent to form the 3 D grating zone of a delta-shaped region.Wherein, on behalf of the size of an actual pixels, each point of concordance list can also can represent a plurality of pixels, and concrete size is decided on the density of driver element.
The stereo display zone at place, 3 D grating zone is except can the formation rule geometry, can also form irregular geometry, in conjunction with the stereo-picture in the stereo display zone, then obtain erose stereoeffect, make that the content of stereo display is abundanter.
The unlatching of control 3 D grating and closed speed, player can reach the technique effect of stereo display zone gradual change by adjusting the 3 D grating zone continuously.For example, a stereo display zone that constantly is out of shape presents the stereo display effect in this stereo display zone, and the viewing area, plane except that the stereo display zone is the display plane display effect then.
140 realize that in the plane stereo display and plane show.
In the stereo display zone, the stereo-picture that generates through dynamic arrangement is in the refraction of 3 D grating or block down, presents the stereo display effect; In the viewing area, plane, do not pass through the image of dynamic arrangement, do not open 3 D grating, present the plane display effect, thereby realized carrying out in the same plane plane demonstration, stereo display.
In other embodiments of the invention, can obtain the positional information of the preceding beholder of screen in real time with respect to screen.If do not have to obtain the positional information of beholder with respect to screen in real time, also the beholder that can obtain to set in advance is with respect to the positional information of screen.During stereo-picture in adjustment is in the stereo display zone, can adjust, perhaps adjust according to the positional information that sets in advance that is obtained according to this positional information of real-time acquisition.Wherein, be in the situation of the stereo-picture in the stereo display zone, be applicable to when can not obtain the beholder in real time with respect to the positional information of screen according to the positional information adjustment that sets in advance.In other embodiments of the invention, if there be not to obtain in real time the positional information of beholder, also can show at the enterprising parallel planes of panel with respect to screen.
General, can obtain its positional information by following the tracks of beholder's face with respect to screen, promptly obtain tracking parameter.
Follow the tracks of beholder's face, can be first-class such as shooting by video input apparatus, perhaps, can use location technology such as bluetooth, ultrasonic wave, infrared ray etc., beholder's face in screen (perhaps being called display, panel etc.) the place ahead is followed the tracks of.If can identify screen the place ahead people's face is arranged, and this people's face is in this screen in a period of time that exceeds the Preset Time section before, then thinks to follow the tracks of and gone up beholder's face by following the tracks of.If can not identify screen the place ahead beholder's face is arranged, perhaps can identify screen the place ahead has the beholder facial but facial duration that is positioned at before the screen to be shorter than the Preset Time section, then thinks not follow the tracks of and goes up beholder's face.
Obtain the positional information of the preceding beholder of screen with respect to screen, promptly follow the tracks of the tracking parameter that beholder's face is obtained, in the present embodiment, (z) the expression beholder is with respect to the positional information of screen for x, y with 3 d space coordinate.In other embodiments, also can adopt polar form to represent the positional information of beholder with respect to screen.
Obtain a kind of in can be in the following way of the mode of tracking parameter, or the combination of following dual mode:
One, the playing device active inquiry of media file obtains tracking parameter;
Its two, the playing device of media file is notified, obtains this tracking parameter according to this notice.
After obtaining beholder's positional information, adjust stereo-picture according to this positional information.Particularly, can be understood as,, adjust the pixel arrangement mode of stereo-picture, so that first view in the stereo-picture and second view display position on display floater exchanges according to beholder's positional information; Also can be understood as, positional information according to the beholder, generate last relatively first view and have current first view of motion parallax and current second view that last relatively second view has motion parallax, and utilize current first view and the current second view synthetic stereo image.
Often presenting of traditional bore hole stereoeffect presents stereoscopic picture plane with full frame state, and its main cause is that the grating technology of fixing produces fixing optical effect to whole screen.The above embodiment of the present invention realized presenting simultaneously in the same plane stereo display, plane and shown, more rational picture display effect and the more pointed sensation of viewing and admiring are provided.
The playing device of embodiment two, a kind of media file
Fig. 3 is the composition schematic diagram of the playing device embodiment of media file of the present invention.In conjunction with method embodiment shown in Figure 1, device embodiment shown in Figure 3 mainly comprises detection module 310, adjusting module 320, control module 330 and display module 340, wherein:
Detection module 310 is used to detect the stereo display zone;
Adjusting module 320 links to each other with detection module 310, is used to adjust the stereo-picture that is in the stereo display zone;
Control module 330 links to each other with adjusting module 320, is used to control the 3 D grating on plane, place, stereo display zone;
Display module 340 links to each other with control module 330, is used for realizing in the plane that stereo display and plane show.
Wherein, this device may further include:
Acquisition module 350 links to each other with adjusting module 320, is used to obtain beholder's positional information;
Wherein, adjusting module 320 is used for being in stereo-picture in the stereo display zone according to the positional information adjustment that acquisition module 350 is obtained.
Wherein, acquisition module 350 is used for obtaining in real time beholder's positional information or the beholder's that acquisition is preset positional information.
Wherein, adjusting module 320 is used for the positional information according to the beholder, adjusts the pixel arrangement mode of stereo-picture, so that first view in the stereo-picture and second view display position on display floater exchanges; Perhaps be used for positional information according to the beholder, generate last relatively first view and have current first view of motion parallax and current second view that last relatively second view has motion parallax, and utilize current first view and the current second view synthetic stereo image.
Wherein, control module 330 is used on pixel or inferior pixel aspect cycle period and the deflection angle of image according to 3 D grating being rearranged, and is used to control stereo-picture and 3 D grating coincides in the stereo display zone.
Wherein, control module 330 can be controlled the formation position and the shape of grating by the signal of telecommunication, also can control by driver, makes that in the stereo display zone stereo-picture and 3 D grating zone coincide.
Wherein, control module 330 is further used for controlling the unlatching and the closing speed of 3 D grating, by continuous adjustment 3 D grating zone, can reach the technique effect of stereo display zone gradual change.
Wherein, detection module 320 is used to adopt the information in index table record stereo display zone, plane.
Those skilled in the art should be understood that, each part among the above-mentioned device embodiment provided by the present invention, and each step among the embodiment of method class, can realize with the general calculation device, they can concentrate on the single calculation element, perhaps be distributed on the network that a plurality of calculation element forms, alternatively, they can be realized with the executable program code of calculation element, thereby, they can be stored in the storage device and carry out, perhaps they are made into each integrated circuit modules respectively, perhaps a plurality of modules in them or step are made into the single integrated circuit module and realize by calculation element.Like this, the present invention is not restricted to any specific hardware and software combination.