1
0
mirror of https://github.com/qTox/qTox.git synced 2024-03-22 14:00:36 +08:00
This commit is contained in:
krepa098 2014-10-15 16:37:43 +02:00
parent f2b730cdb9
commit 118b67a970
2 changed files with 2 additions and 1 deletions

View File

@ -45,6 +45,7 @@ void NetVideoSource::pushVPXFrame(vpx_image *image)
uint8_t* uData = image->planes[VPX_PLANE_V]; uint8_t* uData = image->planes[VPX_PLANE_V];
uint8_t* vData = image->planes[VPX_PLANE_U]; uint8_t* vData = image->planes[VPX_PLANE_U];
// convert from planar to packed
for (int x = 0; x < dw; x += 1) for (int x = 0; x < dw; x += 1)
{ {
for (int y = 0; y < dh; y += 1) for (int y = 0; y < dh; y += 1)

View File

@ -110,7 +110,7 @@ void VideoSurface::initializeGL()
" coords = vertices.xy*vec2(0.5,0.5)+vec2(0.5,0.5);" " coords = vertices.xy*vec2(0.5,0.5)+vec2(0.5,0.5);"
"}"); "}");
// brg frag-shader // yuv frag-shader
yuvProgramm->addShaderFromSourceCode(QOpenGLShader::Fragment, yuvProgramm->addShaderFromSourceCode(QOpenGLShader::Fragment,
"uniform sampler2D texture0;" "uniform sampler2D texture0;"
"varying vec2 coords;" "varying vec2 coords;"