1. A method to process one or more images, the method comprising:
receiving, by a processor executable in a computer system, a first command written for a first color space, wherein the first command explicitly specifies an operation in the first color space; and
based at least on the first command, the processor automatically selecting a color space in which an operation associated with the first command is to be processed, said selecting the color space in which an operation associated with the first command is to be processed comprises: based at least on the first command, automatically determining whether or not to perform image processing according to the first command in a second color space.
2. The method of claim 1, wherein the command is received from an image processing script written for the first color space.
3. The method of claim 1, 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.
4. The method of claim 3, wherein the color space is selected from at least the first color space and a second color space; and the second color space is preferred over the first color space in a script engine in which a script including the first command is processed.
5. The method of claim 3, wherein:
when the first command operates only in the first color space, the selected color space is the first color space; and
otherwise, the selected color space for the operation associated with the first command is selected to minimize a total number of color space conversions.
6. The method of claim 5, wherein:
when the first command generates different results in the first color space and in a second color space and when the selected color space is the second color space, the method further comprises: the processor 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.
7. The method of claim 5, wherein said transforming the first command to the second command in the second color space comprises:
the processor transforming one or more parameters of the first command to comparable parameters for the second command such that the second command generates a similar result in the second color space as the first command in the first color space.
8. The method of claim 1, further comprising:
in response to a determination to perform image processing according to the first command in the second color space, the processor converting one or more parameters of the first command from the first color space to the second color space.
9. The method of claim 1, wherein the first color space is RGB; and the second color space is YUV.
10. A script engine having a preferred color space for image processing, the script engine comprising:
means for receiving a first command of an image processing script written for a first color space which is different from the preferred color space, wherein the first command explicitly specifies an operation in the first color space; and
means for, 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 said means for selecting comprises means for, based at least on the first command and a color space of an input buffer of the first command, automatically determining whether or not to perform image processing according to the first command in a second color space.
11. The script engine of claim 10, further comprising:
means for processing a first script written for the first color space; and
means for processing a second script written for a second color space.
12. The script engine of claim 10, wherein the input buffer comprises one or more video images.
The claims below are in addition to those above.
All refrences to claim(s) which appear below refer to the numbering after this setence.
1. A regenerator which accumulates cooling generated by expansion of refrigerant gas, comprising:
a regenerator material which is made of a nonmagnetic material;
a regenerator material which is made of a magnetic material;
a container which includes a high temperature end and a low temperature end, and which is configured to accommodate the regenerator material made of the nonmagnetic material at the high temperature end side and the regenerator material made of the magnetic material at the low temperature end side,
wherein the container further accommodates an insertion member which narrows a passage area of the refrigerant gas flowing to a region accommodating the refrigerator material made of the magnetic material so that the passage area of the low temperature end side is narrower compared to the passage area of the high temperature end side.
2. The regenerator according to claim 1,
wherein the insertion member is configured so that the cross-sectional area is increased from one end toward the other end, and
wherein the container accommodates the insertion member in the region accommodating the regenerator material made of the magnetic material so the one end of the insertion member is a high temperature side and the other end is a low temperature side.
3. The regenerator according to claim 1,
wherein the insertion member is a tubular member in which a passage including a passage area decreased from one end toward the other end is provided, and is fitted to and inserted into the region of the container accommodating the regenerator material made of the magnetic material so that the one is a high temperature side of the container and the other end is a low temperature side of the container, and
wherein the regenerator material made of the magnetic material is accommodated in the passage provided in the insertion member.
4. The regenerator according to claim 1,
wherein the insertion member is configured of a plurality of thin walled tubes,
wherein a length in a long axis direction of each of the plurality of thin walled tubes is shorter than a length in a long axis direction of the region of the container accommodating the regenerator material made of the magnetic material, and
wherein the container accommodates the plurality of thin walled tubes to be distributed in a low temperature side of the region accommodating the regenerator material made of the magnetic material.
5. The regenerator according to claim 1,
wherein the insertion member is made of a phenol resin.
6. The regenerator according to claim 4,
wherein each of the plurality of thin walled tubes configuring the insertion member is filled with a gas of the same kind as the refrigerant gas.
7. A regenerative refrigerator comprising:
a regenerator according to claim 1; and
a compressor which supplies a high pressure refrigerant gas to the regenerator and compresses a low pressure refrigerant gas returned from the regenerator.