"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "src/Graphics/Pictures/raster_operators.hpp" between
TeXmacs-1.99.4-src.tar.gz and TeXmacs-1.99.5-src.tar.gz

About: GNU TeXmacs is a what-you-see-is-what-you-get scientific text editor, which was both inspired by TeX and GNU Emacs.

raster_operators.hpp  (TeXmacs-1.99.4-src):raster_operators.hpp  (TeXmacs-1.99.5-src)
skipping to change at line 28 skipping to change at line 28
* Default implementations * Default implementations
******************************************************************************/ ******************************************************************************/
template<typename C> inline void clear (C& x) { x= 0.0; } template<typename C> inline void clear (C& x) { x= 0.0; }
template<typename C> inline void clear_alpha (C& x) { x= 0.0; } template<typename C> inline void clear_alpha (C& x) { x= 0.0; }
template<typename C> inline C mul_alpha (const C& x) { return x; } template<typename C> inline C mul_alpha (const C& x) { return x; }
template<typename C> inline C div_alpha (const C& x) { return x; } template<typename C> inline C div_alpha (const C& x) { return x; }
template<typename C> inline C alpha_distance (const C& x, const C& y) { template<typename C> inline C alpha_distance (const C& x, const C& y) {
return 2.0 * fabs (y - x); } return 2.0 * fabs (y - x); }
template<typename C> inline C apply_alpha (const C& x, const C& y) {
return x * y; }
template<typename C> inline C template<typename C> inline C
mix (const C& c1, double a1, const C& c2, double a2) { mix (const C& c1, double a1, const C& c2, double a2) {
return a1 * c1 + a2 * c2; } return a1 * c1 + a2 * c2; }
template<typename C> inline C template<typename C> inline C
mix (const C& c1, double a1, const C& c2, double a2, mix (const C& c1, double a1, const C& c2, double a2,
const C& c3, double a3, const C& c4, double a4) { const C& c3, double a3, const C& c4, double a4) {
return a1 * c1 + a2 * c2 + a3 * c3 + a4 * c4; } return a1 * c1 + a2 * c2 + a3 * c3 + a4 * c4; }
skipping to change at line 108 skipping to change at line 110
struct min_op { struct min_op {
template<typename C> static inline C template<typename C> static inline C
op (const C& x, const C& y) { return min (x, y); } op (const C& x, const C& y) { return min (x, y); }
}; };
struct max_op { struct max_op {
template<typename C> static inline C template<typename C> static inline C
op (const C& x, const C& y) { return max (x, y); } op (const C& x, const C& y) { return max (x, y); }
}; };
struct apply_alpha_op {
template<typename C, typename S> static inline C
op (const C& x, const S& y) { return apply_alpha (x, y); }
};
/****************************************************************************** /******************************************************************************
* Composition operators * Composition operators
******************************************************************************/ ******************************************************************************/
template<composition_mode M> template<composition_mode M>
struct composition_op { struct composition_op {
template<typename C, typename S> static inline C template<typename C, typename S> static inline C
op (const C& x, const S& y) { (void) y; return x; } op (const C& x, const S& y) { (void) y; return x; }
template<typename C, typename S> static inline void template<typename C, typename S> static inline void
set_op (C& x, const S& y) { (void) x; (void) y; } set_op (C& x, const S& y) { (void) x; (void) y; }
 End of changes. 2 change blocks. 
0 lines changed or deleted 7 lines changed or added

Home  |  About  |  All  |  Newest  |  Fossies Dox  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTPS