Summary of the invention
The present invention propose a kind of 3D rendering switch 2D display the play adjustment adaptive method, device and equipment, solve existing 3D rendering and switch 2D when displaying the play, playback terminal cannot " initiatively " identify at least two same images and be adjusted to the problem of a same image on screen voluntarily.
Technical scheme of the present invention is achieved in that
The invention discloses a kind of 3D rendering switch 2D display the play regulate adaptive method, comprising:
S1. the order being about to broadcasting or the switching of the 3D film source in playing 2D display format is obtained;
S2. read current video data, identify the data format of the required switching of 3D rendering, be adjusted to 2D display format and export;
S3. with 2D form display image.
Switch 2D at 3D rendering of the present invention to display the play in the adaptive method of adjustment, described step S2, comprises further:
S21. identify whether the required data format switched is left-right format, if so, then abandons left or right half width data, and interpolation is carried out to reservation data, formed and play frame, enter step S3; If not, step S22 is entered;
S22. identify whether the required data format switched is top-down format, if so, then abandons or lower half altitude information, and interpolation is carried out to reservation data, formed and play frame, enter step S3, if not, enter step S23;
S23. identify whether the required data format switched is interleaving format, if so, then only retains interleaver matrix L or R data, and interpolation is carried out to reservation data, formed and play frame, enter step S3, if not, keep former data output display.
Switch 2D at 3D rendering of the present invention to display the play and regulate in adaptive method, the data format of described required switching is by capturing present frame, getting the multiple block of pixels of diverse location, is undertaken identifying by BMA.
The invention discloses a kind of 3D rendering switch 2D display the play regulate adaptive device, comprising:
Command acquisition unit, carries out switching the order of 2D display format for obtaining the 3D film source be about in broadcasting or broadcasting;
Form regulon, for reading current video data, identifies the data format of the required switching of 3D rendering, is adjusted to 2D display format and exports;
2D broadcast unit, for showing image with 2D form.
Switch 2D at 3D rendering of the present invention to display the play and regulate in adaptive device, described form regulon comprises and being connected successively, and the following subelement be all connected with described broadcast unit, specifically:
Left-right format recognin unit, for identify described needed for switch data format whether be left-right format; If so, then abandon left or right half width data, and interpolation is carried out to reservation data, formed and play frame, enter described 2D broadcast unit; If not, top-down format recognin unit is entered;
Top-down format recognin unit, for identify described needed for switch data format whether be top-down format, then abandon or lower half altitude information, and to reservation data carry out interpolation, formed broadcasting frame, enter described 2D broadcast unit; If not, interleaving format recognin unit is entered;
Interleaving format recognin unit, for identify described needed for the data format that switches whether be interleaving format, if so, then only retain interleaver matrix L or R data, and interpolation carried out to reservation data, formed and play frame, enter described 2D broadcast unit; If not, former data output display is kept.
Switch 2D at 3D rendering of the present invention to display the play in the adaptive device of adjustment, described command acquisition unit comprises the infrared receiver for receiving guidance command.
The invention discloses a kind of 3D rendering switch 2D display the play regulate adaptive equipment, comprise memory cell, decoding unit, display, memory cell is for storing 3D film source video file, decoding unit is used for reading from described memory cell being transported to display after 3D film source video file is decoded and playing, it is characterized in that, described decoding unit has above-mentioned 3D rendering and switches 2D and display the play and regulate adaptive device.
Switch 2D at 3D rendering of the present invention to display the play in the adaptive equipment of adjustment, described memory cell comprises: SD card and/or flash storage.
Switch 2D at 3D rendering of the present invention to display the play in the adaptive equipment of adjustment, described display comprises LCD or LED display.
Implement a kind of 3D rendering of the present invention to switch 2D and display the play and regulate adaptive method, device and equipment, there is following useful technique effect:
When being different from prior art playback terminal 3D rendering switching 2D display, there is multiple identical image, can not automatically be adjusted to same image, the technical program receives 3D rendering and switches 2D and display the play and automatically to search 3D rendering after order and switch the form that 2D shows film source, automatic Modulation becomes 3D rendering to switch 2D display format, be output into plane effect, automatic operation, facilitate user.
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.
Refer to Fig. 1 and Fig. 2, preferred embodiment of the present invention, a kind of 3D rendering switching 2D displays the play and regulates adaptive method, comprising:
S1. obtain and the film source of broadcasting is carried out the order that 3D rendering switches 2D display format;
Receive the 3D rendering that sends of remote controller by infrared receiving circuit and switch 2D display format infrared signal, start control circuit and start 3D rendering and switch 2D and to display the play function, control circuit comprises cpu circuit.
S2. for reading current video data, identifying the data format of the required switching of 3D rendering, being adjusted to 2D display format and exporting;
Show sheet source format disunity because 3D rendering in industry switches 2D, therefore control circuit needs identification to be which kind of film source, its flow process is as follows:
S21. identify whether the required data format switched is left-right format, if so, then abandons left or right half width data, and interpolation is carried out to reservation data, formed and play frame, enter step S3; If not, step S22 is entered;
S22. identify whether the required data format switched is top-down format, if so, then abandons or lower half altitude information, and interpolation is carried out to reservation data, formed and play frame, enter step S3, if not, enter step S23;
S23. identify whether the required data format switched is interleaving format, if so, then only retains interleaver matrix L or R data, and interpolation is carried out to reservation data, formed and play frame, enter step S3, if not, keep former data output display.
Described interleaving format, specifically comprises: row interleaving format, column interleaving form, some interleaving format.
S3. with 2D form display image.
It should be noted that, the 3D rendering switching 2D of the technical program displays the play and regulates adaptive method can realize in the mode of software, also can realize in the mode of hardware, preferably, hardware coordinates the mode of software to realize, and this software can be stored in floppy disk, hard disk, USB flash disk, ROM etc.
In said method, for how " to identify the required data format switched ", technological means can adopt BMA, Ke Yiwei:
Obtain present frame, get the multiple block of pixels of diverse location, extract the multiple gray value of each block of pixels and multiple pixel data; If be judged as, multiple gray value and multiple pixel data are identical, be then " puppet " 2D frame of video, enter next frame after abandoning, until find multiple gray value and multiple pixel data to be different.
When multiple gray value and multiple pixel data difference, obtain present frame, get the multiple block of pixels in lower-left, extract its gray value and pixel data, if find multiple gray value approximate more than 90% in bottom right, pixel data is similar to the block of pixels at least three places of more than 70%, be then the 3D sheet source format of left-right format;
If bottom right can not find above-mentioned block of pixels, refetch present frame, upper multiple block of pixels in getting, extract its gray value and pixel data, if under find multiple gray value approximate more than 90%, pixel data is similar to the block of pixels at least three places of more than 70%, be then the 3D sheet source format of top-down format;
If under can not find above-mentioned block of pixels, refetch present frame get row/column/on multiple block of pixels, extract its gray value and pixel data, if the row/column at interval/on find multiple gray value approximate more than 90%, pixel data is similar to the block of pixels at least three places of more than 70%, be then the 3D sheet source format of interleaving format.
Refer to Fig. 3, a kind of 3D rendering switching 2D display the play and regulates adaptive device, comprising:
Command acquisition unit 10, form regulon 20,2D broadcast unit 30.
Command acquisition unit 10, carries out switching the order of 2D display format for obtaining the 3D film source be about in broadcasting or broadcasting;
Form regulon 20, for reading current video data, identifies the data format of the required switching of 3D rendering, is adjusted to 2D display format and exports;
2D broadcast unit 30, for showing image with 2D form.
Wherein, form regulon 20 comprises and being connected successively, and all to switch 2D with 3D rendering and to display the play the following subelement that unit 30 is connected, specifically:
Left-right format recognin unit, for identify described needed for switch data format whether be left-right format; If so, then abandon left or right half width data, and interpolation is carried out to reservation data, formed and play frame, enter described 2D broadcast unit; If not, top-down format recognin unit is entered;
Top-down format recognin unit, for identify described needed for switch data format whether be top-down format, then abandon or lower half altitude information, and to reservation data carry out interpolation, formed broadcasting frame, enter described 2D broadcast unit; If not, interleaving format recognin unit is entered;
Interleaving format recognin unit, for identify described needed for the data format that switches whether be interleaving format, if so, then only retain interleaver matrix L or R data, and interpolation carried out to reservation data, formed and play frame, enter described 2D broadcast unit; If not, former data output display is kept.
Wherein, command acquisition unit 10 comprises the infrared receiver for receiving guidance command.
Refer to Fig. 4, a kind of 3D rendering switching 2D displays the play and regulates adaptive equipment, comprise memory cell 100, decoding unit 200, display 300, memory cell 100 switches 2D display film source video file for storing 3D rendering, decoding unit 200 switches 2D and shows for reading 3D rendering from memory cell 100 and be transported to display 300 after film source video file is decoded and play, and decoding unit 200 has above-mentioned 3D rendering and switches 2D and display the play and regulate adaptive device.
Wherein, memory cell comprises: SD card and/or flash storage.Flash storage, for storing fixed routine and upper level applications, can also store 3D rendering and switch 2D display video and/or multimedia file.
Display comprises LED display;
3D rendering switching 2D displays the play and regulates adaptive equipment also to comprise infrared receiving circuit, sync detection circuit, control circuit, LED display driver circuit, has CPU, also comprise decoding unit 200 in control circuit.
3D rendering switches 2D and displays the play and regulates the course of work of adaptive equipment to be: 3D rendering switches 2D and to display the play the adaptive device power-up initializing of adjustment, receive 3D rendering to switch 2D and to display the play order, this order can send to infrared receiving circuit from infrared remote controller, decoding unit 200 in control circuit adapts to the 3D sheet source format in memory cell 100 automatically, after adjustment, automatic transport is to display 300, simultaneously, start sync detection circuit, realize the plane effect that 3D rendering switches 2D display.
Implement a kind of 3D rendering of the present invention to switch 2D and display the play and regulate adaptive method, device and equipment, there is following useful technique effect:
When being different from prior art playback terminal 3D rendering switching 2D display, there is multiple identical image, can not automatically be adjusted to same image, the technical program receives 3D rendering and switches 2D and display the play and automatically to search 3D rendering after order and switch the form that 2D shows film source, automatic Modulation becomes the 2D form of same image, be output into plane effect, automatically adapt to, facilitate user.
The foregoing is only preferred embodiment of the present invention, not in order to limit the present invention, within the spirit and principles in the present invention all, any amendment done, equivalent replacement, improvement etc., all should be included within protection scope of the present invention.