Preserve sample dependencies.
This commit is contained in:
4 files changed
+76
-18
No files matched your search
+16
-2
@@ -8,13 +8,25 @@
|
||||
|
||||
#import <Foundation/Foundation.h>
|
||||
|
||||
typedef NS_OPTIONS(NSUInteger, MP42SampleBufferFlag) {
|
||||
typedef NS_OPTIONS(uint16_t, MP42SampleBufferFlag) {
|
||||
MP42SampleBufferFlagEndOfFile = 1 << 0,
|
||||
MP42SampleBufferFlagIsSync = 1 << 1,
|
||||
MP42SampleBufferFlagIsForced = 1 << 2,
|
||||
MP42SampleBufferFlagDoNotDisplay = 1 << 3
|
||||
};
|
||||
|
||||
typedef NS_OPTIONS(uint32_t, MP42SampleDepType) {
|
||||
MP42SampleDepTypeUnknown = 0x00, /**< unknown */
|
||||
MP42SampleDepTypeHasRedundantCoding = 0x01, /**< contains redundant coding */
|
||||
MP42SampleDepTypeHasNoRedundantCoding = 0x02, /**< does not contain redundant coding */
|
||||
MP42SampleDepTypeHasDependents = 0x04, /**< referenced by other samples */
|
||||
MP42SampleDepTypeHasNoDependents = 0x08, /**< not referenced by other samples */
|
||||
MP42SampleDepTypeIsDependent = 0x10, /**< references other samples */
|
||||
MP42SampleDepTypeIsIndependent = 0x20, /**< does not reference other samples */
|
||||
MP42SampleDepTypeEarlierDisplayTimesAllowed = 0x40, /**< subequent samples in GOP may display earlier */
|
||||
MP42SampleDepTypeReserved = 0x80 /**< reserved */
|
||||
};
|
||||
|
||||
@interface MP42SampleBuffer : NSObject {
|
||||
@public
|
||||
void *data;
|
||||
@@ -30,7 +42,9 @@ typedef NS_OPTIONS(NSUInteger, MP42SampleBufferFlag) {
|
||||
|
||||
uint32_t trackId;
|
||||
|
||||
uint16_t flags;
|
||||
MP42SampleBufferFlag flags;
|
||||
MP42SampleDepType dependecyFlags;
|
||||
|
||||
void *attachments;
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user