From 3279523252327ac7a99296806c5a3615485955a3 Mon Sep 17 00:00:00 2001 From: Omar Emara Date: Mon, 4 Oct 2021 19:03:14 +0200 Subject: [PATCH] Update pixel design documentation for MP11 changes (#626) Update documentation after #274. --- doc/design/pixel.rst | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/doc/design/pixel.rst b/doc/design/pixel.rst index 1860a7d3c4..8f18fec14e 100644 --- a/doc/design/pixel.rst +++ b/doc/design/pixel.rst @@ -183,13 +183,13 @@ such packed pixel formats: .. code-block:: cpp // define an rgb565 pixel - typedef packed_pixel_type, rgb_layout_t>::type rgb565_pixel_t; + typedef packed_pixel_type, rgb_layout_t>::type rgb565_pixel_t; function_requires >(); static_assert(sizeof(rgb565_pixel_t) == 2, ""); // define a bgr556 pixel - typedef packed_pixel_type, bgr_layout_t>::type bgr556_pixel_t; + typedef packed_pixel_type, bgr_layout_t>::type bgr556_pixel_t; function_requires >(); @@ -211,7 +211,7 @@ pixels and pixel iterators: .. code-block:: cpp // Mutable reference to a BGR232 pixel - typedef const bit_aligned_pixel_reference, bgr_layout_t, true> bgr232_ref_t; + typedef const bit_aligned_pixel_reference, bgr_layout_t, true> bgr232_ref_t; // A mutable iterator over BGR232 pixels typedef bit_aligned_pixel_iterator bgr232_ptr_t; @@ -255,7 +255,7 @@ algorithms and metafunctions of color bases can work with them as well: BOOST_MPL_ASSERT(num_channels::value == 3); BOOST_MPL_ASSERT((is_same::type, bits8>)); BOOST_MPL_ASSERT((is_same::type, rgb_t> )); - BOOST_MPL_ASSERT((is_same::type, mpl::vector3_c > )); + BOOST_MPL_ASSERT((is_same::type, mp11::mp_list_c > )); // Pixels contain just the three channels and nothing extra BOOST_MPL_ASSERT(sizeof(rgb8_pixel_t)==3);