Local detail player method on a kind of portable HD video player
Technical field
The present invention relates to the local detail player method on a kind of portable HD video player.
Background technology
Along with the development of multimedia chip technology, portable player begins to have more and more stronger decodes and plays ability.The capable direct decoding of some players is play the video of high definition resolution.Yet so how the video of high resolving power (greater than the resolution of 1280*720) is just watched on portable player and has been become a problem.Present implementation has two kinds of methods to watch video: a kind of method is that player is linked to each other with high definition (HD) TV by the video dedicated signal lines, and decoded vision signal outputs on the HDTV by signal wire and shows; A kind of is high definition to be differentiated video image narrow down to the player screen resolution sizes, directly shows on player screen then.The screen resolution of portable player is smaller, and as 480*272 or 800*480, and the video that present player can be decoded generally can both reach the level of SD (720*480) or high definition (1280*720).
First method in the existing solution, vision signal outputed on the HDTV show, need on portable player, increase a vision signal modulation module newly, increased hardware cost, can only use with the HDTV collocation indoor simultaneously, lose portability.The second way must narrow down to image the player screen size, because the restriction of screen cost and player portability, in general portable player, workflow can be with reference to the accompanying drawings 1, and player decodes video image, then image is narrowed down to screen size, export again, the screen resolution of player (as 480*272) is much smaller than the resolution (1280*720) of HD video, and through so significantly dwindling process, a lot of detailed information on the video image will be lost.In this case, the display effect seen of user will be the same with the video effect of common resolution sizes.The HD video content has also just lost its advantage: excellent careful video pictures.The user is in watching the process of video, and is interested in certain part details probably.But because image is dwindled significantly, the result that screen display comes out can't represent full details.
Summary of the invention
The object of the present invention is to provide the local detail player method on a kind of portable HD video player, this method can be implemented in and plays HD video on the portable player, and need be by outside HDTV equipment and corresponding video modulation output module, under the situation that does not increase hardware cost, just can on the display screen of portable player, enjoy the more careful picture of HD video more clearly.
Purpose of the present invention can realize by following technical measures: the local detail player method on a kind of portable HD video player is characterized in that may further comprise the steps:
(1), distributes two YUV zones in the system: regional A and area B, described regional A is as the memory block of raw image data, area B is as the memory block for the treatment of the enlarged partial image data, Video Decoder outputs to regional A with each frame raw image data, display controller is reduced into screen size with each the frame original image among the regional A, and is presented on the screen;
(2), video pictures play or halted state in select on the screen any rectangular area to be amplified in the picture;
(3), calculate described view data of waiting to amplify pairing original rectangular zone, rectangular area, system copies described original rectangular zone from described regional A view data is in area B, and the display position of definite original rectangular zone on screen;
(4), display controller is set, and with the view data in the original rectangular zone in the area B show according to the described display position active screen top that is added to according to the result of calculation of step (3).
The described view data of amplifying pairing original rectangular zone, rectangular area of waiting comprises: the length and width in original rectangular zone, the upper left corner coordinate in original image.
As an embodiment of the present invention: the described definite process of amplifying the rectangular area of waiting is: select any a starting point on screen, and with the central point of described starting point as rectangle, and determine rectangular area to be amplified according to required rectangle length and width value.
As another embodiment of the present invention: the described definite process of amplifying the rectangular area of waiting is: select any 2 points on screen, and be that rectangle is determined rectangular area to be amplified to angle point with described 2.
Definite process of the display position of image on screen in described original rectangular zone is: to wait to amplify the central point of the central point of rectangular area as described display position.
The image in described original rectangular zone in definite process of the display position on the screen is: the image in described original rectangular zone is presented on the corner of screen.The selection course of described corner is:
A), calculate the described center point coordinate of waiting to amplify the rectangular area;
B), be 4 zones with the axis of screen level direction and the axis of vertical direction with screen divider: upper left district, lower-left district, upper right district and bottom right district;
C) be positioned at upper left district if wait to amplify the rectangular centre point, then the image in described original rectangular zone be presented at the lower right corner of screen; If rectangular centre to be amplified is positioned at the lower-left district, then the image in described original rectangular zone is presented at the upper right corner of screen; If rectangular centre to be amplified is positioned at upper right district, then the image in described original rectangular zone is presented at the lower left corner of screen; If rectangular centre to be amplified is positioned at the bottom right district, then the image in described original rectangular zone is presented at the upper left corner of screen.
The described mode of rectangular area of selecting on screen is selected for using touch-screen or mouse or touch pad.
The inventive method has following beneficial effect with respect to traditional portable video is play:
1, traditional video special signal bundle of lines HD video that passes through outputs to high definition (HD) TV, though details that can complete display video image needs external HDTV, can't accomplish portable.And the present invention can be on the small screen the full details of explicit user area-of-interest, both can save HDTV and vision signal modular converter, do not increase cost, can accomplish portable again;
2, compare to the method for screen size with dwindling video image, the full details of the parts of images of the present invention in can display frame, Mi has mended because of picture and has dwindled the defective that causes loss in detail;
3, the present invention with touch-screen as the man-machine interaction means, simple to operate, easy left-hand seat.And the details picture is decoded raw frames, saves computational resource and system power dissipation, and fixedly multimedia equipment still be that mobile multimedia equipment is all suitable.
Description of drawings
Fig. 1 is the synoptic diagram of the playing flow of ordinary video player;
Fig. 2 is the synoptic diagram of the playing flow of the inventive method video player of having added the local detail enlarged drawing;
Fig. 3 is a certain broadcasting pictures of common PMP result of broadcast;
Fig. 4 is the system handles process flow diagram of the playing process of the local detail player method on the portable HD video player of the inventive method;
Fig. 5 adopts the mode choose arbitrarily any to select to wait to amplify the process flow diagram of rectangular area in the inventive method;
Fig. 6 adopts in the inventive method to choose the process flow diagram that any mode selects to wait to amplify the rectangular area at 2;
Fig. 7 adopts the inventive method to play picture shown in Figure 6, adopts the magnifier display mode to show the design sketch for the treatment of magnification region simultaneously;
Fig. 8 adopts the inventive method to play picture shown in Figure 6, adopts the corner display mode to show the design sketch for the treatment of magnification region simultaneously.
Embodiment
The invention provides a kind of by choosing a zone on the screen, the method for immediately on screen, checking the original image that this is regional.In the portable video player system of an employing the inventive method, the output of Video Decoder is the yuv data of non-scaled, has distributed two YUV zones in the system: regional A and area B.Zone A is as the memory block of entire image, and area B is as the memory block of selected areas.The target of demoder output is regional A.If choose a zone on the screen, whenever demoder is exported frame data to regional A, system will copy area-of-interest to area B from regional A.
The data of zone A and area B will output on the LCD then through the processing of display controller.Display controller will dwindle the image of regional A, narrows down to screen size.Then above the regional A of the image overlay of area B after dwindling.Export the LCD control signal at last, the effect that allows LCD viewing area A (image that dwindles) and B (topography that does not dwindle) superpose.The user can watch complete video image like this, also can watch the details of certain part simultaneously, and its playing process as shown in Figure 2.This method is supported in and shows topography's details, the idiographic flow of display routine under broadcast state or the halted state.
The process flow diagram of the local detail player method on the of the present invention portable HD video player as shown in Figure 4 specifically may further comprise the steps:
(1), distributes two YUV zones in the system: regional A and area B, zone A is as the memory block of raw image data, area B is as the memory block for the treatment of the enlarged partial image data, Video Decoder outputs to regional A with each frame raw image data, display controller is reduced into screen size with each the frame original image among the regional A, and is presented on the screen;
(2), video pictures play or halted state in select on the screen any rectangular area to be amplified in the picture;
(3), calculate the view data wait to amplify pairing original rectangular zone, rectangular area, system copies the original rectangular zone from regional A view data is in area B, and the display position of definite original rectangular zone on screen;
(4), display controller is set, and with the view data in the original rectangular zone in the area B show according to the display position active screen top that is added to according to the result of calculation of step (3).Wait that the view data of amplifying pairing original rectangular zone, rectangular area comprises: the length and width in original rectangular zone, the upper left corner coordinate in original image.
Wherein, wait that the selection course of amplifying the rectangular area comprises two kinds, process flow diagram is distinguished as shown in Figure 5 and Figure 6:
First kind as shown in Figure 5: select on screen more arbitrarily, and be that central point and needed length and width are worth determined rectangle as rectangular area to be amplified with this point.Thereby the process in stack original rectangular zone is on the screen: with selected central point is the image top that the center is presented at the original image of selected rectangular area the current demonstration of screen.Claim that this kind display mode is the magnifier display mode.Constantly obtain the pointer coordinate after moving in the process flow diagram, coordinate before and after therefore dividing.Skew among the figure is meant the subtraction value of former and later two coordinates, is used for calculating the length and width in original rectangular zone, at the upper left corner of original image coordinate.
Second kind as shown in Figure 6: select any 2 points on screen, and be to the rectangular area of the determined rectangle of angle point as selection with these 2.Thereby the process of the raw image data of this rectangular area of stack is on the screen: the original image of this rectangle correspondence is presented on the corner of screen.Claim that this kind display mode is the corner display mode.The selection course of corner is:
A), calculating waits to amplify the center point coordinate of rectangular area;
B), be 4 zones with the axis of screen level direction and the axis of vertical direction with screen divider: upper left district, lower-left district, upper right district and bottom right district;
C) be positioned at upper left district if wait to amplify the rectangular centre point, then the image in original rectangular zone be presented at the lower right corner of screen; If rectangular centre to be amplified is positioned at the lower-left district, then the image in original rectangular zone is presented at the upper right corner of screen; If rectangular centre to be amplified is positioned at upper right district, then the image in original rectangular zone is presented at the lower left corner of screen; If rectangular centre to be amplified is positioned at the bottom right district, then the image in original rectangular zone is presented at the upper left corner of screen.
The use of can arranging in pairs or groups arbitrarily of definite process of the above-mentioned two kinds of selection courses of waiting to amplify the rectangular area and display position.On screen, select the mode of rectangular area to select for using touch-screen or mouse or touch pad.The present invention preferably with touch-screen as first-selected man-machine interaction means, mouse or touch pad are as the second man-machine interaction means.Behind displaying video, can click screen immediately and carry out the details demonstration.
The present invention can be applicable to have the fixedly multimedia equipment and the mobile multimedia equipment of touch-screen or mouse or touch pad.As mobile phone, PMP, net book, panel computer, vehicle-mounted media player or the like.Concrete instance with a PMP illustrates effect of the present invention below.
Under the general case, on portable player (PMP), watch the unavoidable meeting of high definition (HD) video to produce the situation of dwindling the loss in detail that causes because of image, as shown in Figure 3, be that a PMP who has 480x272 resolution touch-screen is at the HD video of playing one section 720p (1280x720).Can see from this image, pass through picture and dwindled that it is very fuzzy that the literal on the car seems, naked eyes can not be discerned.Adopt the inventive method can allow the user on the small in resolution screen of portable player (PMP), watch the local detail of the more careful resolution video of high definition more clearly, and be not only the picture material after dwindling.
Fig. 7 and Fig. 8 are the design sketch after adopting the inventive method on this PMP.Wherein Fig. 6 is an effect of having used the corner to show, and middle black little frame is the zone that the needs chosen show details, the image of then waiting to amplify the original rectangular zone in zone, rectangular area for this that shows in the big slightly frame in the lower right corner.Fig. 7 is an effect of having used the magnifier pattern, and middle black box zone is the image in original rectangular zone.
From the contrast of Fig. 6, Fig. 7, Fig. 8 as can be seen, after showing through details, discern the literal on the car immediately and clearly.
In the methods of the invention, except can in video playback, using this method, be similar in the animation playing process of Flash and also can use this method, amplify the effect of playing to realize local detail.
In this method implementation procedure, as indicated earlier, global image data A and partial image data B are synthesized and output to LCD by lcd controller usually and show.Also can be before image be passed to lcd controller, with global image data A and the synthetic view data C of partial image data B, and then the view data C after will being synthesized by lcd controller exports to LCD and shows by software or graphics accelerator.