1. An image processing apparatus, comprising:
a quantization section, arranged to quantize, in each pixel, multi-valued image data into N-valued data (where N is a natural number), and output the N-valued data as a K-bit code (where K is a natural number) that can express the N values;
a converter, arranged to combine and convert K-bit codes for M pixels (where M is a natural number) into an L-bit code (where L<M\xd7K); and
an output section, arranged to pack data converted by said converter into data of a predetermined number of bits, and output the packed data.
2. The apparatus according to claim 1, wherein the predetermined number of bits is equal to that data which is to be transferred to an image forming apparatus.
3. The apparatus according to claim 2, further comprising a controller arranged to compute a memory size that the image forming apparatus requires for a process, and to control said converter in accordance with the computation result.
4. The apparatus according to claim 3, wherein said controller controls said converter in a through pass state when the computed memory size required for the process is smaller than a memory size that the image forming apparatus can use.
5. The apparatus according to claim 1, wherein said quantization section and said converter execute processes according to color components of the image data.
6. The apparatus according to claim 5, wherein said quantization section quantizes image data of a color component in which a quantization error readily stands out to the N-valued data, and quantizes image data of a color component in which a quantization error hardly stands out to N\u2032-valued data (where N\u2032<N).
7. The apparatus according to claim 6, wherein said converter does not convert the image data of the color component in which the quantization error hardly stands out.
8. An image processing method, comprising the steps of:
quantizing, in each pixel, multi-valued image data into N-valued data (where N is a natural number), and outputting the N-valued data as a K-bit code (where K is a natural number) that can express the N values;
combining and converting K-bit codes for M pixels (where M is a natural number) into an L-bit code (where L<M\xd7K);
packing data converted in the conversion step into data of a predetermined number of bits; and
outputting the packed data.
9. The method according to claim 8, wherein the predetermined number of bits is equal to that data which is to be transferred to an image forming apparatus.
10. The method according to claim 9, further comprising the step of computing a memory size that the image forming apparatus requires for a process, and controlling the conversion step in accordance with the computation result.
11. The method according to claim 10, wherein the control step includes the step of controlling the conversion step in a through pass state when the computed memory size required for the process is smaller than a memory size that the image forming apparatus can use.
12. The method according to claim 8, wherein the quantization step and the conversion step execute processes according to color components of the image data.
13. The method according to claim 12, wherein the quantization step includes the step of quantizing image data of a color component in which a quantization error readily stands out to the N-valued data, and quantizing image data of a color component in which a quantization error hardly stands out to N\u2032-valued data (where N\u2032<N).
14. The method according to claim 13, wherein the conversion step includes the step of skipping conversion of the image data of the color component in which the quantization error hardly stands out.
15. A computer program product stored on a computer readable medium and comprising a computer program code for an image processing method, the method comprising the steps of:
quantizing, in each pixel, multi-valued image data into N-valued data (where N is a natural number), and outputting the N-valued data as a K-bit code (where K is a natural number) that can express the N values;
combining and converting K-bit codes for M pixels (where M is a natural number) into an L-bit code (where L<M\xd7K);
packing data converted in the conversion step into data of a predetermined number of bits; and
outputting the packed data.
16. An image processing apparatus comprising:
a quantization section, arranged to quantize, in each pixel, multi-valued image data into N-valued data (where N is a natural number), and output a K-bit code capable of expressing the N values;
a converter, arranged to collect K-bit codes for M pixels (where M is a natural number), and convert the collected K-bit codes into an L-bit code (where L<M\xd7K); and
an output section, arranged to pack the L-bit code and the N-valued data into data of a predetermined number of bits, and output the packed data.
17. A computer-readable storage medium comprising a program for implementing a printer driver, said driver comprising:
a quantization module which quantizes, in each pixel, multi-valued image data into N-valued data (where N is a natural number), and outputs a K-bit code capable of expressing the N values;
a conversion module which collects K-bit codes for M pixels (where M is a natural number), and converts the collected K-bit codes into a L-bit code (where L<M\xd7K);
a packing module which packs the L-bit code and the N-valued data into data of a predetermined number of bits; and
an output module which outputs the packed data.
18. The apparatus according to claim 2, wherein the image forming apparatus prints an image on the basis of data received from the image processing apparatus, and said image forming apparatus comprises:
a separator, arranged to separate the received data into compressed code of a first predetermined number of bits and uncompressed code of a second predetermined number of bits;
a restorer, arranged to restore the separated compressed code to a plurality of the uncompressed code; and
a print section, arranged to print an image using the separated and restored uncompressed code.
19. The apparatus according to claim 6, wherein the color component in which the quantization error readily stands out is a cyan, magenta, or black component.
20. The apparatus according to claim 6, wherein the color component in which the quantization error hardly stands out is a yellow component.
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 method for processing transactions, the method comprising:
receiving, by one or more processors of a computing device, a transaction request for an item from a user device associated with a user;
obtaining, by the one or more processors, location information or address information of the user;
transmitting, by the one or more processors, a stock acquisition request for the item to an inventory management system, the stock acquisition request including the location information or the address information of the user;
receiving, by the one or more processors, inventory information from the inventory management system;
determining, by the one or more processors, whether the item is in real stock or virtual stock based on the inventory information;
generating, by the one or more processors, a corresponding trading order and a corresponding logistics order if the item is in real stock or virtual stock; and
transmitting, by the one or more processors, the logistics order to a logistics management system.
2. The method of claim 1, wherein the determining that the item is in real stock or virtual stock based on the inventory information, and the generating the corresponding trading order and the corresponding logistics order if the item is in real stock or virtual stock comprise:
determine whether the item is in real stock based on the inventory information;
generating a real stock trading order and a real inventory logistics order for the item if the item is in real stock;
determining whether the item is in virtual stock based on the inventory information if the item is not in real stock; and
generating a virtual stock trading order and a virtual inventory logistics order for the item if the item is in virtual stock.
3. The method of claim 2, wherein the real stock trading order or the real inventory logistics order comprises warehouse identification information corresponding to the item.
4. The method of claim 2, wherein the virtual stock trading order and the virtual inventory logistics order comprise virtual inventory identification information and the warehouse identification information that corresponds to the item, and wherein the virtual inventory identification information comprises a tag indicating a shipping order of the virtual inventory logistics order.
5. The method of claim 1, wherein the inventory information comprises real stocking information and virtual stocking information.
6. The method of claim 1, wherein the location information comprises at least one of Internet Protocol (IP) address information, Global Positioning System (GPS) location information, or location information of a base station.
7. The method of claim 1, wherein the address information comprises a shipping address of the user.
8. One or more computer-readable media storing executable instructions that, when executed by one or more processors, cause the one or more processors to perform acts comprising:
receiving a stock acquisition request for an item from a commodity trading system, the stock acquisition request including location information or address information of a user;
parsing the location information or the address information of the user from the stock acquisition request;
obtaining a logistics warehouse list including a plurality of logistics warehouses covering the location information or the address information of the user;
selecting a logistics warehouse form the plurality of logistics warehouses that has a shortest distance from a location indicated in the location information or the address information of the user;
designating the logistics warehouse as a candidate logistics warehouse;
obtaining inventory information of the candidate logistics warehouse; and
transmitting the inventory information to the commodity trading system.
9. The one or more computer-readable media of claim 8, the acts further comprising:
obtaining warehouse identification information of the candidate logistics warehouse; and
transmitting the warehouse identification information to the commodity trading system.
10. The one or more computer-readable media of claim 9, wherein the warehouse identification information comprises a warehouse code of the candidate logistics warehouse.
11. The one or more computer-readable media of claim 8, the acts further comprising updating the inventory information of the candidate logistics warehouse for a next stock acquisition request after transmitting the inventory information to the commodity trading system.
12. The computer-readable media of claim 8, wherein the location information comprises at least one of Internet Protocol (IP) address information, Global Positioning System (GPS) location information, or location information of a base station, and wherein the address information comprises a shipping address of the user.
13. The computer-readable media of claim 8, wherein transmitting the inventory information to the commodity trading system is performed after the user has made a payment for the item.
14. A system comprising:
one or more processors; and
memory to maintain a plurality of components executable by the one or more processors, the plurality of components comprising:
a reservation request receiving module configured to receive a reservation request to logistics warehouses from a merchant,
a booking information acquisition module configured to retrieve reservation information of the merchant of the logistics warehouses to generate a plurality of warehouse orders, the warehouse orders comprising real warehouse orders and virtual warehouse orders,
a warehouse order generation module configured to transmit the plurality of warehouse orders to an inventory management system corresponding to the plurality of warehouse orders,
a logistics order receiving module configured to receive a real inventory logistics order or a virtual inventory logistics order,
a logistics order analysis module configured to parse the real inventory logistics order or the virtual inventory logistics order to obtain corresponding warehouse identification information, and
a delivery processing module configured to process the real inventory logistics order or the virtual inventory logistics order based on the corresponding warehouse identification information.
15. The logistics management system of claim 14, wherein the plurality of components further comprise a warehousing confirmation message receiving module configured to receive respective stocking confirmation of the real warehouse orders or the virtual warehouse orders from the inventory management system.
16. The system of claim 15, wherein the plurality of components further comprise an inventory updating module configured to update inventory information of an item in the logistics warehouses corresponding to the real warehouse orders or the virtual warehouse orders, the inventory information comprising real stocking information and virtual stocking information.
17. The system of claim 14, wherein the logistics warehouses comprises logistics main warehouses and logistics sub-warehouses.
18. The system of claim 17, wherein the reservation request receiving module is further configured to receive a particular reservation request to the logistics main warehouses or the logistics sub-warehouse from the merchant.
19. The system of claim 14, wherein the logistics order analysis module is further configured to parse virtual inventory identification information of the virtual inventory logistics order from the virtual inventory logistics order after receiving a message indicating that the virtual inventory logistics order is in stock, and determine a shipping order based on the virtual inventory identification information of the virtual inventory logistics order.
20. The system of claim 19, wherein the virtual inventory identification information comprises a tag indicating the shipping order of the virtual inventory logistics order.