1
0
mirror of https://github.com/danog/Telegram.git synced 2025-01-09 06:28:25 +01:00
Telegram/thirdparty/Video Encoder/MP4Atom.h

32 lines
815 B
C
Raw Normal View History

2014-07-10 16:11:09 +02:00
//
// MP4Atom.h
// Encoder Demo
//
// Created by Geraint Davies on 15/01/2013.
// Copyright (c) 2013 GDCL http://www.gdcl.co.uk/license.htm
//
#import <Foundation/Foundation.h>
@interface MP4Atom : NSObject
{
@public
NSFileHandle* _file;
int64_t _offset;
int64_t _length;
OSType _type;
int64_t _nextChild;
}
2015-10-01 18:19:52 +02:00
@property (nonatomic) OSType type;
@property (nonatomic) int64_t length;
2014-07-10 16:11:09 +02:00
+ (MP4Atom*) atomAt:(int64_t) offset size:(int) length type:(OSType) fourcc inFile:(NSFileHandle*) handle;
- (BOOL) init:(int64_t) offset size:(int) length type:(OSType) fourcc inFile:(NSFileHandle*) handle;
- (NSData*) readAt:(int64_t) offset size:(int) length;
- (BOOL) setChildOffset:(int64_t) offset;
- (MP4Atom*) nextChild;
- (MP4Atom*) childOfType:(OSType) fourcc startAt:(int64_t) offset;
@end