System and method to execute a clipping instruction
AssigneeMarvell International Ltd.
InventorsMoinul H. Khan, Bradley C. Aldrich
Life of this patent
Estimating the term…
Abstract
Devices, systems, methods, and other embodiments associated with clipping instructions are described. In one embodiment, an apparatus includes a receive logic to receive the clipping instruction. The clipping instruction includes a pixel value to be clipped and a clipping boundary. The apparatus also includes an execution logic to execute the clipping instruction in one clock cycle. The clipping instruction clips pixels by comparing a magnitude of the pixel value identified in the clipping instruction to a magnitude of the clipping boundary identified in the clipping instruction. When the magnitude of the pixel value exceeds the magnitude of the clipping boundary, the pixel is selectively clipped to a result value.
Claims20
An apparatus, comprising:
- a receive logic configured to receive a clipping instruction, the clipping instruction identifying a pixel having a pixel value to be clipped, an upper clipping boundary, and a lower clipping boundary, where a range between the upper clipping boundary and the lower clipping boundary specifies a range of acceptable pixel values;
- and
- an execution logic configured to execute the clipping instruction, where the clipping instruction is configured to cause the execution logic to clip pixels by:
- comparing the pixel value to at least one of the upper clipping boundary or the lower clipping boundary;
- and
- when the pixel value is outside the range between the upper clipping boundary and the lower clipping boundary, selectively clipping the pixel value to a result value that corresponds to either the upper clipping boundary or the lower clipping boundary.
A method, comprising:
- receiving a clipping instruction for clipping pixels in a video image, the clipping instruction identifying a pixel having a pixel value to be clipped, an upper clipping boundary, and a lower clipping boundary, where a range between the upper clipping boundary and the lower clipping boundary specifies a range of acceptable pixel values;
- comparing the pixel value to at least one of the upper clipping boundary or the lower clipping boundary;
- and
- selectively clipping the pixel value to a result value that corresponds to either the upper clipping boundary or the lower clipping boundary upon determining that the pixel value is outside the range between the upper clipping boundary and the lower clipping boundary.
A method, comprising:
- with one or more logics:
- receiving a clipping instruction for clipping pixels, the clipping instruction identifying a pixel having a pixel value to be clipped, an upper clipping boundary, and a lower clipping boundary, where a range between the upper clipping boundary and the lower clipping boundary that specifies a range of acceptable pixel values;
- determining a pixel magnitude of the pixel value;
- determining a clipping magnitude of at least one of the upper clipping boundary and the lower clipping boundary;
- comparing the pixel magnitude to the magnitude of the clipping boundary;
- and
- selectively clipping the pixel value to the magnitude of the clipping boundary upon determining that the pixel magnitude exceeds the clipping magnitude.
Dependencies are inferred from the claim text.