Mercurial > libavformat.hg
comparison nut.h @ 1500:2ac9e4f39a67 libavformat
index less seeking in O(log n) time
author | michael |
---|---|
date | Tue, 14 Nov 2006 13:19:51 +0000 |
parents | 56fe078ffc27 |
children | fe46e04555a5 |
comparison
equal
deleted
inserted
replaced
1499:88c11d433ffb | 1500:2ac9e4f39a67 |
---|---|
48 FLAG_CODED =4096, ///<if set, coded_flags are stored in the frame header. | 48 FLAG_CODED =4096, ///<if set, coded_flags are stored in the frame header. |
49 FLAG_INVALID =8192, ///<if set, frame_code is invalid. | 49 FLAG_INVALID =8192, ///<if set, frame_code is invalid. |
50 }flag_t; | 50 }flag_t; |
51 | 51 |
52 typedef struct { | 52 typedef struct { |
53 uint32_t pos; //64gb limit if div16 (change this to 64 if thats too little) | 53 uint64_t pos; |
54 uint64_t global_key_pts; | 54 uint64_t back_ptr; |
55 uint32_t back_ptr_div16; //is stored /16 | 55 // uint64_t global_key_pts; |
56 int64_t ts; | |
56 } syncpoint_t; | 57 } syncpoint_t; |
57 | 58 |
58 typedef struct { | 59 typedef struct { |
59 uint16_t flags; | 60 uint16_t flags; |
60 uint8_t stream_id; | 61 uint8_t stream_id; |
83 StreamContext *stream; | 84 StreamContext *stream; |
84 unsigned int max_distance; | 85 unsigned int max_distance; |
85 unsigned int time_base_count; | 86 unsigned int time_base_count; |
86 int64_t last_syncpoint_pos; | 87 int64_t last_syncpoint_pos; |
87 AVRational *time_base; | 88 AVRational *time_base; |
89 struct AVTreeNode *syncpoints; | |
88 } NUTContext; | 90 } NUTContext; |
89 | 91 |
90 | 92 |
91 //FIXME move to a common spot, like crc.c/h | 93 //FIXME move to a common spot, like crc.c/h |
92 static unsigned long av_crc04C11DB7_update(unsigned long checksum, const uint8_t *buf, unsigned int len){ | 94 static unsigned long av_crc04C11DB7_update(unsigned long checksum, const uint8_t *buf, unsigned int len){ |