Another try at making the construction of new edit lists in the AVFoundation importer a bit better.

This commit is contained in:
Damiano Galassi committed 2014-06-29 14:30:47 +02:00
1 parent 64c95977ca
commit 78ccde9934
6 files changed
+229 -134

No files matched your search

+39
View File
@@ -0,0 +1,39 @@
//
// MP42EditListsConstructor.h
// MP42Foundation
//
// Created by Damiano Galassi on 29/06/14.
// Copyright (c) 2014 Damiano Galassi. All rights reserved.
//
#import <Foundation/Foundation.h>
#import <AVFoundation/AVFoundation.h>
#import "MP42Heap.h"
#import "MP42Sample.h"
/**
* Analyzes the sample buffers of a track and tries to recreate an array of edits lists.
*/
@interface MP42EditListsReconstructor : NSObject {
@private
MP42Heap *_queue;
int64_t _currentTime;
int64_t _delta;
CMTimeScale _timescale;
int64_t _count;
CMTimeRange *edits;
uint64_t editsCount;
uint64_t editsSize;
BOOL editOpen;
}
- (void)addSample:(MP42SampleBuffer *)sample;
- (void)done;
@property (readonly, nonatomic) CMTimeRange *edits;
@property (readonly, nonatomic) uint64_t editsCount;
@end