1460774278-7ebb6fe6-d485-4540-bc7c-e25518b758e3

1. A peripheral device control method of allowing an application to execute peripheral device control processing using a device driver which generates a peripheral device control command and a function extension module having a parameter which cannot be set by the device driver, comprising:
a step of manipulating by the application, using a predetermined interface, a parameter managed by the device driver and a parameter managed by the function extension module;
a step of, in response to the manipulation step, setting a parameter by the device driver or function extension module; and
a step of executing the peripheral device control processing using the parameter by the device driver and function extension module.
2. The method according to 1, wherein the predetermined interface comprises an interface published by the device driver or an operating system.
3. The method according to 1, further comprising a step of reserving by the application, a memory area having a capacity for a parameter managed by the device driver and a parameter managed by the function extension module,
wherein the manipulation step manipulates the parameter managed by the function extension module by executing,
a transfer step of transferring at least a position of the memory area, an identifier for specifying a parameter, and a setting value of the parameter from the application to the device driver or function extension module, and
a setting step of setting by the device driver or function extension module, the setting value in the parameter specified by the identifier of the memory area.
4. The method according to claim 3, wherein in the transfer step, at least the position of the memory area, the identifier for specifying the parameter, and the setting value of the parameter as arguments of the predetermined interface are transferred from the application to the device driver or function extension module.
5. The method according to claim 3, wherein in the setting step, whether the identifier is an identifier of the parameter managed by the device driver is determined, and when it is determined that the identifier is not the identifier of the parameter managed by the device driver, the setting value is set in the parameter managed by the function extension module.
6. The method according to claim 3, further comprising a step of sending a notification representing that setting cannot be performed to the application when an identifier is neither the identifier of the parameter managed by the device driver nor an identifier of the parameter managed by the function extension module.
7. The method according to claim 3, further comprising a step of releasing the reserved memory area when the peripheral device control processing is ended.
8. An application program including peripheral device control processing using a device driver for generating a peripheral device control command and a function extension module having a parameter which cannot be set by the device driver, comprising:
a step of inquiring of the device driver and function extension module a capacity including a parameter managed by the device driver and a parameter managed by the function extension module and reserving a memory area having the capacity;
a step of transferring a position of the memory area, an identifier for specifying a parameter, and a setting value of the parameter to the device driver or function extension module; and
a step of instructing the device driver and function extension module to execute the peripheral device control processing using a parameter of the memory area in which the setting value is set in the parameter specified by the identifier.
9. The program according to claim 8, further comprising a step of releasing the reserved memory area when the peripheral device control processing is ended.
10. A device driver program for generating a peripheral device control command in response to peripheral device control processing of an application, comprising:
a step of, in response to an inquiry from the application, returning a capacity including a parameter managed by the device driver program and a parameter which cannot be set from the device driver program managed by a function extension module of the device driver program;
a step of receiving from the application at least a position of a memory area having the capacity reserved by the application, an identifier for specifying a parameter, and a setting value of the parameter;
a step of determining whether the identifier is an identifier of the parameter managed by the device driver program;
a step of, when the identifier is determined to be the identifier of the parameter managed by the device driver program, setting the setting value in the parameter specified by the identifier, and when the identifier is determined not to be the identifier managed by the device driver program, transferring to the function extension program the position of the memory area having the capacity reserved by the application, the identifier for specifying the parameter, and the setting value of the parameter; and
a step of performing the peripheral device control processing using the parameter of the memory area in which the setting value is set.
11. A function extension module program for function extension of a device driver for generating a peripheral device control command in response to the peripheral device control processing of an application, comprising:
a step of, in response to an inquiry from the device driver, returning a capacity of a parameter which cannot be set by the device driver managed by the function extension module program;
a step of receiving from the device driver at least a position of the memory area having the capacity reserved by the application, an identifier for specifying a parameter, and a setting value of the parameter;
a step of determining whether the identifier is an identifier of the parameter managed by the function extension module program;
a step of, when the identifier is determined to be the identifier of the parameter managed by the function extension module program, setting the setting value in the parameter specified by the identifier, and when the identifier is determined not to be the identifier of the parameter managed by the function extension module program, sending a notification representing that setting cannot be performed to the application; and
a step of performing peripheral device control function extension processing using the parameter of the memory area in which the setting value is set.
12. A storage medium which computer-readably stores an application program including a peripheral device control processing using a device driver for generating a peripheral device control command and a function extension module having a parameter which cannot be set by the device driver, said application program comprising:
a step of inquiring of the device driver and function extension module a capacity including a parameter managed by the device driver and a parameter managed by the function extension module and reserving a memory area having the capacity;
a step of transferring a position of the memory area, an identifier for specifying a parameter, and a setting value of the parameter to the device driver or function extension module; and
a step of instructing the device driver and function extension module to execute the peripheral device control processing using a parameter of the memory area in which the setting value is set in the parameter specified by the identifier.
13. The medium according to claim 12, wherein the application program further comprises a step of releasing the reserved memory area when the peripheral device control processing is ended.
14. A storage medium which computer-readably stores a device driver program for generating a peripheral device control command in response to peripheral device control processing of an application, said device driver program comprising:
a step of, in response to an inquiry from the application, returning a capacity including a parameter managed by the device driver program and a parameter which cannot be set from the device driver program managed by a function extension module of the device driver program;
a step of receiving from the application at least a position of a memory area having the capacity reserved by the application, an identifier for specifying a parameter, and a setting value of the parameter;
a step of determining whether the identifier is an identifier of the parameter managed by the device driver program;
a step of, when the identifier is determined to be the identifier of the parameter managed by the device driver program, setting the setting value in the parameter specified by the identifier, and when the identifier is determined not to be the identifier managed by the device driver program, transferring to the function extension program the position of the memory area having the capacity reserved by the application, the identifier for specifying the parameter, and the setting value of the parameter; and
a step of performing the peripheral device control processing using the parameter of the memory area in which the setting value is set.
15. A storage medium which computer-readably stores a function extension module program for function extension of a device driver for generating a peripheral device control command in response to peripheral device control processing of an application, said function extension module program comprising:
a step of, in response to an inquiry from the device driver, returning a capacity of a parameter which cannot be set by the device driver managed by the function extension module program;
a step of receiving from the device driver at least a position of the memory area having the capacity reserved by the application, an identifier for specifying a parameter, and a setting value of the parameter;
a step of determining whether the identifier is an identifier of the parameter managed by the function extension module program;
a step of, when the identifier is determined to be the identifier of the parameter managed by the function extension module program, setting the setting value in the parameter specified by the identifier, and when the identifier is determined not to be the identifier of the parameter managed by the function extension module program, sending a notification representing that setting cannot be performed to the application; and
a step of performing peripheral device control function extension processing using the parameter of the memory area in which the setting value is set.
16. A peripheral device control apparatus for allowing an application to execute peripheral device control processing using a device driver which generates a peripheral device control command and a function extension module having a parameter which cannot be set by the device driver, comprising:
manipulation means for manipulating by the application, using a predetermined interface, a parameter managed by the device driver and a parameter managed by the function extension module;
setting means for, in response to manipulation of said manipulation means, setting a parameter by the device driver or function extension module; and
executing means for executing the peripheral device control processing using the parameter by the device driver and function extension module.
17. The apparatus according to 16, wherein the predetermined interface comprises an interface published by the device driver or an operating system.
18. The apparatus according to 16, further comprising reserving means for reserving by the application, a memory area having a capacity for a parameter managed by the device driver and a parameter managed by the function extension module,
wherein said manipulation means comprises
transfer means for transferring at least a position of the memory area, an identifier for specifying a parameter, and a setting value of the parameter from the application to the device driver or function extension module, and
setting means for setting by the device driver or function extension module, the setting value in the parameter specified by the identifier of the memory area, and

said manipulation means manipulates the parameter managed by the function extension module.
19. The apparatus according to claim 18, wherein said transfer means transfers from the application to the device driver or function extension module at least the position of the memory area, the identifier for specifying the parameter, and the setting value of the parameter as arguments of the predetermined interface.
20. The apparatus according to claim 18, wherein said setting means determines whether the identifier is an identifier of the parameter managed by the device driver, and when said setting means determines that the identifier is not the identifier of the parameter managed by the device driver, sets the setting value in the parameter managed by the function extension module.
21. The apparatus according to claim 18, further comprising means for sending a notification representing that setting cannot be performed to the application when an identifier is neither the identifier of the parameter managed by the device driver nor an identifier of the parameter managed by the function extension module.
22. The apparatus according to claim 18, further comprising means for releasing the reserved memory area when the peripheral device control processing is ended.

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 chroma upscaling method comprising:
comparing a luma Y1 of a first reference pixel and a luma Y2 of a target pixel for equality, and comparing a luma Y3 of a second reference pixel and the luma Y2 of the target pixel for equality; and
if the luma Y1 of the first reference pixel is not equal to the luma Y2 of the target pixel and the luma Y2 of the target pixel is not equal to the luma Y3 of the second reference pixel, setting a chroma C2 of the target pixel based on a chroma C1 of the first reference pixel and a chroma C3 of the second reference pixel, as:
C2=(k*C1+(m\u2212k)*C3+m2)>>n;
wherein n is a positive integer, m=2n, \u201c>>\u201d represents a shift calculation, and
k={0\u02dcm, min(abs(D1*k\u2212D2*(m\u2212k)))},
where D1=Abs(Y1\u2212Y2), D2=Abs(Y2\u2212Y3).
2. The method of claim 1, wherein the first reference pixel, the target pixel, and the second reference pixel are neighboring pixels.
3. The method of claim 2, wherein the first reference pixel, the target pixel, and the second reference pixel are neighboring pixels in a same row.
4. The method of claim 2, wherein the first reference pixel, the target pixel, and the second reference pixel are neighboring pixels from a plurality of neighboring rows.
5. The method of claim 1, wherein the positive integer n is 2.
6. The method of claim 1, wherein the positive integer n is 3.
7. The method of claim 1, wherein the positive integer n is 4.
8. A chroma upscaling method comprising:
comparing a luma Y1 of a first reference pixel and a luma Y2 of a target pixel for equality, and comparing a luma Y3 of a second reference pixel and the luma Y2 of the target pixel for equality; and
if the luma Y1 of the first reference pixel is not equal to the luma Y2 of the target pixel and the luma Y2 of the target pixel is not equal to the luma Y3 of the second reference pixel, setting a chroma C2 of the target pixel based on a chroma C1 of the first reference pixel and a chroma C3 of the second reference pixel, as:
C2=(D2*C1+D1*C3+(D1+D2)2)(D1+D2);
wherein D1=Abs(Y1\u2212Y2), and D2=Abs(Y2\u2212Y3).
9. The method of claim 8, wherein the first reference pixel, the target pixel, and the second reference pixel are neighboring pixels.
10. The method of claim 9, wherein the first reference pixel, the target pixel, and the second reference pixel are neighboring pixels on a same line.
11. The method of claim 9, wherein the first reference pixel, the target pixel, and the second reference pixel are neighboring pixels from a plurality of neighboring rows.