INTERACT FORUM

Please login or register.

Login with username, password and session length
Advanced search  
Pages: [1]   Go Down

Author Topic: V9 SDK ... A few interesting questions for you :D  (Read 2533 times)

RhinoBanga

  • Citizen of the Universe
  • *****
  • Posts: 1703
  • Developer
V9 SDK ... A few interesting questions for you :D
« 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
Logged

Matt

  • Administrator
  • Citizen of the Universe
  • *****
  • Posts: 41937
  • Shoes gone again!
Re: V9 SDK ... A few interesting questions for you
« Reply #1 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.
Logged
Matt Ashland, JRiver Media Center

RhinoBanga

  • Citizen of the Universe
  • *****
  • Posts: 1703
  • Developer
Re: V9 SDK ... A few interesting questions for you
« Reply #2 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.
Logged

KingSparta

  • MC Beta Team
  • Citizen of the Universe
  • *****
  • Posts: 20048
Re: V9 SDK ... A few interesting questions for you
« Reply #3 on: July 11, 2003, 10:57:20 am »

Quote
Consider yourself reminded

LOL

Just Thought it was funny.
Logged
Retired Military, Airborne, Air Assault, And Flight Wings.
Model Trains, Internet, Ham Radio
https://MyAAGrapevines.com
Fayetteville, NC, USA
Pages: [1]   Go Up