Two dimensional masked shift instruction
AssigneeGoogle Inc.
InventorAlbert Meixner
Life of this patent
Estimating the term…
Abstract
An image processor is described. The image processor includes a two dimensional shift register array that couples certain ones of its array locations to support execution of a shift instruction. The shift instruction is to include mask information. The mask information is to specify which of the array locations are to be written to with information being shifted. The two dimensional shift register array includes masking logic circuitry to write the information being shifted into specified ones of the array locations in accordance with the mask information.
Claims19
A method performed by an image processor comprising a two-dimensional shift-register array, the method comprising:
- receiving, by the image processor, a set of masked shift instructions for downsampling input image data stored in the two-dimensional shift-register array, each masked shift instruction of the set of masked shift instructions having mask information, wherein the mask information specifies which array locations are to be written to with data being shifted in the two-dimensional shift-register array;
- and
- executing the set of masked shift instructions, including, on each subsequent masked shift instruction, shifting increasingly larger portions of the data increasingly greater distances within the two-dimensional shift-register array and writing each portion into locations of the two dimensional shift-register array identified by the mask information.
An image processor, comprising:
- a two-dimensional shift-register array having circuitry configured to support execution of masked shift instructions,
- wherein the image processor is configured to:
- receive a set of masked shift instructions for downsampling input image data stored in the two-dimensional shift-register array, each masked shift instruction of the set of masked shift instructions having mask information, wherein the mask information specifies which array locations in the two-dimensional shift-register array are to be written to with data being shifted in the two-dimensional shift-register array;
- and
- execute the set of masked shift instructions, including, on each subsequent masked shift instruction, shifting increasingly larger portions of the data increasingly greater distances within the two dimensional shift-register array and writing each portion into locations of the two dimensional shift-register array identified by the mask information.
One or more non-transitory machine-readable storage media encoded with program code having a set of masked shift instructions, wherein executing the program code by an image processor comprising a two-dimensional shift-register array causes the image processor to perform operations comprising:
- receiving, by the image processor, the set of masked shift instructions for downsampling input image data stored in the two-dimensional shift-register array, each masked shift instruction of the set of masked shift instructions having mask information, wherein the mask information specifies which array locations are to be written to with data being shifted in the two-dimensional shift-register array;
- and
- executing the set of masked shift instructions, including, on each subsequent masked shift instruction, shifting increasingly larger portions of the data increasingly greater distances within the two dimensional shift-register array and writing each portion into locations of the two dimensional shift-register array identified by the mask information.
Dependencies are inferred from the claim text.