Handbook
Glossary
bytes-per-component ( component-type -- n )
Vocabulary
images
Inputs
component-type
an
object
Outputs
n
an
object
Definition
USING:
combinators
;
IN:
images
:
bytes-per-component
( component-type -- n )
{
{
ubyte-components
[
1
]
}
{
ushort-components
[
2
]
}
{
uint-components
[
4
]
}
{
half-components
[
2
]
}
{
float-components
[
4
]
}
{
byte-integer-components
[
1
]
}
{
ubyte-integer-components
[
1
]
}
{
short-integer-components
[
2
]
}
{
ushort-integer-components
[
2
]
}
{
int-integer-components
[
4
]
}
{
uint-integer-components
[
4
]
}
}
case
;