#1 Burning Software

It is currently Thu Dec 19, 2024 6:47 am

All times are UTC




Post new topic Reply to topic  [ 2 posts ] 
Author Message
 Post subject: Joliet Image Size
PostPosted: Tue May 22, 2007 10:26 am 
Offline

Joined: Tue May 22, 2007 9:51 am
Posts: 1
I am currently evaluating the StarBurn SDK and have the following problem:

I am using ..JolietFileTree_Create( .. ), and JolietFileTree_Add( .. ) to burn files to Cd or DVD. After adding the files, I use BuildImage, after building the image, JolietFileTree_GetSizeInUCHARs returns the image size.

However I would like to know the image size after each of my files has been added so I know when the Cd/DVD would be full.

If I add a second file then call BuildImage again, I get an error exception 3 saying the image is already built.

How do I get to know the image size as each of my files is added?


Top
 Profile  
 
 Post subject: Re: Joliet Image Size
PostPosted: Wed May 23, 2007 7:42 am 
Offline
Site Admin

Joined: Fri Jun 18, 2004 12:03 am
Posts: 4089
Location: British Virgin Islands
You cannot call BuildImage as you have to build it (allocate system structures and set offsets, LBAs, locations etc) only once. To know current image size you need to track the callbacks you receive on file add. You get current file size. So just round it to 2048 (logical block size) and add to the current value. So you'll have complete image size. File system overhead for ISO9660/Joliet is very small and can be ignored... That's all :)

cleartone1 wrote:
I am currently evaluating the StarBurn SDK and have the following problem:

I am using ..JolietFileTree_Create( .. ), and JolietFileTree_Add( .. ) to burn files to Cd or DVD. After adding the files, I use BuildImage, after building the image, JolietFileTree_GetSizeInUCHARs returns the image size.

However I would like to know the image size after each of my files has been added so I know when the Cd/DVD would be full.

If I add a second file then call BuildImage again, I get an error exception 3 saying the image is already built.

How do I get to know the image size as each of my files is added?


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 2 posts ] 

All times are UTC


Who is online

Users browsing this forum: Google [Bot] and 33 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group