-
Notifications
You must be signed in to change notification settings - Fork 0
/
MP42Metadata.h
83 lines (73 loc) · 1.96 KB
/
MP42Metadata.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
//
// MP42Metadata.h
// Subler
//
// Created by Damiano Galassi on 06/02/09.
// Copyright 2009 Damiano Galassi. All rights reserved.
//
#import <Cocoa/Cocoa.h>
#import "mp4v2.h"
enum rating_type {
MPAA_NR = 0,
MPAA_G,
MPAA_PG,
MPAA_PG_13,
MPAA_R,
MPAA_NC_17,
MPAA_UNRATED,
US_TV_Y = 8,
US_TV_Y7,
US_TV_G,
US_TV_PG,
US_TV_14,
US_TV_MA,
US_TV_UNRATED,
UK_MOVIE_NR = 16,
UK_MOVIE_U,
UK_MOVIE_Uc,
UK_MOVIE_PG,
UK_MOVIE_12,
UK_MOVIE_12A,
UK_MOVIE_15,
UK_MOVIE_18,
UK_MOVIE_E,
UK_MOVIE_UNRATED,
UK_TV_CAUTION = 27,
DE_MOVIE_FSK_0 = 29,
DE_MOVIE_FSK_6,
DE_MOVIE_FSK_12,
DE_MOVIE_FSK_16,
DE_MOVIE_FSK_18,
R_UNKNOWN = 35,
};
@interface MP42Metadata : NSObject {
NSString *sourcePath;
NSMutableDictionary *tagsDict;
NSImage *artwork;
NSArray *lowerCaseRatings;
uint8_t mediaKind;
uint8_t contentRating;
uint8_t hdVideo;
uint8_t gapless;
BOOL isEdited;
BOOL isArtworkEdited;
}
- (id) initWithSourcePath:(NSString *)source fileHandle:(MP4FileHandle)fileHandle;
- (void) printCurrentTags;
- (BOOL) setTag:(id)value forKey:(NSString *)key;
- (BOOL)addArtworkWithFilePath:(NSString *)afp;
- (BOOL)setRatingWithString:(NSString *)rwca;
- (BOOL)setMediaKindWithString:(NSString *)mkca;
- (BOOL)setContentRatingWithString:(NSString *)crca;
- (BOOL)setHdVideoWithString:(NSString *)hdca;
- (BOOL)setGaplessWithString:(NSString *)gca;
- (BOOL) writeMetadataWithFileHandle: (MP4FileHandle *)fileHandle removeAll:(BOOL)performRemove;
@property(readonly) NSMutableDictionary *tagsDict;
@property(readwrite, retain) NSImage *artwork;
@property(readwrite) uint8_t mediaKind;
@property(readwrite) uint8_t contentRating;
@property(readwrite) uint8_t hdVideo;
@property(readwrite) uint8_t gapless;
@property(readwrite) BOOL isEdited;
@property(readwrite) BOOL isArtworkEdited;
@end