Abstract:
The intended display aspect-ratio for video is determined automatically by analyzing an image to identify image blocks resulting from prior block-based processing of the video; comparing horizontal and vertical dimensions of those image blocks with horizontal and vertical dimensions of the image, with black border regions excluded as necessary; and determining from that comparison a display aspect ratio for the video.

Description:
FIELD OF INVENTION This invention concerns analysis of digitally coded television images. 
     BACKGROUND OF THE INVENTION 
       [0001]    Most standard interfaces for digital television signals do not require that the aspect- ratio (width to height ratio) of the displayed image is directly specified. In the absence of such a specification the aspect ratio is usually inferred from the context in which the data is presented, or from the spatial resolution of the image. For example, ‘standard-definition’ television is often assumed to have an aspect-ratio of 4:3; and ‘high-definition’ television is often assumed to have an aspect-ratio of 16:9. Some image coding standards avoid this ambiguity by specifying that ‘the pixels are square’. That is to say that the horizontal and vertical spatial sampling frequencies are equal, and so the aspect ratio is equal to the ratio of the number of samples per active television line to the number of active lines per frame. 
         [0002]    It is common for television images to be modified in ‘aspect-ratio conversion’ devices during the video production and editing process; this can give rise to ambiguity as to the intended ratio. These devices typically apply spatial scaling to the image. When an image is to be displayed on a display device that has an aspect-ratio different from that intended for the image data, there are two common alternative procedures that can be applied: 
         [0003]    Blank pixels, comprising a ‘black-band’ or other uniform blank border (or two bands at opposite edges of the image), can be added to increase the image width or height so that the size of the image is increased (in one direction) to match the size of the display. 
         [0004]    Pixels can be removed, or ‘cropped’ from one edge (or two opposite edges) of the image to reduce the image width or height to match the size of the display. 
         [0005]    A number of methods of including an aspect-ratio definition in a video data-stream are in common use and have been standardized by bodies such as the SMPTE and ETSI. The inclusion of this ‘metadata’ with the image data enables processing equipment and display devices to adapt their mode of operation according to the aspect-ratio of the images being displayed or processed. However, the complexity of many image processing, video content production and distribution processes is such that errors can occur, leading to incorrect processing; and, such errors are often introduced by incorrect metadata. 
         [0006]    Of course images can be checked by human observation, but this is neither economic nor practical in typical, large-scale television playout centers. There is thus a need for an automatic means of verifying that image data is appropriately scaled for the intended display, and that any aspect-ratio metadata associated with a video data stream accurately reflects the actual aspect-ratio of the respective image data. Where black-bands have been introduced, it can be inferred that the intended display has a different aspect ratio from the one for which the image data was originally intended. The position of the band, or bands, indicates the direction of aspect-ratio change. Measurement of the width of bands enables the magnitude of the change to be calculated. 
         [0007]    European patent application EP 2107 521 discloses how a border region in an image can be identified; and, European patent EP 1 744 565 discloses how image data can be analyzed to detect black areas. These methods can be used to detect the presence of black-bands automatically, and this information can compared with metadata accompanying image data to assess the likely accuracy of that metadata. 
         [0008]    However, where the image has been cropped in order to change its aspect-ratio these methods cannot be used. The present invention addresses this problem. 
         [0009]    In this specification two exemplary aspect ratios—16:9 and 4:3—will be considered; the skilled reader will, of course, appreciate that there are other aspect ratios in use, and that the concepts described here are applicable to other ratios and combinations of ratios. 
       SUMMARY OF THE INVENTION 
       [0010]    The invention consists in a method and apparatus for determining the intended display aspect-ratio for video data, in which the said video data is analyzed to detect the block dimensions used in prior block-based processing of that data, and the result of said analysis is used to determine the said intended display aspect-ratio. 
         [0011]    Suitably, the detected block dimensions are compared with expected block dimensions for the said video data and: a narrower intended aspect-ratio is determined when the detected blocks are wider than expected; and, a wider intended aspect-ratio is determined when the detected blocks are higher than expected. 
         [0012]    In some embodiments an original image spatial sampling format is detected: the number of samples per active line of the said original image format may be detected; or the number of television lines per frame of the said original image may be detected. 
         [0013]    In some embodiments the said image data is analyzed to detect the presence of one or more blank borders and a detected border parameter is used to determine the said intended display aspect ratio. 
         [0014]    Metadata may be derived from the video data and, in a preferred embodiment, derived metadata is compared with other metadata associated with the said video data. 
         [0015]    In another aspect, the invention consists in a method of determining a display aspect ratio for video, comprising the steps of analyzing an image to identify image blocks resulting from prior block-based processing of the video; comparing horizontal and vertical dimensions of said image blocks with horizontal and vertical dimensions of the image; and determining from said comparison a display aspect ratio for the video. 
     
    
     
       BRIEF DESCRIPTION OF THE DRAWINGS 
         [0016]    An example of the invention will now be described with reference to the drawings in which: 
           [0017]      FIG. 1  shows a block diagram of a video process. 
           [0018]      FIG. 2   a  shows a first embodiment of an image prior to aspect-ratio conversion. 
           [0019]      FIG. 2   b  shows aspect-ratio conversion of images of  FIG. 2   a  by cropping. 
           [0020]      FIG. 2   c  shows a second embodiment of an image prior to aspect-ratio conversion. 
           [0021]      FIG. 2   d  shows an aspect ratio conversion of images of  FIG. 2   c  by cropping. 
           [0022]      FIG. 3  shows a block diagram of a video monitoring process according to an embodiment of the invention. 
       
    
    
     DETAILED DESCRIPTION OF THE INVENTION 
       [0023]    In modern video production and distribution, images are handled as compressed data streams wherever possible.  FIG. 1  shows a small part of a typical video process. Compressed video data ( 1 ) is to be modified in a process ( 2 ) that converts it to a different format. This may include aspect-ratio conversion or standards conversion, and may be part of live playout operation, or a non-real-time “re-purposing” process that will create a video file for subsequent distribution. These re-scaling and re-sampling processes are virtually impossible to carry out in the compressed video domain, and so a compression decoder ( 3 ) converts the compressed video data ( 1 ) to a conventionally-sampled stream of pixel values prior to the process ( 2 ). The output ( 4 ) from the process is typically compressed again in a compression coder ( 5 ), to give a compressed video output for distribution ( 6 ). This output may be sent to a transmission network or a video file server. 
         [0024]    Typically, block-based transform coding according to one of the MPEG family of standards is used for the compression. In block-based processing each frame is divided into equally sized rectangular regions, or blocks. Different coding decisions, for example different quantizations of transform coefficients, are applied to different blocks of the same frame. These different coding decisions lead to different coding artifacts in different blocks. Although these artifacts are usually imperceptibly small, the resulting changes in video quality between adjacent blocks can be detected by analysis of the decoded video signal. 
         [0025]    U.S. Pat. No. 8,094,967 and International Patent Application WO2007/125286—which are both hereby herein incorporated by reference—disclose methods and apparatus for determining the horizontal and vertical block size corresponding to earlier block-based processing of video signals or data by detecting the transitions between the blocks. In the present invention block size measurement, such as described in this prior patent, is used to infer the intended aspect-ratio of an image. In the system of  FIG. 1  a block size measurement carried out on the uncompressed video output ( 4 ) from the conversion process ( 2 ) can be used to determine how the aspect-ratio has been modified in the process ( 2 ). And, as will be explained below, additional information about the image format of the compressed video data ( 1 ) can be obtained. 
         [0026]      FIG. 2   a  shows how a 16:9 aspect-ratio image ( 21 ) can be converted to a 4:3 aspect-ratio image ( 22 ) ( FIG. 2   b ) by the removal of image-edge regions ( 23 ) and ( 24 ).  FIG. 2   c  shows how a 4:3 aspect-ratio image ( 25 ) can be converted to a 16:9 aspect-ratio image ( 26 ) ( FIG. 2   d ) by the removal of image-edge regions ( 27 ) and ( 28 ). 
         [0027]    When images are compression coded the active image area is divided into a number of equally sized blocks; typically the blocks are eight pixels wide and eight television lines high. In the examples shown in  FIGS. 2   a - 2   d,  the images are sampled at a spatial resolution of 720 pixels per active picture width and 576 lines per active picture height. 
         [0028]    In  FIGS. 2   a - 2   b,  the 16:9 image ( 21 ) is 90 blocks wide because 720÷8 is 90. In the aspect-ratio conversion process the edge regions ( 23 ) and ( 24 ), which together comprise one quarter of the blocks on each line, are removed; the remaining image ( 22 ) comprises 67.5 blocks per line. This is re-scaled in the aspect ratio conversion process to an active picture width of 720 pixels. Thus the block width in the 4:3 image ( 22 ) is 720÷67.5, that is to say 10.667 pixels. 
         [0029]    In  FIGS. 2   c - 2   d,  the 4:3 image ( 25 ) is 72 blocks high because 576÷8 is 72. In the aspect-ratio conversion process the edge regions ( 27 ) and ( 28 ), which together comprise one quarter of the rows of blocks, are removed; the remaining image ( 26 ) comprises 54 rows of blocks. This is re-scaled in the aspect ratio conversion process to an active picture height of 576 lines. Thus the block height in the 16:9 image ( 26 ) is 576÷54, that is to say 10.667 lines. Note that the cropping of the images has led to an increase in the block size in the direction of crop. 
         [0030]    As mentioned previously, the conversion process ( 2 ) of  FIG. 1  is likely to include standards conversion, which will typically involve spatial re-sampling of the image. At a point of measurement the spatial sampling structure of the image being measured is known, but the sampling structure at the point of compression coding may be unknown. However, because there are only a limited number of commonly-used combinations of aspect-ratio and sampling format, the block-size measurement usually enables both the original spatial sampling format and the original aspect-ratio to be determined. 
         [0031]    The following tables show, for four common image formats, how a measured block height and block width can be used to infer the format and aspect ratio at the point of compression. 
         [0032]    Table 1 applies to (nominally) 525-line standard definition images, spatially sampled with 480 active lines per frame, each active line comprising 720 pixels. This image format was historically defined to have an aspect ratio of 4:3, but is also now used to carry 16:9 images. 
         [0033]    Table 2 applies to (nominally) 625-line standard definition images, spatially sampled with 576 active lines per frame, each active line comprising 720 pixels. This image format was historically defined to have an aspect ratio of 4:3, but is also now used to carry 16:9 images. 
         [0034]    Table 3 applies to 720-active-line per frame high-definition images, each active line comprising 1280 pixels. This image format is conventionally defined to have an aspect ratio of 16:9. 
         [0035]    Table 4 applies to 1080-active-line per frame high-definition images, each active line comprising 1920 pixels. This image format is conventionally defined to have an aspect ratio of 16:9. 
         [0000]    
       
         
               
             
               
               
               
             
           
               
                 TABLE 1 
               
             
             
               
                   
               
               
                 Measurement of 480 Active Line, 720 Pixels per Active Line Images 
               
               
                 (Note this table typically applies to ‘525-line’ standard-definition images) 
               
             
          
           
               
                 Measured Block 
                 Measured Block 
                   
               
               
                 Width 
                 Height 
                 Conclusion 
               
               
                 (pixel pitches) 
                 (TV lines) 
                 (Aspect-Ratio) 
               
               
                   
               
               
                 10.667 
                 8 
                 4:3 
               
               
                 [67.5 blocks per 
                 [60 blocks per picture 
                 [16:9 Source with 480 active 
               
               
                 line] 
                 height] 
                 lines of 720 pixels] 
               
               
                 10.667 
                 6.667 
                 4:3 
               
               
                 [67.5 blocks per 
                 [72 blocks per picture 
                 [16:9 Source with 576 active 
               
               
                 line] 
                 height] 
                 lines of 720 pixels] 
               
               
                 8 
                 10.667 
                 16:9 
               
               
                 [90 blocks per 
                 [45 blocks per picture 
                 [4:3 source with 480 active 
               
               
                 line] 
                 height] 
                 lines of 720 pixels] 
               
               
                 8 
                 8.889 
                 16:9 
               
               
                 [90 blocks per 
                 [54 blocks per picture 
                 [4:3 source with 576 active 
               
               
                 line] 
                 height] 
                 lines of 720 pixels] 
               
               
                 8 
                 6.667 
                 Unknown, but same as source 
               
               
                 [90 blocks per 
                 [72 blocks per picture 
                 [Source had 576 active lines 
               
               
                 line] 
                 height] 
                 of 720 pixels] 
               
               
                 8 
                 8 
                 Unknown, but same as source 
               
               
                 [90 blocks per 
                 [60 blocks per picture 
                 [Source had 480 active lines 
               
               
                 line] 
                 height] 
                 of 720 pixels] 
               
               
                 6 
                 5.333 
                 4:3 
               
               
                 [120 blocks per 
                 [90 blocks per picture 
                 [16:9 Source had 1280 active 
               
               
                 line] 
                 height] 
                 lines of 720 pixels] 
               
               
                 5.333 
                 3.556 
                 4:3 
               
               
                 [135 blocks per 
                 [135 blocks per picture 
                 [16:9 Source had 1080 active 
               
               
                 line] 
                 height] 
                 lines of 1440 pixels] 
               
               
                 4.5 
                 5.333 
                 16:9 
               
               
                 [160 blocks per 
                 [90 blocks per picture 
                 [16:9 Source had 1280 active 
               
               
                 line] 
                 height] 
                 lines of 720 pixels] 
               
               
                 4 
                 3.556 
                 Unknown 
               
               
                 [180 blocks per 
                 [135 blocks per picture 
                 [16:9 Source had 1080 active 
               
               
                 line] 
                 height] 
                 lines, either 1440 pixels or 
               
               
                   
                   
                 1920 pixels] 
               
               
                 3 
                 3.556 
                 16:9 
               
               
                 [240 blocks per 
                 [135 blocks per picture 
                 [16:9 Source had 1080 active 
               
               
                 line] 
                 height] 
                 lines of 1920 pixels] 
               
               
                   
               
             
          
         
       
     
         [0000]    
       
         
               
             
               
               
               
             
           
               
                 TABLE 2 
               
             
             
               
                   
               
               
                 Measurement of 576 Active Line, 720 Pixels per Active Line Images 
               
               
                 (Note this table typically applies to ‘625-line’ standard-definition images) 
               
             
          
           
               
                   
                 Measured Block 
                   
               
               
                 Measured Block Width 
                 Height 
                 Conclusion 
               
               
                 (pixel pitches) 
                 (TV lines) 
                 (Aspect-Ratio) 
               
               
                   
               
               
                 10.667 
                 9.60 
                 4:3 
               
               
                 [67.5 blocks per line] 
                 [60 blocks per 
                 [16:9 Source with 480 active 
               
               
                   
                 picture height] 
                 lines of 720 pixels] 
               
               
                 10.667 
                 8 
                 4:3 
               
               
                 [67.5 blocks per line] 
                 [72 blocks per 
                 [16:9 Source with 576 active 
               
               
                   
                 picture height] 
                 lines of 720 pixels] 
               
               
                 8 
                 12.80 
                 16:9 
               
               
                 [90 blocks per line] 
                 [45 blocks per 
                 [4:3 source with 480 active 
               
               
                   
                 picture height] 
                 lines of 720 pixels] 
               
               
                 8 
                 10.67 
                 16:9 
               
               
                 [90 blocks per line] 
                 [54 blocks per 
                 [4:3 source with 576 active 
               
               
                   
                 picture height] 
                 lines of 720 pixels] 
               
               
                 8 
                 9.60 
                 Unknown, but same as source 
               
               
                 [90 blocks per line] 
                 [60 blocks per 
                 [Source had 480 active lines 
               
               
                   
                 picture height] 
                 of 720 pixels] 
               
               
                 8 
                 8 
                 Unknown, but same as source 
               
               
                 [90 blocks per line] 
                 [72 blocks per 
                 [Source had 576 active lines 
               
               
                   
                 picture height] 
                 of 720 pixels] 
               
               
                 6 
                 6.40 
                 4:3 
               
               
                 [120 blocks per line] 
                 [90 blocks per 
                 [16:9 Source had 1280 active 
               
               
                   
                 picture height] 
                 lines of 720 pixels] 
               
               
                 5.333 
                 4.27 
                 4:3 
               
               
                 [135 blocks per line] 
                 [135 blocks per 
                 [16:9 Source had 1080 active 
               
               
                   
                 picture height] 
                 lines of 1440 pixels] 
               
               
                 4.5 
                 6.40 
                 16:9 
               
               
                 [160 blocks per line] 
                 [90 blocks per 
                 [16:9 Source had 1280 active 
               
               
                   
                 picture height] 
                 lines of 720 pixels] 
               
               
                 4 
                 4.267 
                 Unknown 
               
               
                 [180 blocks per line] 
                 [135 blocks per 
                 [16:9 Source had 1080 active 
               
               
                   
                 picture height] 
                 lines of 1440 or 1920 pixels] 
               
               
                 3 
                 4.267 
                 16:9 
               
               
                 [240 blocks per line] 
                   
                 [16:9 Source had 1080 active 
               
               
                   
                   
                 lines of 1920 pixels] 
               
               
                   
               
             
          
         
       
     
         [0000]    
       
         
               
             
               
               
               
             
           
               
                 TABLE 3 
               
             
             
               
                   
               
               
                 Measurement of 720 Active Line, 1280 Pixels per Active Line Images 
               
               
                 (Note that this is a high-definition format, and so a 16:9 aspect-ratio 
               
               
                 can be assumed. The measurement characterizes the source.) 
               
             
          
           
               
                   
                 Measured Block 
                   
               
               
                 Measured Block Width 
                 Height 
                 Conclusion 
               
               
                 (pixel pitches) 
                 (TV lines) 
                 (Source Aspect-Ratio) 
               
               
                   
               
               
                 14.222 
                 16 
                 4:3 
               
               
                 [90 blocks per line] 
                 [45 blocks per 
                 [Source had 480 active lines 
               
               
                   
                 picture height] 
                 of 720 pixels] 
               
               
                 14.222 
                 13.333 
                 4:3 
               
               
                 [90 blocks per line] 
                 [54 blocks per 
                 [Source had 576 active lines 
               
               
                   
                 picture height] 
                 of 720 pixels] 
               
               
                 14.222 
                 12 
                 16:9 
               
               
                 [90 blocks per line] 
                 [60 blocks per 
                 [Source had 480 active lines 
               
               
                   
                 picture height] 
                 of 720 pixels] 
               
               
                 14.222 
                 10 
                 16:9 
               
               
                 [90 blocks per line] 
                 [72 blocks per 
                 [Source had 576 active lines 
               
               
                   
                 picture height] 
                 of 720 pixels] 
               
               
                 8 
                 8 
                 16:9 
               
               
                 [160 blocks per line] 
                 [60 blocks per 
                 [Source had 720 active lines 
               
               
                   
                 picture height] 
                 of 1280 pixels] 
               
               
                 7.111 
                 5.33 
                 16:9 
               
               
                 [180 blocks per line] 
                 [135 blocks per 
                 [Source had 1080 active lines 
               
               
                   
                 picture height] 
                 of 1440 pixels] 
               
               
                 5.333 
                 5.333 
                 16:9 
               
               
                 [240 blocks per line] 
                 [135 blocks per 
                 [Source had 1080 active lines 
               
               
                   
                 picture height] 
                 of 1920 pixels] 
               
               
                   
               
             
          
         
       
     
         [0000]    
       
         
               
             
               
               
               
             
           
               
                 TABLE 4 
               
             
             
               
                   
               
               
                 Measurement of 1080 Active Line, 1920 Pixels per Active Line Images 
               
               
                 (Note that this is a high-definition format, and so a 16:9 aspect-ratio 
               
               
                 can be assumed. The measurement characterizes the source.) 
               
             
          
           
               
                   
                 Measured Block 
                   
               
               
                 Measured Block Width 
                 Height 
                 Conclusion 
               
               
                 (pixel pitches) 
                 (TV lines) 
                 (Source Aspect-Ratio) 
               
               
                   
               
               
                 21.333 
                 24 
                 4:3 
               
               
                 [90 blocks per line] 
                 [45 blocks per 
                 [Source had 480 active lines 
               
               
                   
                 picture height] 
                 of 720 pixels] 
               
               
                 21.333 
                 20 
                 4:3 
               
               
                 [90 blocks per line] 
                 [54 blocks per 
                 [Source had 576 active lines 
               
               
                   
                 picture height] 
                 of 720 pixels] 
               
               
                 21.333 
                 18 
                 16:9 
               
               
                 [90 blocks per line] 
                 [60 blocks per 
                 [Source had 480 active lines 
               
               
                   
                 picture height] 
                 of 720 pixels] 
               
               
                 21.333 
                 15 
                 16:9 
               
               
                 [90 blocks per line] 
                 [72 blocks per 
                 [Source had 576 active lines 
               
               
                   
                 picture height] 
                 of 720 pixels] 
               
               
                 12 
                 12 
                 16:9 
               
               
                 [160 blocks per line] 
                 [90 blocks per 
                 [Source had 720 active lines 
               
               
                   
                 picture height] 
                 of 1280 pixels] 
               
               
                 10.667 
                 8 
                 16:9 
               
               
                 [180 blocks per line] 
                 [135 blocks per 
                 [Source had 1080 active lines 
               
               
                   
                 picture height] 
                 of 1440 pixels] 
               
               
                 8 
                 8 
                 16:9 
               
               
                 [240 blocks per line] 
                 [135 blocks per 
                 [Source had 1080 active lines 
               
               
                   
                 picture height] 
                 of 1920 pixels] 
               
               
                   
               
             
          
         
       
     
         [0036]    The above tables make use of the standardized characteristics of commonly-used image formats to infer the intended aspect-ratio from the measured block size. The tables assume that any aspect ratio conversion has been achieved by cropping the image in the manner illustrated in  FIG. 1 . 
         [0037]    It is assumed that the source was processed with a blocks eight source pixels wide and eight source lines high. Detection of the positions of the edges of these blocks in the measured image enables vertical and horizontal re-scaling to be detected, because re-scaled blocks will not be both eight pixels wide and eight lines high in the rescaled image. Where the same sampling structure can be used with different aspect ratios, as is the case for standard-definitions formats, there can be ambiguity. In these cases some other information is required in order to determine the aspect ratio. 
         [0038]    Where the measured block width corresponds to more than eight pixels, it can be concluded that the image has been horizontally enlarged. If the number of pixels per active line has not been increased in proportion to the enlargement then some part(s) of the image will have been lost. This is indicative of cropping of the image to fit a narrower intended aspect-ratio. 
         [0039]    Where the measured block width corresponds to less than eight pixels, it can be concluded that the image has been horizontally reduced. If the image still fills the frame horizontally, then the rescaling factor and hence the original number of pixels per line can be computed. 
         [0040]    Where the measured block height corresponds to more than eight lines, it can be concluded that the image has been vertically enlarged. If the number of lines per frame has not been increased in proportion to the enlargement then some part(s) of the image will have been lost. This is indicative of cropping of the image to fit a wider intended aspect-ratio. 
         [0041]    Where the measured block height corresponds to less than eight lines, it can be concluded that the image has been vertically reduced. If the image still fills the frame vertically, then the rescaling factor, and hence the original number of lines per frame can be computed. 
         [0042]    A broadcast-plant monitoring system according to an embodiment of the invention is shown in  FIG. 3 . Uncompressed video data ( 300 ), and associated metadata ( 301 ) that describes, at least, the intended display aspect ratio of the video data ( 300 ), are input to the system. A format detection block ( 302 ) determines the width of the image represented by the video data ( 300 ) in pixels, and its height in television lines. As the skilled reader will appreciate, if the image data ( 300 ) contains timing reference signals according to one the well-known family of digital video interface standards such as ITU-R Recommendation 656, the width of the image may be determined by counting the number of samples between digital horizontal blanking (H) transitions, and the height of the image may be determined by counting the number of lines between the digital vertical blanking (V) transitions. 
         [0043]    A block width measurement process ( 303 ) determines the block width, and a block height measurement process ( 304 ) determines the block height, of prior block-based processing of the video data ( 300 ). These measurements may use the method described in International Patent Application WO2007/125286, or some other method that detects the residue of block-based processing. One alternative is to calculate differences between pixels and then to sum those differences over the height and width of the image or a region of the image. An artifact of block based processing is that a pixel difference taken across two blocks is likely to be higher than that taken within a block. By looking for maxima in these sums of pixel differences and fitting those maxima to a regular array, measurements of block width and block height can be generated. 
         [0044]    A left/right border measurement process ( 305 ) detects any blank borders at the side, and a top/bottom border measurement process ( 306 ) detects any blank borders at the top or bottom, of the image represented by the video data ( 300 ). These measurements may use one or both of the methods described in European patent application EP 2 107 521 and European Patent EP 1 744 565—both hereby herein incorporated by reference—or some other method that identifies blank regions at the edge of an image. 
         [0045]    An aspect-ratio look-up-table ( 307 ) uses the image height and width outputs from the format detection block ( 32 ), the block size measurements from the block width measurement ( 303 ) and the block height measurement ( 304 ) to determine the likely intended display aspect-ratio of the video data ( 300 ). This image height and width enable one of the above Tables relating block size to aspect ratio to be selected, and the aspect-ratio corresponding to the measured block-size is then input to an aspect-ratio logic block ( 308 ), which determines the correct aspect ratio for the video data ( 300 ). 
         [0046]    The aspect-ratio logic block ( 308 ) makes use of information about blank borders from the border measurement processes ( 305 ) and ( 306 ), and the output of the aspect-ratio look-up-table ( 307 ) to determine the intended aspect ratio. If there are no blank borders the aspect ratio output from the aspect-ratio look-up-table ( 307 ) will correspond to the intended ratio for the image. However, if any blank side borders are detected, the intended aspect-ratio can be assumed to be 16:9; and, if any top or bottom borders are detected the intended aspect-ratio can be assumed to be 4:3. 
         [0047]    The intended aspect ratio from the aspect-ratio logic block ( 308 ) is expressed in a suitable metadata format and compared, in a metadata comparison block ( 309 ), with the input metadata ( 301 ) associated with the image data ( 300 ). If a difference is found between the aspect ratio determined by aspect-ratio logic block ( 308 ) and the aspect-ratio described by the metadata ( 301 ), a warning or alarm ( 310 ) is output from the metadata comparison block ( 309 ). 
         [0048]    The above description of the operation of the aspect-ratio logic block ( 308 ), in which the information from block size measurement is not used if borders are detected, represents the simplest implementation. However, if resources permit, it can be helpful to check that the block size measurement is consistent with the aspect-ratio determined from border detection. 
         [0049]    If one or both top/bottom borders are detected, the block width should be eight pixels if there has been no change to the number of pixels per active line. 
         [0050]    If one or both left/right borders are detected, the block height should be eight lines if there has been not change to the number of lines per frame. 
         [0051]    If one or both of the above bulleted paragraphs is found to be untrue, then an alarm or warning could be output to indicate that incorrect aspect-ratio modification may have been applied. 
         [0052]    Image parameters other than the intended aspect-ratio can be determined. It can be seen from the above Tables 1 to 4 that the original number of samples per active line and number of active lines per frame can often be determined from the block size measurement, and this additional metadata can be output. 
         [0053]    In the above description it has been assumed that the measurements are made at the uncompressed output from a format and/or aspect ratio conversion process, e.g. the point ( 4 ) in  FIG. 1 . It may also be necessary to determine the intended aspect ratio at a later point in a transmission or distribution chain where the modified video data has been compressed, i.e. the compressed video distribution ( 6 ) from the system of  FIG. 1 . 
         [0054]    In this case, block edge detection systems will locate the blocks of the (second) compression coder ( 5 ). However, if the original coder&#39;s blocks are not aligned with those of the compression coder ( 5 ), two sets of block edges will be found. Fortunately, because the compressed data is available, the locations of the ‘new’ blocks will be known and these block edges can be ignored in the block size measurement. Of course, due allowance must be made for the possibility that some block edges due to the two compression (or other block-based) processes may coincide. 
         [0055]    Note that any convenient method of measuring block size can be used. The block edges may be detected, or the horizontal and vertical spatial frequency components of the block structure may be detected and used to compute the distance, in pixels or lines, between adjacent blocks. 
         [0056]    Images may be up- or down-sampled for analysis and the measured block or border sizes scaled to compensate for this up- or down-sampling. 
         [0057]    It will be understood that this invention has been described by way of example only and that a wide variety of modifications or substitutions are possible without departing from the scope of the invention as claimed are possible. The use of a block size of 8 by 8 is commonplace but the skilled man will understand that this invention can by implemented with logic representing other block sizes. Such logic will readily be derived by analogy with the tables and other discussions above.