diff options
author | Thomas White <taw@physics.org> | 2020-09-04 12:15:49 +0200 |
---|---|---|
committer | Thomas White <taw@physics.org> | 2020-09-04 12:15:49 +0200 |
commit | cf295e657e59acb6bf0a2e226572b35927daa258 (patch) | |
tree | c9590da7e0f4769f14f256daaafdad8b200b0daf /libcrystfel/src/stream.h | |
parent | f5b3c4db36fabb2c4482bb512fb9a8f1adde6411 (diff) |
New API for random access to stream
Diffstat (limited to 'libcrystfel/src/stream.h')
-rw-r--r-- | libcrystfel/src/stream.h | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/libcrystfel/src/stream.h b/libcrystfel/src/stream.h index 9f19e524..5eadf69b 100644 --- a/libcrystfel/src/stream.h +++ b/libcrystfel/src/stream.h @@ -109,8 +109,12 @@ extern int stream_get_fd(Stream *st); extern int stream_rewind(Stream *st); /* Random access */ -extern int stream_scan_chunks(Stream *st); -extern int stream_select_chunk(Stream *st, int chunk_number); +typedef struct _streamindex StreamIndex; +extern StreamIndex *stream_make_index(const char *filename); +extern int stream_select_chunk(Stream *st, StreamIndex *index, + const char *filename, + const char *ev); +extern void stream_index_free(StreamIndex *index); /* Read/write chunks */ extern struct image *stream_read_chunk(Stream *st, StreamFlags srf); |