1
0
mirror of https://github.com/danog/Telegram.git synced 2025-01-05 20:48:36 +01:00
Telegram/thirdparty/Video Encoder/MP4Atom.h
2015-10-01 19:19:52 +03:00

32 lines
815 B
Objective-C
Executable File

//
// 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;
}
@property (nonatomic) OSType type;
@property (nonatomic) int64_t length;
+ (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