wrap direct ffmpeg reference

This commit is contained in:
itsmattkc
2019-07-22 09:26:38 -07:00
parent 1d25fbd9e7
commit 71e6e3143b
6 changed files with 18 additions and 14 deletions
+1
View File
@@ -16,6 +16,7 @@
set(OLIVE_SOURCES
${OLIVE_SOURCES}
common/channellayout.h
common/clamp.h
common/lerp.h
common/rational.h
+8
View File
@@ -0,0 +1,8 @@
#ifndef CHANNELLAYOUT_H
#define CHANNELLAYOUT_H
extern "C" {
#include <libavcodec/avcodec.h>
}
#endif // CHANNELLAYOUT_H
+7 -2
View File
@@ -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);
}
+1 -4
View File
@@ -20,10 +20,6 @@
#include "sequence.h"
extern "C" {
#include <libavformat/avformat.h>
}
#include <QDialogButtonBox>
#include <QGroupBox>
#include <QLabel>
@@ -31,6 +27,7 @@ extern "C" {
#include <QMessageBox>
#include <QVBoxLayout>
#include "common/channellayout.h"
#include "common/rational.h"
#include "undo/undostack.h"
-4
View File
@@ -21,10 +21,6 @@
#ifndef AUDIOSTREAM_H
#define AUDIOSTREAM_H
extern "C" {
#include <libavcodec/avcodec.h>
}
#include "common/rational.h"
#include "stream.h"
+1 -4
View File
@@ -20,10 +20,7 @@
#include "sequence.h"
extern "C" {
#include <libavcodec/avcodec.h>
}
#include "common/channellayout.h"
#include "ui/icons/icons.h"
Sequence::Sequence()