Assert non-implementation-specific PixelFormat in Image* constructors.
And document that. Because the pixel size cannot be determined for it,
and one has to either pass it explicitly or use the templated overload
that figures it out implicitly via ADL. This asserted before, but only
deep inside in pixelFormatSize(), which may be confusing.
I need to do a similar treatment for compressed images with block size
properties so let's first make it behave properly for uncompressed.
template<UnsignedIntdimensions>Image<dimensions>::Image(constPixelStoragestorage,constPixelFormatformat,constVectorTypeFor<dimensions,Int>&size,Containers::Array<char>&&data,constImageFlags<dimensions>flags)noexcept:Image{storage,format,{},(CORRADE_CONSTEXPR_ASSERT(!isPixelFormatImplementationSpecific(format),"Image: can't determine size of an implementation-specific pixel format"<<Debug::hex<<pixelFormatUnwrap(format)<<Debug::nospace<<", pass it explicitly"),pixelFormatSize(format)),size,Utility::move(data),flags}{}
template<UnsignedIntdimensions>Image<dimensions>::Image(constPixelStoragestorage,constPixelFormatformat)noexcept:Image{storage,format,{},(CORRADE_CONSTEXPR_ASSERT(!isPixelFormatImplementationSpecific(format),"Image: can't determine size of an implementation-specific pixel format"<<Debug::hex<<pixelFormatUnwrap(format)<<Debug::nospace<<", pass it explicitly"),pixelFormatSize(format))}{}
template<UnsignedIntdimensions,classT>ImageView<dimensions,T>::ImageView(constPixelStoragestorage,constPixelFormatformat,constVectorTypeFor<dimensions,Int>&size,constContainers::ArrayView<ErasedType>data,constImageFlags<dimensions>flags)noexcept:ImageView{storage,format,{},(CORRADE_CONSTEXPR_ASSERT(!isPixelFormatImplementationSpecific(format),"ImageView: can't determine size of an implementation-specific pixel format"<<Debug::hex<<pixelFormatUnwrap(format)<<Debug::nospace<<", pass it explicitly"),pixelFormatSize(format)),size,data,flags}{}
template<UnsignedIntdimensions,classT>ImageView<dimensions,T>::ImageView(constPixelStoragestorage,constPixelFormatformat,constVectorTypeFor<dimensions,Int>&size,constImageFlags<dimensions>flags)noexcept:ImageView{storage,format,{},(CORRADE_CONSTEXPR_ASSERT(!isPixelFormatImplementationSpecific(format),"ImageView: can't determine size of an implementation-specific pixel format"<<Debug::hex<<pixelFormatUnwrap(format)<<Debug::nospace<<", pass it explicitly"),pixelFormatSize(format)),size,flags}{}
(CORRADE_CONSTEXPR_ASSERT(false,"Trade::ImageData: can't determine size of an implementation-specific pixel format"<<Debug::hex<<pixelFormatUnwrap(format)<<Debug::nospace<<", pass it explicitly"),0):