Click Here
home features news forums classifieds faqs links search
6071 members 
Amiga Q&A /  Free for All /  Emulation /  Gaming / (Latest Posts)
Login

Nickname

Password

Lost Password?

Don't have an account yet?
Register now!

Support Amigaworld.net
Your support is needed and is appreciated as Amigaworld.net is primarily dependent upon the support of its users.
Donate

Menu
Main sections
» Home
» Features
» News
» Forums
» Classifieds
» Links
» Downloads
Extras
» OS4 Zone
» IRC Network
» AmigaWorld Radio
» Newsfeed
» Top Members
» Amiga Dealers
Information
» About Us
» FAQs
» Advertise
» Polls
» Terms of Service
» Search

IRC Channel
Server: irc.amigaworld.net
Ports: 1024,5555, 6665-6669
SSL port: 6697
Channel: #Amigaworld
Channel Policy and Guidelines

Who's Online
42 crawler(s) on-line.
 251 guest(s) on-line.
 1 member(s) on-line.


 Yssing

You are an anonymous user.
Register Now!
 Yssing:  3 mins ago
 golem:  15 mins ago
 Karlos:  16 mins ago
 BigD:  17 mins ago
 agami:  30 mins ago
 Hammer:  41 mins ago
 ncafferkey:  50 mins ago
 towo2099:  51 mins ago
 Drakken:  1 hr 12 mins ago
 zipper:  1 hr 14 mins ago

/  Forum Index
   /  Amiga Development
      /  IFF question
Register To Post

PosterThread
Mazze 
IFF question
Posted on 22-Dec-2024 18:28:25
#1 ]
AROS Core Developer
Joined: 3-Aug-2013
Posts: 43
From: Unknown

I'm writing some kind of IFF file browser
https://github.com/mattrust/iffmaster

Can I assume that data chunk IDs are generic?
E.g. ABCD

Or would it be better to check it with the parent's chunk sub ID?
E.g. ILBM.ABCD, 8SVX.ABCD ...

The latter would be more work, because e.g. ILBM and ACBM share almost the same data chunk IDs.

_________________
AROS - Make code not war

 Status: Offline
Profile     Report this post  
gonegahgah 
Re: IFF question
Posted on 23-Dec-2024 6:58:29
#2 ]
Regular Member
Joined: 5-Dec-2008
Posts: 169
From: Australia

@Mazze

My recollection was that sub-chunk ids aren't generic across different iff types; though as you've seen they can be specified that way where useful to do so.

But I also checked with ChatGPT seeing that is only a recollection...

In the Amiga IFF (Interchange File Format) documentation, you would typically find the explanation about sub-chunk IDs and their specificity to particular data chunks in sections that describe the structure of chunks and sub-chunks in detail. Specifically, this explanation can often be found in the section discussing the chunk structure, chunk IDs, and sub-chunks.

To summarize the key points that are relevant to your question:

IFF files are organized into chunks, where each chunk has a four-character ID (also known as a fourcc) that identifies its type.
Some chunks may contain sub-chunks, which are additional data elements nested within the main chunk.
Sub-chunk IDs are not standardized across different chunk types. This means that the ID used for a sub-chunk within one chunk type (e.g., the "FORM" chunk) may differ from the sub-chunk IDs used in another chunk type (e.g., the "ILBM" chunk, which is a specific chunk for bitmap data).
This principle is typically mentioned in the chunk type specifications and the format-specific sections of the documentation (e.g., for image files, sound files, etc.). The format is flexible, and sub-chunks' meanings depend on the context of their parent chunk. The IDs for sub-chunks are assigned according to the specific data structure or use case for that chunk type.

In terms of documentation structure, you'd be looking for sections with titles like:

"Chunk structure"
"Sub-chunks"
"Chunk type definitions"
"Chunk ID usage"
For example, in a formal specification of the IFF format, you would find a section where chunk IDs are defined, followed by a description of how different chunks may include sub-chunks with different IDs, and the significance of those IDs is explained in the context of the parent chunk's data.

If you're working with a specific application of IFF (like the ILBM format for images), look in the format-specific sections where sub-chunks for that format are detailed, and you'll see how the sub-chunk IDs are defined and used uniquely within that chunk type.

 Status: Offline
Profile     Report this post  

[ home ][ about us ][ privacy ] [ forums ][ classifieds ] [ links ][ news archive ] [ link to us ][ user account ]
Copyright (C) 2000 - 2019 Amigaworld.net.
Amigaworld.net was originally founded by David Doyle