Claims
- 1. A method of representing a plurality of pixels, the method comprising:
storing data representing a span of the pixels, wherein the span of the pixels has no pixels of a first predetermined opacity and no pixels of a second predetermined opacity; and storing data representing alpha values quantifying opacities for the pixels of the span; wherein at least one pixel of the first or second predetermined opacity is represented without storing an alpha value therefor.
- 2. The method of claim 1 wherein the first predetermined opacity is transparent and the second predetermined opacity is opaque.
- 3. The method of claim 1 wherein the at least one pixel of the first or second predetermined opacity comprises a span of pixels.
- 4. The method of claim 1 wherein the data representing a span of pixels comprises a starting location and extent of the span.
- 5. The method of claim 1 wherein the first predetermined opacity is opaque.
- 6. The method of claim 1 wherein the first predetermined opacity is transparent.
- 7. The method of claim 1 wherein pixels of the first predetermined opacity and pixels of the second predetermined opacity are represented without storing an alpha value therefor.
- 8. The method of claim 7 further comprising representing a starting location and extent of a span of pixels of only the second predetermined opacity.
- 9. The method of claim 8 wherein data representing the extent of a span of pixels is recorded such that a sign of the extent is indicative of whether pixels of the span are of the second predetermined opacity.
- 10. The method of claim 8 wherein the second predetermined opacity is opaque.
- 11. The method of claim 10 wherein the first predetermined opacity is transparent.
- 12. The method of claim 4 wherein data representing a starting location and extent of a span of pixels is limited to the following:
data representing a single occurrence of a recurring pattern of alpha values; and data identifying a plurality of locations where the recurring pattern of alpha values occur.
- 13. The method of claim 12 wherein the data identifying the location of the recurring pattern is stored as an offset to a location in memory where the data representing the single occurrence of the recurring pattern of alpha values was recorded.
- 14. A computer-readable medium having encoded thereon a data structure comprising:
data representing a plurality of semi-transparent alpha values; and data representing one or more pixels having non-semi-transparent opacity without storing values representing alpha values of the pixels having non-semi-transparent opacity.
- 15. The computer-readable medium of claim 14 wherein the data structure further comprises data representing a starting location and extent of a span of semi-transparent pixels.
- 16. The computer-readable medium of claim 14 wherein pixels having an opaque opacity are represented without storing an alpha value therefor.
- 17. The computer-readable medium of claim 14 wherein pixels having a transparent opacity are represented without storing an alpha value therefor.
- 18. The computer-readable medium of claim 14 wherein the data structure further comprises data representing the starting location and extent of a span of pixels identified as having only a non-semi-transparent opacity.
- 19. The computer-readable medium of claim 14 wherein data representing the extent of a span of pixels is recorded such that a sign of the extent is indicative of whether opacities for the span are non-semi-transparent or semi-transparent.
- 20. The computer-readable medium of claim 14 wherein the span of pixels having only a non-semi-transparent opacity contains only pixels of an opaque opacity.
- 21. The computer-readable medium of claim 14 wherein data representing the starting location and extent of a span of pixels is limited to data representing a single occurrence of a recurring pattern of alpha values, and the data identifying a plurality of locations where the recurring pattern of alpha values occur.
- 22. The computer-readable medium of claim 14 wherein the data identifying the location of the recurring pattern is stored as an offset to a location in memory where the data representing the single occurrence of the recurring pattern of alpha values was recorded.
- 23. A method for storing and processing arbitrary 2-dimensional shapes in a graphics system, the method comprising:
creating an alpha image data structure from an image data source, wherein the alpha image data structure comprises the following elements:
data representing a starting location and extent of a span of pixels only containing pixels not of a first or second predetermined opacity, wherein the extent is recorded such that a sign of the extent indicates the span only contains pixels not of a first or second predetermined opacity; data representing the alpha values quantifying opacity of pixels of the span of pixels containing no pixel of the first and second predetermined opacity, wherein identical patterns of alpha values are recorded only for the first occurrence of the pattern; and data representing a starting location and extent of a span of pixels only containing pixels of the second predetermined opacity, wherein the extent is recorded such that a sign of the extent indicates the span only contains pixels of the second predetermined opacity; wherein at least one replicated span of pixels adjacent to another span having an identical pattern of alpha values is represented without recording the location or extent of the replicated span.
- 24. A method for encoding an arbitrary 2-dimensional shape comprising a plurality of pixels in a graphics system, the method comprising:
identifying one or more spans of pixels having no pixels of a first predetermined alpha value or a second predetermined alpha value, wherein at least one span has an alpha value pattern recurring elsewhere in the plurality of pixels; and for the identified spans of pixels:
recording data identifying the span of pixels; and recording the alpha values of the span of pixels; wherein recording the alpha values of the span of pixels is limited to recording the data representing a single occurrence of a recurring pattern of alpha values, and recording data identifying the span of pixels comprises recording locations where the recurring pattern of alpha values occurs.
- 25. The method of claim 24 wherein alpha values for pixels having the first and second predetermined alpha values are represented but omitted from recording.
- 26. The method of claim 24 wherein the identifying data comprises a pair of values comprising the location and extent of the semi-transparent span.
- 27. The method of claim 24 further comprising recording data identifying a span of pixels having only the first predetermined alpha value.
- 28. The method of claim 27 wherein the identifying data comprises a pair of values comprising a location and extent of the span of pixels having only the first predetermined alpha value.
- 29. The method of claim 27 wherein data representing the extent of a span of pixels is recorded such that a sign of the extent is indicative of whether opacities for the span are the first predetermined value.
- 30. The method of claim 24 wherein the data identifying the location of the recurring pattern is stored as an offset to a location in memory where the data representing the single occurrence of the recurring pattern of alpha values was recorded.
- 31. The method of claim 30 wherein the data representing the recurring pattern of alpha values is stored as a pair of values comprising the location and extent of the recurring pattern, and the recurring pattern's alpha values.
- 32. The method of claim 31 wherein the offset to the location in memory includes an offset to the location of the pair of values comprising the location and extent of the recurring pattern, and an offset to the location of the recurring pattern's alpha values.
- 33. The method of claim 27 further comprising recording data representing a total number of identified spans of pixels and spans of pixels having only the first predetermined alpha value.
- 34. The method of claim 24 wherein the identified span of pixels is horizontal.
- 35. The method of claim 24 wherein the identified span of pixels is vertical.
- 36. The method of claim 24 wherein the span of pixels having only the first predetermined alpha value is horizontal.
- 37. The method of claim 24 wherein the span of pixels having only the first predetermined alpha value is vertical.
- 38. The method of claim 24 wherein the first predetermined alpha value indicates an opaque pixel.
- 39. The method of claim 24 wherein the second predetermined alpha value indicates a transparent pixel.
CROSS REFERENCE TO RELATED APPLICATION
[0001] This application is a continuation of Fushiki et al., U.S. patent application Ser. No. 09/385,665 filed Aug. 26, 1999, entitled, “Combining Alpha Regions,” which is a divisional of Fushiki et al., U.S. patent application Ser. No. 09/382,270 filed Aug. 24, 1999, entitled, “Recording Alpha Regions,” both of which are hereby incorporated by reference.
Divisions (1)
|
Number |
Date |
Country |
Parent |
09382270 |
Aug 1999 |
US |
Child |
09385665 |
Aug 1999 |
US |
Continuations (1)
|
Number |
Date |
Country |
Parent |
09385665 |
Aug 1999 |
US |
Child |
10293594 |
Nov 2002 |
US |