forked from wang-bin/QtAV
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
most algorithms and containers are fine. no std::string, exception
- Loading branch information
Showing
81 changed files
with
504 additions
and
628 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 |
---|---|---|
|
@@ -33,6 +33,7 @@ branches: | |
- prelease | ||
- ci/travis | ||
- /^travis-.*$/ | ||
- dev | ||
|
||
git: | ||
submodules: true | ||
|
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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,6 +1,6 @@ | ||
/****************************************************************************** | ||
QtAV: Media play library based on Qt and FFmpeg | ||
Copyright (C) 2012-2014 Wang Bin <[email protected]> | ||
Copyright (C) 2012-2015 Wang Bin <[email protected]> | ||
* This file is part of QtAV | ||
|
@@ -23,7 +23,7 @@ | |
#include "QtAV/AudioResampler.h" | ||
#include "QtAV/private/AudioResampler_p.h" | ||
#include "QtAV/private/AVCompat.h" | ||
#include "QtAV/private/prepost.h" | ||
#include "QtAV/private/factory.h" | ||
#include "utils/Logger.h" | ||
|
||
namespace QtAV { | ||
|
@@ -32,7 +32,7 @@ namespace QtAV { | |
#define AudioResamplerFF AudioResamplerLibav | ||
#define AudioResamplerFFPrivate AudioResamplerLibavPrivate | ||
#define AudioResamplerId_FF AudioResamplerId_Libav | ||
#define __create_AudioResamplerFF __create_AudioResamplerLibav | ||
#define RegisterAudioResamplerFF_Man RegisterAudioResamplerLibav_Man | ||
#define FF Libav | ||
static const char kName[] = "Libav"; | ||
#else | ||
|
@@ -49,15 +49,7 @@ class AudioResamplerFF : public AudioResampler | |
virtual bool prepare(); | ||
}; | ||
extern AudioResamplerId AudioResamplerId_FF; | ||
namespace { | ||
static const struct init { | ||
static AudioResampler* __create_AudioResamplerFF() { return new AudioResamplerFF();} | ||
inline init() { | ||
AudioResamplerFactory::registerCreator(AudioResamplerId_FF, __create_AudioResamplerFF); | ||
AudioResamplerFactory::registerIdName(AudioResamplerId_FF, kName); | ||
} | ||
} _init; | ||
} | ||
FACTORY_REGISTER(AudioResampler, FF, kName) | ||
|
||
class AudioResamplerFFPrivate : public AudioResamplerPrivate | ||
{ | ||
|
@@ -72,7 +64,7 @@ class AudioResamplerFFPrivate : public AudioResamplerPrivate | |
SwrContext *context; | ||
// defined in swr<1 | ||
#ifndef SWR_CH_MAX | ||
#define SWR_CH_MAX 63 | ||
#define SWR_CH_MAX 64 | ||
#endif | ||
int channel_map[SWR_CH_MAX]; | ||
}; | ||
|
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
Oops, something went wrong.