diff --git a/MagickCore/pixel-accessor.h b/MagickCore/pixel-accessor.h
index f048223..038f76a 100644
--- a/MagickCore/pixel-accessor.h
+++ b/MagickCore/pixel-accessor.h
@@ -62,23 +62,17 @@
return(pixel[image->component_map[image->map][CbPixelComponent].component]);
}
+static inline PixelTrait GetPixelCbTraits(const Image *image)
+{
+ return(image->component_map[image->map][CbPixelComponent].traits);
+}
+
static inline Quantum GetPixelComponent(const Image *image,
const PixelComponent component,const Quantum *pixel)
{
return(pixel[image->component_map[image->map][component].component]);
}
-static inline PixelTrait GetPixelComponentTraits(const Image *image,
- const PixelComponent component)
-{
- return(image->component_map[image->map][component].traits);
-}
-
-static inline PixelTrait GetPixelCbTraits(const Image *image)
-{
- return(image->component_map[image->map][CbPixelComponent].traits);
-}
-
static inline Quantum GetPixelComponentMapComponent(const Image *image,
const PixelComponent component)
{
@@ -96,6 +90,12 @@
return(image->pixel_components);
}
+static inline PixelTrait GetPixelComponentTraits(const Image *image,
+ const PixelComponent component)
+{
+ return(image->component_map[image->map][component].traits);
+}
+
static inline Quantum GetPixelCr(const Image *image,const Quantum *pixel)
{
return(pixel[image->component_map[image->map][CrPixelComponent].component]);