-
Notifications
You must be signed in to change notification settings - Fork 1
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
0 parents
commit 14f44a3
Showing
52 changed files
with
3,807 additions
and
0 deletions.
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 |
---|---|---|
@@ -0,0 +1,26 @@ | ||
name: iOS pod CI | ||
|
||
on: | ||
push: | ||
tags: | ||
- '*' | ||
|
||
jobs: | ||
build-and-deploy: | ||
runs-on: macos-10.15 | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v2 | ||
|
||
- name: Deploy to CocoapodsPre | ||
run: | | ||
set -eo pipefail | ||
VERSION=$(git describe --tags `git rev-list --tags --max-count=1`) | ||
echo $VERSION | ||
export LIB_VERSION=$VERSION | ||
pod lib lint --verbose --allow-warnings --use-libraries | ||
pod trunk push --verbose --allow-warnings --use-libraries | ||
env: | ||
COCOAPODS_TRUNK_TOKEN: ${{ secrets.IOT_COCOAPODS_TRUNK_TOKEN }} |
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,38 @@ | ||
# OS X | ||
.DS_Store | ||
|
||
# Xcode | ||
build/ | ||
*.pbxuser | ||
!default.pbxuser | ||
*.mode1v3 | ||
!default.mode1v3 | ||
*.mode2v3 | ||
!default.mode2v3 | ||
*.perspectivev3 | ||
!default.perspectivev3 | ||
xcuserdata/ | ||
*.xccheckout | ||
profile | ||
*.moved-aside | ||
DerivedData | ||
*.hmap | ||
*.ipa | ||
|
||
# Bundler | ||
.bundle | ||
|
||
# Add this line if you want to avoid checking in source code from Carthage dependencies. | ||
# Carthage/Checkouts | ||
|
||
Carthage/Build | ||
|
||
# We recommend against adding the Pods directory to your .gitignore. However | ||
# you should judge for yourself, the pros and cons are mentioned at: | ||
# https://guides.cocoapods.org/using/using-cocoapods.html#should-i-ignore-the-pods-directory-in-source-control | ||
# | ||
# Note: if you ignore the Pods directory, make sure to uncomment | ||
# `pod install` in .travis.yml | ||
# | ||
Example/Pods/ | ||
Podfile.lock |
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,19 @@ | ||
Copyright (c) 2020 Tencent | ||
|
||
Permission is hereby granted, free of charge, to any person obtaining a copy | ||
of this software and associated documentation files (the "Software"), to deal | ||
in the Software without restriction, including without limitation the rights | ||
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell | ||
copies of the Software, and to permit persons to whom the Software is | ||
furnished to do so, subject to the following conditions: | ||
|
||
The above copyright notice and this permission notice shall be included in | ||
all copies or substantial portions of the Software. | ||
|
||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR | ||
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, | ||
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE | ||
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER | ||
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, | ||
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN | ||
THE SOFTWARE. |
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,39 @@ | ||
# TIoTLinkThirdPartyKit | ||
|
||
[![CI Status](https://img.shields.io/travis/[email protected]/TIoTThridSDK.svg?style=flat)](https://travis-ci.org/[email protected]/TIoTLinkThirdPartyKit) | ||
[![Version](https://img.shields.io/cocoapods/v/TIoTThridSDK.svg?style=flat)](https://cocoapods.org/pods/TIoTLinkThirdPartyKit) | ||
[![License](https://img.shields.io/cocoapods/l/TIoTThridSDK.svg?style=flat)](https://cocoapods.org/pods/TIoTLinkThirdPartyKit) | ||
[![Platform](https://img.shields.io/cocoapods/p/TIoTThridSDK.svg?style=flat)](https://cocoapods.org/pods/TIoTLinkThirdPartyKit) | ||
|
||
## Example | ||
|
||
To run the example project, clone the repo, and run `pod install` from the Example directory first. | ||
|
||
## Requirements | ||
|
||
## Installation | ||
|
||
TIoTThridSDK is available through [CocoaPods](https://cocoapods.org). To install | ||
it, simply add the following line to your Podfile: | ||
|
||
```ruby | ||
pod 'TIoTLinkThirdPartyKit' | ||
pod 'TIoTLinkThirdPartyKit/TPNS-iOS' | ||
pod 'TIoTLinkThirdPartyKit/WechatOpenSDK_NoPay' | ||
pod 'TIoTLinkThirdPartyKit/IJKPlayer-iOS' | ||
pod 'TIoTLinkThirdPartyKit/XP2P-iOS' | ||
pod 'TIoTLinkThirdPartyKit/Faac-iOS' | ||
``` | ||
|
||
## Author | ||
|
||
[email protected] | ||
|
||
## License | ||
|
||
TIoTThridSDK is available under the MIT license. See the LICENSE file for more info. | ||
|
||
|
||
pod lib lint --verbose --allow-warnings --use-libraries | ||
|
||
pod trunk push --verbose --allow-warnings --use-libraries |
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,99 @@ | ||
/* | ||
* FAAC - Freeware Advanced Audio Coder | ||
* Copyright (C) 2001 Menno Bakker | ||
* | ||
* This library 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. | ||
* | ||
* This library 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 this library; if not, write to the Free Software | ||
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA | ||
* | ||
* $Id: faac.h,v 1.36 2009/01/25 18:50:32 menno Exp $ | ||
*/ | ||
|
||
#ifndef _FAAC_H_ | ||
#define _FAAC_H_ | ||
|
||
#ifdef __cplusplus | ||
extern "C" { | ||
#endif /* __cplusplus */ | ||
|
||
#if defined(_WIN32) && !defined(__MINGW32__) | ||
# ifndef FAACAPI | ||
# define FAACAPI __stdcall | ||
# endif | ||
#else | ||
# ifndef FAACAPI | ||
# define FAACAPI | ||
# endif | ||
#endif | ||
|
||
#pragma pack(push, 1) | ||
|
||
typedef struct { | ||
void *ptr; | ||
char *name; | ||
} | ||
psymodellist_t; | ||
|
||
#include "faaccfg.h" | ||
|
||
|
||
typedef void *faacEncHandle; | ||
|
||
#ifndef HAVE_INT32_T | ||
typedef signed int int32_t; | ||
#endif | ||
|
||
/* | ||
Allows an application to get FAAC version info. This is intended | ||
purely for informative purposes. | ||
Returns FAAC_CFG_VERSION. | ||
*/ | ||
int FAACAPI faacEncGetVersion(char **faac_id_string, | ||
char **faac_copyright_string); | ||
|
||
|
||
faacEncConfigurationPtr FAACAPI | ||
faacEncGetCurrentConfiguration(faacEncHandle hEncoder); | ||
|
||
|
||
int FAACAPI faacEncSetConfiguration(faacEncHandle hEncoder, | ||
faacEncConfigurationPtr config); | ||
|
||
|
||
faacEncHandle FAACAPI faacEncOpen(unsigned long sampleRate, | ||
unsigned int numChannels, | ||
unsigned long *inputSamples, | ||
unsigned long *maxOutputBytes); | ||
|
||
|
||
int FAACAPI faacEncGetDecoderSpecificInfo(faacEncHandle hEncoder, unsigned char **ppBuffer, | ||
unsigned long *pSizeOfDecoderSpecificInfo); | ||
|
||
|
||
int FAACAPI faacEncEncode(faacEncHandle hEncoder, int32_t * inputBuffer, unsigned int samplesInput, | ||
unsigned char *outputBuffer, | ||
unsigned int bufferSize); | ||
|
||
|
||
int FAACAPI faacEncClose(faacEncHandle hEncoder); | ||
|
||
|
||
|
||
#pragma pack(pop) | ||
|
||
#ifdef __cplusplus | ||
} | ||
#endif /* __cplusplus */ | ||
|
||
#endif /* _FAAC_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,122 @@ | ||
/* | ||
* FAAC - Freeware Advanced Audio Coder | ||
* Copyright (C) 2001 Menno Bakker | ||
* | ||
* This library 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. | ||
* | ||
* This library 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 this library; if not, write to the Free Software | ||
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA | ||
* | ||
* $Id: faaccfg.h,v 1.3 2004/07/04 12:12:05 corrados Exp $ | ||
*/ | ||
|
||
#ifndef _FAACCFG_H_ | ||
#define _FAACCFG_H_ | ||
|
||
#define FAAC_CFG_VERSION 104 | ||
|
||
/* MPEG ID's */ | ||
#define MPEG2 1 | ||
#define MPEG4 0 | ||
|
||
/* AAC object types */ | ||
#define MAIN 1 | ||
#define LOW 2 | ||
#define SSR 3 | ||
#define LTP 4 | ||
|
||
/* Input Formats */ | ||
#define FAAC_INPUT_NULL 0 | ||
#define FAAC_INPUT_16BIT 1 | ||
#define FAAC_INPUT_24BIT 2 | ||
#define FAAC_INPUT_32BIT 3 | ||
#define FAAC_INPUT_FLOAT 4 | ||
|
||
#define SHORTCTL_NORMAL 0 | ||
#define SHORTCTL_NOSHORT 1 | ||
#define SHORTCTL_NOLONG 2 | ||
|
||
#pragma pack(push, 1) | ||
typedef struct faacEncConfiguration | ||
{ | ||
/* config version */ | ||
int version; | ||
|
||
/* library version */ | ||
char *name; | ||
|
||
/* copyright string */ | ||
char *copyright; | ||
|
||
/* MPEG version, 2 or 4 */ | ||
unsigned int mpegVersion; | ||
|
||
/* AAC object type */ | ||
unsigned int aacObjectType; | ||
|
||
/* Allow mid/side coding */ | ||
unsigned int allowMidside; | ||
|
||
/* Use one of the channels as LFE channel */ | ||
unsigned int useLfe; | ||
|
||
/* Use Temporal Noise Shaping */ | ||
unsigned int useTns; | ||
|
||
/* bitrate / channel of AAC file */ | ||
unsigned long bitRate; | ||
|
||
/* AAC file frequency bandwidth */ | ||
unsigned int bandWidth; | ||
|
||
/* Quantizer quality */ | ||
unsigned long quantqual; | ||
|
||
/* Bitstream output format (0 = Raw; 1 = ADTS) */ | ||
unsigned int outputFormat; | ||
|
||
/* psychoacoustic model list */ | ||
psymodellist_t *psymodellist; | ||
|
||
/* selected index in psymodellist */ | ||
unsigned int psymodelidx; | ||
|
||
/* | ||
PCM Sample Input Format | ||
0 FAAC_INPUT_NULL invalid, signifies a misconfigured config | ||
1 FAAC_INPUT_16BIT native endian 16bit | ||
2 FAAC_INPUT_24BIT native endian 24bit in 24 bits (not implemented) | ||
3 FAAC_INPUT_32BIT native endian 24bit in 32 bits (DEFAULT) | ||
4 FAAC_INPUT_FLOAT 32bit floating point | ||
*/ | ||
unsigned int inputFormat; | ||
|
||
/* block type enforcing (SHORTCTL_NORMAL/SHORTCTL_NOSHORT/SHORTCTL_NOLONG) */ | ||
int shortctl; | ||
|
||
/* | ||
Channel Remapping | ||
Default 0, 1, 2, 3 ... 63 (64 is MAX_CHANNELS in coder.h) | ||
WAVE 4.0 2, 0, 1, 3 | ||
WAVE 5.0 2, 0, 1, 3, 4 | ||
WAVE 5.1 2, 0, 1, 4, 5, 3 | ||
AIFF 5.1 2, 0, 3, 1, 4, 5 | ||
*/ | ||
int channel_map[64]; | ||
|
||
} faacEncConfiguration, *faacEncConfigurationPtr; | ||
|
||
#pragma pack(pop) | ||
|
||
#endif /* _FAACCFG_H_ */ |
Binary file not shown.
Oops, something went wrong.