Skip to content

Commit e381a29

Browse files
authored
Add downloading option (Thanks to @daisuke1227 for help)
1 parent d41f35d commit e381a29

293 files changed

Lines changed: 50292 additions & 18 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.github/workflows/build.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -79,6 +79,9 @@ jobs:
7979
cd ${{ github.workspace }}
8080
fi
8181
82+
- name: Fix Theos od broken pipe issue
83+
run: sed -i '' 's/od -c "$i" | head/od -c "$i" 2>\/dev\/null | head/g' $THEOS/bin/convert_xml_plist.sh || true
84+
8285
- name: Build YouMod
8386
run: |
8487
cd YouMod

.github/workflows/ipa.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -220,6 +220,9 @@ jobs:
220220
cd ${{ github.workspace }}
221221
fi
222222
223+
- name: Fix Theos od broken pipe issue
224+
run: sed -i '' 's/od -c "$i" | head/od -c "$i" 2>\/dev\/null | head/g' $THEOS/bin/convert_xml_plist.sh || true
225+
223226
- name: Install cyan and tbd
224227
run: |
225228
pipx install https://github.com/asdfzxcvbn/pyzule-rw/archive/main.zip

Files/Download.x

Lines changed: 2419 additions & 0 deletions
Large diffs are not rendered by default.
6 KB
Binary file not shown.
Lines changed: 55 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,55 @@
1+
/*
2+
* Copyright (c) 2021 Taner Sener
3+
*
4+
* This file is part of FFmpegKit.
5+
*
6+
* FFmpegKit is free software: you can redistribute it and/or modify
7+
* it under the terms of the GNU Lesser General License as published by
8+
* the Free Software Foundation, either version 3 of the License, or
9+
* (at your option) any later version.
10+
*
11+
* FFmpegKit is distributed in the hope that it will be useful,
12+
* but WITHOUT ANY WARRANTY; without even the implied warranty of
13+
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14+
* GNU Lesser General License for more details.
15+
*
16+
* You should have received a copy of the GNU Lesser General License
17+
* along with FFmpegKit. If not, see <http://www.gnu.org/licenses/>.
18+
*/
19+
20+
#ifndef FFMPEG_KIT_ABSTRACT_SESSION_H
21+
#define FFMPEG_KIT_ABSTRACT_SESSION_H
22+
23+
#import <Foundation/Foundation.h>
24+
#import "Session.h"
25+
26+
/**
27+
* Defines how long default "getAll" methods wait, in milliseconds.
28+
*/
29+
extern int const AbstractSessionDefaultTimeoutForAsynchronousMessagesInTransmit;
30+
31+
/**
32+
* Abstract session implementation which includes common features shared by <code>FFmpeg</code>,
33+
* <code>FFprobe</code> and <code>MediaInformation</code> sessions.
34+
*/
35+
@interface AbstractSession : NSObject<Session>
36+
37+
/**
38+
* Creates a new abstract session.
39+
*
40+
* @param arguments command arguments
41+
* @param logCallback session specific log callback
42+
* @param logRedirectionStrategy session specific log redirection strategy
43+
*/
44+
- (instancetype)init:(NSArray*)arguments withLogCallback:(LogCallback)logCallback withLogRedirectionStrategy:(LogRedirectionStrategy)logRedirectionStrategy;
45+
46+
/**
47+
* Waits for all asynchronous messages to be transmitted until the given timeout.
48+
*
49+
* @param timeout wait timeout in milliseconds
50+
*/
51+
- (void)waitForAsynchronousMessagesInTransmit:(int)timeout;
52+
53+
@end
54+
55+
#endif // FFMPEG_KIT_ABSTRACT_SESSION_H
Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
1+
/*
2+
* Copyright (c) 2018-2021 Taner Sener
3+
*
4+
* This file is part of FFmpegKit.
5+
*
6+
* FFmpegKit is free software: you can redistribute it and/or modify
7+
* it under the terms of the GNU Lesser General Public License as published by
8+
* the Free Software Foundation, either version 3 of the License, or
9+
* (at your option) any later version.
10+
*
11+
* FFmpegKit is distributed in the hope that it will be useful,
12+
* but WITHOUT ANY WARRANTY; without even the implied warranty of
13+
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14+
* GNU Lesser General Public License for more details.
15+
*
16+
* You should have received a copy of the GNU Lesser General Public License
17+
* along with FFmpegKit. If not, see <http://www.gnu.org/licenses/>.
18+
*/
19+
20+
#ifndef FFMPEG_KIT_ARCH_DETECT_H
21+
#define FFMPEG_KIT_ARCH_DETECT_H
22+
23+
#import <Foundation/Foundation.h>
24+
25+
/**
26+
* Detects the running architecture.
27+
*/
28+
@interface ArchDetect : NSObject
29+
30+
/**
31+
* Returns architecture name of the cpu running.
32+
*
33+
* @return architecture name of the cpu running
34+
*/
35+
+ (NSString*)getCpuArch;
36+
37+
/**
38+
* Returns architecture name loaded.
39+
*
40+
* @return architecture name loaded
41+
*/
42+
+ (NSString*)getArch;
43+
44+
@end
45+
46+
#endif // FFMPEG_KIT_ARCH_DETECT_H
Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
/*
2+
* Copyright (c) 2020-2021 Taner Sener
3+
*
4+
* This file is part of FFmpegKit.
5+
*
6+
* FFmpegKit is free software: you can redistribute it and/or modify
7+
* it under the terms of the GNU Lesser General Public License as published by
8+
* the Free Software Foundation, either version 3 of the License, or
9+
* (at your option) any later version.
10+
*
11+
* FFmpegKit is distributed in the hope that it will be useful,
12+
* but WITHOUT ANY WARRANTY; without even the implied warranty of
13+
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14+
* GNU Lesser General Public License for more details.
15+
*
16+
* You should have received a copy of the GNU Lesser General Public License
17+
* along with FFmpegKit. If not, see <http://www.gnu.org/licenses/>.
18+
*/
19+
20+
#ifndef FFMPEG_KIT_ATOMIC_LONG_H
21+
#define FFMPEG_KIT_ATOMIC_LONG_H
22+
23+
#import <Foundation/Foundation.h>
24+
25+
/**
26+
* Represents an atomic long data type.
27+
*/
28+
@interface AtomicLong : NSObject
29+
30+
- (instancetype)initWithValue:(long)value;
31+
32+
- (long)incrementAndGet;
33+
34+
- (long)getAndIncrement;
35+
36+
@end
37+
38+
#endif // FFMPEG_KIT_ATOMIC_LONG_H
Lines changed: 84 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,84 @@
1+
/*
2+
* Copyright (c) 2021-2022 Taner Sener
3+
*
4+
* This file is part of FFmpegKit.
5+
*
6+
* FFmpegKit is free software: you can redistribute it and/or modify
7+
* it under the terms of the GNU Lesser General Public License as published by
8+
* the Free Software Foundation, either version 3 of the License, or
9+
* (at your option) any later version.
10+
*
11+
* FFmpegKit is distributed in the hope that it will be useful,
12+
* but WITHOUT ANY WARRANTY; without even the implied warranty of
13+
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14+
* GNU Lesser General Public License for more details.
15+
*
16+
* You should have received a copy of the GNU Lesser General Public License
17+
* along with FFmpegKit. If not, see <http://www.gnu.org/licenses/>.
18+
*/
19+
20+
#ifndef FFMPEG_KIT_CHAPTER_H
21+
#define FFMPEG_KIT_CHAPTER_H
22+
23+
#import <Foundation/Foundation.h>
24+
25+
extern NSString* const ChapterKeyId;
26+
extern NSString* const ChapterKeyTimeBase;
27+
extern NSString* const ChapterKeyStart;
28+
extern NSString* const ChapterKeyStartTime;
29+
extern NSString* const ChapterKeyEnd;
30+
extern NSString* const ChapterKeyEndTime;
31+
extern NSString* const ChapterKeyTags;
32+
33+
/**
34+
* Chapter class.
35+
*/
36+
@interface Chapter : NSObject
37+
38+
- (instancetype)init:(NSDictionary*)chapterDictionary;
39+
40+
- (NSNumber*)getId;
41+
42+
- (NSString*)getTimeBase;
43+
44+
- (NSNumber*)getStart;
45+
46+
- (NSString*)getStartTime;
47+
48+
- (NSNumber*)getEnd;
49+
50+
- (NSString*)getEndTime;
51+
52+
- (NSDictionary*)getTags;
53+
54+
/**
55+
* Returns the chapter property associated with the key.
56+
*
57+
* @return chapter property as string or nil if the key is not found
58+
*/
59+
- (NSString*)getStringProperty:(NSString*)key;
60+
61+
/**
62+
* Returns the chapter property associated with the key.
63+
*
64+
* @return chapter property as number or nil if the key is not found
65+
*/
66+
- (NSNumber*)getNumberProperty:(NSString*)key;
67+
68+
/**
69+
* Returns the chapter property associated with the key.
70+
*
71+
* @return chapter property as id or nil if the key is not found
72+
*/
73+
- (id)getProperty:(NSString*)key;
74+
75+
/**
76+
* Returns all chapter properties defined.
77+
*
78+
* @return all chapter properties in a dictionary or nil if no properties are defined
79+
*/
80+
- (NSDictionary*)getAllProperties;
81+
82+
@end
83+
84+
#endif // FFMPEG_KIT_CHAPTER_H

0 commit comments

Comments
 (0)