-
Notifications
You must be signed in to change notification settings - Fork 18
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
300143d
commit 37e3124
Showing
68 changed files
with
16,239 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,6 @@ | ||
|
||
ffmpeg_0.8.10_no_dolby/.DS_Store | ||
.DS_Store | ||
|
||
project.xcworkspace | ||
|
||
xcuserdata |
Binary file not shown.
17 changes: 17 additions & 0 deletions
17
ffmpeg_1.0_no_dolby/FFEngine.framework/Headers/ELMediaPlayerSDK.h
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
// | ||
// Created by xiewei.max@gmail.com on 11-10-01. | ||
// Copyright (c) 2012年 www.e-linkway.com. All rights reserved. | ||
// | ||
|
||
#import "IELMediaPlayer.h" | ||
|
||
@protocol IELMediaPlayer; | ||
|
||
// 注册lib库,在调用任何其他操作前调用 : 0: 成功; 1:注册码错误; | ||
int registerLib(char * registerCode); | ||
|
||
// 获取MediaPlayer接口 | ||
id<IELMediaPlayer> loadELMediaPlayer(); | ||
|
||
// 释放mediaPlayer, 调用loadELMediaPlayer之后释放 | ||
void releaseELMediaPlayer(); |
18 changes: 18 additions & 0 deletions
18
ffmpeg_1.0_no_dolby/FFEngine.framework/Headers/ELMediaUtil.h
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
// | ||
// ELMediaUtil.h | ||
// ELMediaLib | ||
// | ||
// Created by Wei Xie on 12-7-11. | ||
// Copyright (c) 2012年 __MyCompanyName__. All rights reserved. | ||
// | ||
|
||
#import <Foundation/Foundation.h> | ||
|
||
// Advanced Version | ||
@interface ELMediaUtil : NSObject // <IELMediaUtil> | ||
|
||
+(NSDictionary *) getMediaDescription: (NSString *) mediaPath; | ||
|
||
+(NSData *) thumbnailPNGDataWithVideoPath: (NSString *) videoPath; | ||
|
||
@end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
// | ||
// Created by xiewei.max@gmail.com on 11-10-01. | ||
// Copyright (c) 2012年 www.e-linkway.com. All rights reserved. | ||
// | ||
|
||
#import <UIKit/UIKit.h> | ||
|
||
#import "IELMediaPlayer.h" | ||
#import "ELMediaPlayerSDK.h" | ||
#import "ELMediaUtil.h" |
69 changes: 69 additions & 0 deletions
69
ffmpeg_1.0_no_dolby/FFEngine.framework/Headers/IELMediaPlayer.h
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,69 @@ | ||
// | ||
// Created by xiewei.max@gmail.com on 11-10-01. | ||
// Copyright (c) 2012年 www.e-linkway.com. All rights reserved. | ||
// | ||
|
||
#import <UIKit/UIKit.h> | ||
|
||
#ifndef IELMeidaPlayer_H | ||
#define IELMeidaPlayer_H | ||
|
||
typedef enum ELScreenType_e | ||
{ | ||
ELScreenType_ASPECT_FULL_SCR = 0, | ||
ELScreenType_FULL_SCR, | ||
ELScreenType_ORIGINAL_SCR | ||
}ELScreenType_e; | ||
|
||
|
||
@protocol ELPlayerMessageProtocol; | ||
|
||
@protocol IELMediaPlayer <NSObject> | ||
|
||
@property (nonatomic, assign) BOOL shouldUpdateVideoPicture; // default: YES | ||
|
||
-(void) setDelegate:(id<ELPlayerMessageProtocol>)delegate; | ||
|
||
- (void)setVideoContainerView:(UIView *)containerView; | ||
- (void)setPlayerScreenType:(ELScreenType_e ) screenType; | ||
- (void)refreshViewFrame; | ||
|
||
- (void)setAutoPlayAfterOpen:(BOOL) autoPlay; | ||
|
||
- (BOOL)openMedia:(NSString *)path; | ||
- (BOOL)openMedia:(NSString *)path seekTo:(size_t)time; | ||
|
||
- (BOOL)closeMedia; | ||
|
||
- (void)startPlay; | ||
- (void)stopPlay; | ||
|
||
- (void)pausePlay; | ||
- (void)resumePlay; | ||
|
||
- (size_t)seekTo:(size_t)pos; | ||
|
||
@end | ||
|
||
@protocol ELPlayerMessageProtocol <NSObject> | ||
|
||
@optional | ||
|
||
- (void)openOk; | ||
- (void)openFailed; | ||
|
||
- (void)bufferingStart; | ||
- (void)bufferPercent:(int)percentage; | ||
|
||
- (void)readyToPlay; | ||
|
||
- (void)mediaDuration:(size_t)duration; | ||
- (void)mediaPosition:(size_t)position; | ||
- (void)mediaWidth: (size_t) width height: (size_t) height; | ||
|
||
- (void)playToEnd; | ||
|
||
@end | ||
|
||
#endif | ||
|
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
|
||
#import <Foundation/Foundation.h> | ||
|
||
#import "libavformat/avformat.h" | ||
#import "libswscale/swscale.h" | ||
#import "libavcodec/avcodec.h" | ||
#import "libavutil/avutil.h" | ||
#import "libavcodec/audioconvert.h" |
70 changes: 70 additions & 0 deletions
70
ffmpeg_1.0_no_dolby/FFmpeg.framework/Headers/libavcodec/audioconvert.h
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,70 @@ | ||
/* | ||
* audio conversion | ||
* Copyright (c) 2006 Michael Niedermayer <michaelni@gmx.at> | ||
* Copyright (c) 2008 Peter Ross | ||
* | ||
* This file is part of FFmpeg. | ||
* | ||
* FFmpeg is free software; you can redistribute it and/or | ||
* modify it under the terms of the GNU Lesser General Public | ||
* License as published by the Free Software Foundation; either | ||
* version 2.1 of the License, or (at your option) any later version. | ||
* | ||
* FFmpeg is distributed in the hope that it will be useful, | ||
* but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | ||
* Lesser General Public License for more details. | ||
* | ||
* You should have received a copy of the GNU Lesser General Public | ||
* License along with FFmpeg; if not, write to the Free Software | ||
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA | ||
*/ | ||
|
||
#ifndef AVCODEC_AUDIOCONVERT_H | ||
#define AVCODEC_AUDIOCONVERT_H | ||
|
||
/** | ||
* @file | ||
* Audio format conversion routines | ||
*/ | ||
|
||
|
||
#include "libavutil/cpu.h" | ||
#include "avcodec.h" | ||
#include "libavutil/audioconvert.h" | ||
|
||
struct AVAudioConvert; | ||
typedef struct AVAudioConvert AVAudioConvert; | ||
|
||
/** | ||
* Create an audio sample format converter context | ||
* @param out_fmt Output sample format | ||
* @param out_channels Number of output channels | ||
* @param in_fmt Input sample format | ||
* @param in_channels Number of input channels | ||
* @param[in] matrix Channel mixing matrix (of dimension in_channel*out_channels). Set to NULL to ignore. | ||
* @param flags See AV_CPU_FLAG_xx | ||
* @return NULL on error | ||
*/ | ||
AVAudioConvert *av_audio_convert_alloc(enum AVSampleFormat out_fmt, int out_channels, | ||
enum AVSampleFormat in_fmt, int in_channels, | ||
const float *matrix, int flags); | ||
|
||
/** | ||
* Free audio sample format converter context | ||
*/ | ||
void av_audio_convert_free(AVAudioConvert *ctx); | ||
|
||
/** | ||
* Convert between audio sample formats | ||
* @param[in] out array of output buffers for each channel. set to NULL to ignore processing of the given channel. | ||
* @param[in] out_stride distance between consecutive output samples (measured in bytes) | ||
* @param[in] in array of input buffers for each channel | ||
* @param[in] in_stride distance between consecutive input samples (measured in bytes) | ||
* @param len length of audio frame size (measured in samples) | ||
*/ | ||
int av_audio_convert(AVAudioConvert *ctx, | ||
void * const out[6], const int out_stride[6], | ||
const void * const in[6], const int in_stride[6], int len); | ||
|
||
#endif /* AVCODEC_AUDIOCONVERT_H */ |
Oops, something went wrong.