Skip to content

Commit 14f44a3

Browse files
committed
first commit
0 parents  commit 14f44a3

Some content is hidden

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

52 files changed

+3807
-0
lines changed

.github/workflows/deploypod.yml

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
name: iOS pod CI
2+
3+
on:
4+
push:
5+
tags:
6+
- '*'
7+
8+
jobs:
9+
build-and-deploy:
10+
runs-on: macos-10.15
11+
steps:
12+
- name: Checkout
13+
uses: actions/checkout@v2
14+
15+
- name: Deploy to CocoapodsPre
16+
run: |
17+
set -eo pipefail
18+
19+
VERSION=$(git describe --tags `git rev-list --tags --max-count=1`)
20+
echo $VERSION
21+
export LIB_VERSION=$VERSION
22+
23+
pod lib lint --verbose --allow-warnings --use-libraries
24+
pod trunk push --verbose --allow-warnings --use-libraries
25+
env:
26+
COCOAPODS_TRUNK_TOKEN: ${{ secrets.IOT_COCOAPODS_TRUNK_TOKEN }}

.gitignore

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
# OS X
2+
.DS_Store
3+
4+
# Xcode
5+
build/
6+
*.pbxuser
7+
!default.pbxuser
8+
*.mode1v3
9+
!default.mode1v3
10+
*.mode2v3
11+
!default.mode2v3
12+
*.perspectivev3
13+
!default.perspectivev3
14+
xcuserdata/
15+
*.xccheckout
16+
profile
17+
*.moved-aside
18+
DerivedData
19+
*.hmap
20+
*.ipa
21+
22+
# Bundler
23+
.bundle
24+
25+
# Add this line if you want to avoid checking in source code from Carthage dependencies.
26+
# Carthage/Checkouts
27+
28+
Carthage/Build
29+
30+
# We recommend against adding the Pods directory to your .gitignore. However
31+
# you should judge for yourself, the pros and cons are mentioned at:
32+
# https://guides.cocoapods.org/using/using-cocoapods.html#should-i-ignore-the-pods-directory-in-source-control
33+
#
34+
# Note: if you ignore the Pods directory, make sure to uncomment
35+
# `pod install` in .travis.yml
36+
#
37+
Example/Pods/
38+
Podfile.lock

LICENSE

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
Copyright (c) 2020 Tencent
2+
3+
Permission is hereby granted, free of charge, to any person obtaining a copy
4+
of this software and associated documentation files (the "Software"), to deal
5+
in the Software without restriction, including without limitation the rights
6+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
7+
copies of the Software, and to permit persons to whom the Software is
8+
furnished to do so, subject to the following conditions:
9+
10+
The above copyright notice and this permission notice shall be included in
11+
all copies or substantial portions of the Software.
12+
13+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
14+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
15+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
16+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
17+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
18+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
19+
THE SOFTWARE.

README.md

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
# TIoTLinkThirdPartyKit
2+
3+
[![CI Status](https://img.shields.io/travis/tonychanchen@gmail.com/TIoTThridSDK.svg?style=flat)](https://travis-ci.org/tonychanchen@gmail.com/TIoTLinkThirdPartyKit)
4+
[![Version](https://img.shields.io/cocoapods/v/TIoTThridSDK.svg?style=flat)](https://cocoapods.org/pods/TIoTLinkThirdPartyKit)
5+
[![License](https://img.shields.io/cocoapods/l/TIoTThridSDK.svg?style=flat)](https://cocoapods.org/pods/TIoTLinkThirdPartyKit)
6+
[![Platform](https://img.shields.io/cocoapods/p/TIoTThridSDK.svg?style=flat)](https://cocoapods.org/pods/TIoTLinkThirdPartyKit)
7+
8+
## Example
9+
10+
To run the example project, clone the repo, and run `pod install` from the Example directory first.
11+
12+
## Requirements
13+
14+
## Installation
15+
16+
TIoTThridSDK is available through [CocoaPods](https://cocoapods.org). To install
17+
it, simply add the following line to your Podfile:
18+
19+
```ruby
20+
pod 'TIoTLinkThirdPartyKit'
21+
pod 'TIoTLinkThirdPartyKit/TPNS-iOS'
22+
pod 'TIoTLinkThirdPartyKit/WechatOpenSDK_NoPay'
23+
pod 'TIoTLinkThirdPartyKit/IJKPlayer-iOS'
24+
pod 'TIoTLinkThirdPartyKit/XP2P-iOS'
25+
pod 'TIoTLinkThirdPartyKit/Faac-iOS'
26+
```
27+
28+
## Author
29+
30+
tonychanchen@gmail.com
31+
32+
## License
33+
34+
TIoTThridSDK is available under the MIT license. See the LICENSE file for more info.
35+
36+
37+
pod lib lint --verbose --allow-warnings --use-libraries
38+
39+
pod trunk push --verbose --allow-warnings --use-libraries

Source/Faac-iOS/Classes/faac.h

Lines changed: 99 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,99 @@
1+
/*
2+
* FAAC - Freeware Advanced Audio Coder
3+
* Copyright (C) 2001 Menno Bakker
4+
*
5+
* This library 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+
* This library 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 this library; if not, write to the Free Software
17+
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
18+
*
19+
* $Id: faac.h,v 1.36 2009/01/25 18:50:32 menno Exp $
20+
*/
21+
22+
#ifndef _FAAC_H_
23+
#define _FAAC_H_
24+
25+
#ifdef __cplusplus
26+
extern "C" {
27+
#endif /* __cplusplus */
28+
29+
#if defined(_WIN32) && !defined(__MINGW32__)
30+
# ifndef FAACAPI
31+
# define FAACAPI __stdcall
32+
# endif
33+
#else
34+
# ifndef FAACAPI
35+
# define FAACAPI
36+
# endif
37+
#endif
38+
39+
#pragma pack(push, 1)
40+
41+
typedef struct {
42+
void *ptr;
43+
char *name;
44+
}
45+
psymodellist_t;
46+
47+
#include "faaccfg.h"
48+
49+
50+
typedef void *faacEncHandle;
51+
52+
#ifndef HAVE_INT32_T
53+
typedef signed int int32_t;
54+
#endif
55+
56+
/*
57+
Allows an application to get FAAC version info. This is intended
58+
purely for informative purposes.
59+
60+
Returns FAAC_CFG_VERSION.
61+
*/
62+
int FAACAPI faacEncGetVersion(char **faac_id_string,
63+
char **faac_copyright_string);
64+
65+
66+
faacEncConfigurationPtr FAACAPI
67+
faacEncGetCurrentConfiguration(faacEncHandle hEncoder);
68+
69+
70+
int FAACAPI faacEncSetConfiguration(faacEncHandle hEncoder,
71+
faacEncConfigurationPtr config);
72+
73+
74+
faacEncHandle FAACAPI faacEncOpen(unsigned long sampleRate,
75+
unsigned int numChannels,
76+
unsigned long *inputSamples,
77+
unsigned long *maxOutputBytes);
78+
79+
80+
int FAACAPI faacEncGetDecoderSpecificInfo(faacEncHandle hEncoder, unsigned char **ppBuffer,
81+
unsigned long *pSizeOfDecoderSpecificInfo);
82+
83+
84+
int FAACAPI faacEncEncode(faacEncHandle hEncoder, int32_t * inputBuffer, unsigned int samplesInput,
85+
unsigned char *outputBuffer,
86+
unsigned int bufferSize);
87+
88+
89+
int FAACAPI faacEncClose(faacEncHandle hEncoder);
90+
91+
92+
93+
#pragma pack(pop)
94+
95+
#ifdef __cplusplus
96+
}
97+
#endif /* __cplusplus */
98+
99+
#endif /* _FAAC_H_ */

Source/Faac-iOS/Classes/faaccfg.h

Lines changed: 122 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,122 @@
1+
/*
2+
* FAAC - Freeware Advanced Audio Coder
3+
* Copyright (C) 2001 Menno Bakker
4+
*
5+
* This library 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+
* This library 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 this library; if not, write to the Free Software
17+
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
18+
*
19+
* $Id: faaccfg.h,v 1.3 2004/07/04 12:12:05 corrados Exp $
20+
*/
21+
22+
#ifndef _FAACCFG_H_
23+
#define _FAACCFG_H_
24+
25+
#define FAAC_CFG_VERSION 104
26+
27+
/* MPEG ID's */
28+
#define MPEG2 1
29+
#define MPEG4 0
30+
31+
/* AAC object types */
32+
#define MAIN 1
33+
#define LOW 2
34+
#define SSR 3
35+
#define LTP 4
36+
37+
/* Input Formats */
38+
#define FAAC_INPUT_NULL 0
39+
#define FAAC_INPUT_16BIT 1
40+
#define FAAC_INPUT_24BIT 2
41+
#define FAAC_INPUT_32BIT 3
42+
#define FAAC_INPUT_FLOAT 4
43+
44+
#define SHORTCTL_NORMAL 0
45+
#define SHORTCTL_NOSHORT 1
46+
#define SHORTCTL_NOLONG 2
47+
48+
#pragma pack(push, 1)
49+
typedef struct faacEncConfiguration
50+
{
51+
/* config version */
52+
int version;
53+
54+
/* library version */
55+
char *name;
56+
57+
/* copyright string */
58+
char *copyright;
59+
60+
/* MPEG version, 2 or 4 */
61+
unsigned int mpegVersion;
62+
63+
/* AAC object type */
64+
unsigned int aacObjectType;
65+
66+
/* Allow mid/side coding */
67+
unsigned int allowMidside;
68+
69+
/* Use one of the channels as LFE channel */
70+
unsigned int useLfe;
71+
72+
/* Use Temporal Noise Shaping */
73+
unsigned int useTns;
74+
75+
/* bitrate / channel of AAC file */
76+
unsigned long bitRate;
77+
78+
/* AAC file frequency bandwidth */
79+
unsigned int bandWidth;
80+
81+
/* Quantizer quality */
82+
unsigned long quantqual;
83+
84+
/* Bitstream output format (0 = Raw; 1 = ADTS) */
85+
unsigned int outputFormat;
86+
87+
/* psychoacoustic model list */
88+
psymodellist_t *psymodellist;
89+
90+
/* selected index in psymodellist */
91+
unsigned int psymodelidx;
92+
93+
/*
94+
PCM Sample Input Format
95+
0 FAAC_INPUT_NULL invalid, signifies a misconfigured config
96+
1 FAAC_INPUT_16BIT native endian 16bit
97+
2 FAAC_INPUT_24BIT native endian 24bit in 24 bits (not implemented)
98+
3 FAAC_INPUT_32BIT native endian 24bit in 32 bits (DEFAULT)
99+
4 FAAC_INPUT_FLOAT 32bit floating point
100+
*/
101+
unsigned int inputFormat;
102+
103+
/* block type enforcing (SHORTCTL_NORMAL/SHORTCTL_NOSHORT/SHORTCTL_NOLONG) */
104+
int shortctl;
105+
106+
/*
107+
Channel Remapping
108+
109+
Default 0, 1, 2, 3 ... 63 (64 is MAX_CHANNELS in coder.h)
110+
111+
WAVE 4.0 2, 0, 1, 3
112+
WAVE 5.0 2, 0, 1, 3, 4
113+
WAVE 5.1 2, 0, 1, 4, 5, 3
114+
AIFF 5.1 2, 0, 3, 1, 4, 5
115+
*/
116+
int channel_map[64];
117+
118+
} faacEncConfiguration, *faacEncConfigurationPtr;
119+
120+
#pragma pack(pop)
121+
122+
#endif /* _FAACCFG_H_ */

Source/Faac-iOS/libfaac.a

632 KB
Binary file not shown.

0 commit comments

Comments
 (0)