wrap direct ffmpeg reference
This commit is contained in:
@@ -16,6 +16,7 @@
|
||||
|
||||
set(OLIVE_SOURCES
|
||||
${OLIVE_SOURCES}
|
||||
common/channellayout.h
|
||||
common/clamp.h
|
||||
common/lerp.h
|
||||
common/rational.h
|
||||
|
||||
@@ -0,0 +1,8 @@
|
||||
#ifndef CHANNELLAYOUT_H
|
||||
#define CHANNELLAYOUT_H
|
||||
|
||||
extern "C" {
|
||||
#include <libavcodec/avcodec.h>
|
||||
}
|
||||
|
||||
#endif // CHANNELLAYOUT_H
|
||||
@@ -1,6 +1,11 @@
|
||||
#include "decibel.h"
|
||||
|
||||
decibel::decibel()
|
||||
{
|
||||
#include <QtMath>
|
||||
|
||||
double amplitude_to_db(double amplitude) {
|
||||
return (20.0*(qLn(amplitude)/qLn(10.0)));
|
||||
}
|
||||
|
||||
double db_to_amplitude(double db) {
|
||||
return qPow(M_E, (db*qLn(10.0))/20.0);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user