Skip to content

Commit

Permalink
TODO: renderer on vo to fix osd position. other filters as well
Browse files Browse the repository at this point in the history
  • Loading branch information
wang-bin committed Mar 14, 2013
1 parent d802165 commit 5e6841a
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
2 changes: 1 addition & 1 deletion TODO.txt
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ network stream
avio pause network

TODO:
Filter framework: use FrameContext instead of QByteArray.
Filter framework: use FrameContext instead of QByteArray. Render on vo or image

type.h
QtAV_Compat.h=>pch
Expand Down
6 changes: 5 additions & 1 deletion src/OSDFilterQPainter.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,10 @@
#include <QtGui/QImage>
#include <QtGui/QPainter>

/* TODO:
* Render on VideoRenderer directly to fix the position
*/

namespace QtAV {

class OSDFilterQPainterPrivate : public OSDFilterPrivate
Expand Down Expand Up @@ -73,7 +77,7 @@ void OSDFilterQPainter::process(QByteArray &data)
f.setPixelSize(26);
painter.setFont(f);
painter.setPen(Qt::white);
painter.drawText(60, 60, text);
painter.drawText(32, 32, text);
}

} //namespace QtAV

0 comments on commit 5e6841a

Please sign in to comment.