METHOD AND APPARATUS FOR PROCESSING VIDEO DATA

Information

  • Patent Application
  • 20080043154
  • Publication Number
    20080043154
  • Date Filed
    June 15, 2007
    17 years ago
  • Date Published
    February 21, 2008
    16 years ago
Abstract
A method for processing video data including a plurality of fields is disclosed. The method includes: dividing the plurality of fields into a plurality of image blocks; examining each image block of a target field to determine whether each image block of the target field corresponds to a film mode or a non-film mode, wherein the target field is one of the plurality of fields; examining each image block of the target field that corresponds to the film mode to determine whether each image block corresponds to a pure film mode or a mix film mode; and utilizing a specific image processing mechanism to process each of the plurality of image blocks.
Description

BRIEF DESCRIPTION OF THE DRAWINGS


FIG. 1 is a functional block diagram of a video processing apparatus of the present invention.



FIG. 2 is a flow chart of a method for processing a video data according to the present invention.



FIG. 3 is the schematic diagram illustration of processing video data according the embodiment of the present invention.





DETAILED DESCRIPTION

Please refer to FIG. 1. FIG. 1 is a functional block diagram of a video processing apparatus 100 of the present invention. The video processing apparatus 100 is utilized for processing video data, the video data including a plurality of fields, the processing apparatus 100 including an image divider 110, a film mode detector 120, a film mode discriminator 130, and a plurality of processing units 170. The image divider 110 is utilized for dividing the plurality of fields into a plurality of image blocks. The film mode detector 120, coupled to the image divider 110, for film mode detection is implemented by examining each image block of a target field to determine whether each image block of the target field corresponds to either a film mode or a non-film mode, where a film mode detected by the film mode detection may include at least 2:2 pull down or 3:2 pull down. In this embodiment, the film mode discriminator 130 is implemented with a sawtooth detector, the film mode discriminator 130 is coupled to the film mode detection 120, for implementing sawtooth detection for each image block that has been previously determined to be in the film mode by the film mode detector 120. If the image block includes sawtooth, then the image block that has been previously determined as film mode is determined to be corresponding to the mix film mode. On the other hand, if the image block doesn't include sawtooth, the image block is then determined to be corresponding to a pure film mode. The film mode discriminator 130 further examines the detection result detected by the film mode detector 120. The plurality of processing units 170 include a non-film mode processing unit 160, a pure film mode processing unit 140 and a mix film mode processing unit 150. The non-film mode processing unit 160 is coupled to the film mode detector 120, and executes a non-film mode image processing mechanism to process the specific image block when the film mode detector 120 determines that the specific image block corresponds to a non-film mode. The pure film mode processing unit 140 is coupled to the film mode discriminator 130, and executes the pure film mode image processing mechanism to process the specific image block when the specific image block of the target field corresponds to a pure film mode. Moreover, the mix film mode processing unit 150 is coupled to the film mode discriminator 130, and executes the mix film mode image processing mechanism to process the specific image block when the specific image block of the target field is determined to be in a pure film mode while having sawtooth.


The film mode discriminator 130, which is used to differentiate pure film mode and mix film mode, is not limited to the sawtooth detector. Any detector which is able to differentiate pure film mode and mix film mode can be applied in the present invention.


Please refer to FIG. 2. FIG. 2 is a flow chart of a method for processing video data according to the present invention. The processing of video data includes the following steps:


Step 220: Start.


Step 210: Receive a target field Fn from the video data.


Step 220: Divide the target field Fn into 9 image blocks N1˜N9.


Step 235: Does a specific image block of the image blocks (N1˜N9) correspond to pure film mode? If Yes, go to step 240; otherwise, go to step 280.

Step 240: Execute sawtooth detection for the specific image block which has been previously determined as film mode.


Step 245: Does the specific image block include sawtooth? If yes, go to step 260; otherwise, go to step 250.


Step 250: Use pure film mode image processing mechanism to process the specific image block.


Step 260: Use mix film mode image processing mechanism to process the specific image block;


Step 280: Use non-film mode image processing mechanism to process the specific image block.


To better illustrate the operation of the present invention, please consider the following example.


Please refer to FIG. 3. FIG. 3 is the schematic diagram illustration of processing video data according an embodiment of the present invention. As shown in FIG. 3, when the image divider 110 receives a target field Fn from the video data, it will divide it into 9 image blocks N1˜N9. The film mode detector 120 will then examine image blocks N1˜N9. Take image block N1 as an example. The film mode detector 120 will examine a plurality of consecutive adjacent fields ( . . . Fn−2, Fn−1,Fn+1,Fn+2 . . . ) within locations corresponding to where the N1 image block situates in the target field. The film mode detector 120 will further examine whether the N1 image block of the target field corresponds to either 2:2 pull down or 3:2 pull down, so to refer the image block N1 to the film mode or the non-film mode. If the image block N1 is referred to a non-film mode, the film mode detector 120 will direct the image block N1 to the non-film mode processing unit 160 which performs a non-film mode image processing mechanism.


If the image block N1 is referred to the film mode, the film mode discriminator 130 will examine adjacent fields (Fn−1,Fn+1) of image block N1 to implement sawtooth detection. If the image block N1 of the target field Fn includes sawtooth, it will be referred to the mix film mode by the film mode discriminator 130 and is directed to the mix film mode processing unit 150 which will perform the mix film mode image processing mechanism. On the other hand, if the image block N1 of target field Fn doesn't include sawtooth, it will be referred as a pure film mode by the film mode discriminator 130 and is directed to the pure film mode processing unit 140 which will perform the pure film mode image processing mechanism. Other image blocks (N2˜N9) will be processed in the same way, so that the present invention can process the pure film mode content of the video data with pure film mode mechanism, process the mix film mode content with the mix film mode mechanism, and process non-film mode content with non-film mode mechanism. In other words, each image blocks can be specifically processed according to their film mode, so that the best quality and stability of image can be obtained.


Please note that dividing a field into 9 image blocks is just an embodiment of the present invention. That is to say, according to the requirement of the design, the image divider 110 can divide a field into other numbers of image blocks. For example, in other embodiments of the present invention, if considering marquee captions that often appear on the lateral side or superior/inferior side of the screen, the present invention will tend to divide the field in a horizontal or vertical fashion. The present invention can also divide a field based on the probability distribution of the location of the marquee captions.


The present invention not only detects the pure film mode content but also the mix film mode content. Furthermore, it can process portions of the mix film mode content that correspond to pure film mode or non-film mode according to the mode of content. Therefore, quality and stability of a movie is improved by the present invention.


Those skilled in the art will readily observe that numerous modifications and alterations of the device and method may be made while retaining the teachings of the invention. Accordingly, the above disclosure should be construed as limited only by the metes and bounds of the appended claims.

Claims
  • 1. A method for processing video data, the video data including a plurality of fields, the method comprising: dividing each of the plurality of fields into a plurality of image blocks;examining each image block of a target field to determine whether each image block of the target field corresponds to a film mode or a non-film mode, wherein the target field is one of the plurality of fields;examining each image block of the target field that corresponds to the film mode to determine whether each image block corresponds to a pure film mode or a mix film mode; andutilizing a specific image processing mechanism to process each of the plurality of image blocks.
  • 2. The method of claim 1, wherein the specific image processing mechanism is utilizing a pure film mode image processing mechanism to process a specific image block when the specific image block of the target field corresponds to the pure film mode.
  • 3. The method of claim 1, wherein the specific image processing mechanism is utilizing a mix film mode image processing mechanism to process a specific image block when the specific image block of the target field corresponds to the mix film mode.
  • 4. The method of claim 1, wherein the step of examining each image block of the target field that corresponds to the film mode to determine whether each image block corresponds to a pure film mode or a mix film mode is implemented by executing a sawtooth detection; if the image block includes sawtooth, the image block is determined to be corresponding to the mix film mode; and if the image block does not include the sawtooth, the image block is determined to be corresponding to the pure film mode.
  • 5. The method of claim 1, wherein the step of examining each image block of a target field to determine whether each image block of the target field corresponds to a film mode or a non-film mode is implemented by executing a film mode detection, wherein a film mode detected by the film mode detection includes at least a 2:2 pull down mode or a 3:2 pull down mode.
  • 6. The method of claim 1, wherein each field is divided into N image blocks with M kinds of shapes, where N is a positive integer and M is less than or equal to N.
  • 7. An apparatus for processing video data, the video data including a plurality of fields, the apparatus comprising: an image divider, for dividing each of the plurality of fields into a plurality of image blocks;a film mode detector, coupled to the image divider, for examining each image block of a target field to determine whether each image block of the target field corresponds to a film mode or a non-film mode, wherein the target field is one of the plurality of fields;a film mode discriminator, coupled to the film mode detector, for examining each image block of the target field that corresponds to the film mode to determine whether each image block corresponds to a pure film mode or a mix film mode; anda plurality of processing units, coupled to the film mode detector and the film mode discriminator, for utilizing a specific image processing mechanism to process each of the plurality of image blocks.
  • 8. The apparatus of claim 7, wherein the film mode discriminator is a sawtooth detector, for determining whether the image blocks of the target field that corresponds to the film mode includes sawtooth, if the image block includes sawtooth, the film is a mix film mode, if the image block does not include the sawtooth, the film is a pure film mode.
  • 9. The apparatus of claim 7, wherein the processing unit is a pure film mode processing unit, coupled to the film mode discriminator, for utilizing a pure film mode image processing mechanism to process a specific image block when the specific image block of the target field corresponds to the pure film mode.
  • 10. The apparatus of claim 7, wherein the processing unit is a mix film mode processing unit, coupled to the film mode discriminator, for utilizing a mix film mode image processing mechanism to process a specific image block when the specific image block of the target field corresponds to the mix film mode.
  • 11. The apparatus of claim 7, wherein the processing unit is a non-film mode processing unit, coupled to the film mode detector, for utilizing a non-film mode image processing mechanism to process a specific image block when the specific image block of the target field corresponds to the non-film mode.
  • 12. The apparatus of claim 7, wherein the film mode detector performs a film mode detection for examining each image block of the target field to determine whether each image block of the target field corresponds to the film mode or the non-film mode, and a film mode detected by the film mode detection includes at least one of a 2:2 pull down mode and a 3:2 pull down mode.
  • 13. The apparatus of claim 7, wherein each field is divided into N image blocks with M kinds of shapes, where N is a positive integer and M is less than or equal to N.
Priority Claims (1)
Number Date Country Kind
095121882 Jun 2006 TW national