Xojo Conferences
XDCMay2019MiamiUSA

[MBS] 3.1pr1 (MBS Xojo Plugin Mailinglist archive)

Back to the thread list
Previous thread: [MBS] Feature Request
Next thread: [MBS] Rendezvous?


Re: [MBS] MIDI Destinations and External Devices   -   Ron Benditt
  [MBS] 3.1pr1   -   Christian Schmitz
   Re: [MBS] 3.1pr1   -   Travis Hill
    [MBS] Feature Request   -   Christian Miller
   Re: [MBS] 3.1pr1   -   Carsten Friehe
    Re: [MBS] 3.1pr1   -   Christian Schmitz
     Re: [MBS] 3.1pr1   -   Carsten Friehe
      Re: [MBS] 3.1pr1   -   Christian Schmitz
       Re: [MBS] 3.1pr1   -   Carsten Friehe
        Re: [MBS] 3.1pr1   -   Christian Schmitz
        Re: [MBS] 3.1pr1   -   Charlie Boisseau
         Re: [MBS] 3.1pr1   -   Carsten Friehe
     [MBS] HTMLRendering   -   Juergen Schreck
    Re: [MBS] 3.1pr1   -   Beatrix Willius
     Re: [MBS] 3.1pr1   -   Christian Schmitz

[MBS] 3.1pr1
Date: 13.01.03 23:14 (Mon, 13 Jan 2003 23:14:09 +0100)
From: Christian Schmitz
Hi,

3.1pr1 is online. Notes:

* Fixed a bug in the Pro plugin. Now the PDILib works on Windows.
* Added to the QTGrabber class values for black leve, brightness,
contrast, hue, saturation, sharpness and white level.
(to match the feature set of the best video plugin ;-)
Currently my camera is at a friend, so maybe someone can test this for
me?

* Added System.WindowsSystemMetrics.
e.g. to get the titlebar height.
* Added function for X-Face image compression and decompression
(for usenet applications).
* Added WindowsTaskbarState class.
This is for information about the taskbar on Windows.
See the example.
* Improved JPEG decompression to work faster on Windows.
May affect Mac version, too.
Please test, it may be buggy or leaking!
* Improved the String2Picture stuff on QuickTime.
Not sure, if I removed the leak here, maybe someone can test this?
* Added EncodingToQuotedPrintable and DecodingToQuotedPrintable for
making email and news application.

Mfg
Christian

Re: [MBS] 3.1pr1
Date: 14.01.03 03:53 (Mon, 13 Jan 2003 19:53:07 -0700)
From: Travis Hill
> * Improved JPEG decompression to work faster on Windows.
> May affect Mac version, too.
> Please test, it may be buggy or leaking!

It does seem a bit faster- however it is still several orders of
magnitude slower than the Mac. Specifically, I am trying to render
broken jpeg segments as they are transferred. I wonder if something in
that specific part of the logic is slowing it down more than
necessary...

If you have a large (200k+) jpeg and allowdamaged rendering the pieces
in 20-40k blocks, look at how quickly it renders the pieces on OS X vs.
Windows. The micono jpeg plugin renders segments on Windows much
faster.

Again, I don't know why any of this is, just trying to help. I
appreciate your work!

Re: [MBS] 3.1pr1
Date: 14.01.03 07:55 (Tue, 14 Jan 2003 07:55:51 +0100 (MET))
From: Carsten Friehe
Hi Christian!

> * Added function for X-Face image compression and decompression
> (for usenet applications).

:-) Now I need one plugin (the compface plugin) less than before.

> * Added EncodingToQuotedPrintable and DecodingToQuotedPrintable for
> making email and news application.

I am asking myself why I have coded these things before in pure RB. :-)

Carsten

Re: [MBS] 3.1pr1
Date: 14.01.03 10:33 (Tue, 14 Jan 2003 10:33:32 +0100)
From: Christian Schmitz
> Hi Christian!
>
> > * Added function for X-Face image compression and decompression
> > (for usenet applications).
>
> :-) Now I need one plugin (the compface plugin) less than before.

Please test if my functions work as well.

> > * Added EncodingToQuotedPrintable and DecodingToQuotedPrintable for
> > making email and news application.
>
> I am asking myself why I have coded these things before in pure RB. :-)

Someone asked me if I can help him. The plugin should be much faster as
the RB code allocated, copies and frees memory a thousand times to
encode an email...

Mfg
Christian

Re: [MBS] 3.1pr1
Date: 14.01.03 11:15 (Tue, 14 Jan 2003 11:15:45 +0100 (MET))
From: Carsten Friehe
Hi!

> Please test if my functions work as well.

I will do. I think I can do this this evening.

> Someone asked me if I can help him.

:-)

> The plugin should be much faster as
> the RB code allocated, copies and frees memory a thousand times to
> encode an email...

I think I have done it with a Memorybuffer and it is fast. But sure it is
faster in a plugin. Did you implemented it as described in the RFC? So all
characters above 127 are coded and a few characters in the normal ASCII table
(like "=").

Carsten

Re: [MBS] 3.1pr1
Date: 14.01.03 17:05 (Tue, 14 Jan 2003 17:05:34 +0100)
From: Christian Schmitz
> Hi!
>
> I think I have done it with a Memorybuffer and it is fast. But sure it is
> faster in a plugin. Did you implemented it as described in the RFC? So all
> characters above 127 are coded and a few characters in the normal ASCII table
> (like "=").

One user suggested it and gave me some RB code.
I translated it to C to make it faster and it looks like it works.
Maybe you can check if your function and my function return the same
strings and how much faster mine is ;-)

Mfg
Christian

Re: [MBS] 3.1pr1
Date: 15.01.03 08:07 (Wed, 15 Jan 2003 08:07:52 +0100 (MET))
From: Carsten Friehe
Hi Christian!

> One user suggested it and gave me some RB code.
> I translated it to C to make it faster and it looks like it works.
> Maybe you can check if your function and my function return the same
> strings and how much faster mine is ;-)

Ok, I will do it this weekend.
Is there also a Base64 function in your plugin? I don't need it, because in
the Einhugur eCryptit plugin there is one. But the problem is that it returns
the whole converted string in one row. But for my mail-/newsreader I need to
have it with CRs at every 74 position. I have written me a function
(WrapText(String, Position)) which does this for me afterwars, but it uses RBs
Stringroutines so it is very slow.

Carsten

Re: [MBS] 3.1pr1
Date: 15.01.03 11:50 (Wed, 15 Jan 2003 11:50:59 +0100)
From: Christian Schmitz
> Hi Christian!
>
> Ok, I will do it this weekend.
> Is there also a Base64 function in your plugin? I don't need it, because in
> the Einhugur eCryptit plugin there is one. But the problem is that it returns
> the whole converted string in one row. But for my mail-/newsreader I need to
> have it with CRs at every 74 position.

Feel free to send in a feature request...

Mfg
Christian

Re: [MBS] 3.1pr1
Date: 15.01.03 18:35 (Wed, 15 Jan 2003 17:35:00 +0000)
From: Charlie Boisseau
> Ok, I will do it this weekend.
> Is there also a Base64 function in your plugin? I don't need it, because in
> the Einhugur eCryptit plugin there is one. But the problem is that it returns
> the whole converted string in one row. But for my mail-/newsreader I need to
> have it with CRs at every 74 position. I have written me a function
> (WrapText(String, Position)) which does this for me afterwars, but it uses RBs
> Stringroutines so it is very slow.

Just use a loop like:

For x = 1 to Len(theText) step 74
TheText = Left(theText, x) + CRLF + Right(theText, Len(theText) - x)
Next

Re: [MBS] 3.1pr1
Date: 16.01.03 08:03 (Thu, 16 Jan 2003 08:03:44 +0100 (MET))
From: Carsten Friehe
Hi!

> Just use a loop like:
>
> For x = 1 to Len(theText) step 74
> TheText = Left(theText, x) + CRLF + Right(theText, Len(theText) - x)
> Next

That's what I am doing now. But test it once for an Attachment which is 2MB
in size and you will see that it is awfully slow. But yesterday I looked into
the documentation and found this:
EncodeBase64(s as string,breakposition as integer, breakstring as string) as
string

This looks like the MBS plugins already has this implemented. :-)

Carsten

Re: [MBS] 3.1pr1
Date: 16.01.03 08:03 (Thu, 16 Jan 2003 08:03:53 +0100)
From: Beatrix Willius
Carsten Friehe/Charlie Boisseau wrote:

>> Ok, I will do it this weekend.
>> Is there also a Base64 function in your plugin? I don't need it, because
in
>> the Einhugur eCryptit plugin there is one. But the problem is that it
returns
>> the whole converted string in one row. But for my mail-/newsreader I
need to
>> have it with CRs at every 74 position. I have written me a function
>> (WrapText(String, Position)) which does this for me afterwars, but it
uses RBs
>> Stringroutines so it is very slow.

>Just use a loop like:
>
>For x = 1 to Len(theText) step 74
> TheText = Left(theText, x) + CRLF + Right(theText, Len(theText) - x)
>Next

This is quite slow. Does not the MBS plugin have the same functionality
like the Faststring plugin from Theo? This should be much faster than using
RB string routines. I am still in the process of consolidating my code with
the MBS plugin, therefore I have not tested this part of the plugin yet.

Regards

Trixi Willius

Re: [MBS] 3.1pr1
Date: 17.01.03 16:24 (Fri, 17 Jan 2003 16:24:18 +0100)
From: Christian Schmitz
> Beatrix Willius wrote:
>
> This is quite slow. Does not the MBS plugin have the same functionality
> like the Faststring plugin from Theo? This should be much faster than using
> RB string routines. I am still in the process of consolidating my code with
> the MBS plugin, therefore I have not tested this part of the plugin yet.

What would you like to suggest?

Of course you could simply use the RamStream class.

Mfg
Christian