further improvements
This commit is contained in:
@@ -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;
|
||||
}
|
||||
@@ -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
|
||||
Reference in New Issue
Block a user