I think I understand how picture thumbnails are generated/cached/hashed:
It calculates crc32 from the url in format of:
thumb://<URLSAFE_path_to_image><URLSAFE_image_name>/<image_name>
URLSAFE means that all non letters&numbers ![a-zA-Z0-9] are converted to corresponding hex codes.
So my original example would become:
Code:
smb://htpc:htpc@mediaserver/Documents/Media/Pictures/martina/DSC04128.JPG
thumb://smb%3a%2f%2fhtpc%3ahtpc%40mediaserver%2fDocuments%2fMedia%2fPictures%2fmartina%2fDSC04128%2eJPG/DSC04128.JPG
I haven't found yet where exactly in code this is done, but I traced it now to (TextureCache.cpp) CTextureCache::CheckAndCacheImage()
The most helpful hint was to go check the Textures.db database, where you can see full url which was used for hashing.
Now I only need to find what does the image hash stand for in the texture table and then I think I will be able to develop batch image thumbnail generator.