mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-24 17:20:36 +00:00
avi: implement index scanning
Implement scanning of the file when we can parse the index. Some refactoring of common code. Cleanups and comments. Remove some reimplemented code. Remove index massage code and put a FIXME where we should do something equivalent later.
This commit is contained in:
parent
8aa3830852
commit
ceb7d66e25
2 changed files with 310 additions and 761 deletions
File diff suppressed because it is too large
Load diff
|
@ -57,9 +57,9 @@ typedef struct {
|
|||
} GstAviIndexEntry;
|
||||
|
||||
#define GST_AVI_KEYFRAME 1
|
||||
#define ENTRY_IS_KEYFRAME(e) (((e)->flags & GST_AVI_KEYFRAME) == GST_AVI_KEYFRAME)
|
||||
#define ENTRY_SET_KEYFRAME(e) ((e)->flags |= GST_AVI_KEYFRAME)
|
||||
#define ENTRY_UNSET_KEYFRAME(e) ((e)->flags &= ~(GST_AVI_KEYFRAME))
|
||||
#define ENTRY_IS_KEYFRAME(e) ((e)->flags == GST_AVI_KEYFRAME)
|
||||
#define ENTRY_SET_KEYFRAME(e) ((e)->flags = GST_AVI_KEYFRAME)
|
||||
#define ENTRY_UNSET_KEYFRAME(e) ((e)->flags = 0)
|
||||
|
||||
typedef struct {
|
||||
/* index of this streamcontext */
|
||||
|
@ -149,6 +149,8 @@ typedef struct _GstAviDemux {
|
|||
guint64 offset;
|
||||
gboolean abort_buffering;
|
||||
|
||||
/* when we loaded the indexes */
|
||||
gboolean have_index;
|
||||
/* index offset in the file */
|
||||
guint64 index_offset;
|
||||
|
||||
|
|
Loading…
Reference in a new issue