#1 Burning Software

It is currently Wed Apr 24, 2024 8:44 pm

All times are UTC




Post new topic Reply to topic  [ 2 posts ] 
Author Message
 Post subject: Can I calculate size of an ISO9660JolietFileTree-Image
PostPosted: Wed Nov 10, 2004 10:31 am 
Offline

Joined: Wed Sep 29, 2004 2:32 pm
Posts: 4
Location: Germany
Hi,

I want to burn data with SessionAtOnceFromTree(). Everything works fine.

But how can I calculate the size of the Filetree during creation. For example: I want to burn 1000 files with about 1.2 GB. StarBurn_CdvdBurnerGrabber_GetTrackInformation() deliver the free size of the CD/DVD. Lets say 703 MB. I add the first file with StarBurn_ISO9660JolietFileTree_Add(), after that the second file ... But when must I stop to add files, because the Image of the Filetree is bigger than 703 MB?

StarBurn_ISO9660JolietFileTree_GetSizeInUCHARs() works only after calling StarBurn_ISO9660JolietFileTree_BuildImage(). But after building the image, I can┤t add any files with ISO9660JolietFileTree_Add(). Of course, I could calculate 15 MB overhead for TOC, but in most cases, the overhead is much smaller.

Any ideas?

yves


Top
 Profile  
 
 Post subject: Re: Can I calculate size of an ISO9660JolietFileTree-Image
PostPosted: Thu Nov 11, 2004 8:38 pm 
Offline
Site Admin

Joined: Fri Jun 18, 2004 12:03 am
Posts: 4089
Location: British Virgin Islands
You need to handle CN_FILE_TREE_PROGRESS_ADD callback message. You'll have each node pointer when called. Keep a global variable and update it adding node size. That's all...

Yves wrote:
Hi,

I want to burn data with SessionAtOnceFromTree(). Everything works fine.

But how can I calculate the size of the Filetree during creation. For example: I want to burn 1000 files with about 1.2 GB. StarBurn_CdvdBurnerGrabber_GetTrackInformation() deliver the free size of the CD/DVD. Lets say 703 MB. I add the first file with StarBurn_ISO9660JolietFileTree_Add(), after that the second file ... But when must I stop to add files, because the Image of the Filetree is bigger than 703 MB?

StarBurn_ISO9660JolietFileTree_GetSizeInUCHARs() works only after calling StarBurn_ISO9660JolietFileTree_BuildImage(). But after building the image, I can┤t add any files with ISO9660JolietFileTree_Add(). Of course, I could calculate 15 MB overhead for TOC, but in most cases, the overhead is much smaller.

Any ideas?

yves


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: No registered users and 10 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:  
cron
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group