Patent ID: 7782334
Filing Date: 2010-08-24
Classification: G06T

Abstract:
1. A method of resizing a non-power-of-two dimension source data array associated with a source image to produce a destination data array associated with a destination image, the method comprising: mapping a box reflecting the size of a first destination pixel in the destination image onto a portion of the non-power-of-two dimension source data array, wherein the portion of the non-power-of-two dimension source data array includes a set of source pixels in the source image, and wherein each source pixel in the set of source pixels is at least partially covered by the box; computing a texture coordinate set associated with the first destination pixel; determining texture coordinates of a first source sample corresponding to a first region in the portion of the non-power-of-two dimension source data array based on the texture coordinate set, wherein the first source sample relates to at least one source pixel included in the first region; obtaining, with a texture fetch unit, the first source sample from memory based on the texture coordinates of the first source sample; computing a first filter coefficient associated with the first source sample based on a ratio of the area of the first region and the total area of the portion of the non-power-of-two dimension source data array; filtering the first source sample based on the first filter coefficient to produce a first weighted source sample; obtaining an additional source sample corresponding to an additional region in the portion of the non-power-of-two dimension source data array, wherein additional source sample is based on at least one source pixel included in the additional region; computing a second filter coefficient associated with the additional source sample based on a ratio of the area of the additional region and the total area of the portion of the non-power-of-two dimension source data array; filtering the additional source sample based on the additional filter coefficient to produce an additional weighted source sample; and summing the first weighted source sample and the additional weighted source sample to produce a destination sample associated with the first destination pixel.