Hi Marko,
there was some discussion of this a while ago on the older list. IIRC
we decided for the next version to add macros to the header.
The code is very simple, e.g. if (FREI0R_BYTE_ORDER==FREI0R_LITTLE_ENDIAN) ....
In the header, somethin like:
#ifndef IS_MINGW
#ifndef IS_SOLARIS
#include <endian.h>
#define FREI0R_BYTE_ORDER __BYTE_ORDER
#define FREI0R_LITTLE_ENDIAN __LITTLE_ENDIAN
#define FREI0R_BIG_ENDIAN __BIG_ENDIAN
#else
// solaris
#endif
#else // mingw
#define FREI0R_LITTLE_ENDIAN 1
#define FREI0R_BIG_ENDIAN 0
#define FREI0R_BYTE_ORDER FREI0R_LITTLE_ENDIAN
#endif
Salsaman
http://lives.sourceforge.net
https://www.ohloh.net/accounts/salsaman
On Sun, May 6, 2012 at 8:41 AM, Marko Cebokli <s57uuu@???> wrote:
> Hello,
>
> although the specification suggests using byte pointers for endian
> independence, the "Tutorial" plugin has examples of working with both 32 and 8
> bit pointers, and the comments even say that working with 32bit pointers is
> faster.
>
> That has seduced me to use 32 bit pointers and byte masking in my plugins - so
> I will have now a lot of work to make them endian independent!
>
> So I suggest removing the 32 bit pointer code from the "Tutorial" plugin, to
> avoid misleading future authors.
>
> Would this be OK?
>
> Marko Cebokli
>
>
>
>
> On Sunday 08 April 2012 08:52:25 Marko Cebokli wrote:
>> I am already receiving posts from the new list, although I don't remember
>> signing up... (My wife would surely have a comment on that)
>>
>> So tihis is only a test, to see if I can post too!
>>
>> Marko Cebokli
>> _______________________________________________
>> Frei0r mailing list - http://frei0r.dyne.org
>> Free video plugins, minimal and cross-platform.
>> http://mailinglists.dyne.org/cgi-bin/mailman/listinfo/frei0r
> _______________________________________________
> Frei0r mailing list - http://frei0r.dyne.org
> Free video plugins, minimal and cross-platform.
> http://mailinglists.dyne.org/cgi-bin/mailman/listinfo/frei0r