What is saturating arithmetic and what are its advantages and disadvantages in typical multimedia applications?

What will be an ideal response?


In saturating arithmetic, operations that yield a value greater than the maximum are clamped at the maximum.
Consequently, 0xFFFF + 1 in 16?bit arithmetic is 0xFFFF and not the 0x0000 carry 1 you would get with
conventional arithmetic. The same applies to subtraction where the minimum value is 0 (if you are using signed
saturating arithmetic the minimum value is the most negative value). Clamping at the maximum and minimum
values mirrors (models well) real live multimedia situations. You can’t get whiter than white or blacker than
black.
Saturating arithmetic has the advantage that it models real?world physical processes by clamping at a maximum
or minimum value. You don’t need saturating arithmetic – you could implement it in software (which would
slow down multimedia operations). There is no disadvantage of saturating arithmetic, but it would be inappropriate for conventional arithmetic operations that rely on a carry?out to indicate overflow (or use
chained arithmetic).

Computer Science & Information Technology

You might also like to view...

Define the term topology

What will be an ideal response?

Computer Science & Information Technology

Write a Java method that prints the phrase “Five purple people eaters were seen munching Martians”.

What will be an ideal response?

Computer Science & Information Technology

What wavelength is used on a 10GBaseSR network?

A. 850 nm B. 1300 nm C. 1310 nm D. 1500 nm

Computer Science & Information Technology

? Critical Thinking Questions Case 4-1 ? Jenny is a freelance web designer and uses style sheets that give her the flexibility to easily redesign or rebrand a website. Recently, Jenny has received a project wherein she needs to maintain a website for a leading orthopedic appliance manufacturer. ?Jenny decides to create an individual webpage for displaying the types of appliances manufactured by the company. She wants to give this webpage a style that is differentfrom the rest of the website. Which of the following Cascading Style Sheets (CSS) styles should Jenny use if she wants to set the background color for the body section to green for the current webpage alone?

A. ?External B. ?Inline C. ?Embedded D. ?Linked

Computer Science & Information Technology