The present invention relates to a method and an apparatus for rendering smooth teletext graphics. More particularly, the present invention relates to a method allowing adaptation of the teletext graphics to the display capabilities of a particular screen.
Teletext format defines a teletext page by means of an alphanumeric matrix of 40×25 characters. Each character is defined by three identifiers:
The typical resolution of a character is a 10×12 array of pixels. Thus, when the teletext page is displayed on a device dedicated to teletext format, the typical or full resolution of the corresponding teletext bitmap is 400×300 pixels.
The symbol may refer to a text item, e.g. a letter, as can be seen in
The symbol may alternatively refer to a non-text item. A non-text item is a ‘checkerboard’ of 2×3 blocks constituting the elementary part of a teletext graphic. An example of such a ‘checkerboard’ can be seen in
Through this example, even in the case of a device dedicated to display teletext, it can be seen that graphical content of a teletext page does not use the full capabilities, i.e. resolution, of the screen. This problem is even more acute when the teletext page is displayed on a screen having a higher resolution such as High-Definition TV sets. With the spreading use of the latter type of TV set, it is necessary, for the convenience of the user, to adapt the teletext graphics to the screen capabilities.
Document US 2002/0163501 discloses a method and a device to scale up primary video composed of objects of a smaller format. This method is based on the fact that the video is composed of two sets of distinct data relating to video frames and 2D graphic elements, respectively. Separate and parallel processes are performed on video frame and 2D graphic elements: the first process consists of generating rendered frames from said primary video frames, said rendered frames being scaled up afterwards to the desired output video format; the second process consists of directly rendering the 2D graphic elements in said output video format by using a drawing algorithm ensuring that no degradation of said 2D graphic elements will take place. In a final step, rendered 2D graphic elements are mapped on the up-scaled video frames.
The teaching of this document does not relate to teletext format. In addition, the 2D graphic elements may contain text and non-text information as defined above.
It is an object of the present invention to propose a method and an apparatus for rendering smooth teletext graphics.
According to the invention the method for rendering smooth teletext graphics when an input teletext page is to be displayed at a target resolution on a device, is characterized in that it comprises the steps of:
In a first embodiment, the step of scaling up said intermediate non-text bitmap comprises the sub-steps of:
In the first embodiment, said mapping sub-step preferably uses said intermediate non-text bitmap as an input for improving the mapping process.
In a second embodiment, the step of scaling up said intermediate non-text bitmap comprises the sub-steps of:
Furthermore, the second embodiment preferably comprises the sub-step of scaling up classically said intermediate non-text bitmap in order to obtain a classical up-scaled non-text bitmap having said target resolution by using a classical up-scaling algorithm based on pixel repetition, and said merging sub-step uses said classical up-scaled non-text bitmap as an input for improving the merging process.
The separating step may comprise the sub-steps of:
Said separating step may comprise the sub-steps of:
According to the invention, the apparatus for rendering smooth teletext graphics when an input teletext page is to be displayed at a target resolution on a device, is characterized in that it comprises:
In a first embodiment of the apparatus, said up-scaling means comprises:
In a second embodiment of the apparatus, the up-scaling means comprises:
The invention will be better understood and its other aims, details features and advantages will be clearly shown with reference to the following description of a particular embodiment of the invention, given only for illustrative and non-limitative purposes, in connection with the accompanying drawings, in which:
The method of the invention consists in separating a non-text item (i.e. graphics) from a text item of an input teletext page, and then scaling up the non-text item at a target resolution.
In the following description, the target resolution is the 400×300 typical teletext resolution. In other applications of the invention, the target resolution may even be the resolution of the screen on which the teletext page is displayed, for example, the particular resolution of the HDTV set used to display the teletext page.
Referring now to
The separation step 100 comprises the following sub-steps.
In sub-step 101, a filter is processed in order to separate text item D2 and non-text item D3 on the basis of the number identifying a specific symbol. Then, in sub-step 102, the information of the non-text item D3 is transformed in an intermediate non-text bitmap D5 having a 80×75 intermediate resolution.
In parallel, sub-step 103 is performed on the text item D2 from sub-step 101. The result is the transformation of the text item D2 into a final text bitmap D4 having the target resolution. Sub-step 103 may render the text content of the teletext page in an optimized manner.
Step 200 of the method consists in scaling up the 80×75 intermediate non-text bitmap D5. This operation transforms the intermediate non-text bitmap D5 into a final non-text bitmap D7 having a resolution which is equal to the 400×300 target resolution.
In more details, in this first embodiment, the up-scaling step 200 is based on the use of the luminance information. The initial RGB 80×75 intermediate non-text bitmap D5 is converted into a single luminance plane D9 through sub-step 201. Then the luminance plane D9 is scaled up to the target resolution through sub-step 202 using an advanced up-scaling algorithm.
Such an advanced graphics up-scaling algorithm may be, for example, a polyphase interpolating up-scaling algorithm, a content-adaptive up-scaling algorithm based either on classification of the local image content (such as the DRC scaler of SONY) or on edge-adaptive interpolation (EDDI, NEDI, edge-orientation controlled LTI), a morphological scalar such as “vector erosion”, or any up-scaling algorithms known to skilled in the art.
Finally, at sub-step 203, values of the up-scaled luminance plane D11 are mapped to one of the eight RGB triplets. In order to prevent isolated false colors, which may result from the ambiguity of luminance mapping, a comparison is made with the initial intermediate non-text bitmap D5 during the merging sub-step 203. For example, the constraint that the up-scaled luminance of one pixel has to match with the RGB triplet of one pixel of the initial intermediate non-text bitmap D5 located in the vicinity may be applied.
The final step 300 corresponds to the merging of the up-scaled final non-text bitmap D7 from step 200 and the final text bitmap D4 given as output of sub-step 103 of the separation step 100. Merging step 300 may include algorithms allowing the missing pixel to be filled, or the correct pixel to be selected when there is a double defined pixel. Merging step 300 may also allow imperfections of the output bitmap D to be corrected.
The resulting merged output bitmap D is sent to the display device having the target resolution.
At the final merging sub-step 212, another 400×300 additional bitmap D17 is used. This additional bitmap D17 is the result of a simple up-scaling algorithm applied on the intermediate non-text bitmap D5 in sub-step 213. For example this simple up-scaling algorithm is a pixel repetition up-scaling algorithm. This additional bitmap D17 allows the missing pixel to be filled or the correct pixel to be chosen when there is a double defined pixel in the merging sub-step 212.
In another embodiment of the method according to the invention depicted in
At this stage of the method, the non-text bitmap D4 from filter 111 has a resolution of 400×300. It corresponds to the final text bitmap.
Sub-step 112 down-scales the input non-text bitmap D30 in order to give an output of an intermediate non-text bitmap D5 with a 80×75 resolution. Through sub-step 212 no information is lost because, as mentioned in the introduction above, teletext graphics are of a ‘checkerboard’ type, the resolution of which is 80×75.
Then the second step 200 of the method is completed. Advanced up-scaling step 200 is identical to what has been described above. The intermediate non-text bitmap D5 output from sub-step 112 is transformed into a final non-text bitmap D7 having the target resolution.
At the final merging step 300, the final non-text bitmap D7 is merged with the final text bitmap D4 in a similar way as described with reference to
Throughout the above description, the word ‘display device’ refers either to a screen or a printer, and more widely to any means allowing display of bitmaps.
The various embodiments described above are provided by way of illustration only and should not be construed as limiting the invention. Those skilled in the art will readily recognise various modifications that can be made to these embodiments without departing from the scope of the present invention, which is set in the following claims.
Number | Date | Country | Kind |
---|---|---|---|
0330183.5 | Oct 2003 | EP | regional |
Filing Document | Filing Date | Country | Kind | 371c Date |
---|---|---|---|---|
PCT/IB04/03470 | 10/20/2004 | WO | 4/25/2006 |