It looks like a pre-encoded endian version of the Quality GUID:

http://msdn.microsoft.com/en-us/library/system.drawing.imaging.encoder.quality.aspx#Y0

Quality

     1d5be4b5-fa4a-452d-9cdd-5db35105e7eb

EncoderQuality=: _2(3!:4)bfh'b5e45b1d4afa2d459cdd5db35105e7eb'

MS version
1d 5b e4 b5-fa 4a-45 2d-9cdd-5db35105e7eb

J Version
b5 e4 5b 1d-4a fa-2d 45-9cdd-5db35105e7eb

Rotate the 1st 4 bytes and the next two.  Leave the rest as is.

On 1/20/2012 14:31, Cliff Reiter wrote:
> I've made nice progress toward basic image i/o using gdi plus based on
> snipping lots from the platimg and gl2 addons and beating my head on the
> wall. My script now works with basic i/o on J6win and j6win64. I expect
> it will only require a few flip_rbg's to work in J7. While following
> platimg I can set the jpeg quality in 32 bit J, I have not been able to
> do the same in 64 bit (only getting default quality). In platimg we see
>
> bfh=. a. {~ 0 ". '16b' (,"1) _2 ]\ ]
>
> EncoderQuality=: _2(3!:4)bfh'b5e45b1d4afa2d459cdd5db35105e7eb'
>
> which is used in
> params=: 3 : 0
>     p=.<<0
>     infos=. getinfos''
>     fmt=. (4{"1 infos)>@{~ y typendx tolower&.>  3{"1 infos
>     if. (0<#QUALITY) *. 'image/jpeg'-: fmt do.
>       p=. 1,EncoderQuality,1,EncoderParameterValueTypeLong,symdat
> symget<'QUALITY'
>     end.
>     p
> )
>
> The last entry in p is a pointer the the Jpeg_quality. I like mysteries,
> but can anyone explain
> b5e45b1d4afa2d459cdd5db35105e7eb
> to me?
>
> Best, Cliff
>
>
> However,
>
----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm

Reply via email to