Dollar gestures

Hi,

currently the dollar gesture are stored in binary format - the reading
of these values is not endian safe. I wonder whether it would be better
to save them as text. That way we could share gestures like we do with
the game controller mappings.

Any opinions on this?

Regards
Martin

We can certainly make the binary format endian safe…
Although there’s nothing wrong with also supporting a simple text format.On Wed, Aug 6, 2014 at 1:35 PM, Martin Gerhardy <martin.gerhardy at gmail.com> wrote:

Hi,

currently the dollar gesture are stored in binary format - the reading of
these values is not endian safe. I wonder whether it would be better to
save them as text. That way we could share gestures like we do with the
game controller mappings.

Any opinions on this?

Regards
Martin


SDL mailing list
SDL at lists.libsdl.org
http://lists.libsdl.org/listinfo.cgi/sdl-libsdl.org

2014-08-07 18:56 GMT-03:00, Sam Lantinga :

We can certainly make the binary format endian safe…

So far all the systems on which SDL builds are little endian, right?
So, can’t we just specify that the format is little endian and be done
with it? (yes, code still needs to be adjusted, but that’d allow
keeping whatever format is in use right now)

I think it should be Big-Endian since this is “kind of” the current
standard
then the hton* family of functions would work.Am 08.08.2014 00:01, schrieb Sik the hedgehog:

2014-08-07 18:56 GMT-03:00, Sam Lantinga :

We can certainly make the binary format endian safe…

So far all the systems on which SDL builds are little endian, right?

2014-08-07 19:06 GMT-03:00, Robotic-Brain :> Am 08.08.2014 00:01, schrieb Sik the hedgehog:

2014-08-07 18:56 GMT-03:00, Sam Lantinga :

We can certainly make the binary format endian safe…

So far all the systems on which SDL builds are little endian, right?

I think it should be Big-Endian since this is “kind of” the current
standard
then the hton* family of functions would work.

Well I was thinking more about being able to keep the current binaries
(and anyway many formats (if not most) are little endian - much to my
discharge since I prefer big endian, but oh well).

I have submitted a patch to bugzilla about the endian stuffAm 08.08.2014 00:11 schrieb “Sik the hedgehog” <sik.the.hedgehog at gmail.com>:

2014-08-07 19:06 GMT-03:00, Robotic-Brain :

Am 08.08.2014 00:01, schrieb Sik the hedgehog:

2014-08-07 18:56 GMT-03:00, Sam Lantinga :

We can certainly make the binary format endian safe…

So far all the systems on which SDL builds are little endian, right?

I think it should be Big-Endian since this is “kind of” the current
standard
then the hton* family of functions would work.

Well I was thinking more about being able to keep the current binaries
(and anyway many formats (if not most) are little endian - much to my
discharge since I prefer big endian, but oh well).


SDL mailing list
SDL at lists.libsdl.org
http://lists.libsdl.org/listinfo.cgi/sdl-libsdl.org