CPC G06T 1/60 (2013.01) [G06N 3/04 (2013.01); H04N 19/117 (2014.11); H04N 19/61 (2014.11); H04N 19/176 (2014.11)] | 12 Claims |
1. A method for computing, comprising:
determining a first pixel block and a second pixel block in a pixel block set in a cache based on an m×n original pixel matrix of original pixel data, wherein the first pixel block comprises an m×n first pixel matrix having a first padding setting related to original pixel data, the m and n are positive integers, and the second pixel block comprises an m×n second pixel matrix having a second padding setting related to the original pixel data; and
storing the pixel block set in a buffer to enable the second pixel block to be read from the buffer based on a first initial address of the first pixel block in the buffer and the second padding setting,
wherein the first padding setting includes a first offset amount and a second offset amount relative to the original pixel data in a first direction and a second direction, respectively; the second padding setting includes a third offset amount and a fourth offset amount relative to the original pixel data in the first direction and the second direction, respectively; the first offset amount and the third offset amount in the first direction relative to the original pixel data are the same,
the first pixel matrix is formed by translating the first offset amount in the first direction and translating the second offset amount in the second direction using a location of the original pixel data as an origin;
the second pixel matrix is formed by translating the third offset amount in the first direction and translating the fourth offset amount in the second direction using the location of the original pixel data as an origin.
|