Renamed MP42Utilites to MP42PrivateUtilities, a public header will be committed soon.
This commit is contained in:
1 parent
a3034fe7fa
commit
08e32323ce
23 files changed
+1219
-1190
No files matched your search
@@ -9,7 +9,7 @@
|
||||
#import "MP42AC3Importer.h"
|
||||
#import "MP42Languages.h"
|
||||
#import "MP42File.h"
|
||||
#import "MP42Utilities.h"
|
||||
#import "MP42PrivateUtilities.h"
|
||||
#import "MP42Fifo.h"
|
||||
|
||||
#include <sys/stat.h>
|
||||
|
||||
@@ -14,7 +14,7 @@
|
||||
#import "MP42Image.h"
|
||||
|
||||
#import "mp4v2.h"
|
||||
#import "MP42Utilities.h"
|
||||
#import "MP42PrivateUtilities.h"
|
||||
#import "MP42Track+Muxer.h"
|
||||
|
||||
#import <AVFoundation/AVFoundation.h>
|
||||
|
||||
@@ -12,7 +12,7 @@
|
||||
#import "MP42FileImporter.h"
|
||||
#import "MP42MediaFormat.h"
|
||||
#import "MP42Fifo.h"
|
||||
#import "MP42Utilities.h"
|
||||
#import "MP42PrivateUtilities.h"
|
||||
|
||||
#import "MP42Track+Muxer.h"
|
||||
|
||||
|
||||
@@ -7,7 +7,7 @@
|
||||
//
|
||||
|
||||
#import "MP42AudioTrack.h"
|
||||
#import "MP42Utilities.h"
|
||||
#import "MP42PrivateUtilities.h"
|
||||
#import "MP42MediaFormat.h"
|
||||
|
||||
extern u_int8_t MP4AV_AacConfigGetChannels(u_int8_t* pConfig);
|
||||
|
||||
@@ -15,7 +15,7 @@
|
||||
#import "MP42SubUtilities.h"
|
||||
|
||||
#import "mp4v2.h"
|
||||
#import "MP42Utilities.h"
|
||||
#import "MP42PrivateUtilities.h"
|
||||
#import "MP42Track+Muxer.h"
|
||||
|
||||
#define REGISTER_DECODER(x) { \
|
||||
|
||||
@@ -8,7 +8,7 @@
|
||||
|
||||
#import "MP42ChapterTrack.h"
|
||||
#import "MP42SubUtilities.h"
|
||||
#import "MP42Utilities.h"
|
||||
#import "MP42PrivateUtilities.h"
|
||||
#import "MP42MediaFormat.h"
|
||||
|
||||
@implementation MP42ChapterTrack
|
||||
|
||||
+1
-1
@@ -10,7 +10,7 @@
|
||||
#import "MP42FileImporter.h"
|
||||
#import "MP42Muxer.h"
|
||||
#import "MP42SubUtilities.h"
|
||||
#import "MP42Utilities.h"
|
||||
#import "MP42PrivateUtilities.h"
|
||||
#import "MP42Languages.h"
|
||||
#import "MP42Track+Muxer.h"
|
||||
|
||||
|
||||
@@ -27,7 +27,7 @@
|
||||
#import "MP42AudioConverter.h"
|
||||
|
||||
#import "mp4v2.h"
|
||||
#import "MP42Utilities.h"
|
||||
#import "MP42PrivateUtilities.h"
|
||||
#import "MP42Track+Muxer.h"
|
||||
|
||||
@implementation MP42FileImporter
|
||||
|
||||
@@ -10,7 +10,7 @@
|
||||
#import "MP42FileImporter.h"
|
||||
|
||||
#import "mp4v2.h"
|
||||
#import "MP42Utilities.h"
|
||||
#import "MP42PrivateUtilities.h"
|
||||
#import "MP42Track+Muxer.h"
|
||||
|
||||
typedef struct framerate_t {
|
||||
|
||||
+1
-1
@@ -7,7 +7,7 @@
|
||||
//
|
||||
|
||||
#import "MP42Metadata.h"
|
||||
#import "MP42Utilities.h"
|
||||
#import "MP42PrivateUtilities.h"
|
||||
#import "MP42XMLReader.h"
|
||||
#import "MP42Image.h"
|
||||
#import "RegexKitLite.h"
|
||||
|
||||
@@ -17,7 +17,7 @@
|
||||
#include "avutil.h"
|
||||
|
||||
#import "mp4v2.h"
|
||||
#import "MP42Utilities.h"
|
||||
#import "MP42PrivateUtilities.h"
|
||||
#import "MP42Track+Muxer.h"
|
||||
|
||||
u_int32_t MP4AV_Ac3GetSamplingRate(u_int8_t* pHdr);
|
||||
|
||||
@@ -11,7 +11,7 @@
|
||||
#import "MP42Sample.h"
|
||||
|
||||
#import "mp4v2.h"
|
||||
#import "MP42Utilities.h"
|
||||
#import "MP42PrivateUtilities.h"
|
||||
#import "MP42Track+Muxer.h"
|
||||
|
||||
@interface MP4DemuxkHelper : NSObject {
|
||||
|
||||
+1
-1
@@ -14,7 +14,7 @@
|
||||
#import "MP42BitmapSubConverter.h"
|
||||
|
||||
#import "mp4v2.h"
|
||||
#import "MP42Utilities.h"
|
||||
#import "MP42PrivateUtilities.h"
|
||||
#import "MP42Track+Muxer.h"
|
||||
|
||||
@implementation MP42Muxer
|
||||
|
||||
@@ -0,0 +1,69 @@
|
||||
/*
|
||||
* MP42Utilities.h
|
||||
* Subler
|
||||
*
|
||||
* Created by Damiano Galassi on 30/01/09.
|
||||
* Copyright 2009 Damiano Galassi. All rights reserved.
|
||||
*
|
||||
*/
|
||||
|
||||
#import <Foundation/Foundation.h>
|
||||
#include "mp4v2.h"
|
||||
|
||||
typedef enum { TRACK_DISABLED = 0x0,
|
||||
TRACK_ENABLED = 0x1,
|
||||
TRACK_IN_MOVIE = 0x2,
|
||||
TRACK_IN_PREVIEW = 0x4,
|
||||
TRACK_IN_POSTER = 0x8
|
||||
} track_header_flags;
|
||||
|
||||
NSString* SRTStringFromTime( long long time, long timeScale , const char separator);
|
||||
NSString* SMPTEStringFromTime(long long time, long timeScale);
|
||||
MP4Duration TimeFromSMPTEString( NSString* SMPTE_string, MP4Duration timeScale );
|
||||
|
||||
int MP4SetTrackEnabled(MP4FileHandle fileHandle, MP4TrackId trackId);
|
||||
int MP4SetTrackDisabled(MP4FileHandle fileHandle, MP4TrackId trackId);
|
||||
|
||||
int updateTracksCount(MP4FileHandle fileHandle);
|
||||
void updateMoovDuration(MP4FileHandle fileHandle);
|
||||
|
||||
uint64_t getTrackSize(MP4FileHandle fileHandle, MP4TrackId trackId);
|
||||
int isHdVideo(uint64_t width, uint64_t height);
|
||||
|
||||
MP4TrackId findChapterTrackId(MP4FileHandle fileHandle);
|
||||
MP4TrackId findChapterPreviewTrackId(MP4FileHandle fileHandle);
|
||||
|
||||
void removeAllChapterTrackReferences(MP4FileHandle fileHandle);
|
||||
MP4TrackId findFirstVideoTrack(MP4FileHandle fileHandle);
|
||||
|
||||
uint16_t getFixedVideoWidth(MP4FileHandle fileHandle, MP4TrackId videoTrack);
|
||||
|
||||
NSString* getTrackName(MP4FileHandle fileHandle, MP4TrackId videoTrack);
|
||||
NSString* getHumanReadableTrackMediaDataName(MP4FileHandle fileHandle, MP4TrackId videoTrack);
|
||||
NSString* getHumanReadableTrackLanguage(MP4FileHandle fileHandle, MP4TrackId videoTrack);
|
||||
NSString* getFilenameLanguage(CFStringRef filename);
|
||||
|
||||
uint8_t *CreateEsdsFromSetupData(uint8_t *codecPrivate, size_t vosLen, size_t *esdsLen, int trackID, bool audio, bool write_version);
|
||||
ComponentResult ReadESDSDescExt(void* descExt, UInt8 **buffer, int *size, int versionFlags);
|
||||
CFDataRef createDescExt_XiphVorbis(UInt32 codecPrivateSize, const void * codecPrivate);
|
||||
CFDataRef createDescExt_XiphFLAC(UInt32 codecPrivateSize, const void * codecPrivate);
|
||||
|
||||
int readAC3Config(uint64_t acmod, uint64_t lfeon, UInt32 *channelsCount, UInt32 *channelLayoutTag);
|
||||
|
||||
BOOL isTrackMuxable(NSString * formatName);
|
||||
BOOL trackNeedConversion(NSString * formatName);
|
||||
|
||||
NSArray *supportedFileFormat();
|
||||
BOOL isFileFormatSupported(NSString * fileExt);
|
||||
|
||||
int64_t getTrackStartOffset(MP4FileHandle fileHandle, MP4TrackId Id);
|
||||
void setTrackStartOffset(MP4FileHandle fileHandle, MP4TrackId Id, int64_t offset);
|
||||
int copyTrackEditLists (MP4FileHandle fileHandle, MP4TrackId srcTrackId, MP4TrackId dstTrackId);
|
||||
|
||||
NSError* MP42Error(NSString *description, NSString* recoverySuggestion, NSInteger code);
|
||||
int yuv2rgb(int yuv);
|
||||
int rgb2yuv(int rgb);
|
||||
|
||||
void *fast_realloc_with_padding(void *ptr, unsigned int *size, unsigned int min_size);
|
||||
int DecompressZlib(uint8_t **sampleData, uint32_t *sampleSize);
|
||||
int DecompressBzlib(uint8_t **sampleData, uint32_t *sampleSize);
|
||||
File diff suppressed because it is too large.
Load diff
@@ -13,7 +13,7 @@
|
||||
#import "MP42Languages.h"
|
||||
|
||||
#import "mp4v2.h"
|
||||
#import "MP42Utilities.h"
|
||||
#import "MP42PrivateUtilities.h"
|
||||
#import "MP42Track+Muxer.h"
|
||||
|
||||
@implementation MP42SrtImporter
|
||||
|
||||
@@ -7,7 +7,7 @@
|
||||
//
|
||||
|
||||
#import "MP42SubtitleTrack.h"
|
||||
#import "MP42Utilities.h"
|
||||
#import "MP42PrivateUtilities.h"
|
||||
#import "MP42MediaFormat.h"
|
||||
#import "MP42HtmlParser.h"
|
||||
#import "MP42Languages.h"
|
||||
|
||||
+1
-1
@@ -7,7 +7,7 @@
|
||||
//
|
||||
|
||||
#import "MP42Track.h"
|
||||
#import "MP42Utilities.h"
|
||||
#import "MP42PrivateUtilities.h"
|
||||
#import "MP42FileImporter.h"
|
||||
#import "MP42Sample.h"
|
||||
#import "MP42Fifo.h"
|
||||
|
||||
+9
-70
@@ -1,74 +1,13 @@
|
||||
/*
|
||||
* MP42Utilities.h
|
||||
* Subler
|
||||
*
|
||||
* Created by Damiano Galassi on 30/01/09.
|
||||
* Copyright 2009 Damiano Galassi. All rights reserved.
|
||||
*
|
||||
*/
|
||||
//
|
||||
// MP42Utilities.h
|
||||
// MP42Foundation
|
||||
//
|
||||
// Created by Damiano Galassi on 16/11/13.
|
||||
// Copyright (c) 2013 Damiano Galassi. All rights reserved.
|
||||
//
|
||||
|
||||
#import <Foundation/Foundation.h>
|
||||
#include "mp4v2.h"
|
||||
|
||||
extern NSString * const SBMonoMixdown;
|
||||
extern NSString * const SBStereoMixdown;
|
||||
extern NSString * const SBDolbyMixdown;
|
||||
extern NSString * const SBDolbyPlIIMixdown;
|
||||
@interface MP42Utilities : NSObject
|
||||
|
||||
typedef enum { TRACK_DISABLED = 0x0,
|
||||
TRACK_ENABLED = 0x1,
|
||||
TRACK_IN_MOVIE = 0x2,
|
||||
TRACK_IN_PREVIEW = 0x4,
|
||||
TRACK_IN_POSTER = 0x8
|
||||
} track_header_flags;
|
||||
|
||||
NSString* SRTStringFromTime( long long time, long timeScale , const char separator);
|
||||
NSString* SMPTEStringFromTime(long long time, long timeScale);
|
||||
MP4Duration TimeFromSMPTEString( NSString* SMPTE_string, MP4Duration timeScale );
|
||||
|
||||
int MP4SetTrackEnabled(MP4FileHandle fileHandle, MP4TrackId trackId);
|
||||
int MP4SetTrackDisabled(MP4FileHandle fileHandle, MP4TrackId trackId);
|
||||
|
||||
int updateTracksCount(MP4FileHandle fileHandle);
|
||||
void updateMoovDuration(MP4FileHandle fileHandle);
|
||||
|
||||
uint64_t getTrackSize(MP4FileHandle fileHandle, MP4TrackId trackId);
|
||||
int isHdVideo(uint64_t width, uint64_t height);
|
||||
|
||||
MP4TrackId findChapterTrackId(MP4FileHandle fileHandle);
|
||||
MP4TrackId findChapterPreviewTrackId(MP4FileHandle fileHandle);
|
||||
|
||||
void removeAllChapterTrackReferences(MP4FileHandle fileHandle);
|
||||
MP4TrackId findFirstVideoTrack(MP4FileHandle fileHandle);
|
||||
|
||||
uint16_t getFixedVideoWidth(MP4FileHandle fileHandle, MP4TrackId videoTrack);
|
||||
|
||||
NSString* getTrackName(MP4FileHandle fileHandle, MP4TrackId videoTrack);
|
||||
NSString* getHumanReadableTrackMediaDataName(MP4FileHandle fileHandle, MP4TrackId videoTrack);
|
||||
NSString* getHumanReadableTrackLanguage(MP4FileHandle fileHandle, MP4TrackId videoTrack);
|
||||
NSString* getFilenameLanguage(CFStringRef filename);
|
||||
|
||||
uint8_t *CreateEsdsFromSetupData(uint8_t *codecPrivate, size_t vosLen, size_t *esdsLen, int trackID, bool audio, bool write_version);
|
||||
ComponentResult ReadESDSDescExt(void* descExt, UInt8 **buffer, int *size, int versionFlags);
|
||||
CFDataRef createDescExt_XiphVorbis(UInt32 codecPrivateSize, const void * codecPrivate);
|
||||
CFDataRef createDescExt_XiphFLAC(UInt32 codecPrivateSize, const void * codecPrivate);
|
||||
|
||||
int readAC3Config(uint64_t acmod, uint64_t lfeon, UInt32 *channelsCount, UInt32 *channelLayoutTag);
|
||||
|
||||
BOOL isTrackMuxable(NSString * formatName);
|
||||
BOOL trackNeedConversion(NSString * formatName);
|
||||
|
||||
NSArray *supportedFileFormat();
|
||||
BOOL isFileFormatSupported(NSString * fileExt);
|
||||
|
||||
int64_t getTrackStartOffset(MP4FileHandle fileHandle, MP4TrackId Id);
|
||||
void setTrackStartOffset(MP4FileHandle fileHandle, MP4TrackId Id, int64_t offset);
|
||||
int copyTrackEditLists (MP4FileHandle fileHandle, MP4TrackId srcTrackId, MP4TrackId dstTrackId);
|
||||
|
||||
NSError* MP42Error(NSString *description, NSString* recoverySuggestion, NSInteger code);
|
||||
int yuv2rgb(int yuv);
|
||||
int rgb2yuv(int rgb);
|
||||
|
||||
void *fast_realloc_with_padding(void *ptr, unsigned int *size, unsigned int min_size);
|
||||
int DecompressZlib(uint8_t **sampleData, uint32_t *sampleSize);
|
||||
int DecompressBzlib(uint8_t **sampleData, uint32_t *sampleSize);
|
||||
@end
|
||||
+9
-1095
File diff suppressed because it is too large.
Load diff
@@ -12,7 +12,7 @@
|
||||
#import "MP42File.h"
|
||||
|
||||
#import "mp4v2.h"
|
||||
#import "MP42Utilities.h"
|
||||
#import "MP42PrivateUtilities.h"
|
||||
#import "MP42Track+Muxer.h"
|
||||
|
||||
@interface SBVobSubSample : NSObject
|
||||
|
||||
Reference in new issue
Block a user