mirror of
https://github.com/qTox/qTox.git
synced 2024-03-22 14:00:36 +08:00
cleanup
This commit is contained in:
parent
f2b730cdb9
commit
118b67a970
|
@ -45,6 +45,7 @@ void NetVideoSource::pushVPXFrame(vpx_image *image)
|
|||
uint8_t* uData = image->planes[VPX_PLANE_V];
|
||||
uint8_t* vData = image->planes[VPX_PLANE_U];
|
||||
|
||||
// convert from planar to packed
|
||||
for (int x = 0; x < dw; x += 1)
|
||||
{
|
||||
for (int y = 0; y < dh; y += 1)
|
||||
|
|
|
@ -110,7 +110,7 @@ void VideoSurface::initializeGL()
|
|||
" coords = vertices.xy*vec2(0.5,0.5)+vec2(0.5,0.5);"
|
||||
"}");
|
||||
|
||||
// brg frag-shader
|
||||
// yuv frag-shader
|
||||
yuvProgramm->addShaderFromSourceCode(QOpenGLShader::Fragment,
|
||||
"uniform sampler2D texture0;"
|
||||
"varying vec2 coords;"
|
||||
|
|
Loading…
Reference in New Issue
Block a user