Welcome, Guest. Please login or register.

Author Topic: A first for OS4?  (Read 12596 times)

Description:

0 Members and 1 Guest are viewing this topic.

Offline Karlos

  • Sockologist
  • Global Moderator
  • Hero Member
  • *****
  • Join Date: Nov 2002
  • Posts: 16878
  • Country: gb
  • Thanked: 5 times
    • Show all replies
Re: A first for OS4?
« on: October 02, 2010, 10:41:54 PM »
The day datatypes become bidirectional, I'll be a happy man :)
int p; // A
 

Offline Karlos

  • Sockologist
  • Global Moderator
  • Hero Member
  • *****
  • Join Date: Nov 2002
  • Posts: 16878
  • Country: gb
  • Thanked: 5 times
    • Show all replies
Re: A first for OS4?
« Reply #1 on: October 02, 2010, 11:16:52 PM »
Quote from: chris;582676
They already are, but hardly anything supports the save function, so it's rare for datatypes to implement it (this one doesn't, although I suspect it's about two lines of code so I can add it if you have a need for it?)


By bidirectional I mean saving in the same format the datatype decodes, that is to say, every datatype subclass as a codec. Every time I've saved a datatype, I've got an IFF file.

Ideally, one would be able to get a list of available subclasses from the parent class. You could then pick one and ask the datatype system to export data in that format.
int p; // A
 

Offline Karlos

  • Sockologist
  • Global Moderator
  • Hero Member
  • *****
  • Join Date: Nov 2002
  • Posts: 16878
  • Country: gb
  • Thanked: 5 times
    • Show all replies
Re: A first for OS4?
« Reply #2 on: October 02, 2010, 11:41:26 PM »
Quote from: chris;582682
Because there's next to no software which uses the function, the majority of datatypes don't implement it.


Chicken v Egg ?
int p; // A
 

Offline Karlos

  • Sockologist
  • Global Moderator
  • Hero Member
  • *****
  • Join Date: Nov 2002
  • Posts: 16878
  • Country: gb
  • Thanked: 5 times
    • Show all replies
Re: A first for OS4?
« Reply #3 on: October 03, 2010, 02:31:34 AM »
Quote from: kolla;582694
Hm, doesn't PPaint support this?

Reading through some example source and documentation it seems that writing images in indexed modes works through V42 datatype calls. Not sure if the feature is supported for RGB images as of V43, which may explain why it went un-developed since?

Whatever the reasons, it's stupidly overdue.
int p; // A
 

Offline Karlos

  • Sockologist
  • Global Moderator
  • Hero Member
  • *****
  • Join Date: Nov 2002
  • Posts: 16878
  • Country: gb
  • Thanked: 5 times
    • Show all replies
Re: A first for OS4?
« Reply #4 on: October 03, 2010, 03:00:06 PM »
I thought reggae was more for streaming (sound/video) datatypes than static content?
int p; // A