摘要:
One embodiment of the present invention provides a system for testing a binding Application Programming Interface (API) on a device, wherein the binding API is bound to a native API for the device and provides different commands than the native API. During operation, the system executes a native-API test on the device through the native API to produce a native-API test-result. The system subsequently receives the native-API test-result from the device at a test-harness. Next, the system sends a binding-API test to a test-agent on the device which enables the test-agent to execute the binding-API test through the binding API to produce a binding-API test-result. The system then receives the binding-API test-result from the test-agent. Finally, the system compares the native-API test-result to the binding-API test-result to determine if the binding API is functionally equivalent to the native API.
摘要:
A pixel of a color video image is converted from one color format having luminance and chrominance signals, e.g., YUV format, to a destination format, e.g., RGB or CMY formats, by forming luminance and chrominance component words which include partitioned words representing various color components of the luminance and chrominance signals. The luminance and chrominance component words are summed using a partitioned addition operation to thereby accumulate the various color components of the luminance and chrominance signals simultaneously and in parallel. Formation of the luminance and chrominance component words is, in some instances, done by a load and store unit of a central processing unit while a graphics execution unit simultaneously sums the luminance and chrominance components using the partitioned addition operation. By using this technique, conversion of pixels of a color motion image from YUV format to a different format, e.g., RGB format, is reduced from approximately 20 instruction cycles per pixel to generally less than 2.5 instruction cycles per pixel. Such a reduction in processing requirements has enabled full real-time rendering, e.g., thirty frames per second, of full-sized, digital NTSC, MPEG-compressed, motion video images using only a central processing unit and appropriately configured computer software. No additional, special-purpose hardware components were needed.
摘要:
Methods, systems, and apparatus, including computer programs encoded on a computer storage medium, for providing a user with feedback regarding power consumption in a battery-operated electronic device. In one aspect, a method performed by data processing apparatus includes identifying, using the data processing apparatus, usage of a hardware component of a battery-operated electronic device that includes the data processing apparatus, attributing the usage of the hardware component to the hardware component or to a software application that uses the hardware component, recording, using the data processing apparatus, a power consumption resulting from the usage, and presenting power consumption feedback to a user using the data processing apparatus. The power consumption feedback identifies the hardware component or the software application of the electronic device and the power consumption resulting from the usage.
摘要:
According to the invention, a processing core that includes a first source register, a second source register, a multiplexer, a destination register, and an operand processor is disclosed. The first source register includes a plurality of source fields. The second source register includes a number of result field select values and a number of operation fields. The multiplexer is coupled to at least one of the source fields. Included in the destination register is a plurality of result fields. The operand processor and multiplexer operate upon at least one of the source fields.
摘要:
A method and system for resizing images in a computer system. A plurality of buffers are dynamically created in the memory of the computer system. Among the created buffers are a horizontal sampling buffer and two vertical sampling buffers. The horizontal sampling buffer is filled with data from a plurality of rows of the source image. The horizontal sampling buffer is composed of sub-buffers, each constituting a subset of the horizontal sampling buffer. Each sub-buffer is bytewise transposed to provide easy access to different channels of the image data. A filter is then applied to the transposed data with a result being stored in another buffer. The filtered data is then retransposed to assume its original configuration. The retransposed data is stored in a vertical sampling buffer previously created. The foregoing steps are repeated to fill a second vertical sampling buffer. Thereafter throughout the processing, two vertical sampling buffers remain continuously filled to allow vertical filtering without concern for invalid data. When data is no longer needed in one of the vertical sampling buffers for the ongoing filtering, it can be refilled with new data corresponding to the next group of vertical neighbors. By buffering the data, various symmetries can be exploited and known problems such as edge conditions and alignment issues can be handled early in the resizing scheme providing for more efficient processor operation.
摘要:
The subject matter of this specification can be embodied in, among other things, a computer-implemented method that includes identifying one or more previous locations for a mobile electronic device; identifying a plurality of possible travel routes for the mobile electronic device; determining possible locations for the mobile electronic device along the possible travel routes based on determined travel speed information for areas near the previous locations; and providing information for one or more indications of the possible locations to a user.
摘要:
Methods, systems, and apparatus, including computer programs encoded on a computer storage medium, for providing a user with feedback regarding power consumption in a battery-operated electronic device. In one aspect, a method performed by data processing apparatus includes identifying, using the data processing apparatus, usage of a hardware component of a battery-operated electronic device that includes the data processing apparatus, attributing the usage of the hardware component to the hardware component or to a software application that uses the hardware component, recording, using the data processing apparatus, a power consumption resulting from the usage, and presenting power consumption feedback to a user using the data processing apparatus. The power consumption feedback identifies the hardware component or the software application of the electronic device and the power consumption resulting from the usage.
摘要:
A processing core comprising R-number of processing pipelines each comprising N-number of processing paths. Each of the R-number of processing pipelines are synchronized together to operate as a single very long instruction word (VLIW) processing core. The VLIW processing core is configured to process R×N-number of VLIW sub-instructions in parallel. In addition, the R-number of pipelines can be configured to operate independently as separately operating pipelines. In accordance with one embodiment of the present invention, each of the R-number of processing pipelines comprises S-number of register files, such that the processing core comprises R×S-number of register files. In accordance with another embodiment of the present invention, each of the R-number of processing pipelines comprises one register file for every two of the N-number of processing paths, such that S=N/2. In accordance with yet another embodiment of the invention, a single VLIW processing instruction comprises R×N-number of P-bit sub-instructions appended together.
摘要:
Mapping of pixels of a graphical object to a destination graphical image buffer is achieved by precalculating relative weights of object pixels near a subject pixel and storing the precalculated relative weights in a table and by determining weights of specific object pixels during processing by a table lookup of the predetermined weights according to a fractional portion of an object pixel address. A partitioned coefficient, which represents the relative weights of two or more object pixels, is retrieved from the weight table and used in a partitioned multiplication operation in a processor to weight each of the two or more object pixels substantially simultaneously. Weights associated with two or more object pixels are formed by partitioned multiplication of a partitioned horizontal weight word and a partitioned vertical weight word. The partitioned horizontal weight word is retrieved from a table of precalculated partitioned horizontal weight words according to fractional portion of a horizontal component of the object pixel address. Similarly, the partitioned vertical weight word is retrieved from a table of precalculated partitioned vertical weight words according to fractional portion of a vertical component of the object pixel address. In addition, partitioned processing operations are used to map multiple pixels of a graphical object to a destination graphical image buffer substantially simultaneously. Multiple partitioned data words, each of which represents multiple components of a respective mapped pixel, are transposed such that each partitioned data word includes a component of each of the mapped pixels and the transposed partitioned data words are summed in a partitioned addition operation. Accordingly, components of multiple mapped pixels are accumulated substantially simultaneously to form the multiple mapped pixels substantially simultaneously.
摘要:
Methods, systems, and apparatus, including computer programs encoded on a computer storage medium, for providing a user with feedback regarding power consumption in a battery-operated electronic device. In one aspect, a method performed by data processing apparatus includes identifying, using the data processing apparatus, usage of a hardware component of a battery-operated electronic device that includes the data processing apparatus, attributing the usage of the hardware component to the hardware component or to a software application that uses the hardware component, recording, using the data processing apparatus, a power consumption resulting from the usage, and presenting power consumption feedback to a user using the data processing apparatus. The power consumption feedback identifies the hardware component or the software application of the electronic device and the power consumption resulting from the usage.