├── .gitignore
├── Documents
└── images
│ ├── e-6p-1.png
│ ├── e-6p-2.png
│ ├── e-6p-3.png
│ ├── e-6p-4.png
│ └── e-6p-5.png
├── Eleven.xcodeproj
├── project.pbxproj
└── project.xcworkspace
│ └── contents.xcworkspacedata
├── Eleven.xcworkspace
└── contents.xcworkspacedata
├── Eleven
├── AppDelegate.h
├── AppDelegate.m
├── Base.lproj
│ └── Main.storyboard
├── Classes
│ ├── Common
│ │ ├── AppGenernal
│ │ │ ├── AppConfig.h
│ │ │ └── AppPrefixFile.h
│ │ ├── Base
│ │ │ ├── BaseNavigationController.h
│ │ │ └── BaseNavigationController.m
│ │ └── ViewControllers
│ │ │ ├── MenuTableViewController.h
│ │ │ └── MenuTableViewController.m
│ └── Module
│ │ ├── LocalFile
│ │ ├── FileModel.h
│ │ ├── FileModel.m
│ │ ├── LocalFileViewController.h
│ │ ├── LocalFileViewController.m
│ │ ├── LocalFileViewModel.h
│ │ ├── LocalFileViewModel.m
│ │ ├── WifiViewController.h
│ │ └── WifiViewController.m
│ │ ├── More
│ │ ├── MoreViewController.h
│ │ └── MoreViewController.m
│ │ └── NetworkVideo
│ │ ├── NetworkViewController.h
│ │ └── NetworkViewController.m
├── Eleven-Prefix.pch
├── ElevenKit
│ ├── Category
│ │ ├── NSObject+HUD.h
│ │ ├── NSObject+HUD.m
│ │ ├── NSObject+JudgeNull.h
│ │ └── NSObject+JudgeNull.m
│ ├── HistoryManager
│ │ ├── HistoryArchive.h
│ │ └── HistoryArchive.m
│ └── WifiManger
│ │ ├── WifiManager.h
│ │ └── WifiManager.m
├── Images.xcassets
│ ├── AppIcon.appiconset
│ │ ├── Contents.json
│ │ ├── icon-29-1.png
│ │ ├── icon-29-2-1.png
│ │ ├── icon-29-2.png
│ │ ├── icon-29-3.png
│ │ ├── icon-29.png
│ │ ├── icon-40-2.png
│ │ ├── icon-40-3.png
│ │ ├── icon-40.png
│ │ ├── icon-50-2.png
│ │ ├── icon-50.png
│ │ ├── icon-57-2.png
│ │ ├── icon-57.png
│ │ ├── icon-60-2.png
│ │ ├── icon-60-3.png
│ │ ├── icon-72-2.png
│ │ ├── icon-72.png
│ │ ├── icon-76-2.png
│ │ ├── icon-76.png
│ │ └── icon.png
│ ├── Eleven.imageset
│ │ ├── Contents.json
│ │ └── Eleven.png
│ ├── LaunchImage-2.launchimage
│ │ └── Contents.json
│ └── LaunchImage.launchimage
│ │ ├── Contents.json
│ │ ├── l4.png
│ │ ├── l4@2x-1.png
│ │ ├── l4@2x.png
│ │ ├── l5-1.png
│ │ ├── l5.png
│ │ ├── l6.png
│ │ ├── l6p-1.png
│ │ └── l6p.png
├── Info.plist
├── Vendor
│ ├── CocoaWebResource
│ │ ├── CocoaWebResource
│ │ │ ├── AsyncSocket.h
│ │ │ ├── AsyncSocket.m
│ │ │ ├── DDData.h
│ │ │ ├── DDData.m
│ │ │ ├── DDNumber.h
│ │ │ ├── DDNumber.m
│ │ │ ├── DDRange.h
│ │ │ ├── DDRange.m
│ │ │ ├── FileResource.h
│ │ │ ├── FileResource.m
│ │ │ ├── HTTPAuthenticationRequest.h
│ │ │ ├── HTTPAuthenticationRequest.m
│ │ │ ├── HTTPConnection.h
│ │ │ ├── HTTPConnection.m
│ │ │ ├── HTTPResponse.h
│ │ │ ├── HTTPResponse.m
│ │ │ ├── HTTPServer.h
│ │ │ └── HTTPServer.m
│ │ ├── RegexKitLite
│ │ │ ├── RegexKitLite.h
│ │ │ └── RegexKitLite.m
│ │ └── docroot
│ │ │ ├── bg.png
│ │ │ ├── index.html
│ │ │ ├── jquery.js
│ │ │ ├── theadbg.png
│ │ │ └── titlebg.png
│ ├── FFmpeg-iOS
│ │ ├── include
│ │ │ ├── libavcodec
│ │ │ │ ├── avcodec.h
│ │ │ │ ├── avfft.h
│ │ │ │ ├── d3d11va.h
│ │ │ │ ├── dv_profile.h
│ │ │ │ ├── dxva2.h
│ │ │ │ ├── old_codec_ids.h
│ │ │ │ ├── qsv.h
│ │ │ │ ├── vaapi.h
│ │ │ │ ├── vda.h
│ │ │ │ ├── vdpau.h
│ │ │ │ ├── version.h
│ │ │ │ ├── vorbis_parser.h
│ │ │ │ └── xvmc.h
│ │ │ ├── libavdevice
│ │ │ │ ├── avdevice.h
│ │ │ │ └── version.h
│ │ │ ├── libavfilter
│ │ │ │ ├── asrc_abuffer.h
│ │ │ │ ├── avcodec.h
│ │ │ │ ├── avfilter.h
│ │ │ │ ├── avfiltergraph.h
│ │ │ │ ├── buffersink.h
│ │ │ │ ├── buffersrc.h
│ │ │ │ └── version.h
│ │ │ ├── libavformat
│ │ │ │ ├── avformat.h
│ │ │ │ ├── avio.h
│ │ │ │ └── version.h
│ │ │ ├── libavutil
│ │ │ │ ├── adler32.h
│ │ │ │ ├── aes.h
│ │ │ │ ├── attributes.h
│ │ │ │ ├── audio_fifo.h
│ │ │ │ ├── audioconvert.h
│ │ │ │ ├── avassert.h
│ │ │ │ ├── avconfig.h
│ │ │ │ ├── avstring.h
│ │ │ │ ├── avutil.h
│ │ │ │ ├── base64.h
│ │ │ │ ├── blowfish.h
│ │ │ │ ├── bprint.h
│ │ │ │ ├── bswap.h
│ │ │ │ ├── buffer.h
│ │ │ │ ├── camellia.h
│ │ │ │ ├── cast5.h
│ │ │ │ ├── channel_layout.h
│ │ │ │ ├── common.h
│ │ │ │ ├── cpu.h
│ │ │ │ ├── crc.h
│ │ │ │ ├── dict.h
│ │ │ │ ├── display.h
│ │ │ │ ├── downmix_info.h
│ │ │ │ ├── error.h
│ │ │ │ ├── eval.h
│ │ │ │ ├── ffversion.h
│ │ │ │ ├── fifo.h
│ │ │ │ ├── file.h
│ │ │ │ ├── frame.h
│ │ │ │ ├── hash.h
│ │ │ │ ├── hmac.h
│ │ │ │ ├── imgutils.h
│ │ │ │ ├── intfloat.h
│ │ │ │ ├── intreadwrite.h
│ │ │ │ ├── lfg.h
│ │ │ │ ├── log.h
│ │ │ │ ├── lzo.h
│ │ │ │ ├── macros.h
│ │ │ │ ├── mathematics.h
│ │ │ │ ├── md5.h
│ │ │ │ ├── mem.h
│ │ │ │ ├── motion_vector.h
│ │ │ │ ├── murmur3.h
│ │ │ │ ├── old_pix_fmts.h
│ │ │ │ ├── opt.h
│ │ │ │ ├── parseutils.h
│ │ │ │ ├── pixdesc.h
│ │ │ │ ├── pixelutils.h
│ │ │ │ ├── pixfmt.h
│ │ │ │ ├── random_seed.h
│ │ │ │ ├── rational.h
│ │ │ │ ├── replaygain.h
│ │ │ │ ├── ripemd.h
│ │ │ │ ├── samplefmt.h
│ │ │ │ ├── sha.h
│ │ │ │ ├── sha512.h
│ │ │ │ ├── stereo3d.h
│ │ │ │ ├── threadmessage.h
│ │ │ │ ├── time.h
│ │ │ │ ├── timecode.h
│ │ │ │ ├── timestamp.h
│ │ │ │ ├── twofish.h
│ │ │ │ ├── version.h
│ │ │ │ └── xtea.h
│ │ │ ├── libswresample
│ │ │ │ ├── swresample.h
│ │ │ │ └── version.h
│ │ │ └── libswscale
│ │ │ │ ├── swscale.h
│ │ │ │ └── version.h
│ │ └── lib
│ │ │ ├── libavcodec.a
│ │ │ ├── libavdevice.a
│ │ │ ├── libavfilter.a
│ │ │ ├── libavformat.a
│ │ │ ├── libavutil.a
│ │ │ ├── libswresample.a
│ │ │ └── libswscale.a
│ ├── YiRefresh
│ │ ├── YiRefreshFooter.h
│ │ ├── YiRefreshFooter.m
│ │ ├── YiRefreshHeader.h
│ │ ├── YiRefreshHeader.m
│ │ └── down@2x.png
│ └── kxmovie
│ │ ├── KxAudioManager.h
│ │ ├── KxAudioManager.m
│ │ ├── KxLogger.h
│ │ ├── KxMovieDecoder.h
│ │ ├── KxMovieDecoder.m
│ │ ├── KxMovieGLView.h
│ │ ├── KxMovieGLView.m
│ │ ├── KxMovieViewController.h
│ │ ├── KxMovieViewController.m
│ │ ├── kxmovie-Prefix.pch
│ │ └── kxmovie.bundle
│ │ ├── music_icon.png
│ │ ├── playback_ff.png
│ │ ├── playback_ff@2x.png
│ │ ├── playback_next.png
│ │ ├── playback_next@2x.png
│ │ ├── playback_pause.png
│ │ ├── playback_pause@2x.png
│ │ ├── playback_play.png
│ │ ├── playback_play@2x.png
│ │ ├── playback_prev.png
│ │ ├── playback_prev@2x.png
│ │ ├── playback_rew.png
│ │ ├── playback_rew@2x.png
│ │ ├── sliderthumb.png
│ │ └── sliderthumb@2x.png
├── en.lproj
│ ├── LaunchScreen.xib
│ ├── Localizable.strings
│ └── Main.storyboard
├── main.m
└── zh-Hans.lproj
│ ├── LaunchScreen.xib
│ ├── Localizable.strings
│ └── Main.storyboard
├── ElevenTests
├── ElevenTests.m
└── Info.plist
├── LICENSE.txt
├── Podfile
├── Podfile.lock
└── README.md
/.gitignore:
--------------------------------------------------------------------------------
1 | # Xcode
2 | #
3 | # gitignore contributors: remember to update Global/Xcode.gitignore, Objective-C.gitignore & Swift.gitignore
4 |
5 | ## Build generated
6 | build/
7 | DerivedData
8 |
9 | ## Various settings
10 | *.pbxuser
11 | !default.pbxuser
12 | *.mode1v3
13 | !default.mode1v3
14 | *.mode2v3
15 | !default.mode2v3
16 | *.perspectivev3
17 | !default.perspectivev3
18 | xcuserdata
19 |
20 | ## Other
21 | *.xccheckout
22 | *.moved-aside
23 | *.xcuserstate
24 | *.xcscmblueprint
25 |
26 | ## Obj-C/Swift specific
27 | *.hmap
28 | *.ipa
29 |
30 | # CocoaPods
31 | #
32 | # We recommend against adding the Pods directory to your .gitignore. However
33 | # you should judge for yourself, the pros and cons are mentioned at:
34 | # http://guides.cocoapods.org/using/using-cocoapods.html#should-i-check-the-pods-directory-into-source-control
35 | #
36 | Pods/
37 |
38 | # Carthage
39 | #
40 | # Add this line if you want to avoid checking in source code from Carthage dependencies.
41 | # Carthage/Checkouts
42 |
43 | Carthage/Build
44 |
--------------------------------------------------------------------------------
/Documents/images/e-6p-1.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/sinabio/Eleven/eb1fd61a278bc36f8201e5b5a6a49c0b63ba2732/Documents/images/e-6p-1.png
--------------------------------------------------------------------------------
/Documents/images/e-6p-2.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/sinabio/Eleven/eb1fd61a278bc36f8201e5b5a6a49c0b63ba2732/Documents/images/e-6p-2.png
--------------------------------------------------------------------------------
/Documents/images/e-6p-3.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/sinabio/Eleven/eb1fd61a278bc36f8201e5b5a6a49c0b63ba2732/Documents/images/e-6p-3.png
--------------------------------------------------------------------------------
/Documents/images/e-6p-4.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/sinabio/Eleven/eb1fd61a278bc36f8201e5b5a6a49c0b63ba2732/Documents/images/e-6p-4.png
--------------------------------------------------------------------------------
/Documents/images/e-6p-5.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/sinabio/Eleven/eb1fd61a278bc36f8201e5b5a6a49c0b63ba2732/Documents/images/e-6p-5.png
--------------------------------------------------------------------------------
/Eleven.xcodeproj/project.xcworkspace/contents.xcworkspacedata:
--------------------------------------------------------------------------------
1 |
2 |
4 |
6 |
7 |
8 |
--------------------------------------------------------------------------------
/Eleven.xcworkspace/contents.xcworkspacedata:
--------------------------------------------------------------------------------
1 |
2 |
4 |
6 |
7 |
9 |
10 |
11 |
--------------------------------------------------------------------------------
/Eleven/AppDelegate.h:
--------------------------------------------------------------------------------
1 | //
2 | // AppDelegate.h
3 | // Eleven
4 | //
5 | // Created by coderyi on 15/8/18.
6 | // Copyright (c) 2015年 coderyi. All rights reserved.
7 | //
8 |
9 | #import
10 | @interface AppDelegate : UIResponder
11 |
12 | @property (strong, nonatomic) UIWindow *window;
13 |
14 |
15 | @end
16 |
17 |
--------------------------------------------------------------------------------
/Eleven/Base.lproj/Main.storyboard:
--------------------------------------------------------------------------------
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 |
--------------------------------------------------------------------------------
/Eleven/Classes/Common/AppGenernal/AppConfig.h:
--------------------------------------------------------------------------------
1 | //
2 | // AppConfig.h
3 | // Monkey
4 | //
5 | // Created by coderyi on 15/7/11.
6 | // Copyright (c) 2015年 www.coderyi.com. All rights reserved.
7 | //
8 |
9 | #ifndef Monkey_AppConfig_h
10 | #define Monkey_AppConfig_h
11 |
12 | /**
13 | * define
14 | */
15 |
16 | #define ScreenHeight [[UIScreen mainScreen] bounds].size.height
17 | #define ScreenWidth [[UIScreen mainScreen] bounds].size.width
18 | #define iOS7GE [[[UIDevice currentDevice]systemVersion] floatValue] >= 7.0
19 | #define ApplicationDelegate ((AppDelegate *)[UIApplication sharedApplication].delegate)
20 |
21 | //我喜欢的蓝色
22 | #define YiBlue [UIColor colorWithRed:0.24f green:0.51f blue:0.78f alpha:1.00f]
23 | //灰色
24 | #define YiGray [UIColor colorWithRed:0.80f green:0.80f blue:0.80f alpha:1.00f]
25 | #define YiTextGray [UIColor colorWithRed:0.54f green:0.54f blue:0.54f alpha:1.00f]
26 | #define YiRed [UIColor colorWithRed:0.93 green:0.41 blue:0.36 alpha:1]
27 |
28 | // block self
29 | #define WEAKSELF typeof(self) __weak weakSelf = self;
30 | #define STRONGSELF typeof(weakSelf) __strong strongSelf = weakSelf;
31 |
32 | #define YKClientId @"bf5803ceb7daf89c"
33 |
34 | #endif
35 |
36 |
37 |
38 |
--------------------------------------------------------------------------------
/Eleven/Classes/Common/AppGenernal/AppPrefixFile.h:
--------------------------------------------------------------------------------
1 |
2 | //
3 | // PrefixFile.h
4 | // Monkey
5 | //
6 | // Created by coderyi on 15/7/11.
7 | // Copyright (c) 2015年 www.coderyi.com. All rights reserved.
8 | //
9 |
10 | #ifndef Monkey_PrefixFile_h
11 | #define Monkey_PrefixFile_h
12 |
13 | /**
14 | * header
15 | */
16 | #import "AppDelegate.h"
17 |
18 | #import "NSObject+HUD.h"
19 | #import "NSObject+JudgeNull.h"
20 |
21 | #endif
22 |
--------------------------------------------------------------------------------
/Eleven/Classes/Common/Base/BaseNavigationController.h:
--------------------------------------------------------------------------------
1 | //
2 | // BaseNavigationController.h
3 | // Eleven
4 | //
5 | // Created by coderyi on 15/8/18.
6 | // Copyright (c) 2015年 coderyi. All rights reserved.
7 | //
8 |
9 | #import
10 |
11 | @interface BaseNavigationController : UINavigationController
12 | - (void)showMenu;
13 | @end
14 |
--------------------------------------------------------------------------------
/Eleven/Classes/Common/Base/BaseNavigationController.m:
--------------------------------------------------------------------------------
1 | //
2 | // BaseNavigationController.m
3 | // Eleven
4 | //
5 | // Created by coderyi on 15/8/18.
6 | // Copyright (c) 2015年 coderyi. All rights reserved.
7 | //
8 |
9 | #import "BaseNavigationController.h"
10 | #import "MenuTableViewController.h"
11 | #import "REFrostedViewController.h"
12 |
13 | #import "UIViewController+REFrostedViewController.h"
14 | @interface BaseNavigationController ()
15 | @property (strong, readwrite, nonatomic) MenuTableViewController *menuViewController;
16 |
17 | @end
18 |
19 | @implementation BaseNavigationController
20 |
21 | - (void)viewDidLoad
22 | {
23 | [super viewDidLoad];
24 | // [self.view addGestureRecognizer:[[UIPanGestureRecognizer alloc] initWithTarget:self action:@selector(panGestureRecognized:)]];
25 | }
26 |
27 | - (void)showMenu
28 | {
29 | // Dismiss keyboard (optional)
30 | //
31 | [self.view endEditing:YES];
32 | [self.frostedViewController.view endEditing:YES];
33 |
34 | // Present the view controller
35 | //
36 | [self.frostedViewController presentMenuViewController];
37 | }
38 |
39 | #pragma mark -
40 | #pragma mark Gesture recognizer
41 |
42 | - (void)panGestureRecognized:(UIPanGestureRecognizer *)sender
43 | {
44 | // Dismiss keyboard (optional)
45 | //
46 | [self.view endEditing:YES];
47 | [self.frostedViewController.view endEditing:YES];
48 |
49 | // Present the view controller
50 | //
51 | [self.frostedViewController panGestureRecognized:sender];
52 | }
53 |
54 |
55 | @end
56 |
--------------------------------------------------------------------------------
/Eleven/Classes/Common/ViewControllers/MenuTableViewController.h:
--------------------------------------------------------------------------------
1 | //
2 | // MenuTableViewController.h
3 | // Eleven
4 | //
5 | // Created by coderyi on 15/8/18.
6 | // Copyright (c) 2015年 coderyi. All rights reserved.
7 | //
8 |
9 | #import
10 |
11 | @interface MenuTableViewController : UITableViewController
12 |
13 | @end
14 |
--------------------------------------------------------------------------------
/Eleven/Classes/Module/LocalFile/FileModel.h:
--------------------------------------------------------------------------------
1 | //
2 | // FileModel.h
3 | // Eleven
4 | //
5 | // Created by coderyi on 15/8/21.
6 | // Copyright (c) 2015年 coderyi. All rights reserved.
7 | //
8 |
9 | #import
10 |
11 | @interface FileModel : NSObject
12 |
13 | @property(nonatomic,assign) long fileSize;
14 | @property(nonatomic,strong) NSString *fileModificationDate;
15 | @property(nonatomic,strong) NSString *fileCreationDate;
16 | @property(nonatomic,strong) NSString *path;
17 | @property(nonatomic,strong) NSString *name;
18 | @property(nonatomic,strong) NSString *title;
19 | @property(nonatomic,strong) NSString *fileType;
20 | @end
21 |
--------------------------------------------------------------------------------
/Eleven/Classes/Module/LocalFile/FileModel.m:
--------------------------------------------------------------------------------
1 | //
2 | // FileModel.m
3 | // Eleven
4 | //
5 | // Created by coderyi on 15/8/21.
6 | // Copyright (c) 2015年 coderyi. All rights reserved.
7 | //
8 |
9 | #import "FileModel.h"
10 |
11 | @implementation FileModel
12 |
13 | @end
14 |
--------------------------------------------------------------------------------
/Eleven/Classes/Module/LocalFile/LocalFileViewController.h:
--------------------------------------------------------------------------------
1 | //
2 | // LocalFileViewController.h
3 | // Eleven
4 | //
5 | // Created by coderyi on 15/8/18.
6 | // Copyright (c) 2015年 coderyi. All rights reserved.
7 | //
8 |
9 | #import
10 |
11 | @interface LocalFileViewController : UIViewController
12 |
13 | @end
14 |
--------------------------------------------------------------------------------
/Eleven/Classes/Module/LocalFile/LocalFileViewModel.h:
--------------------------------------------------------------------------------
1 | //
2 | // LocalFileViewModel.h
3 | // Eleven
4 | //
5 | // Created by coderyi on 15/8/21.
6 | // Copyright (c) 2015年 coderyi. All rights reserved.
7 | //
8 |
9 | #import
10 |
11 | @interface LocalFileViewModel : NSObject
12 | - (NSArray *)getLocalVideoFiles;
13 |
14 | - (NSArray *)getLocalFiles;
15 |
16 | - (BOOL)removeLocalFile:(NSString *)localFile;
17 | @end
18 |
--------------------------------------------------------------------------------
/Eleven/Classes/Module/LocalFile/LocalFileViewModel.m:
--------------------------------------------------------------------------------
1 | //
2 | // LocalFileViewModel.m
3 | // Eleven
4 | //
5 | // Created by coderyi on 15/8/21.
6 | // Copyright (c) 2015年 coderyi. All rights reserved.
7 | //
8 |
9 | #import "LocalFileViewModel.h"
10 | #import "FileModel.h"
11 | @implementation LocalFileViewModel
12 | - (NSArray *)getLocalVideoFiles{
13 |
14 | NSArray *paths = NSSearchPathForDirectoriesInDomains(NSDocumentDirectory, NSUserDomainMask, YES);
15 | NSString *ducumentsDirectory = [paths objectAtIndex:0];
16 | NSFileManager *fileManager = [NSFileManager defaultManager];
17 | NSArray *contents = [fileManager contentsOfDirectoryAtPath:ducumentsDirectory error:NULL];
18 | FileModel *fileModel;
19 | NSMutableArray *videoArrays=[NSMutableArray array];
20 | for (int i=0; i0) {
43 | fileModel.fileType=[range lastObject];
44 |
45 | }
46 | fileModel.title=fileModel.name;
47 | [videoArrays addObject:fileModel];
48 |
49 |
50 | }
51 |
52 | return videoArrays;
53 |
54 | }
55 | - (NSArray *)getLocalFiles{
56 |
57 | NSArray *paths = NSSearchPathForDirectoriesInDomains(NSDocumentDirectory, NSUserDomainMask, YES);
58 | NSString *ducumentsDirectory = [paths objectAtIndex:0];
59 | NSFileManager *fileManager = [NSFileManager defaultManager];
60 | NSArray *contents = [fileManager contentsOfDirectoryAtPath:ducumentsDirectory error:NULL];
61 |
62 | return contents;
63 |
64 | }
65 |
66 | - (BOOL)removeLocalFile:(NSString *)localFile{
67 |
68 | NSFileManager *fileManager = [NSFileManager defaultManager];
69 |
70 | BOOL res=[fileManager removeItemAtPath:localFile error:nil];
71 | if (res) {
72 | NSLog(@"文件删除成功");
73 | }else
74 | NSLog(@"文件删除失败");
75 | NSLog(@"文件是否存在: %@",[fileManager isExecutableFileAtPath:localFile]?@"YES":@"NO");
76 |
77 |
78 | return ![fileManager isExecutableFileAtPath:localFile];
79 |
80 | }
81 | @end
82 |
--------------------------------------------------------------------------------
/Eleven/Classes/Module/LocalFile/WifiViewController.h:
--------------------------------------------------------------------------------
1 | //
2 | // WifiViewController.h
3 | // Eleven
4 | //
5 | // Created by coderyi on 15/8/24.
6 | // Copyright (c) 2015年 coderyi. All rights reserved.
7 | //
8 |
9 | #import
10 |
11 | @interface WifiViewController : UIViewController
12 |
13 | @end
14 |
--------------------------------------------------------------------------------
/Eleven/Classes/Module/More/MoreViewController.h:
--------------------------------------------------------------------------------
1 | //
2 | // MoreViewController.h
3 | // Eleven
4 | //
5 | // Created by coderyi on 15/8/24.
6 | // Copyright (c) 2015年 coderyi. All rights reserved.
7 | //
8 |
9 | #import
10 |
11 | @interface MoreViewController : UIViewController
12 |
13 | @end
14 |
--------------------------------------------------------------------------------
/Eleven/Classes/Module/More/MoreViewController.m:
--------------------------------------------------------------------------------
1 | //
2 | // MoreViewController.m
3 | // Eleven
4 | //
5 | // Created by coderyi on 15/8/24.
6 | // Copyright (c) 2015年 coderyi. All rights reserved.
7 | //
8 |
9 | #import "MoreViewController.h"
10 | #import "BaseNavigationController.h"
11 |
12 | @interface MoreViewController ()
13 |
14 | @end
15 |
16 | @implementation MoreViewController
17 |
18 | - (void)viewDidLoad {
19 | [super viewDidLoad];
20 | self.title=NSLocalizedString(@"More", nil);
21 | // Do any additional setup after loading the view.
22 | self.navigationItem.leftBarButtonItem = [[UIBarButtonItem alloc] initWithTitle:@"Menu"
23 | style:UIBarButtonItemStylePlain
24 | target:(BaseNavigationController *)self.navigationController
25 | action:@selector(showMenu)];
26 |
27 |
28 |
29 | UILabel *label=[[UILabel alloc] initWithFrame:CGRectMake((ScreenWidth-310)/2, 150, 310, 150)];
30 | [self.view addSubview:label];
31 | label.textAlignment=NSTextAlignmentCenter;
32 | label.font=[UIFont systemFontOfSize:13];
33 | label.textColor=YiTextGray;
34 | label.numberOfLines=0;
35 | label.text=@"Eleven是“十一”,“十一”二字取自“德”字。,由彳(chi)、十、目、一、心组成。\n十,指代直线,正确的标的方向。一,惟初太始。道立于一,造分天地,化成万物。\n\nEleven open source:\nhttps://github.com/coderyi/Eleven\n\nemail:coderyi@foxmail.com";
36 |
37 | }
38 |
39 | - (void)didReceiveMemoryWarning {
40 | [super didReceiveMemoryWarning];
41 | // Dispose of any resources that can be recreated.
42 | }
43 |
44 | /*
45 | #pragma mark - Navigation
46 |
47 | // In a storyboard-based application, you will often want to do a little preparation before navigation
48 | - (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender {
49 | // Get the new view controller using [segue destinationViewController].
50 | // Pass the selected object to the new view controller.
51 | }
52 | */
53 |
54 | @end
55 |
--------------------------------------------------------------------------------
/Eleven/Classes/Module/NetworkVideo/NetworkViewController.h:
--------------------------------------------------------------------------------
1 | //
2 | // NetworkViewController.h
3 | // Eleven
4 | //
5 | // Created by coderyi on 15/8/21.
6 | // Copyright (c) 2015年 coderyi. All rights reserved.
7 | //
8 |
9 | #import
10 |
11 | @interface NetworkViewController : UIViewController
12 |
13 | @end
14 |
--------------------------------------------------------------------------------
/Eleven/Eleven-Prefix.pch:
--------------------------------------------------------------------------------
1 | //
2 | // Eleven-Prefix.pch
3 | // Eleven
4 | //
5 | // Created by coderyi on 15/8/18.
6 | // Copyright (c) 2015年 coderyi. All rights reserved.
7 | //
8 |
9 | #ifndef Eleven_Eleven_Prefix_pch
10 | #define Eleven_Eleven_Prefix_pch
11 |
12 | // Include any system framework and library headers here that should be included in all compilation units.
13 | // You will also need to set the Prefix Header build setting of one or more of your targets to reference this file.
14 |
15 | #endif
16 | #ifdef __OBJC__
17 | #import
18 | #import
19 | #endif
20 | #import "AppConfig.h"
21 | #import "AppPrefixFile.h"
--------------------------------------------------------------------------------
/Eleven/ElevenKit/Category/NSObject+HUD.h:
--------------------------------------------------------------------------------
1 | //
2 | // NSObject+Extend.h
3 | // GitHubYi
4 | //
5 | // Created by coderyi on 15/3/24.
6 | // Copyright (c) 2015年 www.coderyi.com. All rights reserved.
7 | //
8 |
9 | #import
10 |
11 | @interface NSObject (HUD)
12 |
13 | - (void)showYiProgressHUD:(NSString *)title afterDelay:(NSTimeInterval)delay;
14 | - (void)showYiProgressHUD:(NSString *)title;
15 | - (void)hideYiProgressHUD;
16 |
17 | @end
18 |
--------------------------------------------------------------------------------
/Eleven/ElevenKit/Category/NSObject+HUD.m:
--------------------------------------------------------------------------------
1 | //
2 | // NSObject+Extend.m
3 | // GitHubYi
4 | //
5 | // Created by coderyi on 15/3/24.
6 | // Copyright (c) 2015年 www.coderyi.com. All rights reserved.
7 | //
8 |
9 | #import "NSObject+HUD.h"
10 | UIAlertView *alertView;
11 | @implementation NSObject (HUD)
12 | - (void)showYiProgressHUD:(NSString *)title afterDelay:(NSTimeInterval)delay{
13 | [self showYiProgressHUD:title];
14 |
15 | [NSTimer scheduledTimerWithTimeInterval:delay
16 | target:self
17 | selector:@selector(hideYiProgressHUD:)
18 | userInfo:nil
19 | repeats:NO];
20 |
21 |
22 | }
23 | - (void)showYiProgressHUD:(NSString *)title{
24 | alertView = [[UIAlertView alloc] initWithTitle:@""
25 | message:title
26 | delegate:nil
27 | cancelButtonTitle:nil otherButtonTitles:nil, nil];
28 |
29 |
30 |
31 | [alertView show];
32 | }
33 | - (void)hideYiProgressHUD{
34 | [self hideYiProgressHUD:nil];
35 |
36 | }
37 | - (void)hideYiProgressHUD:(NSTimer*)timer {
38 | NSLog(@"Dismiss alert view");
39 |
40 | [alertView dismissWithClickedButtonIndex:0 animated:YES];
41 | }
42 | @end
43 |
--------------------------------------------------------------------------------
/Eleven/ElevenKit/Category/NSObject+JudgeNull.h:
--------------------------------------------------------------------------------
1 | //
2 | // NSObject+JudgeNull.h
3 | // Monkey
4 | //
5 | // Created by coderyi on 15/7/11.
6 | // Copyright (c) 2015年 www.coderyi.com. All rights reserved.
7 | //
8 |
9 | #import
10 |
11 | @interface NSObject (JudgeNull)
12 | - (BOOL)isNull;
13 | @end
14 |
--------------------------------------------------------------------------------
/Eleven/ElevenKit/Category/NSObject+JudgeNull.m:
--------------------------------------------------------------------------------
1 | //
2 | // NSObject+JudgeNull.m
3 | // Monkey
4 | //
5 | // Created by coderyi on 15/7/11.
6 | // Copyright (c) 2015年 www.coderyi.com. All rights reserved.
7 | //
8 |
9 | #import "NSObject+JudgeNull.h"
10 |
11 | @implementation NSObject (JudgeNull)
12 | //判断对象是否为空
13 | - (BOOL)isNull
14 | {
15 | if ([self isEqual:[NSNull null]])
16 | {
17 | return YES;
18 | }
19 | else
20 | {
21 | if ([self isKindOfClass:[NSNull class]])
22 | {
23 | return YES;
24 | }
25 | else
26 | {
27 | if (self==nil)
28 | {
29 | return YES;
30 | }
31 | }
32 | }
33 | if ([self isKindOfClass:[NSString class]]) {
34 | if ([((NSString *)self) isEqualToString:@"(null)"]) {
35 | return YES;
36 | }
37 | }
38 | return NO;
39 | }
40 |
41 | @end
42 |
--------------------------------------------------------------------------------
/Eleven/ElevenKit/HistoryManager/HistoryArchive.h:
--------------------------------------------------------------------------------
1 | //
2 | // HistoryArchive.h
3 | // Eleven
4 | //
5 | // Created by coderyi on 15/8/24.
6 | // Copyright (c) 2015年 coderyi. All rights reserved.
7 | //
8 |
9 | #import
10 |
11 | @interface HistoryArchive : NSObject
12 | - (void)saveArr:(NSArray *)array;//保存数组与归档
13 | - (NSArray *)loadArchives;//解档得到数组
14 | @end
15 |
--------------------------------------------------------------------------------
/Eleven/ElevenKit/HistoryManager/HistoryArchive.m:
--------------------------------------------------------------------------------
1 | //
2 | // HistoryArchive.m
3 | // Eleven
4 | //
5 | // Created by coderyi on 15/8/24.
6 | // Copyright (c) 2015年 coderyi. All rights reserved.
7 | //
8 |
9 | #import "HistoryArchive.h"
10 | static NSString * const kHistoryArchiveKey = @"historyArchive";
11 | @implementation HistoryArchive
12 | - (NSString *)cacheDir{
13 |
14 | NSString *addressPath=[NSString stringWithFormat:@"%@/%@",[NSSearchPathForDirectoriesInDomains(NSCachesDirectory, NSUserDomainMask, YES)lastObject],@"cache1"];
15 | return addressPath;
16 |
17 | }
18 |
19 | //保存数组与归档
20 | - (void)saveArr:(NSArray *)array {
21 |
22 |
23 | //归档
24 | NSMutableData *data = [[NSMutableData alloc] init];
25 | NSKeyedArchiver *archiver = [[NSKeyedArchiver alloc] initForWritingWithMutableData:data];
26 |
27 | [archiver encodeObject:array forKey:kHistoryArchiveKey]; // archivingData的encodeWithCoder
28 |
29 | [archiver finishEncoding];
30 | //写入文件
31 | [data writeToFile:[self cacheDir] atomically:YES];
32 | }
33 |
34 |
35 | //解档得到数组
36 | - (NSArray *)loadArchives{
37 | NSData *data = [[NSMutableData alloc] initWithContentsOfFile:[self cacheDir]];
38 | NSKeyedUnarchiver *unarchiver = [[NSKeyedUnarchiver alloc] initForReadingWithData:data];
39 |
40 | //获得数组
41 | NSArray *archivingData = [unarchiver decodeObjectForKey:kHistoryArchiveKey];// initWithCoder方法被调用
42 | [unarchiver finishDecoding];
43 |
44 | return archivingData;
45 | }
46 |
47 |
48 | @end
49 |
--------------------------------------------------------------------------------
/Eleven/ElevenKit/WifiManger/WifiManager.h:
--------------------------------------------------------------------------------
1 | //
2 | // WifiManager.h
3 | // Eleven
4 | //
5 | // Created by coderyi on 15/8/25.
6 | // Copyright (c) 2015年 coderyi. All rights reserved.
7 | //
8 |
9 | #import
10 | #import "HTTPServer.h"
11 | @interface WifiManager : NSObject
12 | @property(strong,nonatomic) HTTPServer *httpServer;
13 | @property(assign,nonatomic) BOOL serverStatus;
14 | + (instancetype)sharedInstance;
15 | - (void)operateServer:(BOOL)status;
16 | @end
17 |
--------------------------------------------------------------------------------
/Eleven/ElevenKit/WifiManger/WifiManager.m:
--------------------------------------------------------------------------------
1 |
2 | //
3 | // WifiManager.m
4 | // Eleven
5 | //
6 | // Created by coderyi on 15/8/25.
7 | // Copyright (c) 2015年 coderyi. All rights reserved.
8 | //
9 |
10 | #import "WifiManager.h"
11 |
12 | @interface WifiManager (){
13 |
14 |
15 | }
16 |
17 | @end
18 |
19 | @implementation WifiManager
20 | @synthesize httpServer;
21 | + (instancetype)sharedInstance {
22 | static WifiManager *_sharedInstance = nil;
23 | static dispatch_once_t onceToken;
24 | dispatch_once(&onceToken, ^{
25 | _sharedInstance = [[WifiManager alloc] init];
26 |
27 |
28 | });
29 |
30 | return _sharedInstance;
31 | }
32 |
33 | - (instancetype)init{
34 | self = [super init];
35 | if (self) {
36 | httpServer = [[HTTPServer alloc] init];
37 | [httpServer setType:@"_http._tcp."];
38 | [httpServer setPort:8080];
39 | [httpServer setName:@"CocoaWebResource"];
40 | [httpServer setupBuiltInDocroot];
41 |
42 |
43 | }
44 | return self;
45 | }
46 | - (void)operateServer:(BOOL)status
47 | {
48 | NSError *error;
49 | if (status)
50 | {
51 | BOOL serverIsRunning = [httpServer start:&error];
52 | if(!serverIsRunning)
53 | {
54 | NSLog(@"Error starting HTTP Server: %@", error);
55 | }
56 | }
57 | else
58 | {
59 | [httpServer stop];
60 | }
61 | }
62 | - (void)dealloc {
63 | httpServer.fileResourceDelegate = nil;
64 |
65 | }
66 |
67 |
68 |
69 |
70 |
71 |
72 | @end
73 |
--------------------------------------------------------------------------------
/Eleven/Images.xcassets/AppIcon.appiconset/Contents.json:
--------------------------------------------------------------------------------
1 | {
2 | "images" : [
3 | {
4 | "size" : "29x29",
5 | "idiom" : "iphone",
6 | "filename" : "icon-29.png",
7 | "scale" : "1x"
8 | },
9 | {
10 | "size" : "29x29",
11 | "idiom" : "iphone",
12 | "filename" : "icon-29-2.png",
13 | "scale" : "2x"
14 | },
15 | {
16 | "size" : "29x29",
17 | "idiom" : "iphone",
18 | "filename" : "icon-29-3.png",
19 | "scale" : "3x"
20 | },
21 | {
22 | "size" : "40x40",
23 | "idiom" : "iphone",
24 | "filename" : "icon.png",
25 | "scale" : "2x"
26 | },
27 | {
28 | "size" : "40x40",
29 | "idiom" : "iphone",
30 | "filename" : "icon-40-3.png",
31 | "scale" : "3x"
32 | },
33 | {
34 | "size" : "57x57",
35 | "idiom" : "iphone",
36 | "filename" : "icon-57.png",
37 | "scale" : "1x"
38 | },
39 | {
40 | "size" : "57x57",
41 | "idiom" : "iphone",
42 | "filename" : "icon-57-2.png",
43 | "scale" : "2x"
44 | },
45 | {
46 | "size" : "60x60",
47 | "idiom" : "iphone",
48 | "filename" : "icon-60-2.png",
49 | "scale" : "2x"
50 | },
51 | {
52 | "size" : "60x60",
53 | "idiom" : "iphone",
54 | "filename" : "icon-60-3.png",
55 | "scale" : "3x"
56 | },
57 | {
58 | "size" : "29x29",
59 | "idiom" : "ipad",
60 | "filename" : "icon-29-1.png",
61 | "scale" : "1x"
62 | },
63 | {
64 | "size" : "29x29",
65 | "idiom" : "ipad",
66 | "filename" : "icon-29-2-1.png",
67 | "scale" : "2x"
68 | },
69 | {
70 | "size" : "40x40",
71 | "idiom" : "ipad",
72 | "filename" : "icon-40.png",
73 | "scale" : "1x"
74 | },
75 | {
76 | "size" : "40x40",
77 | "idiom" : "ipad",
78 | "filename" : "icon-40-2.png",
79 | "scale" : "2x"
80 | },
81 | {
82 | "size" : "50x50",
83 | "idiom" : "ipad",
84 | "filename" : "icon-50.png",
85 | "scale" : "1x"
86 | },
87 | {
88 | "size" : "50x50",
89 | "idiom" : "ipad",
90 | "filename" : "icon-50-2.png",
91 | "scale" : "2x"
92 | },
93 | {
94 | "size" : "72x72",
95 | "idiom" : "ipad",
96 | "filename" : "icon-72.png",
97 | "scale" : "1x"
98 | },
99 | {
100 | "size" : "72x72",
101 | "idiom" : "ipad",
102 | "filename" : "icon-72-2.png",
103 | "scale" : "2x"
104 | },
105 | {
106 | "size" : "76x76",
107 | "idiom" : "ipad",
108 | "filename" : "icon-76.png",
109 | "scale" : "1x"
110 | },
111 | {
112 | "size" : "76x76",
113 | "idiom" : "ipad",
114 | "filename" : "icon-76-2.png",
115 | "scale" : "2x"
116 | },
117 | {
118 | "idiom" : "car",
119 | "size" : "120x120",
120 | "scale" : "1x"
121 | },
122 | {
123 | "size" : "24x24",
124 | "idiom" : "watch",
125 | "scale" : "2x",
126 | "role" : "notificationCenter",
127 | "subtype" : "38mm"
128 | },
129 | {
130 | "size" : "27.5x27.5",
131 | "idiom" : "watch",
132 | "scale" : "2x",
133 | "role" : "notificationCenter",
134 | "subtype" : "42mm"
135 | },
136 | {
137 | "size" : "29x29",
138 | "idiom" : "watch",
139 | "role" : "companionSettings",
140 | "scale" : "2x"
141 | },
142 | {
143 | "size" : "29x29",
144 | "idiom" : "watch",
145 | "role" : "companionSettings",
146 | "scale" : "3x"
147 | },
148 | {
149 | "size" : "40x40",
150 | "idiom" : "watch",
151 | "scale" : "2x",
152 | "role" : "appLauncher",
153 | "subtype" : "38mm"
154 | },
155 | {
156 | "size" : "44x44",
157 | "idiom" : "watch",
158 | "scale" : "2x",
159 | "role" : "longLook",
160 | "subtype" : "42mm"
161 | },
162 | {
163 | "size" : "86x86",
164 | "idiom" : "watch",
165 | "scale" : "2x",
166 | "role" : "quickLook",
167 | "subtype" : "38mm"
168 | },
169 | {
170 | "size" : "98x98",
171 | "idiom" : "watch",
172 | "scale" : "2x",
173 | "role" : "quickLook",
174 | "subtype" : "42mm"
175 | }
176 | ],
177 | "info" : {
178 | "version" : 1,
179 | "author" : "xcode"
180 | }
181 | }
--------------------------------------------------------------------------------
/Eleven/Images.xcassets/AppIcon.appiconset/icon-29-1.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/sinabio/Eleven/eb1fd61a278bc36f8201e5b5a6a49c0b63ba2732/Eleven/Images.xcassets/AppIcon.appiconset/icon-29-1.png
--------------------------------------------------------------------------------
/Eleven/Images.xcassets/AppIcon.appiconset/icon-29-2-1.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/sinabio/Eleven/eb1fd61a278bc36f8201e5b5a6a49c0b63ba2732/Eleven/Images.xcassets/AppIcon.appiconset/icon-29-2-1.png
--------------------------------------------------------------------------------
/Eleven/Images.xcassets/AppIcon.appiconset/icon-29-2.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/sinabio/Eleven/eb1fd61a278bc36f8201e5b5a6a49c0b63ba2732/Eleven/Images.xcassets/AppIcon.appiconset/icon-29-2.png
--------------------------------------------------------------------------------
/Eleven/Images.xcassets/AppIcon.appiconset/icon-29-3.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/sinabio/Eleven/eb1fd61a278bc36f8201e5b5a6a49c0b63ba2732/Eleven/Images.xcassets/AppIcon.appiconset/icon-29-3.png
--------------------------------------------------------------------------------
/Eleven/Images.xcassets/AppIcon.appiconset/icon-29.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/sinabio/Eleven/eb1fd61a278bc36f8201e5b5a6a49c0b63ba2732/Eleven/Images.xcassets/AppIcon.appiconset/icon-29.png
--------------------------------------------------------------------------------
/Eleven/Images.xcassets/AppIcon.appiconset/icon-40-2.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/sinabio/Eleven/eb1fd61a278bc36f8201e5b5a6a49c0b63ba2732/Eleven/Images.xcassets/AppIcon.appiconset/icon-40-2.png
--------------------------------------------------------------------------------
/Eleven/Images.xcassets/AppIcon.appiconset/icon-40-3.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/sinabio/Eleven/eb1fd61a278bc36f8201e5b5a6a49c0b63ba2732/Eleven/Images.xcassets/AppIcon.appiconset/icon-40-3.png
--------------------------------------------------------------------------------
/Eleven/Images.xcassets/AppIcon.appiconset/icon-40.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/sinabio/Eleven/eb1fd61a278bc36f8201e5b5a6a49c0b63ba2732/Eleven/Images.xcassets/AppIcon.appiconset/icon-40.png
--------------------------------------------------------------------------------
/Eleven/Images.xcassets/AppIcon.appiconset/icon-50-2.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/sinabio/Eleven/eb1fd61a278bc36f8201e5b5a6a49c0b63ba2732/Eleven/Images.xcassets/AppIcon.appiconset/icon-50-2.png
--------------------------------------------------------------------------------
/Eleven/Images.xcassets/AppIcon.appiconset/icon-50.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/sinabio/Eleven/eb1fd61a278bc36f8201e5b5a6a49c0b63ba2732/Eleven/Images.xcassets/AppIcon.appiconset/icon-50.png
--------------------------------------------------------------------------------
/Eleven/Images.xcassets/AppIcon.appiconset/icon-57-2.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/sinabio/Eleven/eb1fd61a278bc36f8201e5b5a6a49c0b63ba2732/Eleven/Images.xcassets/AppIcon.appiconset/icon-57-2.png
--------------------------------------------------------------------------------
/Eleven/Images.xcassets/AppIcon.appiconset/icon-57.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/sinabio/Eleven/eb1fd61a278bc36f8201e5b5a6a49c0b63ba2732/Eleven/Images.xcassets/AppIcon.appiconset/icon-57.png
--------------------------------------------------------------------------------
/Eleven/Images.xcassets/AppIcon.appiconset/icon-60-2.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/sinabio/Eleven/eb1fd61a278bc36f8201e5b5a6a49c0b63ba2732/Eleven/Images.xcassets/AppIcon.appiconset/icon-60-2.png
--------------------------------------------------------------------------------
/Eleven/Images.xcassets/AppIcon.appiconset/icon-60-3.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/sinabio/Eleven/eb1fd61a278bc36f8201e5b5a6a49c0b63ba2732/Eleven/Images.xcassets/AppIcon.appiconset/icon-60-3.png
--------------------------------------------------------------------------------
/Eleven/Images.xcassets/AppIcon.appiconset/icon-72-2.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/sinabio/Eleven/eb1fd61a278bc36f8201e5b5a6a49c0b63ba2732/Eleven/Images.xcassets/AppIcon.appiconset/icon-72-2.png
--------------------------------------------------------------------------------
/Eleven/Images.xcassets/AppIcon.appiconset/icon-72.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/sinabio/Eleven/eb1fd61a278bc36f8201e5b5a6a49c0b63ba2732/Eleven/Images.xcassets/AppIcon.appiconset/icon-72.png
--------------------------------------------------------------------------------
/Eleven/Images.xcassets/AppIcon.appiconset/icon-76-2.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/sinabio/Eleven/eb1fd61a278bc36f8201e5b5a6a49c0b63ba2732/Eleven/Images.xcassets/AppIcon.appiconset/icon-76-2.png
--------------------------------------------------------------------------------
/Eleven/Images.xcassets/AppIcon.appiconset/icon-76.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/sinabio/Eleven/eb1fd61a278bc36f8201e5b5a6a49c0b63ba2732/Eleven/Images.xcassets/AppIcon.appiconset/icon-76.png
--------------------------------------------------------------------------------
/Eleven/Images.xcassets/AppIcon.appiconset/icon.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/sinabio/Eleven/eb1fd61a278bc36f8201e5b5a6a49c0b63ba2732/Eleven/Images.xcassets/AppIcon.appiconset/icon.png
--------------------------------------------------------------------------------
/Eleven/Images.xcassets/Eleven.imageset/Contents.json:
--------------------------------------------------------------------------------
1 | {
2 | "images" : [
3 | {
4 | "idiom" : "universal",
5 | "scale" : "1x",
6 | "filename" : "Eleven.png"
7 | },
8 | {
9 | "idiom" : "universal",
10 | "scale" : "2x"
11 | },
12 | {
13 | "idiom" : "universal",
14 | "scale" : "3x"
15 | }
16 | ],
17 | "info" : {
18 | "version" : 1,
19 | "author" : "xcode"
20 | }
21 | }
--------------------------------------------------------------------------------
/Eleven/Images.xcassets/Eleven.imageset/Eleven.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/sinabio/Eleven/eb1fd61a278bc36f8201e5b5a6a49c0b63ba2732/Eleven/Images.xcassets/Eleven.imageset/Eleven.png
--------------------------------------------------------------------------------
/Eleven/Images.xcassets/LaunchImage-2.launchimage/Contents.json:
--------------------------------------------------------------------------------
1 | {
2 | "images" : [
3 | {
4 | "orientation" : "portrait",
5 | "idiom" : "ipad",
6 | "minimum-system-version" : "7.0",
7 | "extent" : "full-screen",
8 | "scale" : "2x"
9 | },
10 | {
11 | "orientation" : "landscape",
12 | "idiom" : "ipad",
13 | "minimum-system-version" : "7.0",
14 | "extent" : "full-screen",
15 | "scale" : "1x"
16 | },
17 | {
18 | "orientation" : "landscape",
19 | "idiom" : "ipad",
20 | "minimum-system-version" : "7.0",
21 | "extent" : "full-screen",
22 | "scale" : "2x"
23 | },
24 | {
25 | "orientation" : "portrait",
26 | "idiom" : "iphone",
27 | "minimum-system-version" : "7.0",
28 | "scale" : "2x"
29 | },
30 | {
31 | "orientation" : "portrait",
32 | "idiom" : "iphone",
33 | "minimum-system-version" : "7.0",
34 | "subtype" : "retina4",
35 | "scale" : "2x"
36 | },
37 | {
38 | "orientation" : "portrait",
39 | "idiom" : "ipad",
40 | "minimum-system-version" : "7.0",
41 | "extent" : "full-screen",
42 | "scale" : "1x"
43 | }
44 | ],
45 | "info" : {
46 | "version" : 1,
47 | "author" : "xcode"
48 | }
49 | }
--------------------------------------------------------------------------------
/Eleven/Images.xcassets/LaunchImage.launchimage/Contents.json:
--------------------------------------------------------------------------------
1 | {
2 | "images" : [
3 | {
4 | "extent" : "full-screen",
5 | "idiom" : "iphone",
6 | "subtype" : "736h",
7 | "filename" : "l6p.png",
8 | "minimum-system-version" : "8.0",
9 | "orientation" : "portrait",
10 | "scale" : "3x"
11 | },
12 | {
13 | "extent" : "full-screen",
14 | "idiom" : "iphone",
15 | "subtype" : "736h",
16 | "filename" : "l6p-1.png",
17 | "minimum-system-version" : "8.0",
18 | "orientation" : "landscape",
19 | "scale" : "3x"
20 | },
21 | {
22 | "extent" : "full-screen",
23 | "idiom" : "iphone",
24 | "subtype" : "667h",
25 | "filename" : "l6.png",
26 | "minimum-system-version" : "8.0",
27 | "orientation" : "portrait",
28 | "scale" : "2x"
29 | },
30 | {
31 | "orientation" : "portrait",
32 | "idiom" : "iphone",
33 | "extent" : "full-screen",
34 | "minimum-system-version" : "7.0",
35 | "filename" : "l4@2x.png",
36 | "scale" : "2x"
37 | },
38 | {
39 | "extent" : "full-screen",
40 | "idiom" : "iphone",
41 | "subtype" : "retina4",
42 | "filename" : "l5.png",
43 | "minimum-system-version" : "7.0",
44 | "orientation" : "portrait",
45 | "scale" : "2x"
46 | },
47 | {
48 | "orientation" : "portrait",
49 | "idiom" : "ipad",
50 | "extent" : "full-screen",
51 | "minimum-system-version" : "7.0",
52 | "scale" : "1x"
53 | },
54 | {
55 | "orientation" : "landscape",
56 | "idiom" : "ipad",
57 | "extent" : "full-screen",
58 | "minimum-system-version" : "7.0",
59 | "scale" : "1x"
60 | },
61 | {
62 | "orientation" : "portrait",
63 | "idiom" : "ipad",
64 | "extent" : "full-screen",
65 | "minimum-system-version" : "7.0",
66 | "scale" : "2x"
67 | },
68 | {
69 | "orientation" : "landscape",
70 | "idiom" : "ipad",
71 | "extent" : "full-screen",
72 | "minimum-system-version" : "7.0",
73 | "scale" : "2x"
74 | },
75 | {
76 | "orientation" : "portrait",
77 | "idiom" : "iphone",
78 | "extent" : "full-screen",
79 | "filename" : "l4.png",
80 | "scale" : "1x"
81 | },
82 | {
83 | "orientation" : "portrait",
84 | "idiom" : "iphone",
85 | "extent" : "full-screen",
86 | "filename" : "l4@2x-1.png",
87 | "scale" : "2x"
88 | },
89 | {
90 | "orientation" : "portrait",
91 | "idiom" : "iphone",
92 | "extent" : "full-screen",
93 | "filename" : "l5-1.png",
94 | "subtype" : "retina4",
95 | "scale" : "2x"
96 | },
97 | {
98 | "orientation" : "portrait",
99 | "idiom" : "ipad",
100 | "extent" : "to-status-bar",
101 | "scale" : "1x"
102 | },
103 | {
104 | "orientation" : "portrait",
105 | "idiom" : "ipad",
106 | "extent" : "full-screen",
107 | "scale" : "1x"
108 | },
109 | {
110 | "orientation" : "landscape",
111 | "idiom" : "ipad",
112 | "extent" : "to-status-bar",
113 | "scale" : "1x"
114 | },
115 | {
116 | "orientation" : "landscape",
117 | "idiom" : "ipad",
118 | "extent" : "full-screen",
119 | "scale" : "1x"
120 | },
121 | {
122 | "orientation" : "portrait",
123 | "idiom" : "ipad",
124 | "extent" : "to-status-bar",
125 | "scale" : "2x"
126 | },
127 | {
128 | "orientation" : "portrait",
129 | "idiom" : "ipad",
130 | "extent" : "full-screen",
131 | "scale" : "2x"
132 | },
133 | {
134 | "orientation" : "landscape",
135 | "idiom" : "ipad",
136 | "extent" : "to-status-bar",
137 | "scale" : "2x"
138 | },
139 | {
140 | "orientation" : "landscape",
141 | "idiom" : "ipad",
142 | "extent" : "full-screen",
143 | "scale" : "2x"
144 | }
145 | ],
146 | "info" : {
147 | "version" : 1,
148 | "author" : "xcode"
149 | }
150 | }
--------------------------------------------------------------------------------
/Eleven/Images.xcassets/LaunchImage.launchimage/l4.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/sinabio/Eleven/eb1fd61a278bc36f8201e5b5a6a49c0b63ba2732/Eleven/Images.xcassets/LaunchImage.launchimage/l4.png
--------------------------------------------------------------------------------
/Eleven/Images.xcassets/LaunchImage.launchimage/l4@2x-1.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/sinabio/Eleven/eb1fd61a278bc36f8201e5b5a6a49c0b63ba2732/Eleven/Images.xcassets/LaunchImage.launchimage/l4@2x-1.png
--------------------------------------------------------------------------------
/Eleven/Images.xcassets/LaunchImage.launchimage/l4@2x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/sinabio/Eleven/eb1fd61a278bc36f8201e5b5a6a49c0b63ba2732/Eleven/Images.xcassets/LaunchImage.launchimage/l4@2x.png
--------------------------------------------------------------------------------
/Eleven/Images.xcassets/LaunchImage.launchimage/l5-1.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/sinabio/Eleven/eb1fd61a278bc36f8201e5b5a6a49c0b63ba2732/Eleven/Images.xcassets/LaunchImage.launchimage/l5-1.png
--------------------------------------------------------------------------------
/Eleven/Images.xcassets/LaunchImage.launchimage/l5.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/sinabio/Eleven/eb1fd61a278bc36f8201e5b5a6a49c0b63ba2732/Eleven/Images.xcassets/LaunchImage.launchimage/l5.png
--------------------------------------------------------------------------------
/Eleven/Images.xcassets/LaunchImage.launchimage/l6.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/sinabio/Eleven/eb1fd61a278bc36f8201e5b5a6a49c0b63ba2732/Eleven/Images.xcassets/LaunchImage.launchimage/l6.png
--------------------------------------------------------------------------------
/Eleven/Images.xcassets/LaunchImage.launchimage/l6p-1.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/sinabio/Eleven/eb1fd61a278bc36f8201e5b5a6a49c0b63ba2732/Eleven/Images.xcassets/LaunchImage.launchimage/l6p-1.png
--------------------------------------------------------------------------------
/Eleven/Images.xcassets/LaunchImage.launchimage/l6p.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/sinabio/Eleven/eb1fd61a278bc36f8201e5b5a6a49c0b63ba2732/Eleven/Images.xcassets/LaunchImage.launchimage/l6p.png
--------------------------------------------------------------------------------
/Eleven/Info.plist:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | CFBundleDevelopmentRegion
6 | en
7 | CFBundleExecutable
8 | $(EXECUTABLE_NAME)
9 | CFBundleIdentifier
10 | coderyi.$(PRODUCT_NAME:rfc1034identifier)
11 | CFBundleInfoDictionaryVersion
12 | 6.0
13 | CFBundleName
14 | $(PRODUCT_NAME)
15 | CFBundlePackageType
16 | APPL
17 | CFBundleShortVersionString
18 | 1.0
19 | CFBundleSignature
20 | ????
21 | CFBundleVersion
22 | 1
23 | LSRequiresIPhoneOS
24 |
25 | UIFileSharingEnabled
26 |
27 | UILaunchStoryboardName
28 | LaunchScreen
29 | UIMainStoryboardFile
30 | Main
31 | UIRequiredDeviceCapabilities
32 |
33 | armv7
34 |
35 | UISupportedInterfaceOrientations
36 |
37 | UIInterfaceOrientationPortrait
38 |
39 |
40 |
41 |
--------------------------------------------------------------------------------
/Eleven/Vendor/CocoaWebResource/CocoaWebResource/DDData.h:
--------------------------------------------------------------------------------
1 | #import
2 |
3 | @interface NSData (DDData)
4 |
5 | - (NSData *)md5Digest;
6 |
7 | - (NSData *)sha1Digest;
8 |
9 | - (NSString *)hexStringValue;
10 |
11 | - (NSString *)base64Encoded;
12 | - (NSData *)base64Decoded;
13 |
14 | @end
15 |
--------------------------------------------------------------------------------
/Eleven/Vendor/CocoaWebResource/CocoaWebResource/DDNumber.h:
--------------------------------------------------------------------------------
1 | #import
2 |
3 |
4 | @interface NSNumber (DDNumber)
5 |
6 | + (BOOL)parseString:(NSString *)str intoSInt64:(SInt64 *)pNum;
7 | + (BOOL)parseString:(NSString *)str intoUInt64:(UInt64 *)pNum;
8 |
9 | + (BOOL)parseString:(NSString *)str intoNSInteger:(NSInteger *)pNum;
10 | + (BOOL)parseString:(NSString *)str intoNSUInteger:(NSUInteger *)pNum;
11 |
12 | @end
13 |
--------------------------------------------------------------------------------
/Eleven/Vendor/CocoaWebResource/CocoaWebResource/DDNumber.m:
--------------------------------------------------------------------------------
1 | #import "DDNumber.h"
2 |
3 |
4 | @implementation NSNumber (DDNumber)
5 |
6 | + (BOOL)parseString:(NSString *)str intoSInt64:(SInt64 *)pNum
7 | {
8 | errno = 0;
9 |
10 | #if __LP64__
11 | // long = 64 bit
12 | *pNum = strtol([str UTF8String], NULL, 10);
13 | #else
14 | // long = 32 bit
15 | // long long = 64 bit
16 | *pNum = strtoll([str UTF8String], NULL, 10);
17 | #endif
18 |
19 | if(errno != 0)
20 | return NO;
21 | else
22 | return YES;
23 | }
24 |
25 | + (BOOL)parseString:(NSString *)str intoUInt64:(UInt64 *)pNum
26 | {
27 | errno = 0;
28 |
29 | #if __LP64__
30 | // unsigned long = 64 bit
31 | *pNum = strtoul([str UTF8String], NULL, 10);
32 | #else
33 | // unsigned long = 32 bit
34 | // unsigned long long = 64 bit
35 | *pNum = strtoull([str UTF8String], NULL, 10);
36 | #endif
37 |
38 | if(errno != 0)
39 | return NO;
40 | else
41 | return YES;
42 | }
43 |
44 | + (BOOL)parseString:(NSString *)str intoNSInteger:(NSInteger *)pNum
45 | {
46 | errno = 0;
47 |
48 | // On LP64, NSInteger = long = 64 bit
49 | // Otherwise, NSInteger = int = long = 32 bit
50 |
51 | *pNum = strtol([str UTF8String], NULL, 10);
52 |
53 | if(errno != 0)
54 | return NO;
55 | else
56 | return YES;
57 | }
58 |
59 | + (BOOL)parseString:(NSString *)str intoNSUInteger:(NSUInteger *)pNum
60 | {
61 | errno = 0;
62 |
63 | // On LP64, NSUInteger = unsigned long = 64 bit
64 | // Otherwise, NSUInteger = unsigned int = unsigned long = 32 bit
65 |
66 | *pNum = strtoul([str UTF8String], NULL, 10);
67 |
68 | if(errno != 0)
69 | return NO;
70 | else
71 | return YES;
72 | }
73 |
74 | @end
75 |
--------------------------------------------------------------------------------
/Eleven/Vendor/CocoaWebResource/CocoaWebResource/DDRange.h:
--------------------------------------------------------------------------------
1 | /**
2 | * DDRange is the functional equivalent of a 64 bit NSRange.
3 | * The HTTP Server is designed to support very large files.
4 | * On 32 bit architectures (ppc, i386) NSRange uses unsigned 32 bit integers.
5 | * This only supports a range of up to 4 gigabytes.
6 | * By defining our own variant, we can support a range up to 16 exabytes.
7 | *
8 | * All effort is given such that DDRange functions EXACTLY the same as NSRange.
9 | **/
10 |
11 | #import
12 | #import
13 |
14 | @class NSString;
15 |
16 | typedef struct _DDRange {
17 | UInt64 location;
18 | UInt64 length;
19 | } DDRange;
20 |
21 | typedef DDRange *DDRangePointer;
22 |
23 | NS_INLINE DDRange DDMakeRange(UInt64 loc, UInt64 len) {
24 | DDRange r;
25 | r.location = loc;
26 | r.length = len;
27 | return r;
28 | }
29 |
30 | NS_INLINE UInt64 DDMaxRange(DDRange range) {
31 | return (range.location + range.length);
32 | }
33 |
34 | NS_INLINE BOOL DDLocationInRange(UInt64 loc, DDRange range) {
35 | return (loc - range.location < range.length);
36 | }
37 |
38 | NS_INLINE BOOL DDEqualRanges(DDRange range1, DDRange range2) {
39 | return ((range1.location == range2.location) && (range1.length == range2.length));
40 | }
41 |
42 | FOUNDATION_EXPORT DDRange DDUnionRange(DDRange range1, DDRange range2);
43 | FOUNDATION_EXPORT DDRange DDIntersectionRange(DDRange range1, DDRange range2);
44 | FOUNDATION_EXPORT NSString *DDStringFromRange(DDRange range);
45 | FOUNDATION_EXPORT DDRange DDRangeFromString(NSString *aString);
46 |
47 | @interface NSValue (NSValueDDRangeExtensions)
48 |
49 | + (NSValue *)valueWithDDRange:(DDRange)range;
50 | - (DDRange)ddrangeValue;
51 |
52 | @end
53 |
--------------------------------------------------------------------------------
/Eleven/Vendor/CocoaWebResource/CocoaWebResource/DDRange.m:
--------------------------------------------------------------------------------
1 | #import "DDRange.h"
2 | #import "DDNumber.h"
3 |
4 | DDRange DDUnionRange(DDRange range1, DDRange range2)
5 | {
6 | DDRange result;
7 |
8 | result.location = MIN(range1.location, range2.location);
9 | result.length = MAX(DDMaxRange(range1), DDMaxRange(range2)) - result.location;
10 |
11 | return result;
12 | }
13 |
14 | DDRange DDIntersectionRange(DDRange range1, DDRange range2)
15 | {
16 | DDRange result;
17 |
18 | if((DDMaxRange(range1) < range2.location) || (DDMaxRange(range2) < range1.location))
19 | {
20 | return DDMakeRange(0, 0);
21 | }
22 |
23 | result.location = MAX(range1.location, range2.location);
24 | result.length = MIN(DDMaxRange(range1), DDMaxRange(range2)) - result.location;
25 |
26 | return result;
27 | }
28 |
29 | NSString *DDStringFromRange(DDRange range)
30 | {
31 | return [NSString stringWithFormat:@"{%qu, %qu}", range.location, range.length];
32 | }
33 |
34 | DDRange DDRangeFromString(NSString *aString)
35 | {
36 | DDRange result = DDMakeRange(0, 0);
37 |
38 | // NSRange will ignore '-' characters, but not '+' characters
39 | NSCharacterSet *cset = [NSCharacterSet characterSetWithCharactersInString:@"+0123456789"];
40 |
41 | NSScanner *scanner = [NSScanner scannerWithString:aString];
42 | [scanner setCharactersToBeSkipped:[cset invertedSet]];
43 |
44 | NSString *str1 = nil;
45 | NSString *str2 = nil;
46 |
47 | BOOL found1 = [scanner scanCharactersFromSet:cset intoString:&str1];
48 | BOOL found2 = [scanner scanCharactersFromSet:cset intoString:&str2];
49 |
50 | if(found1) [NSNumber parseString:str1 intoUInt64:&result.location];
51 | if(found2) [NSNumber parseString:str2 intoUInt64:&result.length];
52 |
53 | return result;
54 | }
55 |
56 | @implementation NSValue (NSValueDDRangeExtensions)
57 |
58 | + (NSValue *)valueWithDDRange:(DDRange)range
59 | {
60 | return [NSValue valueWithBytes:&range objCType:@encode(DDRange)];
61 | }
62 |
63 | - (DDRange)ddrangeValue
64 | {
65 | DDRange result;
66 | [self getValue:&result];
67 | return result;
68 | }
69 |
70 | @end
71 |
--------------------------------------------------------------------------------
/Eleven/Vendor/CocoaWebResource/CocoaWebResource/FileResource.h:
--------------------------------------------------------------------------------
1 | //
2 | // FileResource.h
3 | // iChm
4 | //
5 | // Created by Robin Lu on 10/17/08.
6 | // Copyright 2008 robinlu.com. All rights reserved.
7 | //
8 | #import
9 | #import
10 | @class HTTPConnection;
11 |
12 | @protocol WebFileResourceDelegate
13 |
14 | @required
15 | // number of the files
16 | - (NSInteger)numberOfFiles;
17 |
18 | // the file name by the index
19 | - (NSString*)fileNameAtIndex:(NSInteger)index;
20 |
21 | // provide full file path by given file name
22 | - (NSString*)filePathForFileName:(NSString*)filename;
23 | @optional
24 | // handle newly uploaded file. After uploading, the file is stored in
25 | // the temparory directory, you need to implement this method to move
26 | // it to proper location and update the file list.
27 | - (void)newFileDidUpload:(NSString*)name inTempPath:(NSString*)tmpPath;
28 |
29 | // implement this method to delete requested file and update the file list
30 | - (void)fileShouldDelete:(NSString*)fileName;
31 |
32 | @end
33 |
34 |
35 | @interface FileResource : NSObject {
36 | CFHTTPMessageRef request;
37 | NSDictionary *parameters;
38 | HTTPConnection *connection;
39 | id delegate;
40 | }
41 |
42 | @property (assign, nonatomic) id delegate;
43 |
44 | + (BOOL)canHandle:(CFHTTPMessageRef)request;
45 |
46 | - (id)initWithConnection:(HTTPConnection*)conn;
47 |
48 | - (void)handleRequest;
49 | - (void)actionList;
50 | - (void)actionDelete:(NSString*)fileName;
51 | - (void)actionShow:(NSString*)fileName;
52 | - (void)actionNew;
53 | @end
54 |
--------------------------------------------------------------------------------
/Eleven/Vendor/CocoaWebResource/CocoaWebResource/HTTPAuthenticationRequest.h:
--------------------------------------------------------------------------------
1 | #import
2 |
3 | #if TARGET_OS_IPHONE
4 | // Note: You may need to add the CFNetwork Framework to your project
5 | #import
6 | #endif
7 |
8 |
9 | @interface HTTPAuthenticationRequest : NSObject
10 | {
11 | BOOL isBasic;
12 | BOOL isDigest;
13 |
14 | NSString *base64Credentials;
15 |
16 | NSString *username;
17 | NSString *realm;
18 | NSString *nonce;
19 | NSString *uri;
20 | NSString *qop;
21 | NSString *nc;
22 | NSString *cnonce;
23 | NSString *response;
24 | }
25 | - (id)initWithRequest:(CFHTTPMessageRef)request;
26 |
27 | - (BOOL)isBasic;
28 | - (BOOL)isDigest;
29 |
30 | // Basic
31 | - (NSString *)base64Credentials;
32 |
33 | // Digest
34 | - (NSString *)username;
35 | - (NSString *)realm;
36 | - (NSString *)nonce;
37 | - (NSString *)uri;
38 | - (NSString *)qop;
39 | - (NSString *)nc;
40 | - (NSString *)cnonce;
41 | - (NSString *)response;
42 |
43 | @end
44 |
--------------------------------------------------------------------------------
/Eleven/Vendor/CocoaWebResource/CocoaWebResource/HTTPConnection.h:
--------------------------------------------------------------------------------
1 | #import
2 |
3 | #if TARGET_OS_IPHONE
4 | // Note: You may need to add the CFNetwork Framework to your project
5 | #import
6 | #endif
7 |
8 | @class AsyncSocket;
9 | @class HTTPServer;
10 | @class FileResource;
11 | @protocol HTTPResponse;
12 |
13 |
14 | #define HTTPConnectionDidDieNotification @"HTTPConnectionDidDie"
15 |
16 | @interface HTTPConnection : NSObject
17 | {
18 | AsyncSocket *asyncSocket;
19 | HTTPServer *server;
20 |
21 | CFHTTPMessageRef request;
22 | NSMutableDictionary *params;
23 | int bodyReadCount;
24 | int bodyLength;
25 | NSData *remainBody;
26 | NSFileHandle *tmpUploadFileHandle;
27 |
28 | int numHeaderLines;
29 | NSString *requestBoundry;
30 | NSString *userAgent;
31 |
32 | NSString *nonce;
33 | int lastNC;
34 |
35 | NSObject *httpResponse;
36 |
37 | FileResource *resource;
38 |
39 | NSMutableArray *ranges;
40 | NSMutableArray *ranges_headers;
41 | NSString *ranges_boundry;
42 | int rangeIndex;
43 | }
44 |
45 | @property (readonly) NSDictionary* params;
46 | @property (readonly) CFHTTPMessageRef request;
47 |
48 | - (id)initWithAsyncSocket:(AsyncSocket *)newSocket forServer:(HTTPServer *)myServer;
49 |
50 | - (BOOL)isSecureServer;
51 |
52 | - (NSArray *)sslIdentityAndCertificates;
53 |
54 | - (BOOL)isPasswordProtected:(NSString *)path;
55 |
56 | - (BOOL)useDigestAccessAuthentication;
57 |
58 | - (NSString *)realm;
59 | - (NSString *)passwordForUser:(NSString *)username;
60 |
61 | - (NSString *)filePathForURI:(NSString *)path;
62 |
63 | - (NSObject *)httpResponseForURI:(NSString *)path;
64 |
65 | - (void)redirectoTo:(NSString*)path;
66 | - (void)sendString:(NSString*)text mimeType:(NSString*)mimeType;
67 |
68 | - (void)handleVersionNotSupported:(NSString *)version;
69 | - (void)handleAuthenticationFailed;
70 | - (void)handleResourceNotFound;
71 | - (void)handleServiceUnavailable;
72 | - (void)handleInvalidRequest:(NSData *)data;
73 | - (void)handleUnknownMethod:(NSString *)method;
74 | - (void)handleHTTPRequestBody:(NSData*)data tag:(long)tag;
75 | - (void)handleResponse:(NSObject *)rsp method:(NSString*)method;
76 |
77 | - (void)parsePostBody:(NSData*)data;
78 |
79 | - (NSData *)preprocessResponse:(CFHTTPMessageRef)response;
80 | - (NSData *)preprocessErrorResponse:(CFHTTPMessageRef)response;
81 |
82 | - (void)die;
83 |
84 | @end
85 |
--------------------------------------------------------------------------------
/Eleven/Vendor/CocoaWebResource/CocoaWebResource/HTTPResponse.h:
--------------------------------------------------------------------------------
1 | #import
2 |
3 |
4 | @protocol HTTPResponse
5 |
6 | - (UInt64)contentLength;
7 |
8 | - (UInt64)offset;
9 | - (void)setOffset:(UInt64)offset;
10 |
11 | - (NSData *)readDataOfLength:(unsigned int)length;
12 |
13 | @end
14 |
15 | @interface HTTPFileResponse : NSObject
16 | {
17 | NSString *filePath;
18 | NSFileHandle *fileHandle;
19 | }
20 |
21 | - (id)initWithFilePath:(NSString *)filePath;
22 | - (NSString *)filePath;
23 |
24 | @end
25 |
26 | @interface HTTPDataResponse : NSObject
27 | {
28 | unsigned offset;
29 | NSData *data;
30 | }
31 |
32 | - (id)initWithData:(NSData *)data;
33 |
34 | @end
35 |
--------------------------------------------------------------------------------
/Eleven/Vendor/CocoaWebResource/CocoaWebResource/HTTPResponse.m:
--------------------------------------------------------------------------------
1 | #import "HTTPResponse.h"
2 |
3 |
4 | @implementation HTTPFileResponse
5 |
6 | - (id)initWithFilePath:(NSString *)filePathParam
7 | {
8 | if(self = [super init])
9 | {
10 | filePath = [filePathParam copy];
11 | fileHandle = [[NSFileHandle fileHandleForReadingAtPath:filePath] retain];
12 | }
13 | return self;
14 | }
15 |
16 | - (void)dealloc
17 | {
18 | [filePath release];
19 | [fileHandle closeFile];
20 | [fileHandle release];
21 | [super dealloc];
22 | }
23 |
24 | - (UInt64)contentLength
25 | {
26 | NSDictionary *fileAttributes = [[NSFileManager defaultManager] fileAttributesAtPath:filePath traverseLink:NO];
27 |
28 | NSNumber *fileSize = [fileAttributes objectForKey:NSFileSize];
29 |
30 | return (UInt64)[fileSize unsignedLongLongValue];
31 | }
32 |
33 | - (UInt64)offset
34 | {
35 | return (UInt64)[fileHandle offsetInFile];
36 | }
37 |
38 | - (void)setOffset:(UInt64)offset
39 | {
40 | [fileHandle seekToFileOffset:offset];
41 | }
42 |
43 | - (NSData *)readDataOfLength:(unsigned int)length
44 | {
45 | return [fileHandle readDataOfLength:length];
46 | }
47 |
48 | - (NSString *)filePath
49 | {
50 | return filePath;
51 | }
52 |
53 | @end
54 |
55 | ////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
56 | #pragma mark -
57 | ////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
58 |
59 | @implementation HTTPDataResponse
60 |
61 | - (id)initWithData:(NSData *)dataParam
62 | {
63 | if(self = [super init])
64 | {
65 | offset = 0;
66 | data = [dataParam retain];
67 | }
68 | return self;
69 | }
70 |
71 | - (void)dealloc
72 | {
73 | [data release];
74 | [super dealloc];
75 | }
76 |
77 | - (UInt64)contentLength
78 | {
79 | return (UInt64)[data length];
80 | }
81 |
82 | - (UInt64)offset
83 | {
84 | return offset;
85 | }
86 |
87 | - (void)setOffset:(UInt64)offsetParam
88 | {
89 | offset = offsetParam;
90 | }
91 |
92 | - (NSData *)readDataOfLength:(unsigned int)lengthParameter
93 | {
94 | unsigned int remaining = [data length] - offset;
95 | unsigned int length = lengthParameter < remaining ? lengthParameter : remaining;
96 |
97 | void *bytes = (void *)([data bytes] + offset);
98 |
99 | offset += length;
100 |
101 | return [NSData dataWithBytesNoCopy:bytes length:length freeWhenDone:NO];
102 | }
103 |
104 | @end
105 |
--------------------------------------------------------------------------------
/Eleven/Vendor/CocoaWebResource/CocoaWebResource/HTTPServer.h:
--------------------------------------------------------------------------------
1 | #import
2 | #import "FileResource.h"
3 |
4 | #define HTTPUploadingStartNotification @"UploadingStarted"
5 | #define HTTPUploadingProgressNotification @"UploadingProgress"
6 | #define HTTPUploadingFinishedNotification @"UploadingFinished"
7 | #define HTTPFileDeletedNotification @"FileDeleted"
8 |
9 | @class AsyncSocket;
10 |
11 |
12 | @interface HTTPServer : NSObject
13 | {
14 | // Underlying asynchronous TCP/IP socket
15 | AsyncSocket *asyncSocket;
16 |
17 | // Standard delegate
18 | id delegate;
19 |
20 | // File resource delegate
21 | id fileResourceDelegate;
22 |
23 | // HTTP server configuration
24 | NSString *documentRoot;
25 | Class connectionClass;
26 |
27 | // NSNetService and related variables
28 | NSNetService *netService;
29 | NSString *domain;
30 | NSString *type;
31 | NSString *name;
32 | UInt16 port;
33 | NSDictionary *txtRecordDictionary;
34 |
35 | NSMutableArray *connections;
36 | }
37 |
38 | @property (assign, nonatomic) id fileResourceDelegate;
39 |
40 | - (id)delegate;
41 | - (void)setDelegate:(id)newDelegate;
42 |
43 | - (NSString *)documentRoot;
44 | - (void)setDocumentRoot:(NSString *)value;
45 |
46 | - (Class)connectionClass;
47 | - (void)setConnectionClass:(Class)value;
48 |
49 | - (NSString *)domain;
50 | - (void)setDomain:(NSString *)value;
51 |
52 | - (NSString *)type;
53 | - (void)setType:(NSString *)value;
54 |
55 | - (NSString *)name;
56 | - (void)setName:(NSString *)value;
57 |
58 | - (UInt16)port;
59 | - (void)setPort:(UInt16)value;
60 |
61 | - (NSDictionary *)TXTRecordDictionary;
62 | - (void)setTXTRecordDictionary:(NSDictionary *)dict;
63 |
64 | - (BOOL)start:(NSError **)error;
65 | - (BOOL)stop;
66 |
67 | - (int)numberOfHTTPConnections;
68 |
69 | - (NSString*)hostName;
70 |
71 | - (void)setupBuiltInDocroot;
72 | @end
73 |
--------------------------------------------------------------------------------
/Eleven/Vendor/CocoaWebResource/docroot/bg.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/sinabio/Eleven/eb1fd61a278bc36f8201e5b5a6a49c0b63ba2732/Eleven/Vendor/CocoaWebResource/docroot/bg.png
--------------------------------------------------------------------------------
/Eleven/Vendor/CocoaWebResource/docroot/index.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 | Eleven Player Wifi Transfer
9 |
25 |
26 |
27 |
28 |
29 |
36 |
37 |
38 | Name | Delete |
39 |
40 |
41 |
42 |
43 |
58 |
63 |
64 |
65 |
66 |
--------------------------------------------------------------------------------
/Eleven/Vendor/CocoaWebResource/docroot/theadbg.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/sinabio/Eleven/eb1fd61a278bc36f8201e5b5a6a49c0b63ba2732/Eleven/Vendor/CocoaWebResource/docroot/theadbg.png
--------------------------------------------------------------------------------
/Eleven/Vendor/CocoaWebResource/docroot/titlebg.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/sinabio/Eleven/eb1fd61a278bc36f8201e5b5a6a49c0b63ba2732/Eleven/Vendor/CocoaWebResource/docroot/titlebg.png
--------------------------------------------------------------------------------
/Eleven/Vendor/FFmpeg-iOS/include/libavcodec/avfft.h:
--------------------------------------------------------------------------------
1 | /*
2 | * This file is part of FFmpeg.
3 | *
4 | * FFmpeg is free software; you can redistribute it and/or
5 | * modify it under the terms of the GNU Lesser General Public
6 | * License as published by the Free Software Foundation; either
7 | * version 2.1 of the License, or (at your option) any later version.
8 | *
9 | * FFmpeg is distributed in the hope that it will be useful,
10 | * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12 | * Lesser General Public License for more details.
13 | *
14 | * You should have received a copy of the GNU Lesser General Public
15 | * License along with FFmpeg; if not, write to the Free Software
16 | * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
17 | */
18 |
19 | #ifndef AVCODEC_AVFFT_H
20 | #define AVCODEC_AVFFT_H
21 |
22 | /**
23 | * @file
24 | * @ingroup lavc_fft
25 | * FFT functions
26 | */
27 |
28 | /**
29 | * @defgroup lavc_fft FFT functions
30 | * @ingroup lavc_misc
31 | *
32 | * @{
33 | */
34 |
35 | typedef float FFTSample;
36 |
37 | typedef struct FFTComplex {
38 | FFTSample re, im;
39 | } FFTComplex;
40 |
41 | typedef struct FFTContext FFTContext;
42 |
43 | /**
44 | * Set up a complex FFT.
45 | * @param nbits log2 of the length of the input array
46 | * @param inverse if 0 perform the forward transform, if 1 perform the inverse
47 | */
48 | FFTContext *av_fft_init(int nbits, int inverse);
49 |
50 | /**
51 | * Do the permutation needed BEFORE calling ff_fft_calc().
52 | */
53 | void av_fft_permute(FFTContext *s, FFTComplex *z);
54 |
55 | /**
56 | * Do a complex FFT with the parameters defined in av_fft_init(). The
57 | * input data must be permuted before. No 1.0/sqrt(n) normalization is done.
58 | */
59 | void av_fft_calc(FFTContext *s, FFTComplex *z);
60 |
61 | void av_fft_end(FFTContext *s);
62 |
63 | FFTContext *av_mdct_init(int nbits, int inverse, double scale);
64 | void av_imdct_calc(FFTContext *s, FFTSample *output, const FFTSample *input);
65 | void av_imdct_half(FFTContext *s, FFTSample *output, const FFTSample *input);
66 | void av_mdct_calc(FFTContext *s, FFTSample *output, const FFTSample *input);
67 | void av_mdct_end(FFTContext *s);
68 |
69 | /* Real Discrete Fourier Transform */
70 |
71 | enum RDFTransformType {
72 | DFT_R2C,
73 | IDFT_C2R,
74 | IDFT_R2C,
75 | DFT_C2R,
76 | };
77 |
78 | typedef struct RDFTContext RDFTContext;
79 |
80 | /**
81 | * Set up a real FFT.
82 | * @param nbits log2 of the length of the input array
83 | * @param trans the type of transform
84 | */
85 | RDFTContext *av_rdft_init(int nbits, enum RDFTransformType trans);
86 | void av_rdft_calc(RDFTContext *s, FFTSample *data);
87 | void av_rdft_end(RDFTContext *s);
88 |
89 | /* Discrete Cosine Transform */
90 |
91 | typedef struct DCTContext DCTContext;
92 |
93 | enum DCTTransformType {
94 | DCT_II = 0,
95 | DCT_III,
96 | DCT_I,
97 | DST_I,
98 | };
99 |
100 | /**
101 | * Set up DCT.
102 | *
103 | * @param nbits size of the input array:
104 | * (1 << nbits) for DCT-II, DCT-III and DST-I
105 | * (1 << nbits) + 1 for DCT-I
106 | * @param type the type of transform
107 | *
108 | * @note the first element of the input of DST-I is ignored
109 | */
110 | DCTContext *av_dct_init(int nbits, enum DCTTransformType type);
111 | void av_dct_calc(DCTContext *s, FFTSample *data);
112 | void av_dct_end (DCTContext *s);
113 |
114 | /**
115 | * @}
116 | */
117 |
118 | #endif /* AVCODEC_AVFFT_H */
119 |
--------------------------------------------------------------------------------
/Eleven/Vendor/FFmpeg-iOS/include/libavcodec/d3d11va.h:
--------------------------------------------------------------------------------
1 | /*
2 | * Direct3D11 HW acceleration
3 | *
4 | * copyright (c) 2009 Laurent Aimar
5 | * copyright (c) 2015 Steve Lhomme
6 | *
7 | * This file is part of FFmpeg.
8 | *
9 | * FFmpeg is free software; you can redistribute it and/or
10 | * modify it under the terms of the GNU Lesser General Public
11 | * License as published by the Free Software Foundation; either
12 | * version 2.1 of the License, or (at your option) any later version.
13 | *
14 | * FFmpeg is distributed in the hope that it will be useful,
15 | * but WITHOUT ANY WARRANTY; without even the implied warranty of
16 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
17 | * Lesser General Public License for more details.
18 | *
19 | * You should have received a copy of the GNU Lesser General Public
20 | * License along with FFmpeg; if not, write to the Free Software
21 | * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
22 | */
23 |
24 | #ifndef AVCODEC_D3D11VA_H
25 | #define AVCODEC_D3D11VA_H
26 |
27 | /**
28 | * @file
29 | * @ingroup lavc_codec_hwaccel_d3d11va
30 | * Public libavcodec D3D11VA header.
31 | */
32 |
33 | #if !defined(_WIN32_WINNT) || _WIN32_WINNT < 0x0600
34 | #undef _WIN32_WINNT
35 | #define _WIN32_WINNT 0x0600
36 | #endif
37 |
38 | #include
39 | #include
40 |
41 | /**
42 | * @defgroup lavc_codec_hwaccel_d3d11va Direct3D11
43 | * @ingroup lavc_codec_hwaccel
44 | *
45 | * @{
46 | */
47 |
48 | #define FF_DXVA2_WORKAROUND_SCALING_LIST_ZIGZAG 1 ///< Work around for Direct3D11 and old UVD/UVD+ ATI video cards
49 | #define FF_DXVA2_WORKAROUND_INTEL_CLEARVIDEO 2 ///< Work around for Direct3D11 and old Intel GPUs with ClearVideo interface
50 |
51 | /**
52 | * This structure is used to provides the necessary configurations and data
53 | * to the Direct3D11 FFmpeg HWAccel implementation.
54 | *
55 | * The application must make it available as AVCodecContext.hwaccel_context.
56 | */
57 | struct AVD3D11VAContext {
58 | /**
59 | * D3D11 decoder object
60 | */
61 | ID3D11VideoDecoder *decoder;
62 |
63 | /**
64 | * D3D11 VideoContext
65 | */
66 | ID3D11VideoContext *video_context;
67 |
68 | /**
69 | * D3D11 configuration used to create the decoder
70 | */
71 | D3D11_VIDEO_DECODER_CONFIG *cfg;
72 |
73 | /**
74 | * The number of surface in the surface array
75 | */
76 | unsigned surface_count;
77 |
78 | /**
79 | * The array of Direct3D surfaces used to create the decoder
80 | */
81 | ID3D11VideoDecoderOutputView **surface;
82 |
83 | /**
84 | * A bit field configuring the workarounds needed for using the decoder
85 | */
86 | uint64_t workaround;
87 |
88 | /**
89 | * Private to the FFmpeg AVHWAccel implementation
90 | */
91 | unsigned report_id;
92 | };
93 |
94 | /**
95 | * @}
96 | */
97 |
98 | #endif /* AVCODEC_D3D11VA_H */
99 |
--------------------------------------------------------------------------------
/Eleven/Vendor/FFmpeg-iOS/include/libavcodec/dv_profile.h:
--------------------------------------------------------------------------------
1 | /*
2 | * This file is part of FFmpeg.
3 | *
4 | * FFmpeg is free software; you can redistribute it and/or
5 | * modify it under the terms of the GNU Lesser General Public
6 | * License as published by the Free Software Foundation; either
7 | * version 2.1 of the License, or (at your option) any later version.
8 | *
9 | * FFmpeg is distributed in the hope that it will be useful,
10 | * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12 | * Lesser General Public License for more details.
13 | *
14 | * You should have received a copy of the GNU Lesser General Public
15 | * License along with FFmpeg; if not, write to the Free Software
16 | * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
17 | */
18 |
19 | #ifndef AVCODEC_DV_PROFILE_H
20 | #define AVCODEC_DV_PROFILE_H
21 |
22 | #include
23 |
24 | #include "libavutil/pixfmt.h"
25 | #include "libavutil/rational.h"
26 | #include "avcodec.h"
27 |
28 | /* minimum number of bytes to read from a DV stream in order to
29 | * determine the profile */
30 | #define DV_PROFILE_BYTES (6 * 80) /* 6 DIF blocks */
31 |
32 |
33 | /*
34 | * AVDVProfile is used to express the differences between various
35 | * DV flavors. For now it's primarily used for differentiating
36 | * 525/60 and 625/50, but the plans are to use it for various
37 | * DV specs as well (e.g. SMPTE314M vs. IEC 61834).
38 | */
39 | typedef struct AVDVProfile {
40 | int dsf; /* value of the dsf in the DV header */
41 | int video_stype; /* stype for VAUX source pack */
42 | int frame_size; /* total size of one frame in bytes */
43 | int difseg_size; /* number of DIF segments per DIF channel */
44 | int n_difchan; /* number of DIF channels per frame */
45 | AVRational time_base; /* 1/framerate */
46 | int ltc_divisor; /* FPS from the LTS standpoint */
47 | int height; /* picture height in pixels */
48 | int width; /* picture width in pixels */
49 | AVRational sar[2]; /* sample aspect ratios for 4:3 and 16:9 */
50 | enum AVPixelFormat pix_fmt; /* picture pixel format */
51 | int bpm; /* blocks per macroblock */
52 | const uint8_t *block_sizes; /* AC block sizes, in bits */
53 | int audio_stride; /* size of audio_shuffle table */
54 | int audio_min_samples[3]; /* min amount of audio samples */
55 | /* for 48kHz, 44.1kHz and 32kHz */
56 | int audio_samples_dist[5]; /* how many samples are supposed to be */
57 | /* in each frame in a 5 frames window */
58 | const uint8_t (*audio_shuffle)[9]; /* PCM shuffling table */
59 | } AVDVProfile;
60 |
61 | #if FF_API_DV_FRAME_PROFILE
62 | /**
63 | * @deprecated use av_dv_frame_profile()
64 | */
65 | attribute_deprecated
66 | const AVDVProfile* avpriv_dv_frame_profile2(AVCodecContext* codec, const AVDVProfile *sys,
67 | const uint8_t* frame, unsigned buf_size);
68 | #endif
69 |
70 | /**
71 | * Get a DV profile for the provided compressed frame.
72 | *
73 | * @param sys the profile used for the previous frame, may be NULL
74 | * @param frame the compressed data buffer
75 | * @param buf_size size of the buffer in bytes
76 | * @return the DV profile for the supplied data or NULL on failure
77 | */
78 | const AVDVProfile *av_dv_frame_profile(const AVDVProfile *sys,
79 | const uint8_t *frame, unsigned buf_size);
80 |
81 | /**
82 | * Get a DV profile for the provided stream parameters.
83 | */
84 | const AVDVProfile *av_dv_codec_profile(int width, int height, enum AVPixelFormat pix_fmt);
85 |
86 | /**
87 | * Get a DV profile for the provided stream parameters.
88 | * The frame rate is used as a best-effort parameter.
89 | */
90 | const AVDVProfile *av_dv_codec_profile2(int width, int height, enum AVPixelFormat pix_fmt, AVRational frame_rate);
91 |
92 | #endif /* AVCODEC_DV_PROFILE_H */
93 |
--------------------------------------------------------------------------------
/Eleven/Vendor/FFmpeg-iOS/include/libavcodec/dxva2.h:
--------------------------------------------------------------------------------
1 | /*
2 | * DXVA2 HW acceleration
3 | *
4 | * copyright (c) 2009 Laurent Aimar
5 | *
6 | * This file is part of FFmpeg.
7 | *
8 | * FFmpeg is free software; you can redistribute it and/or
9 | * modify it under the terms of the GNU Lesser General Public
10 | * License as published by the Free Software Foundation; either
11 | * version 2.1 of the License, or (at your option) any later version.
12 | *
13 | * FFmpeg is distributed in the hope that it will be useful,
14 | * but WITHOUT ANY WARRANTY; without even the implied warranty of
15 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
16 | * Lesser General Public License for more details.
17 | *
18 | * You should have received a copy of the GNU Lesser General Public
19 | * License along with FFmpeg; if not, write to the Free Software
20 | * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
21 | */
22 |
23 | #ifndef AVCODEC_DXVA_H
24 | #define AVCODEC_DXVA_H
25 |
26 | /**
27 | * @file
28 | * @ingroup lavc_codec_hwaccel_dxva2
29 | * Public libavcodec DXVA2 header.
30 | */
31 |
32 | #if !defined(_WIN32_WINNT) || _WIN32_WINNT < 0x0600
33 | #undef _WIN32_WINNT
34 | #define _WIN32_WINNT 0x0600
35 | #endif
36 |
37 | #include
38 | #include
39 | #include
40 |
41 | /**
42 | * @defgroup lavc_codec_hwaccel_dxva2 DXVA2
43 | * @ingroup lavc_codec_hwaccel
44 | *
45 | * @{
46 | */
47 |
48 | #define FF_DXVA2_WORKAROUND_SCALING_LIST_ZIGZAG 1 ///< Work around for DXVA2 and old UVD/UVD+ ATI video cards
49 | #define FF_DXVA2_WORKAROUND_INTEL_CLEARVIDEO 2 ///< Work around for DXVA2 and old Intel GPUs with ClearVideo interface
50 |
51 | /**
52 | * This structure is used to provides the necessary configurations and data
53 | * to the DXVA2 FFmpeg HWAccel implementation.
54 | *
55 | * The application must make it available as AVCodecContext.hwaccel_context.
56 | */
57 | struct dxva_context {
58 | /**
59 | * DXVA2 decoder object
60 | */
61 | IDirectXVideoDecoder *decoder;
62 |
63 | /**
64 | * DXVA2 configuration used to create the decoder
65 | */
66 | const DXVA2_ConfigPictureDecode *cfg;
67 |
68 | /**
69 | * The number of surface in the surface array
70 | */
71 | unsigned surface_count;
72 |
73 | /**
74 | * The array of Direct3D surfaces used to create the decoder
75 | */
76 | LPDIRECT3DSURFACE9 *surface;
77 |
78 | /**
79 | * A bit field configuring the workarounds needed for using the decoder
80 | */
81 | uint64_t workaround;
82 |
83 | /**
84 | * Private to the FFmpeg AVHWAccel implementation
85 | */
86 | unsigned report_id;
87 | };
88 |
89 | /**
90 | * @}
91 | */
92 |
93 | #endif /* AVCODEC_DXVA_H */
94 |
--------------------------------------------------------------------------------
/Eleven/Vendor/FFmpeg-iOS/include/libavcodec/qsv.h:
--------------------------------------------------------------------------------
1 | /*
2 | * Intel MediaSDK QSV public API
3 | *
4 | * This file is part of FFmpeg.
5 | *
6 | * FFmpeg is free software; you can redistribute it and/or
7 | * modify it under the terms of the GNU Lesser General Public
8 | * License as published by the Free Software Foundation; either
9 | * version 2.1 of the License, or (at your option) any later version.
10 | *
11 | * FFmpeg 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 GNU
14 | * Lesser General Public License for more details.
15 | *
16 | * You should have received a copy of the GNU Lesser General Public
17 | * License along with FFmpeg; if not, write to the Free Software
18 | * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
19 | */
20 |
21 | #ifndef AVCODEC_QSV_H
22 | #define AVCODEC_QSV_H
23 |
24 | #include
25 |
26 | typedef struct AVQSVContext {
27 | mfxSession session;
28 | int iopattern;
29 |
30 | mfxExtBuffer **ext_buffers;
31 | int nb_ext_buffers;
32 | } AVQSVContext;
33 |
34 | /**
35 | * Allocate a new context.
36 | *
37 | * It must be freed by the caller with av_free().
38 | */
39 | AVQSVContext *av_qsv_alloc_context(void);
40 |
41 | #endif /* AVCODEC_QSV_H */
42 |
--------------------------------------------------------------------------------
/Eleven/Vendor/FFmpeg-iOS/include/libavcodec/vorbis_parser.h:
--------------------------------------------------------------------------------
1 | /*
2 | *
3 | * This file is part of FFmpeg.
4 | *
5 | * FFmpeg is free software; you can redistribute it and/or
6 | * modify it under the terms of the GNU Lesser General Public
7 | * License as published by the Free Software Foundation; either
8 | * version 2.1 of the License, or (at your option) any later version.
9 | *
10 | * FFmpeg is distributed in the hope that it will be useful,
11 | * but WITHOUT ANY WARRANTY; without even the implied warranty of
12 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13 | * Lesser General Public License for more details.
14 | *
15 | * You should have received a copy of the GNU Lesser General Public
16 | * License along with FFmpeg; if not, write to the Free Software
17 | * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
18 | */
19 |
20 | /**
21 | * @file
22 | * A public API for Vorbis parsing
23 | *
24 | * Determines the duration for each packet.
25 | */
26 |
27 | #ifndef AVCODEC_VORBIS_PARSE_H
28 | #define AVCODEC_VORBIS_PARSE_H
29 |
30 | #include
31 |
32 | typedef struct AVVorbisParseContext AVVorbisParseContext;
33 |
34 | /**
35 | * Allocate and initialize the Vorbis parser using headers in the extradata.
36 | *
37 | * @param avctx codec context
38 | * @param s Vorbis parser context
39 | */
40 | AVVorbisParseContext *av_vorbis_parse_init(const uint8_t *extradata,
41 | int extradata_size);
42 |
43 | /**
44 | * Free the parser and everything associated with it.
45 | */
46 | void av_vorbis_parse_free(AVVorbisParseContext **s);
47 |
48 | #define VORBIS_FLAG_HEADER 0x00000001
49 | #define VORBIS_FLAG_COMMENT 0x00000002
50 | #define VORBIS_FLAG_SETUP 0x00000004
51 |
52 | /**
53 | * Get the duration for a Vorbis packet.
54 | *
55 | * If @p flags is @c NULL,
56 | * special frames are considered invalid.
57 | *
58 | * @param s Vorbis parser context
59 | * @param buf buffer containing a Vorbis frame
60 | * @param buf_size size of the buffer
61 | * @param flags flags for special frames
62 | */
63 | int av_vorbis_parse_frame_flags(AVVorbisParseContext *s, const uint8_t *buf,
64 | int buf_size, int *flags);
65 |
66 | /**
67 | * Get the duration for a Vorbis packet.
68 | *
69 | * @param s Vorbis parser context
70 | * @param buf buffer containing a Vorbis frame
71 | * @param buf_size size of the buffer
72 | */
73 | int av_vorbis_parse_frame(AVVorbisParseContext *s, const uint8_t *buf,
74 | int buf_size);
75 |
76 | void av_vorbis_parse_reset(AVVorbisParseContext *s);
77 |
78 | #endif /* AVCODEC_VORBIS_PARSE_H */
79 |
--------------------------------------------------------------------------------
/Eleven/Vendor/FFmpeg-iOS/include/libavdevice/version.h:
--------------------------------------------------------------------------------
1 | /*
2 | * This file is part of FFmpeg.
3 | *
4 | * FFmpeg is free software; you can redistribute it and/or
5 | * modify it under the terms of the GNU Lesser General Public
6 | * License as published by the Free Software Foundation; either
7 | * version 2.1 of the License, or (at your option) any later version.
8 | *
9 | * FFmpeg is distributed in the hope that it will be useful,
10 | * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12 | * Lesser General Public License for more details.
13 | *
14 | * You should have received a copy of the GNU Lesser General Public
15 | * License along with FFmpeg; if not, write to the Free Software
16 | * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
17 | */
18 |
19 | #ifndef AVDEVICE_VERSION_H
20 | #define AVDEVICE_VERSION_H
21 |
22 | /**
23 | * @file
24 | * @ingroup lavd
25 | * Libavdevice version macros
26 | */
27 |
28 | #include "libavutil/version.h"
29 |
30 | #define LIBAVDEVICE_VERSION_MAJOR 56
31 | #define LIBAVDEVICE_VERSION_MINOR 4
32 | #define LIBAVDEVICE_VERSION_MICRO 100
33 |
34 | #define LIBAVDEVICE_VERSION_INT AV_VERSION_INT(LIBAVDEVICE_VERSION_MAJOR, \
35 | LIBAVDEVICE_VERSION_MINOR, \
36 | LIBAVDEVICE_VERSION_MICRO)
37 | #define LIBAVDEVICE_VERSION AV_VERSION(LIBAVDEVICE_VERSION_MAJOR, \
38 | LIBAVDEVICE_VERSION_MINOR, \
39 | LIBAVDEVICE_VERSION_MICRO)
40 | #define LIBAVDEVICE_BUILD LIBAVDEVICE_VERSION_INT
41 |
42 | #define LIBAVDEVICE_IDENT "Lavd" AV_STRINGIFY(LIBAVDEVICE_VERSION)
43 |
44 | /**
45 | * FF_API_* defines may be placed below to indicate public API that will be
46 | * dropped at a future version bump. The defines themselves are not part of
47 | * the public API and may change, break or disappear at any time.
48 | */
49 |
50 | #endif /* AVDEVICE_VERSION_H */
51 |
--------------------------------------------------------------------------------
/Eleven/Vendor/FFmpeg-iOS/include/libavfilter/asrc_abuffer.h:
--------------------------------------------------------------------------------
1 | /*
2 | * This file is part of FFmpeg.
3 | *
4 | * FFmpeg is free software; you can redistribute it and/or
5 | * modify it under the terms of the GNU Lesser General Public
6 | * License as published by the Free Software Foundation; either
7 | * version 2.1 of the License, or (at your option) any later version.
8 | *
9 | * FFmpeg is distributed in the hope that it will be useful,
10 | * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12 | * Lesser General Public License for more details.
13 | *
14 | * You should have received a copy of the GNU Lesser General Public
15 | * License along with FFmpeg; if not, write to the Free Software
16 | * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
17 | */
18 |
19 | #ifndef AVFILTER_ASRC_ABUFFER_H
20 | #define AVFILTER_ASRC_ABUFFER_H
21 |
22 | #include "avfilter.h"
23 |
24 | /**
25 | * @file
26 | * memory buffer source for audio
27 | *
28 | * @deprecated use buffersrc.h instead.
29 | */
30 |
31 | /**
32 | * Queue an audio buffer to the audio buffer source.
33 | *
34 | * @param abuffersrc audio source buffer context
35 | * @param data pointers to the samples planes
36 | * @param linesize linesizes of each audio buffer plane
37 | * @param nb_samples number of samples per channel
38 | * @param sample_fmt sample format of the audio data
39 | * @param ch_layout channel layout of the audio data
40 | * @param planar flag to indicate if audio data is planar or packed
41 | * @param pts presentation timestamp of the audio buffer
42 | * @param flags unused
43 | *
44 | * @deprecated use av_buffersrc_add_ref() instead.
45 | */
46 | attribute_deprecated
47 | int av_asrc_buffer_add_samples(AVFilterContext *abuffersrc,
48 | uint8_t *data[8], int linesize[8],
49 | int nb_samples, int sample_rate,
50 | int sample_fmt, int64_t ch_layout, int planar,
51 | int64_t pts, int av_unused flags);
52 |
53 | /**
54 | * Queue an audio buffer to the audio buffer source.
55 | *
56 | * This is similar to av_asrc_buffer_add_samples(), but the samples
57 | * are stored in a buffer with known size.
58 | *
59 | * @param abuffersrc audio source buffer context
60 | * @param buf pointer to the samples data, packed is assumed
61 | * @param size the size in bytes of the buffer, it must contain an
62 | * integer number of samples
63 | * @param sample_fmt sample format of the audio data
64 | * @param ch_layout channel layout of the audio data
65 | * @param pts presentation timestamp of the audio buffer
66 | * @param flags unused
67 | *
68 | * @deprecated use av_buffersrc_add_ref() instead.
69 | */
70 | attribute_deprecated
71 | int av_asrc_buffer_add_buffer(AVFilterContext *abuffersrc,
72 | uint8_t *buf, int buf_size,
73 | int sample_rate,
74 | int sample_fmt, int64_t ch_layout, int planar,
75 | int64_t pts, int av_unused flags);
76 |
77 | /**
78 | * Queue an audio buffer to the audio buffer source.
79 | *
80 | * @param abuffersrc audio source buffer context
81 | * @param samplesref buffer ref to queue
82 | * @param flags unused
83 | *
84 | * @deprecated use av_buffersrc_add_ref() instead.
85 | */
86 | attribute_deprecated
87 | int av_asrc_buffer_add_audio_buffer_ref(AVFilterContext *abuffersrc,
88 | AVFilterBufferRef *samplesref,
89 | int av_unused flags);
90 |
91 | #endif /* AVFILTER_ASRC_ABUFFER_H */
92 |
--------------------------------------------------------------------------------
/Eleven/Vendor/FFmpeg-iOS/include/libavfilter/avcodec.h:
--------------------------------------------------------------------------------
1 | /*
2 | * This file is part of FFmpeg.
3 | *
4 | * FFmpeg is free software; you can redistribute it and/or
5 | * modify it under the terms of the GNU Lesser General Public
6 | * License as published by the Free Software Foundation; either
7 | * version 2.1 of the License, or (at your option) any later version.
8 | *
9 | * FFmpeg is distributed in the hope that it will be useful,
10 | * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12 | * Lesser General Public License for more details.
13 | *
14 | * You should have received a copy of the GNU Lesser General Public
15 | * License along with FFmpeg; if not, write to the Free Software
16 | * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
17 | */
18 |
19 | #ifndef AVFILTER_AVCODEC_H
20 | #define AVFILTER_AVCODEC_H
21 |
22 | /**
23 | * @file
24 | * libavcodec/libavfilter gluing utilities
25 | *
26 | * This should be included in an application ONLY if the installed
27 | * libavfilter has been compiled with libavcodec support, otherwise
28 | * symbols defined below will not be available.
29 | */
30 |
31 | #include "avfilter.h"
32 |
33 | #if FF_API_AVFILTERBUFFER
34 | /**
35 | * Create and return a picref reference from the data and properties
36 | * contained in frame.
37 | *
38 | * @param perms permissions to assign to the new buffer reference
39 | * @deprecated avfilter APIs work natively with AVFrame instead.
40 | */
41 | attribute_deprecated
42 | AVFilterBufferRef *avfilter_get_video_buffer_ref_from_frame(const AVFrame *frame, int perms);
43 |
44 |
45 | /**
46 | * Create and return a picref reference from the data and properties
47 | * contained in frame.
48 | *
49 | * @param perms permissions to assign to the new buffer reference
50 | * @deprecated avfilter APIs work natively with AVFrame instead.
51 | */
52 | attribute_deprecated
53 | AVFilterBufferRef *avfilter_get_audio_buffer_ref_from_frame(const AVFrame *frame,
54 | int perms);
55 |
56 | /**
57 | * Create and return a buffer reference from the data and properties
58 | * contained in frame.
59 | *
60 | * @param perms permissions to assign to the new buffer reference
61 | * @deprecated avfilter APIs work natively with AVFrame instead.
62 | */
63 | attribute_deprecated
64 | AVFilterBufferRef *avfilter_get_buffer_ref_from_frame(enum AVMediaType type,
65 | const AVFrame *frame,
66 | int perms);
67 | #endif
68 |
69 | #endif /* AVFILTER_AVCODEC_H */
70 |
--------------------------------------------------------------------------------
/Eleven/Vendor/FFmpeg-iOS/include/libavfilter/avfiltergraph.h:
--------------------------------------------------------------------------------
1 | /*
2 | * Filter graphs
3 | * copyright (c) 2007 Bobby Bingham
4 | *
5 | * This file is part of FFmpeg.
6 | *
7 | * FFmpeg is free software; you can redistribute it and/or
8 | * modify it under the terms of the GNU Lesser General Public
9 | * License as published by the Free Software Foundation; either
10 | * version 2.1 of the License, or (at your option) any later version.
11 | *
12 | * FFmpeg is distributed in the hope that it will be useful,
13 | * but WITHOUT ANY WARRANTY; without even the implied warranty of
14 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
15 | * Lesser General Public License for more details.
16 | *
17 | * You should have received a copy of the GNU Lesser General Public
18 | * License along with FFmpeg; if not, write to the Free Software
19 | * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
20 | */
21 |
22 | #ifndef AVFILTER_AVFILTERGRAPH_H
23 | #define AVFILTER_AVFILTERGRAPH_H
24 |
25 | #include "avfilter.h"
26 | #include "libavutil/log.h"
27 |
28 | #endif /* AVFILTER_AVFILTERGRAPH_H */
29 |
--------------------------------------------------------------------------------
/Eleven/Vendor/FFmpeg-iOS/include/libavfilter/version.h:
--------------------------------------------------------------------------------
1 | /*
2 | * Version macros.
3 | *
4 | * This file is part of FFmpeg.
5 | *
6 | * FFmpeg is free software; you can redistribute it and/or
7 | * modify it under the terms of the GNU Lesser General Public
8 | * License as published by the Free Software Foundation; either
9 | * version 2.1 of the License, or (at your option) any later version.
10 | *
11 | * FFmpeg 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 GNU
14 | * Lesser General Public License for more details.
15 | *
16 | * You should have received a copy of the GNU Lesser General Public
17 | * License along with FFmpeg; if not, write to the Free Software
18 | * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
19 | */
20 |
21 | #ifndef AVFILTER_VERSION_H
22 | #define AVFILTER_VERSION_H
23 |
24 | /**
25 | * @file
26 | * @ingroup lavfi
27 | * Libavfilter version macros
28 | */
29 |
30 | #include "libavutil/version.h"
31 |
32 | #define LIBAVFILTER_VERSION_MAJOR 5
33 | #define LIBAVFILTER_VERSION_MINOR 16
34 | #define LIBAVFILTER_VERSION_MICRO 101
35 |
36 | #define LIBAVFILTER_VERSION_INT AV_VERSION_INT(LIBAVFILTER_VERSION_MAJOR, \
37 | LIBAVFILTER_VERSION_MINOR, \
38 | LIBAVFILTER_VERSION_MICRO)
39 | #define LIBAVFILTER_VERSION AV_VERSION(LIBAVFILTER_VERSION_MAJOR, \
40 | LIBAVFILTER_VERSION_MINOR, \
41 | LIBAVFILTER_VERSION_MICRO)
42 | #define LIBAVFILTER_BUILD LIBAVFILTER_VERSION_INT
43 |
44 | #define LIBAVFILTER_IDENT "Lavfi" AV_STRINGIFY(LIBAVFILTER_VERSION)
45 |
46 | /**
47 | * FF_API_* defines may be placed below to indicate public API that will be
48 | * dropped at a future version bump. The defines themselves are not part of
49 | * the public API and may change, break or disappear at any time.
50 | */
51 |
52 | #ifndef FF_API_AVFILTERPAD_PUBLIC
53 | #define FF_API_AVFILTERPAD_PUBLIC (LIBAVFILTER_VERSION_MAJOR < 6)
54 | #endif
55 | #ifndef FF_API_FOO_COUNT
56 | #define FF_API_FOO_COUNT (LIBAVFILTER_VERSION_MAJOR < 6)
57 | #endif
58 | #ifndef FF_API_AVFILTERBUFFER
59 | #define FF_API_AVFILTERBUFFER (LIBAVFILTER_VERSION_MAJOR < 6)
60 | #endif
61 | #ifndef FF_API_OLD_FILTER_OPTS
62 | #define FF_API_OLD_FILTER_OPTS (LIBAVFILTER_VERSION_MAJOR < 6)
63 | #endif
64 | #ifndef FF_API_AVFILTER_OPEN
65 | #define FF_API_AVFILTER_OPEN (LIBAVFILTER_VERSION_MAJOR < 6)
66 | #endif
67 | #ifndef FF_API_AVFILTER_INIT_FILTER
68 | #define FF_API_AVFILTER_INIT_FILTER (LIBAVFILTER_VERSION_MAJOR < 6)
69 | #endif
70 | #ifndef FF_API_OLD_FILTER_REGISTER
71 | #define FF_API_OLD_FILTER_REGISTER (LIBAVFILTER_VERSION_MAJOR < 6)
72 | #endif
73 | #ifndef FF_API_OLD_GRAPH_PARSE
74 | #define FF_API_OLD_GRAPH_PARSE (LIBAVFILTER_VERSION_MAJOR < 5)
75 | #endif
76 | #ifndef FF_API_NOCONST_GET_NAME
77 | #define FF_API_NOCONST_GET_NAME (LIBAVFILTER_VERSION_MAJOR < 6)
78 | #endif
79 |
80 | #endif /* AVFILTER_VERSION_H */
81 |
--------------------------------------------------------------------------------
/Eleven/Vendor/FFmpeg-iOS/include/libavformat/version.h:
--------------------------------------------------------------------------------
1 | /*
2 | * Version macros.
3 | *
4 | * This file is part of FFmpeg.
5 | *
6 | * FFmpeg is free software; you can redistribute it and/or
7 | * modify it under the terms of the GNU Lesser General Public
8 | * License as published by the Free Software Foundation; either
9 | * version 2.1 of the License, or (at your option) any later version.
10 | *
11 | * FFmpeg 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 GNU
14 | * Lesser General Public License for more details.
15 | *
16 | * You should have received a copy of the GNU Lesser General Public
17 | * License along with FFmpeg; if not, write to the Free Software
18 | * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
19 | */
20 |
21 | #ifndef AVFORMAT_VERSION_H
22 | #define AVFORMAT_VERSION_H
23 |
24 | /**
25 | * @file
26 | * @ingroup libavf
27 | * Libavformat version macros
28 | */
29 |
30 | #include "libavutil/version.h"
31 |
32 | #define LIBAVFORMAT_VERSION_MAJOR 56
33 | #define LIBAVFORMAT_VERSION_MINOR 36
34 | #define LIBAVFORMAT_VERSION_MICRO 100
35 |
36 | #define LIBAVFORMAT_VERSION_INT AV_VERSION_INT(LIBAVFORMAT_VERSION_MAJOR, \
37 | LIBAVFORMAT_VERSION_MINOR, \
38 | LIBAVFORMAT_VERSION_MICRO)
39 | #define LIBAVFORMAT_VERSION AV_VERSION(LIBAVFORMAT_VERSION_MAJOR, \
40 | LIBAVFORMAT_VERSION_MINOR, \
41 | LIBAVFORMAT_VERSION_MICRO)
42 | #define LIBAVFORMAT_BUILD LIBAVFORMAT_VERSION_INT
43 |
44 | #define LIBAVFORMAT_IDENT "Lavf" AV_STRINGIFY(LIBAVFORMAT_VERSION)
45 |
46 | /**
47 | * FF_API_* defines may be placed below to indicate public API that will be
48 | * dropped at a future version bump. The defines themselves are not part of
49 | * the public API and may change, break or disappear at any time.
50 | */
51 | #ifndef FF_API_LAVF_BITEXACT
52 | #define FF_API_LAVF_BITEXACT (LIBAVFORMAT_VERSION_MAJOR < 57)
53 | #endif
54 | #ifndef FF_API_LAVF_FRAC
55 | #define FF_API_LAVF_FRAC (LIBAVFORMAT_VERSION_MAJOR < 57)
56 | #endif
57 | #ifndef FF_API_LAVF_CODEC_TB
58 | #define FF_API_LAVF_CODEC_TB (LIBAVFORMAT_VERSION_MAJOR < 57)
59 | #endif
60 | #ifndef FF_API_URL_FEOF
61 | #define FF_API_URL_FEOF (LIBAVFORMAT_VERSION_MAJOR < 57)
62 | #endif
63 |
64 | #ifndef FF_API_R_FRAME_RATE
65 | #define FF_API_R_FRAME_RATE 1
66 | #endif
67 | #endif /* AVFORMAT_VERSION_H */
68 |
--------------------------------------------------------------------------------
/Eleven/Vendor/FFmpeg-iOS/include/libavutil/adler32.h:
--------------------------------------------------------------------------------
1 | /*
2 | * copyright (c) 2006 Mans Rullgard
3 | *
4 | * This file is part of FFmpeg.
5 | *
6 | * FFmpeg is free software; you can redistribute it and/or
7 | * modify it under the terms of the GNU Lesser General Public
8 | * License as published by the Free Software Foundation; either
9 | * version 2.1 of the License, or (at your option) any later version.
10 | *
11 | * FFmpeg 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 GNU
14 | * Lesser General Public License for more details.
15 | *
16 | * You should have received a copy of the GNU Lesser General Public
17 | * License along with FFmpeg; if not, write to the Free Software
18 | * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
19 | */
20 |
21 | #ifndef AVUTIL_ADLER32_H
22 | #define AVUTIL_ADLER32_H
23 |
24 | #include
25 | #include "attributes.h"
26 |
27 | /**
28 | * @file
29 | * Public header for libavutil Adler32 hasher
30 | *
31 | * @defgroup lavu_adler32 Adler32
32 | * @ingroup lavu_crypto
33 | * @{
34 | */
35 |
36 | /**
37 | * Calculate the Adler32 checksum of a buffer.
38 | *
39 | * Passing the return value to a subsequent av_adler32_update() call
40 | * allows the checksum of multiple buffers to be calculated as though
41 | * they were concatenated.
42 | *
43 | * @param adler initial checksum value
44 | * @param buf pointer to input buffer
45 | * @param len size of input buffer
46 | * @return updated checksum
47 | */
48 | unsigned long av_adler32_update(unsigned long adler, const uint8_t *buf,
49 | unsigned int len) av_pure;
50 |
51 | /**
52 | * @}
53 | */
54 |
55 | #endif /* AVUTIL_ADLER32_H */
56 |
--------------------------------------------------------------------------------
/Eleven/Vendor/FFmpeg-iOS/include/libavutil/aes.h:
--------------------------------------------------------------------------------
1 | /*
2 | * copyright (c) 2007 Michael Niedermayer
3 | *
4 | * This file is part of FFmpeg.
5 | *
6 | * FFmpeg is free software; you can redistribute it and/or
7 | * modify it under the terms of the GNU Lesser General Public
8 | * License as published by the Free Software Foundation; either
9 | * version 2.1 of the License, or (at your option) any later version.
10 | *
11 | * FFmpeg 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 GNU
14 | * Lesser General Public License for more details.
15 | *
16 | * You should have received a copy of the GNU Lesser General Public
17 | * License along with FFmpeg; if not, write to the Free Software
18 | * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
19 | */
20 |
21 | #ifndef AVUTIL_AES_H
22 | #define AVUTIL_AES_H
23 |
24 | #include
25 |
26 | #include "attributes.h"
27 | #include "version.h"
28 |
29 | /**
30 | * @defgroup lavu_aes AES
31 | * @ingroup lavu_crypto
32 | * @{
33 | */
34 |
35 | extern const int av_aes_size;
36 |
37 | struct AVAES;
38 |
39 | /**
40 | * Allocate an AVAES context.
41 | */
42 | struct AVAES *av_aes_alloc(void);
43 |
44 | /**
45 | * Initialize an AVAES context.
46 | * @param key_bits 128, 192 or 256
47 | * @param decrypt 0 for encryption, 1 for decryption
48 | */
49 | int av_aes_init(struct AVAES *a, const uint8_t *key, int key_bits, int decrypt);
50 |
51 | /**
52 | * Encrypt or decrypt a buffer using a previously initialized context.
53 | * @param count number of 16 byte blocks
54 | * @param dst destination array, can be equal to src
55 | * @param src source array, can be equal to dst
56 | * @param iv initialization vector for CBC mode, if NULL then ECB will be used
57 | * @param decrypt 0 for encryption, 1 for decryption
58 | */
59 | void av_aes_crypt(struct AVAES *a, uint8_t *dst, const uint8_t *src, int count, uint8_t *iv, int decrypt);
60 |
61 | /**
62 | * @}
63 | */
64 |
65 | #endif /* AVUTIL_AES_H */
66 |
--------------------------------------------------------------------------------
/Eleven/Vendor/FFmpeg-iOS/include/libavutil/audioconvert.h:
--------------------------------------------------------------------------------
1 |
2 | #include "version.h"
3 |
4 | #if FF_API_AUDIOCONVERT
5 | #include "channel_layout.h"
6 | #endif
7 |
--------------------------------------------------------------------------------
/Eleven/Vendor/FFmpeg-iOS/include/libavutil/avassert.h:
--------------------------------------------------------------------------------
1 | /*
2 | * copyright (c) 2010 Michael Niedermayer
3 | *
4 | * This file is part of FFmpeg.
5 | *
6 | * FFmpeg is free software; you can redistribute it and/or
7 | * modify it under the terms of the GNU Lesser General Public
8 | * License as published by the Free Software Foundation; either
9 | * version 2.1 of the License, or (at your option) any later version.
10 | *
11 | * FFmpeg 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 GNU
14 | * Lesser General Public License for more details.
15 | *
16 | * You should have received a copy of the GNU Lesser General Public
17 | * License along with FFmpeg; if not, write to the Free Software
18 | * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
19 | */
20 |
21 | /**
22 | * @file
23 | * simple assert() macros that are a bit more flexible than ISO C assert().
24 | * @author Michael Niedermayer
25 | */
26 |
27 | #ifndef AVUTIL_AVASSERT_H
28 | #define AVUTIL_AVASSERT_H
29 |
30 | #include
31 | #include "avutil.h"
32 | #include "log.h"
33 |
34 | /**
35 | * assert() equivalent, that is always enabled.
36 | */
37 | #define av_assert0(cond) do { \
38 | if (!(cond)) { \
39 | av_log(NULL, AV_LOG_PANIC, "Assertion %s failed at %s:%d\n", \
40 | AV_STRINGIFY(cond), __FILE__, __LINE__); \
41 | abort(); \
42 | } \
43 | } while (0)
44 |
45 |
46 | /**
47 | * assert() equivalent, that does not lie in speed critical code.
48 | * These asserts() thus can be enabled without fearing speedloss.
49 | */
50 | #if defined(ASSERT_LEVEL) && ASSERT_LEVEL > 0
51 | #define av_assert1(cond) av_assert0(cond)
52 | #else
53 | #define av_assert1(cond) ((void)0)
54 | #endif
55 |
56 |
57 | /**
58 | * assert() equivalent, that does lie in speed critical code.
59 | */
60 | #if defined(ASSERT_LEVEL) && ASSERT_LEVEL > 1
61 | #define av_assert2(cond) av_assert0(cond)
62 | #else
63 | #define av_assert2(cond) ((void)0)
64 | #endif
65 |
66 | #endif /* AVUTIL_AVASSERT_H */
67 |
--------------------------------------------------------------------------------
/Eleven/Vendor/FFmpeg-iOS/include/libavutil/avconfig.h:
--------------------------------------------------------------------------------
1 | /* Generated by ffconf */
2 | #ifndef AVUTIL_AVCONFIG_H
3 | #define AVUTIL_AVCONFIG_H
4 | #define AV_HAVE_BIGENDIAN 0
5 | #define AV_HAVE_FAST_UNALIGNED 1
6 | #define AV_HAVE_INCOMPATIBLE_LIBAV_ABI 0
7 | #endif /* AVUTIL_AVCONFIG_H */
8 |
--------------------------------------------------------------------------------
/Eleven/Vendor/FFmpeg-iOS/include/libavutil/base64.h:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright (c) 2006 Ryan Martell. (rdm4@martellventures.com)
3 | *
4 | * This file is part of FFmpeg.
5 | *
6 | * FFmpeg is free software; you can redistribute it and/or
7 | * modify it under the terms of the GNU Lesser General Public
8 | * License as published by the Free Software Foundation; either
9 | * version 2.1 of the License, or (at your option) any later version.
10 | *
11 | * FFmpeg 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 GNU
14 | * Lesser General Public License for more details.
15 | *
16 | * You should have received a copy of the GNU Lesser General Public
17 | * License along with FFmpeg; if not, write to the Free Software
18 | * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
19 | */
20 |
21 | #ifndef AVUTIL_BASE64_H
22 | #define AVUTIL_BASE64_H
23 |
24 | #include
25 |
26 | /**
27 | * @defgroup lavu_base64 Base64
28 | * @ingroup lavu_crypto
29 | * @{
30 | */
31 |
32 |
33 | /**
34 | * Decode a base64-encoded string.
35 | *
36 | * @param out buffer for decoded data
37 | * @param in null-terminated input string
38 | * @param out_size size in bytes of the out buffer, must be at
39 | * least 3/4 of the length of in
40 | * @return number of bytes written, or a negative value in case of
41 | * invalid input
42 | */
43 | int av_base64_decode(uint8_t *out, const char *in, int out_size);
44 |
45 | /**
46 | * Encode data to base64 and null-terminate.
47 | *
48 | * @param out buffer for encoded data
49 | * @param out_size size in bytes of the out buffer (including the
50 | * null terminator), must be at least AV_BASE64_SIZE(in_size)
51 | * @param in input buffer containing the data to encode
52 | * @param in_size size in bytes of the in buffer
53 | * @return out or NULL in case of error
54 | */
55 | char *av_base64_encode(char *out, int out_size, const uint8_t *in, int in_size);
56 |
57 | /**
58 | * Calculate the output size needed to base64-encode x bytes to a
59 | * null-terminated string.
60 | */
61 | #define AV_BASE64_SIZE(x) (((x)+2) / 3 * 4 + 1)
62 |
63 | /**
64 | * @}
65 | */
66 |
67 | #endif /* AVUTIL_BASE64_H */
68 |
--------------------------------------------------------------------------------
/Eleven/Vendor/FFmpeg-iOS/include/libavutil/blowfish.h:
--------------------------------------------------------------------------------
1 | /*
2 | * Blowfish algorithm
3 | * Copyright (c) 2012 Samuel Pitoiset
4 | *
5 | * This file is part of FFmpeg.
6 | *
7 | * FFmpeg is free software; you can redistribute it and/or
8 | * modify it under the terms of the GNU Lesser General Public
9 | * License as published by the Free Software Foundation; either
10 | * version 2.1 of the License, or (at your option) any later version.
11 | *
12 | * FFmpeg is distributed in the hope that it will be useful,
13 | * but WITHOUT ANY WARRANTY; without even the implied warranty of
14 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
15 | * Lesser General Public License for more details.
16 | *
17 | * You should have received a copy of the GNU Lesser General Public
18 | * License along with FFmpeg; if not, write to the Free Software
19 | * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
20 | */
21 |
22 | #ifndef AVUTIL_BLOWFISH_H
23 | #define AVUTIL_BLOWFISH_H
24 |
25 | #include
26 |
27 | /**
28 | * @defgroup lavu_blowfish Blowfish
29 | * @ingroup lavu_crypto
30 | * @{
31 | */
32 |
33 | #define AV_BF_ROUNDS 16
34 |
35 | typedef struct AVBlowfish {
36 | uint32_t p[AV_BF_ROUNDS + 2];
37 | uint32_t s[4][256];
38 | } AVBlowfish;
39 |
40 | /**
41 | * Initialize an AVBlowfish context.
42 | *
43 | * @param ctx an AVBlowfish context
44 | * @param key a key
45 | * @param key_len length of the key
46 | */
47 | void av_blowfish_init(struct AVBlowfish *ctx, const uint8_t *key, int key_len);
48 |
49 | /**
50 | * Encrypt or decrypt a buffer using a previously initialized context.
51 | *
52 | * @param ctx an AVBlowfish context
53 | * @param xl left four bytes halves of input to be encrypted
54 | * @param xr right four bytes halves of input to be encrypted
55 | * @param decrypt 0 for encryption, 1 for decryption
56 | */
57 | void av_blowfish_crypt_ecb(struct AVBlowfish *ctx, uint32_t *xl, uint32_t *xr,
58 | int decrypt);
59 |
60 | /**
61 | * Encrypt or decrypt a buffer using a previously initialized context.
62 | *
63 | * @param ctx an AVBlowfish context
64 | * @param dst destination array, can be equal to src
65 | * @param src source array, can be equal to dst
66 | * @param count number of 8 byte blocks
67 | * @param iv initialization vector for CBC mode, if NULL ECB will be used
68 | * @param decrypt 0 for encryption, 1 for decryption
69 | */
70 | void av_blowfish_crypt(struct AVBlowfish *ctx, uint8_t *dst, const uint8_t *src,
71 | int count, uint8_t *iv, int decrypt);
72 |
73 | /**
74 | * @}
75 | */
76 |
77 | #endif /* AVUTIL_BLOWFISH_H */
78 |
--------------------------------------------------------------------------------
/Eleven/Vendor/FFmpeg-iOS/include/libavutil/bswap.h:
--------------------------------------------------------------------------------
1 | /*
2 | * copyright (c) 2006 Michael Niedermayer
3 | *
4 | * This file is part of FFmpeg.
5 | *
6 | * FFmpeg is free software; you can redistribute it and/or
7 | * modify it under the terms of the GNU Lesser General Public
8 | * License as published by the Free Software Foundation; either
9 | * version 2.1 of the License, or (at your option) any later version.
10 | *
11 | * FFmpeg 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 GNU
14 | * Lesser General Public License for more details.
15 | *
16 | * You should have received a copy of the GNU Lesser General Public
17 | * License along with FFmpeg; if not, write to the Free Software
18 | * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
19 | */
20 |
21 | /**
22 | * @file
23 | * byte swapping routines
24 | */
25 |
26 | #ifndef AVUTIL_BSWAP_H
27 | #define AVUTIL_BSWAP_H
28 |
29 | #include
30 | #include "libavutil/avconfig.h"
31 | #include "attributes.h"
32 |
33 | #ifdef HAVE_AV_CONFIG_H
34 |
35 | #include "config.h"
36 |
37 | #if ARCH_AARCH64
38 | # include "aarch64/bswap.h"
39 | #elif ARCH_ARM
40 | # include "arm/bswap.h"
41 | #elif ARCH_AVR32
42 | # include "avr32/bswap.h"
43 | #elif ARCH_SH4
44 | # include "sh4/bswap.h"
45 | #elif ARCH_X86
46 | # include "x86/bswap.h"
47 | #endif
48 |
49 | #endif /* HAVE_AV_CONFIG_H */
50 |
51 | #define AV_BSWAP16C(x) (((x) << 8 & 0xff00) | ((x) >> 8 & 0x00ff))
52 | #define AV_BSWAP32C(x) (AV_BSWAP16C(x) << 16 | AV_BSWAP16C((x) >> 16))
53 | #define AV_BSWAP64C(x) (AV_BSWAP32C(x) << 32 | AV_BSWAP32C((x) >> 32))
54 |
55 | #define AV_BSWAPC(s, x) AV_BSWAP##s##C(x)
56 |
57 | #ifndef av_bswap16
58 | static av_always_inline av_const uint16_t av_bswap16(uint16_t x)
59 | {
60 | x= (x>>8) | (x<<8);
61 | return x;
62 | }
63 | #endif
64 |
65 | #ifndef av_bswap32
66 | static av_always_inline av_const uint32_t av_bswap32(uint32_t x)
67 | {
68 | return AV_BSWAP32C(x);
69 | }
70 | #endif
71 |
72 | #ifndef av_bswap64
73 | static inline uint64_t av_const av_bswap64(uint64_t x)
74 | {
75 | return (uint64_t)av_bswap32(x) << 32 | av_bswap32(x >> 32);
76 | }
77 | #endif
78 |
79 | // be2ne ... big-endian to native-endian
80 | // le2ne ... little-endian to native-endian
81 |
82 | #if AV_HAVE_BIGENDIAN
83 | #define av_be2ne16(x) (x)
84 | #define av_be2ne32(x) (x)
85 | #define av_be2ne64(x) (x)
86 | #define av_le2ne16(x) av_bswap16(x)
87 | #define av_le2ne32(x) av_bswap32(x)
88 | #define av_le2ne64(x) av_bswap64(x)
89 | #define AV_BE2NEC(s, x) (x)
90 | #define AV_LE2NEC(s, x) AV_BSWAPC(s, x)
91 | #else
92 | #define av_be2ne16(x) av_bswap16(x)
93 | #define av_be2ne32(x) av_bswap32(x)
94 | #define av_be2ne64(x) av_bswap64(x)
95 | #define av_le2ne16(x) (x)
96 | #define av_le2ne32(x) (x)
97 | #define av_le2ne64(x) (x)
98 | #define AV_BE2NEC(s, x) AV_BSWAPC(s, x)
99 | #define AV_LE2NEC(s, x) (x)
100 | #endif
101 |
102 | #define AV_BE2NE16C(x) AV_BE2NEC(16, x)
103 | #define AV_BE2NE32C(x) AV_BE2NEC(32, x)
104 | #define AV_BE2NE64C(x) AV_BE2NEC(64, x)
105 | #define AV_LE2NE16C(x) AV_LE2NEC(16, x)
106 | #define AV_LE2NE32C(x) AV_LE2NEC(32, x)
107 | #define AV_LE2NE64C(x) AV_LE2NEC(64, x)
108 |
109 | #endif /* AVUTIL_BSWAP_H */
110 |
--------------------------------------------------------------------------------
/Eleven/Vendor/FFmpeg-iOS/include/libavutil/camellia.h:
--------------------------------------------------------------------------------
1 | /*
2 | * An implementation of the CAMELLIA algorithm as mentioned in RFC3713
3 | * Copyright (c) 2014 Supraja Meedinti
4 | *
5 | * This file is part of FFmpeg.
6 | *
7 | * FFmpeg is free software; you can redistribute it and/or
8 | * modify it under the terms of the GNU Lesser General Public
9 | * License as published by the Free Software Foundation; either
10 | * version 2.1 of the License, or (at your option) any later version.
11 | *
12 | * FFmpeg is distributed in the hope that it will be useful,
13 | * but WITHOUT ANY WARRANTY; without even the implied warranty of
14 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
15 | * Lesser General Public License for more details.
16 | *
17 | * You should have received a copy of the GNU Lesser General Public
18 | * License along with FFmpeg; if not, write to the Free Software
19 | * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
20 | */
21 |
22 | #ifndef AVUTIL_CAMELLIA_H
23 | #define AVUTIL_CAMELLIA_H
24 |
25 | #include
26 |
27 |
28 | /**
29 | * @file
30 | * @brief Public header for libavutil CAMELLIA algorithm
31 | * @defgroup lavu_camellia CAMELLIA
32 | * @ingroup lavu_crypto
33 | * @{
34 | */
35 |
36 | extern const int av_camellia_size;
37 |
38 | struct AVCAMELLIA;
39 |
40 | /**
41 | * Allocate an AVCAMELLIA context
42 | * To free the struct: av_free(ptr)
43 | */
44 | struct AVCAMELLIA *av_camellia_alloc(void);
45 |
46 | /**
47 | * Initialize an AVCAMELLIA context.
48 | *
49 | * @param ctx an AVCAMELLIA context
50 | * @param key a key of 16, 24, 32 bytes used for encryption/decryption
51 | * @param key_bits number of keybits: possible are 128, 192, 256
52 | */
53 | int av_camellia_init(struct AVCAMELLIA *ctx, const uint8_t *key, int key_bits);
54 |
55 | /**
56 | * Encrypt or decrypt a buffer using a previously initialized context
57 | *
58 | * @param ctx an AVCAMELLIA context
59 | * @param dst destination array, can be equal to src
60 | * @param src source array, can be equal to dst
61 | * @param count number of 16 byte blocks
62 | * @paran iv initialization vector for CBC mode, NULL for ECB mode
63 | * @param decrypt 0 for encryption, 1 for decryption
64 | */
65 | void av_camellia_crypt(struct AVCAMELLIA *ctx, uint8_t *dst, const uint8_t *src, int count, uint8_t* iv, int decrypt);
66 |
67 | /**
68 | * @}
69 | */
70 | #endif /* AVUTIL_CAMELLIA_H */
71 |
--------------------------------------------------------------------------------
/Eleven/Vendor/FFmpeg-iOS/include/libavutil/cast5.h:
--------------------------------------------------------------------------------
1 | /*
2 | * An implementation of the CAST128 algorithm as mentioned in RFC2144
3 | * Copyright (c) 2014 Supraja Meedinti
4 | *
5 | * This file is part of FFmpeg.
6 | *
7 | * FFmpeg is free software; you can redistribute it and/or
8 | * modify it under the terms of the GNU Lesser General Public
9 | * License as published by the Free Software Foundation; either
10 | * version 2.1 of the License, or (at your option) any later version.
11 | *
12 | * FFmpeg is distributed in the hope that it will be useful,
13 | * but WITHOUT ANY WARRANTY; without even the implied warranty of
14 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
15 | * Lesser General Public License for more details.
16 | *
17 | * You should have received a copy of the GNU Lesser General Public
18 | * License along with FFmpeg; if not, write to the Free Software
19 | * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
20 | */
21 |
22 | #ifndef AVUTIL_CAST5_H
23 | #define AVUTIL_CAST5_H
24 |
25 | #include
26 |
27 |
28 | /**
29 | * @file
30 | * @brief Public header for libavutil CAST5 algorithm
31 | * @defgroup lavu_cast5 CAST5
32 | * @ingroup lavu_crypto
33 | * @{
34 | */
35 |
36 | extern const int av_cast5_size;
37 |
38 | struct AVCAST5;
39 |
40 | /**
41 | * Allocate an AVCAST5 context
42 | * To free the struct: av_free(ptr)
43 | */
44 | struct AVCAST5 *av_cast5_alloc(void);
45 | /**
46 | * Initialize an AVCAST5 context.
47 | *
48 | * @param ctx an AVCAST5 context
49 | * @param key a key of 5,6,...16 bytes used for encryption/decryption
50 | * @param key_bits number of keybits: possible are 40,48,...,128
51 | */
52 | int av_cast5_init(struct AVCAST5 *ctx, const uint8_t *key, int key_bits);
53 |
54 | /**
55 | * Encrypt or decrypt a buffer using a previously initialized context, ECB mode only
56 | *
57 | * @param ctx an AVCAST5 context
58 | * @param dst destination array, can be equal to src
59 | * @param src source array, can be equal to dst
60 | * @param count number of 8 byte blocks
61 | * @param decrypt 0 for encryption, 1 for decryption
62 | */
63 | void av_cast5_crypt(struct AVCAST5 *ctx, uint8_t *dst, const uint8_t *src, int count, int decrypt);
64 |
65 | /**
66 | * Encrypt or decrypt a buffer using a previously initialized context
67 | *
68 | * @param ctx an AVCAST5 context
69 | * @param dst destination array, can be equal to src
70 | * @param src source array, can be equal to dst
71 | * @param count number of 8 byte blocks
72 | * @param iv initialization vector for CBC mode, NULL for ECB mode
73 | * @param decrypt 0 for encryption, 1 for decryption
74 | */
75 | void av_cast5_crypt2(struct AVCAST5 *ctx, uint8_t *dst, const uint8_t *src, int count, uint8_t *iv, int decrypt);
76 | /**
77 | * @}
78 | */
79 | #endif /* AVUTIL_CAST5_H */
80 |
--------------------------------------------------------------------------------
/Eleven/Vendor/FFmpeg-iOS/include/libavutil/crc.h:
--------------------------------------------------------------------------------
1 | /*
2 | * copyright (c) 2006 Michael Niedermayer
3 | *
4 | * This file is part of FFmpeg.
5 | *
6 | * FFmpeg is free software; you can redistribute it and/or
7 | * modify it under the terms of the GNU Lesser General Public
8 | * License as published by the Free Software Foundation; either
9 | * version 2.1 of the License, or (at your option) any later version.
10 | *
11 | * FFmpeg 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 GNU
14 | * Lesser General Public License for more details.
15 | *
16 | * You should have received a copy of the GNU Lesser General Public
17 | * License along with FFmpeg; if not, write to the Free Software
18 | * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
19 | */
20 |
21 | #ifndef AVUTIL_CRC_H
22 | #define AVUTIL_CRC_H
23 |
24 | #include
25 | #include
26 | #include "attributes.h"
27 |
28 | /**
29 | * @defgroup lavu_crc32 CRC32
30 | * @ingroup lavu_crypto
31 | * @{
32 | */
33 |
34 | typedef uint32_t AVCRC;
35 |
36 | typedef enum {
37 | AV_CRC_8_ATM,
38 | AV_CRC_16_ANSI,
39 | AV_CRC_16_CCITT,
40 | AV_CRC_32_IEEE,
41 | AV_CRC_32_IEEE_LE, /*< reversed bitorder version of AV_CRC_32_IEEE */
42 | AV_CRC_16_ANSI_LE, /*< reversed bitorder version of AV_CRC_16_ANSI */
43 | AV_CRC_24_IEEE = 12,
44 | AV_CRC_MAX, /*< Not part of public API! Do not use outside libavutil. */
45 | }AVCRCId;
46 |
47 | /**
48 | * Initialize a CRC table.
49 | * @param ctx must be an array of size sizeof(AVCRC)*257 or sizeof(AVCRC)*1024
50 | * @param le If 1, the lowest bit represents the coefficient for the highest
51 | * exponent of the corresponding polynomial (both for poly and
52 | * actual CRC).
53 | * If 0, you must swap the CRC parameter and the result of av_crc
54 | * if you need the standard representation (can be simplified in
55 | * most cases to e.g. bswap16):
56 | * av_bswap32(crc << (32-bits))
57 | * @param bits number of bits for the CRC
58 | * @param poly generator polynomial without the x**bits coefficient, in the
59 | * representation as specified by le
60 | * @param ctx_size size of ctx in bytes
61 | * @return <0 on failure
62 | */
63 | int av_crc_init(AVCRC *ctx, int le, int bits, uint32_t poly, int ctx_size);
64 |
65 | /**
66 | * Get an initialized standard CRC table.
67 | * @param crc_id ID of a standard CRC
68 | * @return a pointer to the CRC table or NULL on failure
69 | */
70 | const AVCRC *av_crc_get_table(AVCRCId crc_id);
71 |
72 | /**
73 | * Calculate the CRC of a block.
74 | * @param crc CRC of previous blocks if any or initial value for CRC
75 | * @return CRC updated with the data from the given block
76 | *
77 | * @see av_crc_init() "le" parameter
78 | */
79 | uint32_t av_crc(const AVCRC *ctx, uint32_t crc,
80 | const uint8_t *buffer, size_t length) av_pure;
81 |
82 | /**
83 | * @}
84 | */
85 |
86 | #endif /* AVUTIL_CRC_H */
87 |
--------------------------------------------------------------------------------
/Eleven/Vendor/FFmpeg-iOS/include/libavutil/display.h:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright (c) 2014 Vittorio Giovara
3 | *
4 | * This file is part of FFmpeg.
5 | *
6 | * FFmpeg is free software; you can redistribute it and/or
7 | * modify it under the terms of the GNU Lesser General Public
8 | * License as published by the Free Software Foundation; either
9 | * version 2.1 of the License, or (at your option) any later version.
10 | *
11 | * FFmpeg 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 GNU
14 | * Lesser General Public License for more details.
15 | *
16 | * You should have received a copy of the GNU Lesser General Public
17 | * License along with FFmpeg; if not, write to the Free Software
18 | * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
19 | */
20 |
21 | #ifndef AVUTIL_DISPLAY_H
22 | #define AVUTIL_DISPLAY_H
23 |
24 | #include
25 |
26 | /**
27 | * The display transformation matrix specifies an affine transformation that
28 | * should be applied to video frames for correct presentation. It is compatible
29 | * with the matrices stored in the ISO/IEC 14496-12 container format.
30 | *
31 | * The data is a 3x3 matrix represented as a 9-element array:
32 | *
33 | * | a b u |
34 | * (a, b, u, c, d, v, x, y, w) -> | c d v |
35 | * | x y w |
36 | *
37 | * All numbers are stored in native endianness, as 16.16 fixed-point values,
38 | * except for u, v and w, which are stored as 2.30 fixed-point values.
39 | *
40 | * The transformation maps a point (p, q) in the source (pre-transformation)
41 | * frame to the point (p', q') in the destination (post-transformation) frame as
42 | * follows:
43 | * | a b u |
44 | * (p, q, 1) . | c d v | = z * (p', q', 1)
45 | * | x y w |
46 | *
47 | * The transformation can also be more explicitly written in components as
48 | * follows:
49 | * p' = (a * p + c * q + x) / z;
50 | * q' = (b * p + d * q + y) / z;
51 | * z = u * p + v * q + w
52 | */
53 |
54 | /**
55 | * Extract the rotation component of the transformation matrix.
56 | *
57 | * @param matrix the transformation matrix
58 | * @return the angle (in degrees) by which the transformation rotates the frame
59 | * counterclockwise. The angle will be in range [-180.0, 180.0],
60 | * or NaN if the matrix is singular.
61 | *
62 | * @note floating point numbers are inherently inexact, so callers are
63 | * recommended to round the return value to nearest integer before use.
64 | */
65 | double av_display_rotation_get(const int32_t matrix[9]);
66 |
67 | /**
68 | * Initialize a transformation matrix describing a pure counterclockwise
69 | * rotation by the specified angle (in degrees).
70 | *
71 | * @param matrix an allocated transformation matrix (will be fully overwritten
72 | * by this function)
73 | * @param angle rotation angle in degrees.
74 | */
75 | void av_display_rotation_set(int32_t matrix[9], double angle);
76 |
77 | /**
78 | * Flip the input matrix horizontally and/or vertically.
79 | *
80 | * @param matrix an allocated transformation matrix
81 | * @param hflip whether the matrix should be flipped horizontally
82 | * @param vflip whether the matrix should be flipped vertically
83 | */
84 | void av_display_matrix_flip(int32_t matrix[9], int hflip, int vflip);
85 |
86 | #endif /* AVUTIL_DISPLAY_H */
87 |
--------------------------------------------------------------------------------
/Eleven/Vendor/FFmpeg-iOS/include/libavutil/downmix_info.h:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright (c) 2014 Tim Walker
3 | *
4 | * This file is part of FFmpeg.
5 | *
6 | * FFmpeg is free software; you can redistribute it and/or
7 | * modify it under the terms of the GNU Lesser General Public
8 | * License as published by the Free Software Foundation; either
9 | * version 2.1 of the License, or (at your option) any later version.
10 | *
11 | * FFmpeg 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 GNU
14 | * Lesser General Public License for more details.
15 | *
16 | * You should have received a copy of the GNU Lesser General Public
17 | * License along with FFmpeg; if not, write to the Free Software
18 | * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
19 | */
20 |
21 | #ifndef AVUTIL_DOWNMIX_INFO_H
22 | #define AVUTIL_DOWNMIX_INFO_H
23 |
24 | #include "frame.h"
25 |
26 | /**
27 | * @file
28 | * audio downmix medatata
29 | */
30 |
31 | /**
32 | * @addtogroup lavu_audio
33 | * @{
34 | */
35 |
36 | /**
37 | * @defgroup downmix_info Audio downmix metadata
38 | * @{
39 | */
40 |
41 | /**
42 | * Possible downmix types.
43 | */
44 | enum AVDownmixType {
45 | AV_DOWNMIX_TYPE_UNKNOWN, /**< Not indicated. */
46 | AV_DOWNMIX_TYPE_LORO, /**< Lo/Ro 2-channel downmix (Stereo). */
47 | AV_DOWNMIX_TYPE_LTRT, /**< Lt/Rt 2-channel downmix, Dolby Surround compatible. */
48 | AV_DOWNMIX_TYPE_DPLII, /**< Lt/Rt 2-channel downmix, Dolby Pro Logic II compatible. */
49 | AV_DOWNMIX_TYPE_NB /**< Number of downmix types. Not part of ABI. */
50 | };
51 |
52 | /**
53 | * This structure describes optional metadata relevant to a downmix procedure.
54 | *
55 | * All fields are set by the decoder to the value indicated in the audio
56 | * bitstream (if present), or to a "sane" default otherwise.
57 | */
58 | typedef struct AVDownmixInfo {
59 | /**
60 | * Type of downmix preferred by the mastering engineer.
61 | */
62 | enum AVDownmixType preferred_downmix_type;
63 |
64 | /**
65 | * Absolute scale factor representing the nominal level of the center
66 | * channel during a regular downmix.
67 | */
68 | double center_mix_level;
69 |
70 | /**
71 | * Absolute scale factor representing the nominal level of the center
72 | * channel during an Lt/Rt compatible downmix.
73 | */
74 | double center_mix_level_ltrt;
75 |
76 | /**
77 | * Absolute scale factor representing the nominal level of the surround
78 | * channels during a regular downmix.
79 | */
80 | double surround_mix_level;
81 |
82 | /**
83 | * Absolute scale factor representing the nominal level of the surround
84 | * channels during an Lt/Rt compatible downmix.
85 | */
86 | double surround_mix_level_ltrt;
87 |
88 | /**
89 | * Absolute scale factor representing the level at which the LFE data is
90 | * mixed into L/R channels during downmixing.
91 | */
92 | double lfe_mix_level;
93 | } AVDownmixInfo;
94 |
95 | /**
96 | * Get a frame's AV_FRAME_DATA_DOWNMIX_INFO side data for editing.
97 | *
98 | * If the side data is absent, it is created and added to the frame.
99 | *
100 | * @param frame the frame for which the side data is to be obtained or created
101 | *
102 | * @return the AVDownmixInfo structure to be edited by the caller, or NULL if
103 | * the structure cannot be allocated.
104 | */
105 | AVDownmixInfo *av_downmix_info_update_side_data(AVFrame *frame);
106 |
107 | /**
108 | * @}
109 | */
110 |
111 | /**
112 | * @}
113 | */
114 |
115 | #endif /* AVUTIL_DOWNMIX_INFO_H */
116 |
--------------------------------------------------------------------------------
/Eleven/Vendor/FFmpeg-iOS/include/libavutil/ffversion.h:
--------------------------------------------------------------------------------
1 | #ifndef AVUTIL_FFVERSION_H
2 | #define AVUTIL_FFVERSION_H
3 | #define FFMPEG_VERSION "2.7.2"
4 | #endif /* AVUTIL_FFVERSION_H */
5 |
--------------------------------------------------------------------------------
/Eleven/Vendor/FFmpeg-iOS/include/libavutil/file.h:
--------------------------------------------------------------------------------
1 | /*
2 | * This file is part of FFmpeg.
3 | *
4 | * FFmpeg is free software; you can redistribute it and/or
5 | * modify it under the terms of the GNU Lesser General Public
6 | * License as published by the Free Software Foundation; either
7 | * version 2.1 of the License, or (at your option) any later version.
8 | *
9 | * FFmpeg is distributed in the hope that it will be useful,
10 | * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12 | * Lesser General Public License for more details.
13 | *
14 | * You should have received a copy of the GNU Lesser General Public
15 | * License along with FFmpeg; if not, write to the Free Software
16 | * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
17 | */
18 |
19 | #ifndef AVUTIL_FILE_H
20 | #define AVUTIL_FILE_H
21 |
22 | #include
23 |
24 | #include "avutil.h"
25 |
26 | /**
27 | * @file
28 | * Misc file utilities.
29 | */
30 |
31 | /**
32 | * Read the file with name filename, and put its content in a newly
33 | * allocated buffer or map it with mmap() when available.
34 | * In case of success set *bufptr to the read or mmapped buffer, and
35 | * *size to the size in bytes of the buffer in *bufptr.
36 | * The returned buffer must be released with av_file_unmap().
37 | *
38 | * @param log_offset loglevel offset used for logging
39 | * @param log_ctx context used for logging
40 | * @return a non negative number in case of success, a negative value
41 | * corresponding to an AVERROR error code in case of failure
42 | */
43 | int av_file_map(const char *filename, uint8_t **bufptr, size_t *size,
44 | int log_offset, void *log_ctx);
45 |
46 | /**
47 | * Unmap or free the buffer bufptr created by av_file_map().
48 | *
49 | * @param size size in bytes of bufptr, must be the same as returned
50 | * by av_file_map()
51 | */
52 | void av_file_unmap(uint8_t *bufptr, size_t size);
53 |
54 | /**
55 | * Wrapper to work around the lack of mkstemp() on mingw.
56 | * Also, tries to create file in /tmp first, if possible.
57 | * *prefix can be a character constant; *filename will be allocated internally.
58 | * @return file descriptor of opened file (or negative value corresponding to an
59 | * AVERROR code on error)
60 | * and opened file name in **filename.
61 | * @note On very old libcs it is necessary to set a secure umask before
62 | * calling this, av_tempfile() can't call umask itself as it is used in
63 | * libraries and could interfere with the calling application.
64 | */
65 | int av_tempfile(const char *prefix, char **filename, int log_offset, void *log_ctx);
66 |
67 | #endif /* AVUTIL_FILE_H */
68 |
--------------------------------------------------------------------------------
/Eleven/Vendor/FFmpeg-iOS/include/libavutil/hash.h:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright (C) 2013 Reimar Döffinger
3 | *
4 | * This file is part of FFmpeg.
5 | *
6 | * FFmpeg is free software; you can redistribute it and/or
7 | * modify it under the terms of the GNU Lesser General Public
8 | * License as published by the Free Software Foundation; either
9 | * version 2.1 of the License, or (at your option) any later version.
10 | *
11 | * FFmpeg 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 GNU
14 | * Lesser General Public License for more details.
15 | *
16 | * You should have received a copy of the GNU Lesser General Public
17 | * License along with FFmpeg; if not, write to the Free Software
18 | * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
19 | */
20 |
21 | #ifndef AVUTIL_HASH_H
22 | #define AVUTIL_HASH_H
23 |
24 | #include
25 |
26 | struct AVHashContext;
27 |
28 | /**
29 | * Allocate a hash context for the algorithm specified by name.
30 | *
31 | * @return >= 0 for success, a negative error code for failure
32 | * @note The context is not initialized, you must call av_hash_init().
33 | */
34 | int av_hash_alloc(struct AVHashContext **ctx, const char *name);
35 |
36 | /**
37 | * Get the names of available hash algorithms.
38 | *
39 | * This function can be used to enumerate the algorithms.
40 | *
41 | * @param i index of the hash algorithm, starting from 0
42 | * @return a pointer to a static string or NULL if i is out of range
43 | */
44 | const char *av_hash_names(int i);
45 |
46 | /**
47 | * Get the name of the algorithm corresponding to the given hash context.
48 | */
49 | const char *av_hash_get_name(const struct AVHashContext *ctx);
50 |
51 | /**
52 | * Maximum value that av_hash_get_size will currently return.
53 | *
54 | * You can use this if you absolutely want or need to use static allocation
55 | * and are fine with not supporting hashes newly added to libavutil without
56 | * recompilation.
57 | * Note that you still need to check against av_hash_get_size, adding new hashes
58 | * with larger sizes will not be considered an ABI change and should not cause
59 | * your code to overflow a buffer.
60 | */
61 | #define AV_HASH_MAX_SIZE 64
62 |
63 | /**
64 | * Get the size of the resulting hash value in bytes.
65 | *
66 | * The pointer passed to av_hash_final have space for at least this many bytes.
67 | */
68 | int av_hash_get_size(const struct AVHashContext *ctx);
69 |
70 | /**
71 | * Initialize or reset a hash context.
72 | */
73 | void av_hash_init(struct AVHashContext *ctx);
74 |
75 | /**
76 | * Update a hash context with additional data.
77 | */
78 | void av_hash_update(struct AVHashContext *ctx, const uint8_t *src, int len);
79 |
80 | /**
81 | * Finalize a hash context and compute the actual hash value.
82 | */
83 | void av_hash_final(struct AVHashContext *ctx, uint8_t *dst);
84 |
85 | /**
86 | * Finalize a hash context and compute the actual hash value.
87 | * If size is smaller than the hash size, the hash is truncated;
88 | * if size is larger, the buffer is padded with 0.
89 | */
90 | void av_hash_final_bin(struct AVHashContext *ctx, uint8_t *dst, int size);
91 |
92 | /**
93 | * Finalize a hash context and compute the actual hash value as a hex string.
94 | * The string is always 0-terminated.
95 | * If size is smaller than 2 * hash_size + 1, the hex string is truncated.
96 | */
97 | void av_hash_final_hex(struct AVHashContext *ctx, uint8_t *dst, int size);
98 |
99 | /**
100 | * Finalize a hash context and compute the actual hash value as a base64 string.
101 | * The string is always 0-terminated.
102 | * If size is smaller than AV_BASE64_SIZE(hash_size), the base64 string is
103 | * truncated.
104 | */
105 | void av_hash_final_b64(struct AVHashContext *ctx, uint8_t *dst, int size);
106 |
107 | /**
108 | * Free hash context.
109 | */
110 | void av_hash_freep(struct AVHashContext **ctx);
111 |
112 | #endif /* AVUTIL_HASH_H */
113 |
--------------------------------------------------------------------------------
/Eleven/Vendor/FFmpeg-iOS/include/libavutil/hmac.h:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright (C) 2012 Martin Storsjo
3 | *
4 | * This file is part of FFmpeg.
5 | *
6 | * FFmpeg is free software; you can redistribute it and/or
7 | * modify it under the terms of the GNU Lesser General Public
8 | * License as published by the Free Software Foundation; either
9 | * version 2.1 of the License, or (at your option) any later version.
10 | *
11 | * FFmpeg 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 GNU
14 | * Lesser General Public License for more details.
15 | *
16 | * You should have received a copy of the GNU Lesser General Public
17 | * License along with FFmpeg; if not, write to the Free Software
18 | * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
19 | */
20 |
21 | #ifndef AVUTIL_HMAC_H
22 | #define AVUTIL_HMAC_H
23 |
24 | #include
25 |
26 | /**
27 | * @defgroup lavu_hmac HMAC
28 | * @ingroup lavu_crypto
29 | * @{
30 | */
31 |
32 | enum AVHMACType {
33 | AV_HMAC_MD5,
34 | AV_HMAC_SHA1,
35 | AV_HMAC_SHA224 = 10,
36 | AV_HMAC_SHA256,
37 | AV_HMAC_SHA384,
38 | AV_HMAC_SHA512,
39 | };
40 |
41 | typedef struct AVHMAC AVHMAC;
42 |
43 | /**
44 | * Allocate an AVHMAC context.
45 | * @param type The hash function used for the HMAC.
46 | */
47 | AVHMAC *av_hmac_alloc(enum AVHMACType type);
48 |
49 | /**
50 | * Free an AVHMAC context.
51 | * @param ctx The context to free, may be NULL
52 | */
53 | void av_hmac_free(AVHMAC *ctx);
54 |
55 | /**
56 | * Initialize an AVHMAC context with an authentication key.
57 | * @param ctx The HMAC context
58 | * @param key The authentication key
59 | * @param keylen The length of the key, in bytes
60 | */
61 | void av_hmac_init(AVHMAC *ctx, const uint8_t *key, unsigned int keylen);
62 |
63 | /**
64 | * Hash data with the HMAC.
65 | * @param ctx The HMAC context
66 | * @param data The data to hash
67 | * @param len The length of the data, in bytes
68 | */
69 | void av_hmac_update(AVHMAC *ctx, const uint8_t *data, unsigned int len);
70 |
71 | /**
72 | * Finish hashing and output the HMAC digest.
73 | * @param ctx The HMAC context
74 | * @param out The output buffer to write the digest into
75 | * @param outlen The length of the out buffer, in bytes
76 | * @return The number of bytes written to out, or a negative error code.
77 | */
78 | int av_hmac_final(AVHMAC *ctx, uint8_t *out, unsigned int outlen);
79 |
80 | /**
81 | * Hash an array of data with a key.
82 | * @param ctx The HMAC context
83 | * @param data The data to hash
84 | * @param len The length of the data, in bytes
85 | * @param key The authentication key
86 | * @param keylen The length of the key, in bytes
87 | * @param out The output buffer to write the digest into
88 | * @param outlen The length of the out buffer, in bytes
89 | * @return The number of bytes written to out, or a negative error code.
90 | */
91 | int av_hmac_calc(AVHMAC *ctx, const uint8_t *data, unsigned int len,
92 | const uint8_t *key, unsigned int keylen,
93 | uint8_t *out, unsigned int outlen);
94 |
95 | /**
96 | * @}
97 | */
98 |
99 | #endif /* AVUTIL_HMAC_H */
100 |
--------------------------------------------------------------------------------
/Eleven/Vendor/FFmpeg-iOS/include/libavutil/intfloat.h:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright (c) 2011 Mans Rullgard
3 | *
4 | * This file is part of FFmpeg.
5 | *
6 | * FFmpeg is free software; you can redistribute it and/or
7 | * modify it under the terms of the GNU Lesser General Public
8 | * License as published by the Free Software Foundation; either
9 | * version 2.1 of the License, or (at your option) any later version.
10 | *
11 | * FFmpeg 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 GNU
14 | * Lesser General Public License for more details.
15 | *
16 | * You should have received a copy of the GNU Lesser General Public
17 | * License along with FFmpeg; if not, write to the Free Software
18 | * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
19 | */
20 |
21 | #ifndef AVUTIL_INTFLOAT_H
22 | #define AVUTIL_INTFLOAT_H
23 |
24 | #include
25 | #include "attributes.h"
26 |
27 | union av_intfloat32 {
28 | uint32_t i;
29 | float f;
30 | };
31 |
32 | union av_intfloat64 {
33 | uint64_t i;
34 | double f;
35 | };
36 |
37 | /**
38 | * Reinterpret a 32-bit integer as a float.
39 | */
40 | static av_always_inline float av_int2float(uint32_t i)
41 | {
42 | union av_intfloat32 v;
43 | v.i = i;
44 | return v.f;
45 | }
46 |
47 | /**
48 | * Reinterpret a float as a 32-bit integer.
49 | */
50 | static av_always_inline uint32_t av_float2int(float f)
51 | {
52 | union av_intfloat32 v;
53 | v.f = f;
54 | return v.i;
55 | }
56 |
57 | /**
58 | * Reinterpret a 64-bit integer as a double.
59 | */
60 | static av_always_inline double av_int2double(uint64_t i)
61 | {
62 | union av_intfloat64 v;
63 | v.i = i;
64 | return v.f;
65 | }
66 |
67 | /**
68 | * Reinterpret a double as a 64-bit integer.
69 | */
70 | static av_always_inline uint64_t av_double2int(double f)
71 | {
72 | union av_intfloat64 v;
73 | v.f = f;
74 | return v.i;
75 | }
76 |
77 | #endif /* AVUTIL_INTFLOAT_H */
78 |
--------------------------------------------------------------------------------
/Eleven/Vendor/FFmpeg-iOS/include/libavutil/lfg.h:
--------------------------------------------------------------------------------
1 | /*
2 | * Lagged Fibonacci PRNG
3 | * Copyright (c) 2008 Michael Niedermayer
4 | *
5 | * This file is part of FFmpeg.
6 | *
7 | * FFmpeg is free software; you can redistribute it and/or
8 | * modify it under the terms of the GNU Lesser General Public
9 | * License as published by the Free Software Foundation; either
10 | * version 2.1 of the License, or (at your option) any later version.
11 | *
12 | * FFmpeg is distributed in the hope that it will be useful,
13 | * but WITHOUT ANY WARRANTY; without even the implied warranty of
14 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
15 | * Lesser General Public License for more details.
16 | *
17 | * You should have received a copy of the GNU Lesser General Public
18 | * License along with FFmpeg; if not, write to the Free Software
19 | * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
20 | */
21 |
22 | #ifndef AVUTIL_LFG_H
23 | #define AVUTIL_LFG_H
24 |
25 | typedef struct AVLFG {
26 | unsigned int state[64];
27 | int index;
28 | } AVLFG;
29 |
30 | void av_lfg_init(AVLFG *c, unsigned int seed);
31 |
32 | /**
33 | * Get the next random unsigned 32-bit number using an ALFG.
34 | *
35 | * Please also consider a simple LCG like state= state*1664525+1013904223,
36 | * it may be good enough and faster for your specific use case.
37 | */
38 | static inline unsigned int av_lfg_get(AVLFG *c){
39 | c->state[c->index & 63] = c->state[(c->index-24) & 63] + c->state[(c->index-55) & 63];
40 | return c->state[c->index++ & 63];
41 | }
42 |
43 | /**
44 | * Get the next random unsigned 32-bit number using a MLFG.
45 | *
46 | * Please also consider av_lfg_get() above, it is faster.
47 | */
48 | static inline unsigned int av_mlfg_get(AVLFG *c){
49 | unsigned int a= c->state[(c->index-55) & 63];
50 | unsigned int b= c->state[(c->index-24) & 63];
51 | return c->state[c->index++ & 63] = 2*a*b+a+b;
52 | }
53 |
54 | /**
55 | * Get the next two numbers generated by a Box-Muller Gaussian
56 | * generator using the random numbers issued by lfg.
57 | *
58 | * @param out array where the two generated numbers are placed
59 | */
60 | void av_bmg_get(AVLFG *lfg, double out[2]);
61 |
62 | #endif /* AVUTIL_LFG_H */
63 |
--------------------------------------------------------------------------------
/Eleven/Vendor/FFmpeg-iOS/include/libavutil/lzo.h:
--------------------------------------------------------------------------------
1 | /*
2 | * LZO 1x decompression
3 | * copyright (c) 2006 Reimar Doeffinger
4 | *
5 | * This file is part of FFmpeg.
6 | *
7 | * FFmpeg is free software; you can redistribute it and/or
8 | * modify it under the terms of the GNU Lesser General Public
9 | * License as published by the Free Software Foundation; either
10 | * version 2.1 of the License, or (at your option) any later version.
11 | *
12 | * FFmpeg is distributed in the hope that it will be useful,
13 | * but WITHOUT ANY WARRANTY; without even the implied warranty of
14 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
15 | * Lesser General Public License for more details.
16 | *
17 | * You should have received a copy of the GNU Lesser General Public
18 | * License along with FFmpeg; if not, write to the Free Software
19 | * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
20 | */
21 |
22 | #ifndef AVUTIL_LZO_H
23 | #define AVUTIL_LZO_H
24 |
25 | /**
26 | * @defgroup lavu_lzo LZO
27 | * @ingroup lavu_crypto
28 | *
29 | * @{
30 | */
31 |
32 | #include
33 |
34 | /** @name Error flags returned by av_lzo1x_decode
35 | * @{ */
36 | /// end of the input buffer reached before decoding finished
37 | #define AV_LZO_INPUT_DEPLETED 1
38 | /// decoded data did not fit into output buffer
39 | #define AV_LZO_OUTPUT_FULL 2
40 | /// a reference to previously decoded data was wrong
41 | #define AV_LZO_INVALID_BACKPTR 4
42 | /// a non-specific error in the compressed bitstream
43 | #define AV_LZO_ERROR 8
44 | /** @} */
45 |
46 | #define AV_LZO_INPUT_PADDING 8
47 | #define AV_LZO_OUTPUT_PADDING 12
48 |
49 | /**
50 | * @brief Decodes LZO 1x compressed data.
51 | * @param out output buffer
52 | * @param outlen size of output buffer, number of bytes left are returned here
53 | * @param in input buffer
54 | * @param inlen size of input buffer, number of bytes left are returned here
55 | * @return 0 on success, otherwise a combination of the error flags above
56 | *
57 | * Make sure all buffers are appropriately padded, in must provide
58 | * AV_LZO_INPUT_PADDING, out must provide AV_LZO_OUTPUT_PADDING additional bytes.
59 | */
60 | int av_lzo1x_decode(void *out, int *outlen, const void *in, int *inlen);
61 |
62 | /**
63 | * @}
64 | */
65 |
66 | #endif /* AVUTIL_LZO_H */
67 |
--------------------------------------------------------------------------------
/Eleven/Vendor/FFmpeg-iOS/include/libavutil/macros.h:
--------------------------------------------------------------------------------
1 | /*
2 | * This file is part of FFmpeg.
3 | *
4 | * FFmpeg is free software; you can redistribute it and/or
5 | * modify it under the terms of the GNU Lesser General Public
6 | * License as published by the Free Software Foundation; either
7 | * version 2.1 of the License, or (at your option) any later version.
8 | *
9 | * FFmpeg is distributed in the hope that it will be useful,
10 | * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12 | * Lesser General Public License for more details.
13 | *
14 | * You should have received a copy of the GNU Lesser General Public
15 | * License along with FFmpeg; if not, write to the Free Software
16 | * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
17 | */
18 |
19 | /**
20 | * @file
21 | * @ingroup lavu
22 | * Utility Preprocessor macros
23 | */
24 |
25 | #ifndef AVUTIL_MACROS_H
26 | #define AVUTIL_MACROS_H
27 |
28 | /**
29 | * @addtogroup preproc_misc Preprocessor String Macros
30 | *
31 | * String manipulation macros
32 | *
33 | * @{
34 | */
35 |
36 | #define AV_STRINGIFY(s) AV_TOSTRING(s)
37 | #define AV_TOSTRING(s) #s
38 |
39 | #define AV_GLUE(a, b) a ## b
40 | #define AV_JOIN(a, b) AV_GLUE(a, b)
41 |
42 | /**
43 | * @}
44 | */
45 |
46 | #define AV_PRAGMA(s) _Pragma(#s)
47 |
48 | #endif /* AVUTIL_MACROS_H */
49 |
--------------------------------------------------------------------------------
/Eleven/Vendor/FFmpeg-iOS/include/libavutil/md5.h:
--------------------------------------------------------------------------------
1 | /*
2 | * copyright (c) 2006 Michael Niedermayer
3 | *
4 | * This file is part of FFmpeg.
5 | *
6 | * FFmpeg is free software; you can redistribute it and/or
7 | * modify it under the terms of the GNU Lesser General Public
8 | * License as published by the Free Software Foundation; either
9 | * version 2.1 of the License, or (at your option) any later version.
10 | *
11 | * FFmpeg 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 GNU
14 | * Lesser General Public License for more details.
15 | *
16 | * You should have received a copy of the GNU Lesser General Public
17 | * License along with FFmpeg; if not, write to the Free Software
18 | * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
19 | */
20 |
21 | #ifndef AVUTIL_MD5_H
22 | #define AVUTIL_MD5_H
23 |
24 | #include
25 |
26 | #include "attributes.h"
27 | #include "version.h"
28 |
29 | /**
30 | * @defgroup lavu_md5 MD5
31 | * @ingroup lavu_crypto
32 | * @{
33 | */
34 |
35 | extern const int av_md5_size;
36 |
37 | struct AVMD5;
38 |
39 | /**
40 | * Allocate an AVMD5 context.
41 | */
42 | struct AVMD5 *av_md5_alloc(void);
43 |
44 | /**
45 | * Initialize MD5 hashing.
46 | *
47 | * @param ctx pointer to the function context (of size av_md5_size)
48 | */
49 | void av_md5_init(struct AVMD5 *ctx);
50 |
51 | /**
52 | * Update hash value.
53 | *
54 | * @param ctx hash function context
55 | * @param src input data to update hash with
56 | * @param len input data length
57 | */
58 | void av_md5_update(struct AVMD5 *ctx, const uint8_t *src, int len);
59 |
60 | /**
61 | * Finish hashing and output digest value.
62 | *
63 | * @param ctx hash function context
64 | * @param dst buffer where output digest value is stored
65 | */
66 | void av_md5_final(struct AVMD5 *ctx, uint8_t *dst);
67 |
68 | /**
69 | * Hash an array of data.
70 | *
71 | * @param dst The output buffer to write the digest into
72 | * @param src The data to hash
73 | * @param len The length of the data, in bytes
74 | */
75 | void av_md5_sum(uint8_t *dst, const uint8_t *src, const int len);
76 |
77 | /**
78 | * @}
79 | */
80 |
81 | #endif /* AVUTIL_MD5_H */
82 |
--------------------------------------------------------------------------------
/Eleven/Vendor/FFmpeg-iOS/include/libavutil/motion_vector.h:
--------------------------------------------------------------------------------
1 | /*
2 | * This file is part of FFmpeg.
3 | *
4 | * FFmpeg is free software; you can redistribute it and/or
5 | * modify it under the terms of the GNU Lesser General Public
6 | * License as published by the Free Software Foundation; either
7 | * version 2.1 of the License, or (at your option) any later version.
8 | *
9 | * FFmpeg is distributed in the hope that it will be useful,
10 | * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12 | * Lesser General Public License for more details.
13 | *
14 | * You should have received a copy of the GNU Lesser General Public
15 | * License along with FFmpeg; if not, write to the Free Software
16 | * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
17 | */
18 |
19 | #ifndef AVUTIL_MOTION_VECTOR_H
20 | #define AVUTIL_MOTION_VECTOR_H
21 |
22 | #include
23 |
24 | typedef struct AVMotionVector {
25 | /**
26 | * Where the current macroblock comes from; negative value when it comes
27 | * from the past, positive value when it comes from the future.
28 | * XXX: set exact relative ref frame reference instead of a +/- 1 "direction".
29 | */
30 | int32_t source;
31 | /**
32 | * Width and height of the block.
33 | */
34 | uint8_t w, h;
35 | /**
36 | * Absolute source position. Can be outside the frame area.
37 | */
38 | int16_t src_x, src_y;
39 | /**
40 | * Absolute destination position. Can be outside the frame area.
41 | */
42 | int16_t dst_x, dst_y;
43 | /**
44 | * Extra flag information.
45 | * Currently unused.
46 | */
47 | uint64_t flags;
48 | } AVMotionVector;
49 |
50 | #endif /* AVUTIL_MOTION_VECTOR_H */
51 |
--------------------------------------------------------------------------------
/Eleven/Vendor/FFmpeg-iOS/include/libavutil/murmur3.h:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright (C) 2013 Reimar Döffinger
3 | *
4 | * This file is part of FFmpeg.
5 | *
6 | * FFmpeg is free software; you can redistribute it and/or
7 | * modify it under the terms of the GNU Lesser General Public
8 | * License as published by the Free Software Foundation; either
9 | * version 2.1 of the License, or (at your option) any later version.
10 | *
11 | * FFmpeg 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 GNU
14 | * Lesser General Public License for more details.
15 | *
16 | * You should have received a copy of the GNU Lesser General Public
17 | * License along with FFmpeg; if not, write to the Free Software
18 | * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
19 | */
20 |
21 | #ifndef AVUTIL_MURMUR3_H
22 | #define AVUTIL_MURMUR3_H
23 |
24 | #include
25 |
26 | struct AVMurMur3 *av_murmur3_alloc(void);
27 | void av_murmur3_init_seeded(struct AVMurMur3 *c, uint64_t seed);
28 | void av_murmur3_init(struct AVMurMur3 *c);
29 | void av_murmur3_update(struct AVMurMur3 *c, const uint8_t *src, int len);
30 | void av_murmur3_final(struct AVMurMur3 *c, uint8_t dst[16]);
31 |
32 | #endif /* AVUTIL_MURMUR3_H */
33 |
--------------------------------------------------------------------------------
/Eleven/Vendor/FFmpeg-iOS/include/libavutil/pixelutils.h:
--------------------------------------------------------------------------------
1 | /*
2 | * This file is part of FFmpeg.
3 | *
4 | * FFmpeg is free software; you can redistribute it and/or
5 | * modify it under the terms of the GNU Lesser General Public
6 | * License as published by the Free Software Foundation; either
7 | * version 2.1 of the License, or (at your option) any later version.
8 | *
9 | * FFmpeg is distributed in the hope that it will be useful,
10 | * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12 | * Lesser General Public License for more details.
13 | *
14 | * You should have received a copy of the GNU Lesser General Public
15 | * License along with FFmpeg; if not, write to the Free Software
16 | * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
17 | */
18 |
19 | #ifndef AVUTIL_PIXELUTILS_H
20 | #define AVUTIL_PIXELUTILS_H
21 |
22 | #include
23 | #include
24 | #include "common.h"
25 |
26 | /**
27 | * Sum of abs(src1[x] - src2[x])
28 | */
29 | typedef int (*av_pixelutils_sad_fn)(const uint8_t *src1, ptrdiff_t stride1,
30 | const uint8_t *src2, ptrdiff_t stride2);
31 |
32 | /**
33 | * Get a potentially optimized pointer to a Sum-of-absolute-differences
34 | * function (see the av_pixelutils_sad_fn prototype).
35 | *
36 | * @param w_bits 1<
3 | *
4 | * This file is part of FFmpeg.
5 | *
6 | * FFmpeg is free software; you can redistribute it and/or
7 | * modify it under the terms of the GNU Lesser General Public
8 | * License as published by the Free Software Foundation; either
9 | * version 2.1 of the License, or (at your option) any later version.
10 | *
11 | * FFmpeg 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 GNU
14 | * Lesser General Public License for more details.
15 | *
16 | * You should have received a copy of the GNU Lesser General Public
17 | * License along with FFmpeg; if not, write to the Free Software
18 | * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
19 | */
20 |
21 | #ifndef AVUTIL_RANDOM_SEED_H
22 | #define AVUTIL_RANDOM_SEED_H
23 |
24 | #include
25 | /**
26 | * @addtogroup lavu_crypto
27 | * @{
28 | */
29 |
30 | /**
31 | * Get a seed to use in conjunction with random functions.
32 | * This function tries to provide a good seed at a best effort bases.
33 | * Its possible to call this function multiple times if more bits are needed.
34 | * It can be quite slow, which is why it should only be used as seed for a faster
35 | * PRNG. The quality of the seed depends on the platform.
36 | */
37 | uint32_t av_get_random_seed(void);
38 |
39 | /**
40 | * @}
41 | */
42 |
43 | #endif /* AVUTIL_RANDOM_SEED_H */
44 |
--------------------------------------------------------------------------------
/Eleven/Vendor/FFmpeg-iOS/include/libavutil/replaygain.h:
--------------------------------------------------------------------------------
1 | /*
2 | *
3 | * This file is part of FFmpeg.
4 | *
5 | * FFmpeg is free software; you can redistribute it and/or
6 | * modify it under the terms of the GNU Lesser General Public
7 | * License as published by the Free Software Foundation; either
8 | * version 2.1 of the License, or (at your option) any later version.
9 | *
10 | * FFmpeg is distributed in the hope that it will be useful,
11 | * but WITHOUT ANY WARRANTY; without even the implied warranty of
12 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13 | * Lesser General Public License for more details.
14 | *
15 | * You should have received a copy of the GNU Lesser General Public
16 | * License along with FFmpeg; if not, write to the Free Software
17 | * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
18 | */
19 |
20 | #ifndef AVUTIL_REPLAYGAIN_H
21 | #define AVUTIL_REPLAYGAIN_H
22 |
23 | #include
24 |
25 | /**
26 | * ReplayGain information (see
27 | * http://wiki.hydrogenaudio.org/index.php?title=ReplayGain_1.0_specification).
28 | * The size of this struct is a part of the public ABI.
29 | */
30 | typedef struct AVReplayGain {
31 | /**
32 | * Track replay gain in microbels (divide by 100000 to get the value in dB).
33 | * Should be set to INT32_MIN when unknown.
34 | */
35 | int32_t track_gain;
36 | /**
37 | * Peak track amplitude, with 100000 representing full scale (but values
38 | * may overflow). 0 when unknown.
39 | */
40 | uint32_t track_peak;
41 | /**
42 | * Same as track_gain, but for the whole album.
43 | */
44 | int32_t album_gain;
45 | /**
46 | * Same as track_peak, but for the whole album,
47 | */
48 | uint32_t album_peak;
49 | } AVReplayGain;
50 |
51 | #endif /* AVUTIL_REPLAYGAIN_H */
52 |
--------------------------------------------------------------------------------
/Eleven/Vendor/FFmpeg-iOS/include/libavutil/ripemd.h:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright (C) 2007 Michael Niedermayer
3 | * Copyright (C) 2013 James Almer
4 | *
5 | * This file is part of FFmpeg.
6 | *
7 | * FFmpeg is free software; you can redistribute it and/or
8 | * modify it under the terms of the GNU Lesser General Public
9 | * License as published by the Free Software Foundation; either
10 | * version 2.1 of the License, or (at your option) any later version.
11 | *
12 | * FFmpeg is distributed in the hope that it will be useful,
13 | * but WITHOUT ANY WARRANTY; without even the implied warranty of
14 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
15 | * Lesser General Public License for more details.
16 | *
17 | * You should have received a copy of the GNU Lesser General Public
18 | * License along with FFmpeg; if not, write to the Free Software
19 | * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
20 | */
21 |
22 | #ifndef AVUTIL_RIPEMD_H
23 | #define AVUTIL_RIPEMD_H
24 |
25 | #include
26 |
27 | #include "attributes.h"
28 | #include "version.h"
29 |
30 | /**
31 | * @defgroup lavu_ripemd RIPEMD
32 | * @ingroup lavu_crypto
33 | * @{
34 | */
35 |
36 | extern const int av_ripemd_size;
37 |
38 | struct AVRIPEMD;
39 |
40 | /**
41 | * Allocate an AVRIPEMD context.
42 | */
43 | struct AVRIPEMD *av_ripemd_alloc(void);
44 |
45 | /**
46 | * Initialize RIPEMD hashing.
47 | *
48 | * @param context pointer to the function context (of size av_ripemd_size)
49 | * @param bits number of bits in digest (128, 160, 256 or 320 bits)
50 | * @return zero if initialization succeeded, -1 otherwise
51 | */
52 | int av_ripemd_init(struct AVRIPEMD* context, int bits);
53 |
54 | /**
55 | * Update hash value.
56 | *
57 | * @param context hash function context
58 | * @param data input data to update hash with
59 | * @param len input data length
60 | */
61 | void av_ripemd_update(struct AVRIPEMD* context, const uint8_t* data, unsigned int len);
62 |
63 | /**
64 | * Finish hashing and output digest value.
65 | *
66 | * @param context hash function context
67 | * @param digest buffer where output digest value is stored
68 | */
69 | void av_ripemd_final(struct AVRIPEMD* context, uint8_t *digest);
70 |
71 | /**
72 | * @}
73 | */
74 |
75 | #endif /* AVUTIL_RIPEMD_H */
76 |
--------------------------------------------------------------------------------
/Eleven/Vendor/FFmpeg-iOS/include/libavutil/sha.h:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright (C) 2007 Michael Niedermayer
3 | *
4 | * This file is part of FFmpeg.
5 | *
6 | * FFmpeg is free software; you can redistribute it and/or
7 | * modify it under the terms of the GNU Lesser General Public
8 | * License as published by the Free Software Foundation; either
9 | * version 2.1 of the License, or (at your option) any later version.
10 | *
11 | * FFmpeg 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 GNU
14 | * Lesser General Public License for more details.
15 | *
16 | * You should have received a copy of the GNU Lesser General Public
17 | * License along with FFmpeg; if not, write to the Free Software
18 | * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
19 | */
20 |
21 | #ifndef AVUTIL_SHA_H
22 | #define AVUTIL_SHA_H
23 |
24 | #include
25 |
26 | #include "attributes.h"
27 | #include "version.h"
28 |
29 | /**
30 | * @defgroup lavu_sha SHA
31 | * @ingroup lavu_crypto
32 | * @{
33 | */
34 |
35 | extern const int av_sha_size;
36 |
37 | struct AVSHA;
38 |
39 | /**
40 | * Allocate an AVSHA context.
41 | */
42 | struct AVSHA *av_sha_alloc(void);
43 |
44 | /**
45 | * Initialize SHA-1 or SHA-2 hashing.
46 | *
47 | * @param context pointer to the function context (of size av_sha_size)
48 | * @param bits number of bits in digest (SHA-1 - 160 bits, SHA-2 224 or 256 bits)
49 | * @return zero if initialization succeeded, -1 otherwise
50 | */
51 | int av_sha_init(struct AVSHA* context, int bits);
52 |
53 | /**
54 | * Update hash value.
55 | *
56 | * @param context hash function context
57 | * @param data input data to update hash with
58 | * @param len input data length
59 | */
60 | void av_sha_update(struct AVSHA* context, const uint8_t* data, unsigned int len);
61 |
62 | /**
63 | * Finish hashing and output digest value.
64 | *
65 | * @param context hash function context
66 | * @param digest buffer where output digest value is stored
67 | */
68 | void av_sha_final(struct AVSHA* context, uint8_t *digest);
69 |
70 | /**
71 | * @}
72 | */
73 |
74 | #endif /* AVUTIL_SHA_H */
75 |
--------------------------------------------------------------------------------
/Eleven/Vendor/FFmpeg-iOS/include/libavutil/sha512.h:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright (C) 2007 Michael Niedermayer
3 | * Copyright (C) 2013 James Almer
4 | *
5 | * This file is part of FFmpeg.
6 | *
7 | * FFmpeg is free software; you can redistribute it and/or
8 | * modify it under the terms of the GNU Lesser General Public
9 | * License as published by the Free Software Foundation; either
10 | * version 2.1 of the License, or (at your option) any later version.
11 | *
12 | * FFmpeg is distributed in the hope that it will be useful,
13 | * but WITHOUT ANY WARRANTY; without even the implied warranty of
14 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
15 | * Lesser General Public License for more details.
16 | *
17 | * You should have received a copy of the GNU Lesser General Public
18 | * License along with FFmpeg; if not, write to the Free Software
19 | * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
20 | */
21 |
22 | #ifndef AVUTIL_SHA512_H
23 | #define AVUTIL_SHA512_H
24 |
25 | #include
26 |
27 | #include "attributes.h"
28 | #include "version.h"
29 |
30 | /**
31 | * @defgroup lavu_sha512 SHA512
32 | * @ingroup lavu_crypto
33 | * @{
34 | */
35 |
36 | extern const int av_sha512_size;
37 |
38 | struct AVSHA512;
39 |
40 | /**
41 | * Allocate an AVSHA512 context.
42 | */
43 | struct AVSHA512 *av_sha512_alloc(void);
44 |
45 | /**
46 | * Initialize SHA-2 512 hashing.
47 | *
48 | * @param context pointer to the function context (of size av_sha512_size)
49 | * @param bits number of bits in digest (224, 256, 384 or 512 bits)
50 | * @return zero if initialization succeeded, -1 otherwise
51 | */
52 | int av_sha512_init(struct AVSHA512* context, int bits);
53 |
54 | /**
55 | * Update hash value.
56 | *
57 | * @param context hash function context
58 | * @param data input data to update hash with
59 | * @param len input data length
60 | */
61 | void av_sha512_update(struct AVSHA512* context, const uint8_t* data, unsigned int len);
62 |
63 | /**
64 | * Finish hashing and output digest value.
65 | *
66 | * @param context hash function context
67 | * @param digest buffer where output digest value is stored
68 | */
69 | void av_sha512_final(struct AVSHA512* context, uint8_t *digest);
70 |
71 | /**
72 | * @}
73 | */
74 |
75 | #endif /* AVUTIL_SHA512_H */
76 |
--------------------------------------------------------------------------------
/Eleven/Vendor/FFmpeg-iOS/include/libavutil/stereo3d.h:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright (c) 2013 Vittorio Giovara
3 | *
4 | * This file is part of FFmpeg.
5 | *
6 | * FFmpeg is free software; you can redistribute it and/or
7 | * modify it under the terms of the GNU Lesser General Public
8 | * License as published by the Free Software Foundation; either
9 | * version 2.1 of the License, or (at your option) any later version.
10 | *
11 | * FFmpeg 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 GNU
14 | * Lesser General Public License for more details.
15 | *
16 | * You should have received a copy of the GNU Lesser General Public
17 | * License along with FFmpeg; if not, write to the Free Software
18 | * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
19 | */
20 |
21 | #ifndef AVUTIL_STEREO3D_H
22 | #define AVUTIL_STEREO3D_H
23 |
24 | #include
25 |
26 | #include "frame.h"
27 |
28 | /**
29 | * List of possible 3D Types
30 | */
31 | enum AVStereo3DType {
32 | /**
33 | * Video is not stereoscopic (and metadata has to be there).
34 | */
35 | AV_STEREO3D_2D,
36 |
37 | /**
38 | * Views are next to each other.
39 | *
40 | * LLLLRRRR
41 | * LLLLRRRR
42 | * LLLLRRRR
43 | * ...
44 | */
45 | AV_STEREO3D_SIDEBYSIDE,
46 |
47 | /**
48 | * Views are on top of each other.
49 | *
50 | * LLLLLLLL
51 | * LLLLLLLL
52 | * RRRRRRRR
53 | * RRRRRRRR
54 | */
55 | AV_STEREO3D_TOPBOTTOM,
56 |
57 | /**
58 | * Views are alternated temporally.
59 | *
60 | * frame0 frame1 frame2 ...
61 | * LLLLLLLL RRRRRRRR LLLLLLLL
62 | * LLLLLLLL RRRRRRRR LLLLLLLL
63 | * LLLLLLLL RRRRRRRR LLLLLLLL
64 | * ... ... ...
65 | */
66 | AV_STEREO3D_FRAMESEQUENCE,
67 |
68 | /**
69 | * Views are packed in a checkerboard-like structure per pixel.
70 | *
71 | * LRLRLRLR
72 | * RLRLRLRL
73 | * LRLRLRLR
74 | * ...
75 | */
76 | AV_STEREO3D_CHECKERBOARD,
77 |
78 | /**
79 | * Views are next to each other, but when upscaling
80 | * apply a checkerboard pattern.
81 | *
82 | * LLLLRRRR L L L L R R R R
83 | * LLLLRRRR => L L L L R R R R
84 | * LLLLRRRR L L L L R R R R
85 | * LLLLRRRR L L L L R R R R
86 | */
87 | AV_STEREO3D_SIDEBYSIDE_QUINCUNX,
88 |
89 | /**
90 | * Views are packed per line, as if interlaced.
91 | *
92 | * LLLLLLLL
93 | * RRRRRRRR
94 | * LLLLLLLL
95 | * ...
96 | */
97 | AV_STEREO3D_LINES,
98 |
99 | /**
100 | * Views are packed per column.
101 | *
102 | * LRLRLRLR
103 | * LRLRLRLR
104 | * LRLRLRLR
105 | * ...
106 | */
107 | AV_STEREO3D_COLUMNS,
108 | };
109 |
110 |
111 | /**
112 | * Inverted views, Right/Bottom represents the left view.
113 | */
114 | #define AV_STEREO3D_FLAG_INVERT (1 << 0)
115 |
116 | /**
117 | * Stereo 3D type: this structure describes how two videos are packed
118 | * within a single video surface, with additional information as needed.
119 | *
120 | * @note The struct must be allocated with av_stereo3d_alloc() and
121 | * its size is not a part of the public ABI.
122 | */
123 | typedef struct AVStereo3D {
124 | /**
125 | * How views are packed within the video.
126 | */
127 | enum AVStereo3DType type;
128 |
129 | /**
130 | * Additional information about the frame packing.
131 | */
132 | int flags;
133 | } AVStereo3D;
134 |
135 | /**
136 | * Allocate an AVStereo3D structure and set its fields to default values.
137 | * The resulting struct can be freed using av_freep().
138 | *
139 | * @return An AVStereo3D filled with default values or NULL on failure.
140 | */
141 | AVStereo3D *av_stereo3d_alloc(void);
142 |
143 | /**
144 | * Allocate a complete AVFrameSideData and add it to the frame.
145 | *
146 | * @param frame The frame which side data is added to.
147 | *
148 | * @return The AVStereo3D structure to be filled by caller.
149 | */
150 | AVStereo3D *av_stereo3d_create_side_data(AVFrame *frame);
151 |
152 | #endif /* AVUTIL_STEREO3D_H */
153 |
--------------------------------------------------------------------------------
/Eleven/Vendor/FFmpeg-iOS/include/libavutil/threadmessage.h:
--------------------------------------------------------------------------------
1 | /*
2 | * This file is part of FFmpeg.
3 | *
4 | * FFmpeg is free software; you can redistribute it and/or
5 | * modify it under the terms of the GNU Lesser General Public License
6 | * as published by the Free Software Foundation; either
7 | * version 2.1 of the License, or (at your option) any later version.
8 | *
9 | * FFmpeg is distributed in the hope that it will be useful,
10 | * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 | * GNU Lesser General Public License for more details.
13 | *
14 | * You should have received a copy of the GNU Lesser General Public License
15 | * along with FFmpeg; if not, write to the Free Software Foundation, Inc.,
16 | * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
17 | */
18 |
19 | #ifndef AVUTIL_THREADMESSAGE_H
20 | #define AVUTIL_THREADMESSAGE_H
21 |
22 | typedef struct AVThreadMessageQueue AVThreadMessageQueue;
23 |
24 | typedef enum AVThreadMessageFlags {
25 |
26 | /**
27 | * Perform non-blocking operation.
28 | * If this flag is set, send and recv operations are non-blocking and
29 | * return AVERROR(EAGAIN) immediately if they can not proceed.
30 | */
31 | AV_THREAD_MESSAGE_NONBLOCK = 1,
32 |
33 | } AVThreadMessageFlags;
34 |
35 | /**
36 | * Allocate a new message queue.
37 | *
38 | * @param mq pointer to the message queue
39 | * @param nelem maximum number of elements in the queue
40 | * @param elsize size of each element in the queue
41 | * @return >=0 for success; <0 for error, in particular AVERROR(ENOSYS) if
42 | * lavu was built without thread support
43 | */
44 | int av_thread_message_queue_alloc(AVThreadMessageQueue **mq,
45 | unsigned nelem,
46 | unsigned elsize);
47 |
48 | /**
49 | * Free a message queue.
50 | *
51 | * The message queue must no longer be in use by another thread.
52 | */
53 | void av_thread_message_queue_free(AVThreadMessageQueue **mq);
54 |
55 | /**
56 | * Send a message on the queue.
57 | */
58 | int av_thread_message_queue_send(AVThreadMessageQueue *mq,
59 | void *msg,
60 | unsigned flags);
61 |
62 | /**
63 | * Receive a message from the queue.
64 | */
65 | int av_thread_message_queue_recv(AVThreadMessageQueue *mq,
66 | void *msg,
67 | unsigned flags);
68 |
69 | /**
70 | * Set the sending error code.
71 | *
72 | * If the error code is set to non-zero, av_thread_message_queue_recv() will
73 | * return it immediately when there are no longer available messages.
74 | * Conventional values, such as AVERROR_EOF or AVERROR(EAGAIN), can be used
75 | * to cause the receiving thread to stop or suspend its operation.
76 | */
77 | void av_thread_message_queue_set_err_send(AVThreadMessageQueue *mq,
78 | int err);
79 |
80 | /**
81 | * Set the receiving error code.
82 | *
83 | * If the error code is set to non-zero, av_thread_message_queue_send() will
84 | * return it immediately. Conventional values, such as AVERROR_EOF or
85 | * AVERROR(EAGAIN), can be used to cause the sending thread to stop or
86 | * suspend its operation.
87 | */
88 | void av_thread_message_queue_set_err_recv(AVThreadMessageQueue *mq,
89 | int err);
90 |
91 | #endif /* AVUTIL_THREADMESSAGE_H */
92 |
--------------------------------------------------------------------------------
/Eleven/Vendor/FFmpeg-iOS/include/libavutil/time.h:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright (c) 2000-2003 Fabrice Bellard
3 | *
4 | * This file is part of FFmpeg.
5 | *
6 | * FFmpeg is free software; you can redistribute it and/or
7 | * modify it under the terms of the GNU Lesser General Public
8 | * License as published by the Free Software Foundation; either
9 | * version 2.1 of the License, or (at your option) any later version.
10 | *
11 | * FFmpeg 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 GNU
14 | * Lesser General Public License for more details.
15 | *
16 | * You should have received a copy of the GNU Lesser General Public
17 | * License along with FFmpeg; if not, write to the Free Software
18 | * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
19 | */
20 |
21 | #ifndef AVUTIL_TIME_H
22 | #define AVUTIL_TIME_H
23 |
24 | #include
25 |
26 | /**
27 | * Get the current time in microseconds.
28 | */
29 | int64_t av_gettime(void);
30 |
31 | /**
32 | * Get the current time in microseconds since some unspecified starting point.
33 | * On platforms that support it, the time comes from a monotonic clock
34 | * This property makes this time source ideal for measuring relative time.
35 | * The returned values may not be monotonic on platforms where a monotonic
36 | * clock is not available.
37 | */
38 | int64_t av_gettime_relative(void);
39 |
40 | /**
41 | * Indicates with a boolean result if the av_gettime_relative() time source
42 | * is monotonic.
43 | */
44 | int av_gettime_relative_is_monotonic(void);
45 |
46 | /**
47 | * Sleep for a period of time. Although the duration is expressed in
48 | * microseconds, the actual delay may be rounded to the precision of the
49 | * system timer.
50 | *
51 | * @param usec Number of microseconds to sleep.
52 | * @return zero on success or (negative) error code.
53 | */
54 | int av_usleep(unsigned usec);
55 |
56 | #endif /* AVUTIL_TIME_H */
57 |
--------------------------------------------------------------------------------
/Eleven/Vendor/FFmpeg-iOS/include/libavutil/timestamp.h:
--------------------------------------------------------------------------------
1 | /*
2 | * This file is part of FFmpeg.
3 | *
4 | * FFmpeg is free software; you can redistribute it and/or
5 | * modify it under the terms of the GNU Lesser General Public
6 | * License as published by the Free Software Foundation; either
7 | * version 2.1 of the License, or (at your option) any later version.
8 | *
9 | * FFmpeg is distributed in the hope that it will be useful,
10 | * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12 | * Lesser General Public License for more details.
13 | *
14 | * You should have received a copy of the GNU Lesser General Public
15 | * License along with FFmpeg; if not, write to the Free Software
16 | * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
17 | */
18 |
19 | /**
20 | * @file
21 | * timestamp utils, mostly useful for debugging/logging purposes
22 | */
23 |
24 | #ifndef AVUTIL_TIMESTAMP_H
25 | #define AVUTIL_TIMESTAMP_H
26 |
27 | #include "common.h"
28 |
29 | #if defined(__cplusplus) && !defined(__STDC_FORMAT_MACROS) && !defined(PRId64)
30 | #error missing -D__STDC_FORMAT_MACROS / #define __STDC_FORMAT_MACROS
31 | #endif
32 |
33 | #define AV_TS_MAX_STRING_SIZE 32
34 |
35 | /**
36 | * Fill the provided buffer with a string containing a timestamp
37 | * representation.
38 | *
39 | * @param buf a buffer with size in bytes of at least AV_TS_MAX_STRING_SIZE
40 | * @param ts the timestamp to represent
41 | * @return the buffer in input
42 | */
43 | static inline char *av_ts_make_string(char *buf, int64_t ts)
44 | {
45 | if (ts == AV_NOPTS_VALUE) snprintf(buf, AV_TS_MAX_STRING_SIZE, "NOPTS");
46 | else snprintf(buf, AV_TS_MAX_STRING_SIZE, "%"PRId64, ts);
47 | return buf;
48 | }
49 |
50 | /**
51 | * Convenience macro, the return value should be used only directly in
52 | * function arguments but never stand-alone.
53 | */
54 | #define av_ts2str(ts) av_ts_make_string((char[AV_TS_MAX_STRING_SIZE]){0}, ts)
55 |
56 | /**
57 | * Fill the provided buffer with a string containing a timestamp time
58 | * representation.
59 | *
60 | * @param buf a buffer with size in bytes of at least AV_TS_MAX_STRING_SIZE
61 | * @param ts the timestamp to represent
62 | * @param tb the timebase of the timestamp
63 | * @return the buffer in input
64 | */
65 | static inline char *av_ts_make_time_string(char *buf, int64_t ts, AVRational *tb)
66 | {
67 | if (ts == AV_NOPTS_VALUE) snprintf(buf, AV_TS_MAX_STRING_SIZE, "NOPTS");
68 | else snprintf(buf, AV_TS_MAX_STRING_SIZE, "%.6g", av_q2d(*tb) * ts);
69 | return buf;
70 | }
71 |
72 | /**
73 | * Convenience macro, the return value should be used only directly in
74 | * function arguments but never stand-alone.
75 | */
76 | #define av_ts2timestr(ts, tb) av_ts_make_time_string((char[AV_TS_MAX_STRING_SIZE]){0}, ts, tb)
77 |
78 | #endif /* AVUTIL_TIMESTAMP_H */
79 |
--------------------------------------------------------------------------------
/Eleven/Vendor/FFmpeg-iOS/include/libavutil/twofish.h:
--------------------------------------------------------------------------------
1 | /*
2 | * An implementation of the TwoFish algorithm
3 | * Copyright (c) 2015 Supraja Meedinti
4 | *
5 | * This file is part of FFmpeg.
6 | *
7 | * FFmpeg is free software; you can redistribute it and/or
8 | * modify it under the terms of the GNU Lesser General Public
9 | * License as published by the Free Software Foundation; either
10 | * version 2.1 of the License, or (at your option) any later version.
11 | *
12 | * FFmpeg is distributed in the hope that it will be useful,
13 | * but WITHOUT ANY WARRANTY; without even the implied warranty of
14 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
15 | * Lesser General Public License for more details.
16 | *
17 | * You should have received a copy of the GNU Lesser General Public
18 | * License along with FFmpeg; if not, write to the Free Software
19 | * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
20 | */
21 |
22 | #ifndef AVUTIL_TWOFISH_H
23 | #define AVUTIL_TWOFISH_H
24 |
25 | #include
26 |
27 |
28 | /**
29 | * @file
30 | * @brief Public header for libavutil TWOFISH algorithm
31 | * @defgroup lavu_twofish TWOFISH
32 | * @ingroup lavu_crypto
33 | * @{
34 | */
35 |
36 | extern const int av_twofish_size;
37 |
38 | struct AVTWOFISH;
39 |
40 | /**
41 | * Allocate an AVTWOFISH context
42 | * To free the struct: av_free(ptr)
43 | */
44 | struct AVTWOFISH *av_twofish_alloc(void);
45 |
46 | /**
47 | * Initialize an AVTWOFISH context.
48 | *
49 | * @param ctx an AVTWOFISH context
50 | * @param key a key of size ranging from 1 to 32 bytes used for encryption/decryption
51 | * @param key_bits number of keybits: 128, 192, 256 If less than the required, padded with zeroes to nearest valid value; return value is 0 if key_bits is 128/192/256, -1 if less than 0, 1 otherwise
52 | */
53 | int av_twofish_init(struct AVTWOFISH *ctx, const uint8_t *key, int key_bits);
54 |
55 | /**
56 | * Encrypt or decrypt a buffer using a previously initialized context
57 | *
58 | * @param ctx an AVTWOFISH context
59 | * @param dst destination array, can be equal to src
60 | * @param src source array, can be equal to dst
61 | * @param count number of 16 byte blocks
62 | * @paran iv initialization vector for CBC mode, NULL for ECB mode
63 | * @param decrypt 0 for encryption, 1 for decryption
64 | */
65 | void av_twofish_crypt(struct AVTWOFISH *ctx, uint8_t *dst, const uint8_t *src, int count, uint8_t* iv, int decrypt);
66 |
67 | /**
68 | * @}
69 | */
70 | #endif /* AVUTIL_TWOFISH_H */
71 |
--------------------------------------------------------------------------------
/Eleven/Vendor/FFmpeg-iOS/include/libavutil/xtea.h:
--------------------------------------------------------------------------------
1 | /*
2 | * A 32-bit implementation of the XTEA algorithm
3 | * Copyright (c) 2012 Samuel Pitoiset
4 | *
5 | * This file is part of FFmpeg.
6 | *
7 | * FFmpeg is free software; you can redistribute it and/or
8 | * modify it under the terms of the GNU Lesser General Public
9 | * License as published by the Free Software Foundation; either
10 | * version 2.1 of the License, or (at your option) any later version.
11 | *
12 | * FFmpeg is distributed in the hope that it will be useful,
13 | * but WITHOUT ANY WARRANTY; without even the implied warranty of
14 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
15 | * Lesser General Public License for more details.
16 | *
17 | * You should have received a copy of the GNU Lesser General Public
18 | * License along with FFmpeg; if not, write to the Free Software
19 | * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
20 | */
21 |
22 | #ifndef AVUTIL_XTEA_H
23 | #define AVUTIL_XTEA_H
24 |
25 | #include
26 |
27 | /**
28 | * @file
29 | * @brief Public header for libavutil XTEA algorithm
30 | * @defgroup lavu_xtea XTEA
31 | * @ingroup lavu_crypto
32 | * @{
33 | */
34 |
35 | typedef struct AVXTEA {
36 | uint32_t key[16];
37 | } AVXTEA;
38 |
39 | /**
40 | * Initialize an AVXTEA context.
41 | *
42 | * @param ctx an AVXTEA context
43 | * @param key a key of 16 bytes used for encryption/decryption
44 | */
45 | void av_xtea_init(struct AVXTEA *ctx, const uint8_t key[16]);
46 |
47 | /**
48 | * Encrypt or decrypt a buffer using a previously initialized context.
49 | *
50 | * @param ctx an AVXTEA context
51 | * @param dst destination array, can be equal to src
52 | * @param src source array, can be equal to dst
53 | * @param count number of 8 byte blocks
54 | * @param iv initialization vector for CBC mode, if NULL then ECB will be used
55 | * @param decrypt 0 for encryption, 1 for decryption
56 | */
57 | void av_xtea_crypt(struct AVXTEA *ctx, uint8_t *dst, const uint8_t *src,
58 | int count, uint8_t *iv, int decrypt);
59 |
60 | /**
61 | * @}
62 | */
63 |
64 | #endif /* AVUTIL_XTEA_H */
65 |
--------------------------------------------------------------------------------
/Eleven/Vendor/FFmpeg-iOS/include/libswresample/version.h:
--------------------------------------------------------------------------------
1 | /*
2 | * Version macros.
3 | *
4 | * This file is part of libswresample
5 | *
6 | * libswresample is free software; you can redistribute it and/or
7 | * modify it under the terms of the GNU Lesser General Public
8 | * License as published by the Free Software Foundation; either
9 | * version 2.1 of the License, or (at your option) any later version.
10 | *
11 | * libswresample 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 GNU
14 | * Lesser General Public License for more details.
15 | *
16 | * You should have received a copy of the GNU Lesser General Public
17 | * License along with libswresample; if not, write to the Free Software
18 | * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
19 | */
20 |
21 | #ifndef SWR_VERSION_H
22 | #define SWR_VERSION_H
23 |
24 | /**
25 | * @file
26 | * Libswresample version macros
27 | */
28 |
29 | #include "libavutil/avutil.h"
30 |
31 | #define LIBSWRESAMPLE_VERSION_MAJOR 1
32 | #define LIBSWRESAMPLE_VERSION_MINOR 2
33 | #define LIBSWRESAMPLE_VERSION_MICRO 100
34 |
35 | #define LIBSWRESAMPLE_VERSION_INT AV_VERSION_INT(LIBSWRESAMPLE_VERSION_MAJOR, \
36 | LIBSWRESAMPLE_VERSION_MINOR, \
37 | LIBSWRESAMPLE_VERSION_MICRO)
38 | #define LIBSWRESAMPLE_VERSION AV_VERSION(LIBSWRESAMPLE_VERSION_MAJOR, \
39 | LIBSWRESAMPLE_VERSION_MINOR, \
40 | LIBSWRESAMPLE_VERSION_MICRO)
41 | #define LIBSWRESAMPLE_BUILD LIBSWRESAMPLE_VERSION_INT
42 |
43 | #define LIBSWRESAMPLE_IDENT "SwR" AV_STRINGIFY(LIBSWRESAMPLE_VERSION)
44 |
45 | #endif /* SWR_VERSION_H */
46 |
--------------------------------------------------------------------------------
/Eleven/Vendor/FFmpeg-iOS/include/libswscale/version.h:
--------------------------------------------------------------------------------
1 | /*
2 | * This file is part of FFmpeg.
3 | *
4 | * FFmpeg is free software; you can redistribute it and/or
5 | * modify it under the terms of the GNU Lesser General Public
6 | * License as published by the Free Software Foundation; either
7 | * version 2.1 of the License, or (at your option) any later version.
8 | *
9 | * FFmpeg is distributed in the hope that it will be useful,
10 | * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12 | * Lesser General Public License for more details.
13 | *
14 | * You should have received a copy of the GNU Lesser General Public
15 | * License along with FFmpeg; if not, write to the Free Software
16 | * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
17 | */
18 |
19 | #ifndef SWSCALE_VERSION_H
20 | #define SWSCALE_VERSION_H
21 |
22 | /**
23 | * @file
24 | * swscale version macros
25 | */
26 |
27 | #include "libavutil/version.h"
28 |
29 | #define LIBSWSCALE_VERSION_MAJOR 3
30 | #define LIBSWSCALE_VERSION_MINOR 1
31 | #define LIBSWSCALE_VERSION_MICRO 101
32 |
33 | #define LIBSWSCALE_VERSION_INT AV_VERSION_INT(LIBSWSCALE_VERSION_MAJOR, \
34 | LIBSWSCALE_VERSION_MINOR, \
35 | LIBSWSCALE_VERSION_MICRO)
36 | #define LIBSWSCALE_VERSION AV_VERSION(LIBSWSCALE_VERSION_MAJOR, \
37 | LIBSWSCALE_VERSION_MINOR, \
38 | LIBSWSCALE_VERSION_MICRO)
39 | #define LIBSWSCALE_BUILD LIBSWSCALE_VERSION_INT
40 |
41 | #define LIBSWSCALE_IDENT "SwS" AV_STRINGIFY(LIBSWSCALE_VERSION)
42 |
43 | /**
44 | * FF_API_* defines may be placed below to indicate public API that will be
45 | * dropped at a future version bump. The defines themselves are not part of
46 | * the public API and may change, break or disappear at any time.
47 | */
48 |
49 | #ifndef FF_API_SWS_CPU_CAPS
50 | #define FF_API_SWS_CPU_CAPS (LIBSWSCALE_VERSION_MAJOR < 4)
51 | #endif
52 | #ifndef FF_API_ARCH_BFIN
53 | #define FF_API_ARCH_BFIN (LIBSWSCALE_VERSION_MAJOR < 4)
54 | #endif
55 |
56 | #endif /* SWSCALE_VERSION_H */
57 |
--------------------------------------------------------------------------------
/Eleven/Vendor/FFmpeg-iOS/lib/libavcodec.a:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/sinabio/Eleven/eb1fd61a278bc36f8201e5b5a6a49c0b63ba2732/Eleven/Vendor/FFmpeg-iOS/lib/libavcodec.a
--------------------------------------------------------------------------------
/Eleven/Vendor/FFmpeg-iOS/lib/libavdevice.a:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/sinabio/Eleven/eb1fd61a278bc36f8201e5b5a6a49c0b63ba2732/Eleven/Vendor/FFmpeg-iOS/lib/libavdevice.a
--------------------------------------------------------------------------------
/Eleven/Vendor/FFmpeg-iOS/lib/libavfilter.a:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/sinabio/Eleven/eb1fd61a278bc36f8201e5b5a6a49c0b63ba2732/Eleven/Vendor/FFmpeg-iOS/lib/libavfilter.a
--------------------------------------------------------------------------------
/Eleven/Vendor/FFmpeg-iOS/lib/libavformat.a:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/sinabio/Eleven/eb1fd61a278bc36f8201e5b5a6a49c0b63ba2732/Eleven/Vendor/FFmpeg-iOS/lib/libavformat.a
--------------------------------------------------------------------------------
/Eleven/Vendor/FFmpeg-iOS/lib/libavutil.a:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/sinabio/Eleven/eb1fd61a278bc36f8201e5b5a6a49c0b63ba2732/Eleven/Vendor/FFmpeg-iOS/lib/libavutil.a
--------------------------------------------------------------------------------
/Eleven/Vendor/FFmpeg-iOS/lib/libswresample.a:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/sinabio/Eleven/eb1fd61a278bc36f8201e5b5a6a49c0b63ba2732/Eleven/Vendor/FFmpeg-iOS/lib/libswresample.a
--------------------------------------------------------------------------------
/Eleven/Vendor/FFmpeg-iOS/lib/libswscale.a:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/sinabio/Eleven/eb1fd61a278bc36f8201e5b5a6a49c0b63ba2732/Eleven/Vendor/FFmpeg-iOS/lib/libswscale.a
--------------------------------------------------------------------------------
/Eleven/Vendor/YiRefresh/YiRefreshFooter.h:
--------------------------------------------------------------------------------
1 | //
2 | // YiRefreshFooter.h
3 | // YiRefresh
4 | //
5 | // Created by apple on 15/3/6.
6 | // Copyright (c) 2015年 coderyi. All rights reserved.
7 | //
8 | //YiRefresh is a simple way to use pull-to-refresh.下拉刷新,大道至简,最简单的网络刷新控件
9 | //项目地址在:https://github.com/coderyi/YiRefresh
10 | //
11 |
12 | #import
13 | #import
14 |
15 | typedef void (^BeginRefreshingBlock)(void);
16 | @interface YiRefreshFooter : NSObject
17 | @property(nonatomic,strong) UIScrollView *scrollView;
18 |
19 | /**
20 | * 正在刷新的回调
21 | */
22 | @property(nonatomic,copy) BeginRefreshingBlock beginRefreshingBlock;
23 |
24 |
25 | /**
26 | * footer的初始化
27 | */
28 | -(void)footer;
29 |
30 | /**
31 | * 开始刷新操作 如果正在刷新则不做操作
32 | */
33 | -(void)beginRefreshing;
34 |
35 | /**
36 | * 关闭刷新操作 请加在UIScrollView数据刷新后,如[tableView reloadData];
37 | */
38 | -(void)endRefreshing;
39 |
40 | @end
41 |
--------------------------------------------------------------------------------
/Eleven/Vendor/YiRefresh/YiRefreshFooter.m:
--------------------------------------------------------------------------------
1 |
2 | //
3 | // YiRefreshFooter.m
4 | // YiRefresh
5 | //
6 | // Created by apple on 15/3/6.
7 | // Copyright (c) 2015年 coderyi. All rights reserved.
8 | //
9 | //YiRefresh is a simple way to use pull-to-refresh.下拉刷新,大道至简,最简单的网络刷新控件
10 | //项目地址在:https://github.com/coderyi/YiRefresh
11 | //
12 |
13 | #import "YiRefreshFooter.h"
14 | @interface YiRefreshFooter (){
15 |
16 |
17 | float contentHeight;
18 | float scrollFrameHeight;
19 | float footerHeight;
20 | float scrollWidth;
21 | BOOL isAdd;//是否添加了footer,默认是NO
22 | BOOL isRefresh;//是否正在刷新,默认是NO
23 |
24 |
25 | UIView *footerView;
26 | UIActivityIndicatorView *activityView;
27 |
28 | }
29 | @end
30 | @implementation YiRefreshFooter
31 |
32 | - (void)footer{
33 |
34 | scrollWidth=_scrollView.frame.size.width;
35 | footerHeight=35;
36 | scrollFrameHeight=_scrollView.frame.size.height;
37 | isAdd=NO;
38 | isRefresh=NO;
39 |
40 |
41 |
42 | footerView=[[UIView alloc] init];
43 | activityView = [[UIActivityIndicatorView alloc] initWithActivityIndicatorStyle:UIActivityIndicatorViewStyleGray];
44 |
45 |
46 | [_scrollView addObserver:self forKeyPath:@"contentOffset" options:NSKeyValueObservingOptionNew|NSKeyValueObservingOptionOld context:nil];
47 |
48 |
49 |
50 | }
51 |
52 |
53 | - (void)observeValueForKeyPath:(NSString *)keyPath ofObject:(id)object change:(NSDictionary *)change context:(void *)context
54 | {
55 | if (![@"contentOffset" isEqualToString:keyPath]) return;
56 | contentHeight=_scrollView.contentSize.height;
57 |
58 |
59 | if (!isAdd) {
60 | isAdd=YES;
61 |
62 | footerView.frame=CGRectMake(0, contentHeight, scrollWidth, footerHeight);
63 | [_scrollView addSubview:footerView];
64 | activityView.frame=CGRectMake((scrollWidth-footerHeight)/2, 0, footerHeight, footerHeight);
65 | [footerView addSubview:activityView];
66 | }
67 |
68 | footerView.frame=CGRectMake(0, contentHeight, scrollWidth, footerHeight);
69 | activityView.frame=CGRectMake((scrollWidth-footerHeight)/2, 0, footerHeight, footerHeight);
70 |
71 | int currentPostion = _scrollView.contentOffset.y;
72 |
73 |
74 | // 进入刷新状态
75 | if ((currentPostion>(contentHeight-scrollFrameHeight))&&(contentHeight>scrollFrameHeight)) {
76 |
77 | [self beginRefreshing];
78 | }
79 |
80 |
81 |
82 |
83 |
84 | }
85 |
86 | /**
87 | * 开始刷新操作 如果正在刷新则不做操作
88 | */
89 | - (void)beginRefreshing{
90 | if (!isRefresh) {
91 | isRefresh=YES;
92 | [activityView startAnimating];
93 | // 设置刷新状态_scrollView的位置
94 | [UIView animateWithDuration:0.3 animations:^{
95 | _scrollView.contentInset=UIEdgeInsetsMake(0, 0, footerHeight, 0);
96 |
97 | }];
98 |
99 | // block回调
100 | _beginRefreshingBlock();
101 |
102 |
103 |
104 | }
105 |
106 | }
107 |
108 | /**
109 | * 关闭刷新操作 请加在UIScrollView数据刷新后,如[tableView reloadData];
110 | */
111 | - (void)endRefreshing{
112 | isRefresh=NO;
113 |
114 |
115 | dispatch_async(dispatch_get_main_queue(), ^{
116 |
117 | [UIView animateWithDuration:0.3 animations:^{
118 | [activityView stopAnimating];
119 |
120 | _scrollView.contentInset=UIEdgeInsetsMake(0, 0, 0, 0);
121 | footerView.frame=CGRectMake(0, contentHeight, [[UIScreen mainScreen] bounds].size.width, footerHeight);
122 | }];
123 | });
124 | }
125 |
126 | - (void)dealloc{
127 | [_scrollView removeObserver:self forKeyPath:@"contentOffset"];
128 |
129 | }
130 |
131 |
132 |
133 | @end
134 |
--------------------------------------------------------------------------------
/Eleven/Vendor/YiRefresh/YiRefreshHeader.h:
--------------------------------------------------------------------------------
1 | //
2 | // YiRefreshHeader.h
3 | // YiRefresh
4 | //
5 | // Created by apple on 15/3/6.
6 | // Copyright (c) 2015年 coderyi. All rights reserved.
7 | //
8 | //YiRefresh is a simple way to use pull-to-refresh.下拉刷新,大道至简,最简单的网络刷新控件
9 | //项目地址在:https://github.com/coderyi/YiRefresh
10 | //
11 |
12 | #import
13 | #import
14 |
15 | typedef void (^BeginRefreshingBlock)(void);
16 |
17 |
18 |
19 | @interface YiRefreshHeader : NSObject
20 | @property(nonatomic,strong) UIScrollView *scrollView;
21 |
22 | /**
23 | * 正在刷新的回调
24 | */
25 | @property(nonatomic,copy) BeginRefreshingBlock beginRefreshingBlock;
26 |
27 | /**
28 | * header的初始化
29 | */
30 | -(void)header;
31 |
32 | /**
33 | * 开始刷新操作 如果正在刷新则不做操作
34 | */
35 | -(void)beginRefreshing;
36 |
37 | /**
38 | * 关闭刷新操作 请加在UIScrollView数据刷新后,如[tableView reloadData];
39 | */
40 | -(void)endRefreshing;
41 |
42 |
43 |
44 | @end
--------------------------------------------------------------------------------
/Eleven/Vendor/YiRefresh/down@2x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/sinabio/Eleven/eb1fd61a278bc36f8201e5b5a6a49c0b63ba2732/Eleven/Vendor/YiRefresh/down@2x.png
--------------------------------------------------------------------------------
/Eleven/Vendor/kxmovie/KxAudioManager.h:
--------------------------------------------------------------------------------
1 | //
2 | // KxAudioManager.h
3 | // kxmovie
4 | //
5 | // Created by Kolyvan on 23.10.12.
6 | // Copyright (c) 2012 Konstantin Boukreev . All rights reserved.
7 | //
8 | // https://github.com/kolyvan/kxmovie
9 | // this file is part of KxMovie
10 | // KxMovie is licenced under the LGPL v3, see lgpl-3.0.txt
11 |
12 |
13 | #import
14 |
15 | typedef void (^KxAudioManagerOutputBlock)(float *data, UInt32 numFrames, UInt32 numChannels);
16 |
17 | @protocol KxAudioManager
18 |
19 | @property (readonly) UInt32 numOutputChannels;
20 | @property (readonly) Float64 samplingRate;
21 | @property (readonly) UInt32 numBytesPerSample;
22 | @property (readonly) Float32 outputVolume;
23 | @property (readonly) BOOL playing;
24 | @property (readonly, strong) NSString *audioRoute;
25 |
26 | @property (readwrite, copy) KxAudioManagerOutputBlock outputBlock;
27 |
28 | - (BOOL) activateAudioSession;
29 | - (void) deactivateAudioSession;
30 | - (BOOL) play;
31 | - (void) pause;
32 |
33 | @end
34 |
35 | @interface KxAudioManager : NSObject
36 | + (id) audioManager;
37 | @end
38 |
--------------------------------------------------------------------------------
/Eleven/Vendor/kxmovie/KxLogger.h:
--------------------------------------------------------------------------------
1 | //
2 | // KxLogger.h
3 | // kxmovie
4 | //
5 | // Created by Mathieu Godart on 01/05/2014.
6 | //
7 | //
8 |
9 | #ifndef kxmovie_KxLogger_h
10 | #define kxmovie_KxLogger_h
11 |
12 | //#define DUMP_AUDIO_DATA
13 |
14 | #ifdef DEBUG
15 | #ifdef USE_NSLOGGER
16 |
17 | # import "NSLogger.h"
18 | # define LoggerStream(level, ...) LogMessageF(__FILE__, __LINE__, __FUNCTION__, @"Stream", level, __VA_ARGS__)
19 | # define LoggerVideo(level, ...) LogMessageF(__FILE__, __LINE__, __FUNCTION__, @"Video", level, __VA_ARGS__)
20 | # define LoggerAudio(level, ...) LogMessageF(__FILE__, __LINE__, __FUNCTION__, @"Audio", level, __VA_ARGS__)
21 |
22 | #else
23 |
24 | # define LoggerStream(level, ...) NSLog(__VA_ARGS__)
25 | # define LoggerVideo(level, ...) NSLog(__VA_ARGS__)
26 | # define LoggerAudio(level, ...) NSLog(__VA_ARGS__)
27 |
28 | #endif
29 | #else
30 |
31 | # define LoggerStream(...) while(0) {}
32 | # define LoggerVideo(...) while(0) {}
33 | # define LoggerAudio(...) while(0) {}
34 |
35 | #endif
36 |
37 | #endif
38 |
--------------------------------------------------------------------------------
/Eleven/Vendor/kxmovie/KxMovieGLView.h:
--------------------------------------------------------------------------------
1 | //
2 | // ESGLView.h
3 | // kxmovie
4 | //
5 | // Created by Kolyvan on 22.10.12.
6 | // Copyright (c) 2012 Konstantin Boukreev . All rights reserved.
7 | //
8 | // https://github.com/kolyvan/kxmovie
9 | // this file is part of KxMovie
10 | // KxMovie is licenced under the LGPL v3, see lgpl-3.0.txt
11 |
12 | #import
13 |
14 | @class KxVideoFrame;
15 | @class KxMovieDecoder;
16 |
17 | @interface KxMovieGLView : UIView
18 |
19 | - (id) initWithFrame:(CGRect)frame
20 | decoder: (KxMovieDecoder *) decoder;
21 |
22 | - (void) render: (KxVideoFrame *) frame;
23 |
24 | @end
25 |
--------------------------------------------------------------------------------
/Eleven/Vendor/kxmovie/KxMovieViewController.h:
--------------------------------------------------------------------------------
1 | //
2 | // ViewController.h
3 | // kxmovieapp
4 | //
5 | // Created by Kolyvan on 11.10.12.
6 | // Copyright (c) 2012 Konstantin Boukreev . All rights reserved.
7 | //
8 | // https://github.com/kolyvan/kxmovie
9 | // this file is part of KxMovie
10 | // KxMovie is licenced under the LGPL v3, see lgpl-3.0.txt
11 |
12 | #import
13 |
14 | @class KxMovieDecoder;
15 |
16 | extern NSString * const KxMovieParameterMinBufferedDuration; // Float
17 | extern NSString * const KxMovieParameterMaxBufferedDuration; // Float
18 | extern NSString * const KxMovieParameterDisableDeinterlacing; // BOOL
19 |
20 | @interface KxMovieViewController : UIViewController
21 |
22 | + (id) movieViewControllerWithContentPath: (NSString *) path
23 | parameters: (NSDictionary *) parameters;
24 |
25 | @property (readonly) BOOL playing;
26 |
27 | - (void) play;
28 | - (void) pause;
29 |
30 | @end
31 |
--------------------------------------------------------------------------------
/Eleven/Vendor/kxmovie/kxmovie-Prefix.pch:
--------------------------------------------------------------------------------
1 | //
2 | // Prefix header for all source files of the 'kxmovie' target in the 'kxmovie' project
3 | //
4 |
5 | #ifdef __OBJC__
6 | # import
7 | # import
8 | # import "KxLogger.h"
9 | #endif
10 |
11 |
12 |
13 |
--------------------------------------------------------------------------------
/Eleven/Vendor/kxmovie/kxmovie.bundle/music_icon.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/sinabio/Eleven/eb1fd61a278bc36f8201e5b5a6a49c0b63ba2732/Eleven/Vendor/kxmovie/kxmovie.bundle/music_icon.png
--------------------------------------------------------------------------------
/Eleven/Vendor/kxmovie/kxmovie.bundle/playback_ff.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/sinabio/Eleven/eb1fd61a278bc36f8201e5b5a6a49c0b63ba2732/Eleven/Vendor/kxmovie/kxmovie.bundle/playback_ff.png
--------------------------------------------------------------------------------
/Eleven/Vendor/kxmovie/kxmovie.bundle/playback_ff@2x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/sinabio/Eleven/eb1fd61a278bc36f8201e5b5a6a49c0b63ba2732/Eleven/Vendor/kxmovie/kxmovie.bundle/playback_ff@2x.png
--------------------------------------------------------------------------------
/Eleven/Vendor/kxmovie/kxmovie.bundle/playback_next.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/sinabio/Eleven/eb1fd61a278bc36f8201e5b5a6a49c0b63ba2732/Eleven/Vendor/kxmovie/kxmovie.bundle/playback_next.png
--------------------------------------------------------------------------------
/Eleven/Vendor/kxmovie/kxmovie.bundle/playback_next@2x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/sinabio/Eleven/eb1fd61a278bc36f8201e5b5a6a49c0b63ba2732/Eleven/Vendor/kxmovie/kxmovie.bundle/playback_next@2x.png
--------------------------------------------------------------------------------
/Eleven/Vendor/kxmovie/kxmovie.bundle/playback_pause.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/sinabio/Eleven/eb1fd61a278bc36f8201e5b5a6a49c0b63ba2732/Eleven/Vendor/kxmovie/kxmovie.bundle/playback_pause.png
--------------------------------------------------------------------------------
/Eleven/Vendor/kxmovie/kxmovie.bundle/playback_pause@2x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/sinabio/Eleven/eb1fd61a278bc36f8201e5b5a6a49c0b63ba2732/Eleven/Vendor/kxmovie/kxmovie.bundle/playback_pause@2x.png
--------------------------------------------------------------------------------
/Eleven/Vendor/kxmovie/kxmovie.bundle/playback_play.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/sinabio/Eleven/eb1fd61a278bc36f8201e5b5a6a49c0b63ba2732/Eleven/Vendor/kxmovie/kxmovie.bundle/playback_play.png
--------------------------------------------------------------------------------
/Eleven/Vendor/kxmovie/kxmovie.bundle/playback_play@2x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/sinabio/Eleven/eb1fd61a278bc36f8201e5b5a6a49c0b63ba2732/Eleven/Vendor/kxmovie/kxmovie.bundle/playback_play@2x.png
--------------------------------------------------------------------------------
/Eleven/Vendor/kxmovie/kxmovie.bundle/playback_prev.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/sinabio/Eleven/eb1fd61a278bc36f8201e5b5a6a49c0b63ba2732/Eleven/Vendor/kxmovie/kxmovie.bundle/playback_prev.png
--------------------------------------------------------------------------------
/Eleven/Vendor/kxmovie/kxmovie.bundle/playback_prev@2x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/sinabio/Eleven/eb1fd61a278bc36f8201e5b5a6a49c0b63ba2732/Eleven/Vendor/kxmovie/kxmovie.bundle/playback_prev@2x.png
--------------------------------------------------------------------------------
/Eleven/Vendor/kxmovie/kxmovie.bundle/playback_rew.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/sinabio/Eleven/eb1fd61a278bc36f8201e5b5a6a49c0b63ba2732/Eleven/Vendor/kxmovie/kxmovie.bundle/playback_rew.png
--------------------------------------------------------------------------------
/Eleven/Vendor/kxmovie/kxmovie.bundle/playback_rew@2x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/sinabio/Eleven/eb1fd61a278bc36f8201e5b5a6a49c0b63ba2732/Eleven/Vendor/kxmovie/kxmovie.bundle/playback_rew@2x.png
--------------------------------------------------------------------------------
/Eleven/Vendor/kxmovie/kxmovie.bundle/sliderthumb.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/sinabio/Eleven/eb1fd61a278bc36f8201e5b5a6a49c0b63ba2732/Eleven/Vendor/kxmovie/kxmovie.bundle/sliderthumb.png
--------------------------------------------------------------------------------
/Eleven/Vendor/kxmovie/kxmovie.bundle/sliderthumb@2x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/sinabio/Eleven/eb1fd61a278bc36f8201e5b5a6a49c0b63ba2732/Eleven/Vendor/kxmovie/kxmovie.bundle/sliderthumb@2x.png
--------------------------------------------------------------------------------
/Eleven/en.lproj/Localizable.strings:
--------------------------------------------------------------------------------
1 | /*
2 | Localizable.strings
3 | Eleven
4 |
5 | Created by coderyi on 15/8/18.
6 | Copyright (c) 2015年 coderyi. All rights reserved.
7 | */
8 | "Eleven Video"="Eleven Video";
9 | "Local Video"="Local Video";
10 | "Network Video"="Network Video";
11 | "More"="More";
12 | "a simple powerful video player"="a simple powerful video player";
13 | "wifi transfer"="wifi transfer";
14 | "play"="play";
15 | "clear"="clear";
16 | "rorate"="rorate";
17 | "You can transfer video files via itunes or wifi\nSupport m4v, wmv, 3gp, mp4, mov, avi, mkv, mpeg, mpg, flv, vob format"="You can transfer video files via itunes or wifi\nSupport m4v, wmv, 3gp, mp4, mov, avi, mkv, mpeg, mpg, flv, vob format";
18 |
19 | "Open button, and then enter the address in the browser address bar\nClose button Remember when the transfer is complete"="Open button, and then enter the address in the browser address bar\nClose button Remember when the transfer is complete";
20 | "Enter any HTTP, RTSP, RTMP, RTP address play network streaming or live"="Enter any HTTP, RTSP, RTMP, RTP address play network streaming or live";
21 |
22 | "OK"="OK";
23 |
--------------------------------------------------------------------------------
/Eleven/en.lproj/Main.storyboard:
--------------------------------------------------------------------------------
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 |
--------------------------------------------------------------------------------
/Eleven/main.m:
--------------------------------------------------------------------------------
1 | //
2 | // main.m
3 | // Eleven
4 | //
5 | // Created by coderyi on 15/8/18.
6 | // Copyright (c) 2015年 coderyi. All rights reserved.
7 | //
8 |
9 | #import
10 | #import "AppDelegate.h"
11 |
12 | int main(int argc, char * argv[]) {
13 | @autoreleasepool {
14 | return UIApplicationMain(argc, argv, nil, NSStringFromClass([AppDelegate class]));
15 | }
16 | }
17 |
--------------------------------------------------------------------------------
/Eleven/zh-Hans.lproj/Localizable.strings:
--------------------------------------------------------------------------------
1 | /*
2 | Localizable.strings
3 | Eleven
4 |
5 | Created by coderyi on 15/8/18.
6 | Copyright (c) 2015年 coderyi. All rights reserved.
7 | */
8 | "Eleven Video"="十一 视频播放器";
9 | "Local Video"="本地视频";
10 | "Network Video"="网络视频";
11 | "More"="更多";
12 | "a simple powerful video player"="一个简单强大的播放器";
13 |
14 | "wifi transfer"="wifi传输文件";
15 |
16 | "play"="播放";
17 | "clear"="清空";
18 | "rorate"="旋转";
19 | "You can transfer video files via itunes or wifi\nSupport m4v, wmv, 3gp, mp4, mov, avi, mkv, mpeg, mpg, flv, vob format"="可以通过itunes或者wifi传输视频文件\n支持m4v,wmv,3gp,mp4,mov,avi,mkv,mpeg,mpg,flv,vob等格式";
20 | "Open button, and then enter the address in the browser address bar\nClose button Remember when the transfer is complete"="打开下面的按钮,在浏览器地址栏输入即将出现的地址\n传输完成记得关闭按钮";
21 | "Enter any HTTP, RTSP, RTMP, RTP address play network streaming or live"="输入任何HTTP,RTSP,RTMP,RTP地址播放网络流媒体或直播";
22 | "OK"="确定";
23 |
--------------------------------------------------------------------------------
/Eleven/zh-Hans.lproj/Main.storyboard:
--------------------------------------------------------------------------------
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 |
--------------------------------------------------------------------------------
/ElevenTests/ElevenTests.m:
--------------------------------------------------------------------------------
1 | //
2 | // ElevenTests.m
3 | // ElevenTests
4 | //
5 | // Created by coderyi on 15/8/18.
6 | // Copyright (c) 2015年 coderyi. All rights reserved.
7 | //
8 |
9 | #import
10 | #import
11 |
12 | @interface ElevenTests : XCTestCase
13 |
14 | @end
15 |
16 | @implementation ElevenTests
17 |
18 | - (void)setUp {
19 | [super setUp];
20 | // Put setup code here. This method is called before the invocation of each test method in the class.
21 | }
22 |
23 | - (void)tearDown {
24 | // Put teardown code here. This method is called after the invocation of each test method in the class.
25 | [super tearDown];
26 | }
27 |
28 | - (void)testExample {
29 | // This is an example of a functional test case.
30 | XCTAssert(YES, @"Pass");
31 | }
32 |
33 | - (void)testPerformanceExample {
34 | // This is an example of a performance test case.
35 | [self measureBlock:^{
36 | // Put the code you want to measure the time of here.
37 | }];
38 | }
39 |
40 | @end
41 |
--------------------------------------------------------------------------------
/ElevenTests/Info.plist:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | CFBundleDevelopmentRegion
6 | en
7 | CFBundleExecutable
8 | $(EXECUTABLE_NAME)
9 | CFBundleIdentifier
10 | coderyi.$(PRODUCT_NAME:rfc1034identifier)
11 | CFBundleInfoDictionaryVersion
12 | 6.0
13 | CFBundleName
14 | $(PRODUCT_NAME)
15 | CFBundlePackageType
16 | BNDL
17 | CFBundleShortVersionString
18 | 1.0
19 | CFBundleSignature
20 | ????
21 | CFBundleVersion
22 | 1
23 |
24 |
25 |
--------------------------------------------------------------------------------
/LICENSE.txt:
--------------------------------------------------------------------------------
1 |
2 |
3 | Copyright (c) 2015 coderyi.
4 | This code is distributed under the terms and conditions of the MIT license.
5 |
6 | Permission is hereby granted, free of charge, to any person obtaining a copy of
7 | this software and associated documentation files (the "Software"), to deal in the
8 | Software without restriction, including without limitation the rights to use, copy,
9 | modify, merge, publish, distribute, sublicense, and/or sell copies of the Software,
10 | and to permit persons to whom the Software is furnished to do so, subject to the
11 | following conditions:
12 |
13 | The above copyright notice and this permission notice shall be included in all
14 | copies or substantial portions of the Software.
15 |
16 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED,
17 | INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A
18 | PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
19 | HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF
20 | CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE
21 | OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
22 |
23 |
--------------------------------------------------------------------------------
/Podfile:
--------------------------------------------------------------------------------
1 | platform :ios, '7.0'
2 |
3 |
4 | pod 'REFrostedViewController', '~> 2.4.8'
5 |
6 |
--------------------------------------------------------------------------------
/Podfile.lock:
--------------------------------------------------------------------------------
1 | PODS:
2 | - REFrostedViewController (2.4.8)
3 |
4 | DEPENDENCIES:
5 | - REFrostedViewController (~> 2.4.8)
6 |
7 | SPEC CHECKSUMS:
8 | REFrostedViewController: a893b4979ba1f200c547aef9ff4c3fd5a18f5923
9 |
10 | COCOAPODS: 0.38.2
11 |
--------------------------------------------------------------------------------
/README.md:
--------------------------------------------------------------------------------
1 | #Eleven Player
2 |
3 | Eleven Player is a simple powerful video player.
4 |
5 | ##Eleven Player
6 |
7 | Support m4v, wmv, 3gp, mp4, mov, avi, mkv, mpeg, mpg, flv, vob format
8 |
9 | You can transfer video files via itunes or wifi
10 |
11 | Enter any HTTP, RTSP, RTMP, RTP address play network streaming or live
12 |
13 |
14 | ##Requirements
15 | iOS7.0+,iPhone and iPad,Xcode6.3
16 | ##Open Source Components
17 |
18 | [ffmpeg](https://github.com/FFmpeg/FFmpeg),version 2.7.2
19 |
20 | FFmpeg is a collection of libraries and tools to process multimedia content such as audio, video, subtitles and related metadata.
21 |
22 | [kxmovie](https://github.com/kolyvan/kxmovie)
23 |
24 | movie player for iOS using ffmpeg
25 |
26 |
27 | [CocoaWebResource](https://github.com/robin/cocoa-web-resource)
28 |
29 | A file transfer solution for iPhone and iPod Touch. Support uploading, download and delete files via browser.
30 |
31 |
32 | [REFrostedViewController](https://github.com/romaonthego/REFrostedViewController)
33 |
34 | iOS 7/8 style blurred view controller that appears on top of your view controller.
35 |
36 | [YiRefresh](https://github.com/coderyi/YiRefresh)
37 |
38 | a simple way to use pull-to-refresh.
39 |
40 |
41 | ##LICENSE
42 |
43 | Copyright (c) 2015 coderyi.all rights reserved.
44 |
45 | This code is distributed under the terms and conditions of the MIT license.
46 |
47 | ##Contact
48 |
49 |
50 | blog:[https://github.com/coderyi/blog](https://github.com/coderyi/blog)
51 |
52 | GitHub:[https://github.com/coderyi](https://github.com/coderyi)
53 |
54 | email:coderyi@foxmail.com
55 |
56 |
57 | ##Reference
58 |
59 | [iOS配置FFmpeg框架](http://cnbin.github.io/blog/2015/05/19/iospei-zhi-ffmpegkuang-jia/)
60 |
61 | [FFmpeg-wikipedia](https://zh.wikipedia.org/wiki/FFmpeg)
62 |
63 | [Vitamio测试网络视频地址](https://www.vitamio.org/docs/Basic/2013/0508/14.html)
64 |
65 | ##App Preview
66 |
67 |
68 |
69 |
70 |
71 |
72 |
73 |
74 |
75 |
76 |
77 |
78 |
79 |
80 |
81 |
82 |
83 |
84 |
85 |
86 |
87 |
--------------------------------------------------------------------------------