Mechanism for color-space neutral (video) effects scripting engine
First Claim
1. A computer readable storage medium having stored thereon sequences of instructions which are executable by a digital processing system, and which, when executed by the digital processing system, cause the system to perform a method to process one or more images, the method comprising:
- parsing a first command written for a first color space; and
based at least on the first command, automatically selecting a color space in which an operation associated with the first command is to be processed, wherein the selected color space is selected based on the first command and one or more color spaces of one or more input buffers associated with the first command, whereinwhen the first command operates only in the first color space, the selected color space is the first color space;
when the first command generates similar results in the first color space and in the second color space, the color space for the operation associated with the first command is selected to minimize color space conversion; and
when the first command generates different results in the first color space and in the second color space and when the selected color space is the second color space, the method further comprises;
transforming the first command to a second command in the second color space, wherein the second command generates a similar result in the second color space as the first command in the first color space.
1 Assignment
0 Petitions
Accused Products
Abstract
A first command is retrieved from a script containing one or more commands written for a first color space. The first command is associated with zero or more input buffers and zero or more output buffers. The first command has zero or more parameters. A behavior of the first command in the first color space and in a second color space is determined. The behavior comprises one of unique behavior, transparent behavior, and different behavior. The first command has the unique behavior when the first command only operates in the first color space. The first command has the transparent behavior when the first command generates similar results in the first color space and in the second color space. The first command has the different behavior when the first command generates different results in the first color space and in the second color space. Using the behavior of the first command, an operation associated with the first command is processed. The operation is processed in a preferred format based on current formats of the input buffers.
-
Citations
16 Claims
-
1. A computer readable storage medium having stored thereon sequences of instructions which are executable by a digital processing system, and which, when executed by the digital processing system, cause the system to perform a method to process one or more images, the method comprising:
-
parsing a first command written for a first color space; and based at least on the first command, automatically selecting a color space in which an operation associated with the first command is to be processed, wherein the selected color space is selected based on the first command and one or more color spaces of one or more input buffers associated with the first command, wherein when the first command operates only in the first color space, the selected color space is the first color space; when the first command generates similar results in the first color space and in the second color space, the color space for the operation associated with the first command is selected to minimize color space conversion; and when the first command generates different results in the first color space and in the second color space and when the selected color space is the second color space, the method further comprises;
transforming the first command to a second command in the second color space, wherein the second command generates a similar result in the second color space as the first command in the first color space. - View Dependent Claims (2, 3, 4, 5)
-
-
6. A data processing system, comprising:
-
memory to store an image processing script; and a processor coupled to the memory, the processor to parse a first command of the image processing script, the first command written for a first color space, and based at least on the first command the processor to automatically select a color space in which an operation associated with the first command is to be processed, wherein the selected color space is selected based on the first command and one or more color spaces of one or more input buffers associated with the first command, wherein when the first command operates only in the first color space, the selected color space is the first color space; and when the first command generates different results in the first color space and in the second color space and when the selected color space is the second color space, the processor is to further transform the first command to a second command in the second color space, wherein the second command generates a similar result in the second color space as the first command in the first color space. - View Dependent Claims (7, 8, 9)
-
-
10. A method to process one or more images, the method comprising:
-
Parsing, by a data processing system, a first command written for a first color space; and based at least on the first command, automatically selecting, by the data processing system, a color space in which an operation associated with the first command is to be processed, wherein the selected color space is selected based on the first command and one or more color spaces of one or more input buffers associated with the first command, wherein when the first command operates only in the first color space, the selected color space is the first color space; when the first command generates similar results in the first color space and in the second color space, the color space for the operation associated with the first command is selected to minimize color space conversion; and when the first command generates different results in the first color space and in the second color space and when the selected color space is the second color space, the method further comprises;
transforming the first command to a second command in the second color space, wherein the second command generates a similar result in the second color space as the first command in the first color space. - View Dependent Claims (11, 12, 13, 14)
-
-
15. A data processing system comprising:
-
means for parsing a first command written for a first color space; and means for automatically selecting, based at least on the first command, a color space in which an operation associated with the first command is to be processed, wherein the selected color space is selected based on the first command and one or more color spaces of one or more input buffers associated with the first command, wherein when the first command operates only in the first color space, the selected color space is the first color space; when the first command generates similar results in the first color space and in the second color space, the color space for the operation associated with the first command is selected to minimize color space conversion; and when the first command generates different results in the first color space and in the second color space and when the selected color space is the second color space, the system further comprises;
means for transforming the first command to a second command in the second color space, wherein the second command generates a similar result in the second color space as the first command in the first color space. - View Dependent Claims (16)
-
Specification