comparison DOCS/tech/nut.txt @ 20822:684313be54f6

stream_count a few more words for forward_ptr and file_id_string
author michael
date Fri, 10 Nov 2006 17:47:01 +0000
parents e8cd0590bf97
children 507efc9b161b
comparison
equal deleted inserted replaced
20821:ac142b1ac1cd 20822:684313be54f6
399 Tag description: 399 Tag description:
400 ---------------- 400 ----------------
401 401
402 file_id_string 402 file_id_string
403 "nut/multimedia container\0" 403 "nut/multimedia container\0"
404 the very first thing in every nut file, usefull for identifying nut
405 files
404 406
405 *_startcode 407 *_startcode
406 all startcodes start with 'N' 408 all startcodes start with 'N'
407 409
408 main_startcode 410 main_startcode
420 info_startcode 422 info_startcode
421 0xAB68B596BA78ULL + (((uint64_t)('N'<<8) + 'I')<<48) 423 0xAB68B596BA78ULL + (((uint64_t)('N'<<8) + 'I')<<48)
422 424
423 version 425 version
424 NUT version. The current value is 3. All lower values are pre-freeze 426 NUT version. The current value is 3. All lower values are pre-freeze
427
428 stream_count
429 number of streams in this file
425 430
426 forward_ptr 431 forward_ptr
427 size of the packet data (exactly the distance from the first byte 432 size of the packet data (exactly the distance from the first byte
428 after the packet_header to the first byte of the next packet) 433 after the packet_header to the first byte of the next packet)
434 every nut packet contains a forward_ptr immedeatly after its startcode
435 with the exception of frame_code based packets, the forward pointer
436 can be used to skip over the packet without decoding its contents
429 437
430 max_distance 438 max_distance
431 max distance between startcodes. If p1 and p2 are the byte 439 max distance between startcodes. If p1 and p2 are the byte
432 positions of the first byte of two consecutive startcodes, then 440 positions of the first byte of two consecutive startcodes, then
433 p2-p1 MUST be less than or equal to max_distance unless the entire 441 p2-p1 MUST be less than or equal to max_distance unless the entire