further improvements

This commit is contained in:
itsmattkc
2019-02-14 12:37:30 -08:00
parent e9fe837236
commit abe76c7941
35 changed files with 737 additions and 878 deletions
-19
View File
@@ -1,19 +0,0 @@
#include "avtogl.h"
extern "C" {
#include <libavutil/avutil.h>
}
enum QOpenGLTexture::PixelFormat get_gl_pix_fmt_from_av(int format) {
/*switch (format) {
case AV_PIX_FMT_RGB24: return QOpenGLTexture::RGB;
}*/
return QOpenGLTexture::RGBA;
}
enum QOpenGLTexture::TextureFormat get_gl_tex_fmt_from_av(int format) {
/*switch (format) {
case AV_PIX_FMT_RGB24: return QOpenGLTexture::RGB8_UNorm;
}*/
return QOpenGLTexture::RGBA8_UNorm;
}
-9
View File
@@ -1,9 +0,0 @@
#ifndef AVTOGL_H
#define AVTOGL_H
#include <QOpenGLTexture>
enum QOpenGLTexture::PixelFormat get_gl_pix_fmt_from_av(int format);
enum QOpenGLTexture::TextureFormat get_gl_tex_fmt_from_av(int format);
#endif // AVTOGL_H