INTERACT FORUM

Windows => Plug-in Development => Topic started by: RhinoBanga on June 14, 2003, 12:43:34 am

Title: V9 SDK ... A few interesting questions for you :D
Post by: RhinoBanga on June 14, 2003, 12:43:34 am
I am playing around with V9 for the new proggy idea that I have and I've got some questions for you:

1)  How does one find out what DB fields there are that can be queried via IMJFileAutomation::Get?

2)  How can you find out the dimensions of a small, medium and large thumbnail?

3)  Can you get the artwork without actually going via an intermediate file, i.e can you return just an HBITMAP or something?

4)  When you call IMJFilesAutomation::AlbumGroup then IMJFilesAutomation::GetFile (which I believe returns the aggregated album information) when you call IMJFileAutomation::Get what does it do?   For example if you have a custom field called MYBOGUSFIELD and in track 1 it contains the value A and in track 2 it contains the value B what does it return when you call Get( "MYBOGUSFIELD" ) on the album?   What about when you request, say, the Year and they are different?



That's all for now but I'm sure I'll have a few more soon :D
Title: Re: V9 SDK ... A few interesting questions for you
Post by: Matt on June 14, 2003, 06:47:17 am
Quote
1)  How does one find out what DB fields there are that can be queried via IMJFileAutomation::Get?


You can't.  We'll add a IMJFieldsAutomation object when the UI redo slows down. (remind us then if you would)

Quote
2)  How can you find out the dimensions of a small, medium and large thumbnail?


If I rememeber correctly, it's

small: 64x64
medium: 128x128
large: 256x256
(all with aspect ratio maintained, so will probably be 48x64 or 64x50 or etc...)

Quote
3)  Can you get the artwork without actually going via an intermediate file, i.e can you return just an HBITMAP or something?


No, because internal cover art has comes back to MC from a plugin as a file.  That's why we use the thumbnail system everywhere -- it doesn't have to open file tags.  

And we actually cache the JPEG data from the thumbnails in memory, and just decode that on demand. (takes a lot less memory than buffering the decompressed JPEG)  Exposing the JRImage system would make that possible for anyone.

Quote
4)  When you call IMJFilesAutomation::AlbumGroup then IMJFilesAutomation::GetFile (which I believe returns the aggregated album information) when you call IMJFileAutomation::Get what does it do?   For example if you have a custom field called MYBOGUSFIELD and in track 1 it contains the value A and in track 2 it contains the value B what does it return when you call Get( "MYBOGUSFIELD" ) on the album?   What about when you request, say, the Year and they are different?


Album group reduces the file collection to the first file from each album.  (if only tracks 3, 4, and 5 are in the array to start, you'll end up with only track 3 -- not track 1)

To see if information varies inside an album, you need to re-expand and analyze the whole album.  All you have otherwise is just one file.

Thanks Rhino.
Title: Re: V9 SDK ... A few interesting questions for you
Post by: RhinoBanga on July 10, 2003, 10:18:53 pm
Quote

1)  How does one find out what DB fields there are that can be queried via IMJFileAutomation::Get?  



You can't.  We'll add a IMJFieldsAutomation object when the UI redo slows down. (remind us then if you would)


Consider yourself reminded :D


Also any chance you can put it in 9.0 as well as I don't want to upgrade to 9.1 yet.
Title: Re: V9 SDK ... A few interesting questions for you
Post by: KingSparta on July 11, 2003, 10:57:20 am
Quote
Consider yourself reminded

LOL

Just Thought it was funny.