On digital television receiving apparatus, realize the method and apparatus that still image is caught
Technical field
The invention belongs to digital TV field, in particular, a kind of method and apparatus of on digital television receiving apparatus, realizing the still image seizure.
Background technology
Digital Television is a brand-new TV service, being a kind of novel circulation way, is the inevitable outcome of digital technology in the TV domain development, and the user can pass through digital television receiving apparatus, as digital TV integrated machine or set-top box, watch the digital television program that digital television system is broadcasted.
For digital television receiving apparatus, digital signal processing as shown in Figure 1.The TS stream that tuner 12 obtains is divided into vision signal, audio signal and additional information behind demultiplexing module 13 demultiplexings, under controller 11 effects, carry out video decode by video decode module 14, carry out audio decoder by audio decoder module 15, decoded vision signal is sent into display chip 16, control display 17 shows, decoded audio signal is sent into stereo set 18, produces and the dubbing of audio video synchronization.
When watching real time digital television program, if spectators see a scene of being delithted with, as the scenery of beauty, breathtaking competition scenes, the star who likes, touching scene or the like, can handlebar this scene preserve the hope of getting off, this can realize with real-time video capture technology, catches a frame exactly and preserve the television set that has now so-called " camera function " from current video stream (general 30 frame/seconds), be exactly this technology that adopts, can grasp image at random.But when spectators expected wanting saving scenario, this scene was over and done with, at this moment if go Management Television to catch scene, under preserving is the scene of back, rather than spectators want the scene of preserving.Therefore, prior art has the improvements for the treatment of, and awaits improving and development.
Summary of the invention
The object of the present invention is to provide a kind of method and apparatus that still image is caught of on digital television receiving apparatus, realizing, at the picture problem that can't catching of prior art liked, the inventive method and device can make spectators at leisure the scene of wanting to preserve be preserved.
Technical scheme of the present invention is as follows:
A kind of device of on digital television receiving apparatus, realizing the still image seizure, it comprises a tuner, the data flow that obtains is divided into vision signal, audio signal and additional information after by a demultiplexing module demultiplexing, under a controller action, carry out video decode by the video decode module, carry out audio decoder by the audio decoder module, decoded vision signal is sent into a display chip, is used to control the demonstration of a display; Decoded audio signal is sent into a stereo set, produces and the dubbing of audio video synchronization; Wherein, described device is provided with between described video decode module and display chip: a video abstraction module, a memory, and an external control module;
The extraction yield that described video abstraction module is set according to the external control device ceaselessly extracts the frame stream that comes out from the video decode module, takes out the data of particular frame, sends into described memory;
When the external control device receives after the user wishes the control command of saving scenario, send signal to described controller, described controller extracts image from described memory, send into described display chip and show;
The image that is extracted is according to time played in order forward or backward, playing direction and speed is controlled by the external control device by the user, when the user selects suitable image, control described external control device and send signal, selected image is stored in the specific memory section of memory.
Described device, wherein, described device also is provided with an image compression module between described video decode module and display chip, the frame data that take out is carried out image compression reduce memory space, sends into described memory after having compressed.
Described device, wherein, described device also is provided with a video synthesis module between described video decode module and display chip, will extract image and synthesize picture-in-picture with the video flowing that is broadcasting from described memory, sends into described display chip and shows.
Described device, wherein, described memory adopts the storage that circulates of the memory mechanism of first in first out.
Described device, wherein, described device is provided with an external interface between described video decode module and display chip, when the picture of choosing in the user wishes memory is transferred on the external memory, can send control signal by described external control module, by described controller control the picture that user in the memory chooses is transferred in the external memory by external interface, and emptied corresponding space in the memory.
A kind of method that on digital television receiving apparatus, realizes the still image seizure, it may further comprise the steps:
A) a video abstraction module ceaselessly extracts the frame stream that comes out from the video decode module according to the extraction yield of external control device setting, takes out the data of particular frame, sends into described memory stores;
B) receive after the user wishes the control command of saving scenario when the external control device, send signal to described controller, described controller extracts image from described memory, send into described display chip and show;
C) image that is extracted is according to time played in order forward or backward, playing direction and speed is controlled by the external control device by the user, when the user selects suitable image, control described external control device and send signal, selected image is stored in the specific memory section of memory.
Described method, wherein, described memory adopts the storage that circulates of the memory mechanism of first in first out.
Described method, wherein, described method comprises that also the frame data that take out are carried out image compression reduces memory space, sends into described memory after having compressed.
Described method, wherein, described method also comprises and synthesizes picture-in-picture with extract image from described memory with the video flowing that is broadcasting, and sends into described display chip and shows.
Described method, wherein, described method also comprises when the picture of choosing in the user wishes memory is transferred on the external memory, can send control signal by described external control module, by described controller control the picture that user in the memory chooses is transferred in the external memory by external interface, and emptied corresponding space in the memory.
A kind of method and apparatus that still image is caught of on digital television receiving apparatus, realizing provided by the present invention, extract and image compression by decoded video sequence being carried out frame, preserve in the memory, and can regulate extraction yield and adapted to different moving scenes, both preserve necessary image, saved memory space again; When spectators want to preserve over and done with scene, can adopt picture-in-picture techniques in the sequence of having stored, to choose, preserve after finding suitable image; Image after the storage can be transferred in PC, mobile phone or other memory devices by data-interface, and the image resolution ratio that obtains is good, bright-colored, be of moderate size, and has realized postponing to preserve the image of before having seen; And the present invention to the change of existing digital television receiving apparatus seldom, and it is very low to increase cost.
Description of drawings
With reference to accompanying drawing, to realizing that according to of the present invention the method and apparatus that still image is caught is described in detail on the ordinary numbers radiovisor.
Fig. 1 is the process chart of the ordinary numbers radiovisor of prior art;
Fig. 2 is a process chart of realizing the method and apparatus that still image is caught on digital television receiving apparatus of the present invention;
Fig. 3 is that the video sequence extraction process of the method and apparatus that still image is caught that realizes on digital television receiving apparatus of the present invention is given an example;
Fig. 4 is that the memory of the method and apparatus that still image is caught of realizing on digital television receiving apparatus of the present invention is divided for example.
Embodiment
Below in conjunction with accompanying drawing each preferred embodiment of the present invention is described in further detail.
The described method and apparatus of realizing that on digital television receiving apparatus still image is caught of the present invention, its structure as shown in Figure 2, its device is to have added module of the present invention to realize function between video decode module 14 shown in Figure 1 and display chip 16.Each module of the present invention mainly comprises: video abstraction module 21, image compression module 22, memory 23, video synthesis module 24, external interface 25, external control module 26.The extraction yield that video abstraction module 21 is set according to external control device 26, the frame stream that video decode module 14 is come out ceaselessly extracts, take out the data of particular frame, send into image compression module 22 then and carry out certain image compression and reduce memory space, send into memory 23 after having compressed.Memory 23 adopts the storage that circulates of the memory mechanism of first in first out.When external control device 26 receives after the user wishes the control command of saving scenario, send signal to controller 11, controller 11 extracts image from memory 23, send into video synthesis module 24, the video flowing that is broadcasting synthesizes picture-in-picture (current video stream is key frame), sends into display chip 16 and shows.Image is according to time played in order forward or backward, playing direction and speed is controlled by external control device 26 by the user, when the user selected suitable image, control external control device 26 sent signal, this sub-picture is stored in the specific memory section of memory 23.In the process that image is play, foregoing video extraction, compression, storing process suspend, and the user restarts after selecting to finish.When the picture of choosing in the user wishes memory 23 is transferred on the external memory, can send control signal by external control device 26, by controller 11 controls the picture that user in the memory 23 chooses is transferred on the external memory by external interface, and emptied corresponding space in the memory 23.
Be illustrated in figure 3 as described video abstraction module 21 of the present invention and carry out the example that video extracts, extraction yield can be specified by the user, shown in the figure but to be not limited to be that extraction yield is to get a frame in three frames, and both 1/3rd.In the video sequence watched of reality, frame per second was 30 frame/seconds, because correlation is very big between each frame, adjacent generally speaking a few frame difference is little, all extracting the compression storage has little significance, the also valuable memory space of waste, so the present invention adopts certain extraction yield to compress storage, and neither can lose scene can wasting space yet.Frame per second after example recited above extracts was 10 frame/seconds.If extraction yield is one to one then has been equivalent to preserve the continuous videos sequence of a period of time.
Described image compression module 22 can be used known a kind of image compression algorithm, as jpeg2000, the data of every frame of extracting is compressed, and to reduce data volume, saves memory space.This module can realize with software, also can realize with special chip.
Be the example that described memory 23 is divided as shown in Figure 4, this example is the division under the situation of compressed images sequential storage.Image sequence after 31 store compressed of memory block, the image that memory block 32 storage users select, 33 is the interface of two memory blocks.Because the size of data after each frame compression differs, and occupies the space of different sizes in memory block 31, adopts the method for first in first out in 31, the circulation storage.The frame that the user selectes is transferred in the memory block 32, and memory block 32 full rear lines are reminded.Also can not do aforesaid division, whole memory all is used for image after the store compressed, does not move this frame behind selected certain frame of user, just the data field of this frame is made as and can not writes, and the line item of going forward side by side is so that the user can shift out will shift the time.In addition in conjunction with described video abstraction module 21, according to people's reaction time, the time period of described memory cycle storage should be longer than people's reaction time, so, could after the user sees the image of liking, from described memory 23, find the image of extraction in the time, thereby in certain time of delay, the image of liking be remained in certain reaction.
Video synthesis module 24 of the present invention is used for realizing picture-in-picture function (current program is as key frame), so that the user selects the scene that will preserve under the situation that does not influence current program.After the user handles external control device 26 and sends the request of wanting saving scenario to controller 11,11 control of video synthesis modules 24 take out a frame from memory 23, decompress and size change over after and current video sequence stack, pass to display chip 16 again and show.What show for the first time is the last frame of preserving memory 23, just nearest frame apart from the current time, scene if not user's needs, then the user can handle 26 and send signal to controller 11, by the image in the time order display-memory 23 forward or backward, till finding suitable scene, can be saved in after finding in the specific memory section in 23.The user can repeat said process and preserve multiple image.
Described external control device 26 is interfaces of user and system interaction of the present invention.The user can finish to controller 11 by external control device 26 and send the request of preserving image, the DISPLAY ORDER of control chart picture (time forward or backward) is sought suitable scene, can determine for suitable scene, set the extraction yield of video abstraction module 21, send the actions such as request of the image of preserving to outside memory transfer to controller 11.
Described external interface 25 can be a kind of data-interface, as USB interface, can transmit the image of preserving to devices such as the PC of outside, mobile phone, USB flash disks by it.Below for a specific example:
Suppose that certain spectators is just seeing a film in Digital Television, broadcasting speed was 30 frame/seconds, device is in the extraction yield work of extracting a frame by per two frames, spectators see the picture of a secondary landscape, feel very beautiful, want to preserve, if this landscape place picture is the 100th frame, this picture was over and done with when spectators wanted to preserve, suppose that current is the 110th frame, then the order of the frame in memory 23 is 110,108,106,104,102,100,98 ..., after then spectators send request by external control device 26, just on screen, form picture-in-picture, sprite is 110 frames, spectators till finding satisfied picture 100 frames, just deposit 100 frames in the specific memory section in the memory 23 by the image of external control device 26 varitron pictures after finding.If spectators want this secondary figure is passed on the PC, then can transmit by external interface 25.
In above-mentioned example, device is worked always when the user starts shooting, and some program does not have necessity of saving scenario for the user.Therefore further, the user can send request command to controller 11 by external control device 26, sends the control signal of whether working by 11 to the device that the present invention relates to.When the user sets this device when not working, video sequence is carried out general processing as shown in Figure 1; When setting this device work, the processing described in video sequence invented.
The above only is preferred embodiment of the present invention, can not be in order to restriction the present invention, and all any modifications of being done within the spirit and principles in the present invention, be equal to and replace and improvement etc., all should be included within protection scope of the present invention.