wang-bin
15bec57d55
enable compile tests for qmake. tested on windows mingw(with/without
...
msys) and vc
compiletest
2013-03-03 16:14:02 +08:00
wang-bin
9548ff4e4b
config.test: add ffmpeg, portaudio, d2d, gdi+
2013-03-03 16:07:34 +08:00
wang-bin
aef182ca07
add a script to generate config tests
2013-03-03 15:50:01 +08:00
wang-bin
ed07bea139
port useful builtin qmake functions to Qt4. qtCompileTest works
...
TODO:
1. shell_quote, system_quote are not finished
2. win32 msys may need qmake twice, the first QMAKE path is not right in
Makefile
3. other qmake builtin functions in qt5
2013-03-03 14:55:23 +08:00
wang-bin
10f8613acf
qmake: cache() for Qt4 and ready to use compile test. unified with Qt5
...
Now we can cache the BUILD_DIR exactly in $$BUILD_DIR, with emulated
cache() for Qt4, and built-in cache() for Qt5. The code is a little
complex for Qt4
TODO:
1. 1cahce(): erase the existing lines contain the value
2013-03-03 02:51:58 +08:00
wang-bin
080322fefd
fix d2d compile error and wrong background
...
TODO:
for direct2d, why background is white if return after clear color and
data is null?
2013-03-02 03:13:28 +08:00
wang-bin
08d0664948
Add shortcut R: switch aspect ratio
2013-03-02 00:52:36 +08:00
wang-bin
12a8cc5b66
update background is required when aspect ratio is not VideoAspectRatio
2013-03-02 00:42:41 +08:00
wang-bin
ba6e88f068
refine code and fix aspect ratio mode switch error
...
TODO: OriginalVideoSizeMode
2013-03-02 00:33:34 +08:00
wang-bin
8be41dd08f
README: add d2d, gdi and some pictures
2013-03-01 23:01:55 +08:00
wang-bin
c168f0bd60
optimize background color. gdi renderer supports now
...
TODO: is it necessary to set the color?
2013-03-01 19:24:26 +08:00
wang-bin
15070ea70c
direct2d: crash fixed. always lock is easier, and will not forget to
...
unlock
2013-03-01 01:18:40 +08:00
wang-bin
cf5bab30fd
let all renderers support aspect ratio
2013-03-01 01:09:28 +08:00
wang-bin
dfe8fd24c8
correct var name
2013-02-28 23:55:58 +08:00
wang-bin
731d5e3422
move useQPainter() to base class VideoRenderer
2013-02-28 23:50:00 +08:00
wang-bin
11e04f5947
names change, warning fix, move some public members to private
...
I think QtAV is not used widely today, so api change does not matter
2013-02-28 22:43:49 +08:00
wang-bin
1e2c3b4212
renderer: aspect ratio support. default is keep the original
...
TODO:
more understandable api names
2013-02-28 01:41:39 +08:00
wang-bin
45d19db7c2
videowall: help
2013-02-27 00:13:42 +08:00
wang-bin
b24669fe0f
add an example for each renderer so we can compare the performance
2013-02-27 00:13:03 +08:00
wang-bin
ff273cd0a5
move write() to protected
2013-02-26 23:24:33 +08:00
wang-bin
44c6b7cabc
Merge branch 'directx'
2013-02-26 22:47:42 +08:00
wang-bin
b28d29cf17
d2d: unlock before return etc
2013-02-26 22:47:25 +08:00
wang-bin
6f2cf5bec5
gdi: refine code
...
TODO:
can offscreen bitmap be created only once? how to copy image data?
2013-02-25 02:22:43 +08:00
wang-bin
6659b35e10
gdi: StretchBlt() to improve performance. fix mem leak
...
performance improved a lot, half cpu usage on my pc.
TODO: store mem bitmap and hdc in private
2013-02-25 01:39:57 +08:00
wang-bin
19a40254e6
gdi: inherits VideoOutput. d.data must not be modified when painting
...
TODO:
lock and store data in AVOutput::convertData()? code will be more clean
2013-02-25 01:05:57 +08:00
wang-bin
573541da6a
store data ref in writeData(). convertData() is not pure
2013-02-24 23:38:26 +08:00
wang-bin
ae84a1a89d
vo: remove unused 'preview' member.
2013-02-24 03:23:09 +08:00
wang-bin
cfeb751430
remove currentFrameImage() because of other paint engine
2013-02-24 02:54:18 +08:00
wang-bin
3892c1d759
Merge branch 'directx'
2013-02-24 02:42:29 +08:00
wang-bin
a8a1da7f9c
refine code etc
2013-02-24 02:41:50 +08:00
wang-bin
623ebcedbd
vo template: use showEvent, inherits VideoRenderer
2013-02-24 02:04:22 +08:00
wang-bin
85a6fb975c
gdi: showEvent instead of changeEvent
2013-02-24 01:56:31 +08:00
wang-bin
62bcc71e7f
direct2d: showEvent instead of changeEvent to avoid flicker when active
...
state changed
2013-02-24 00:49:01 +08:00
wang-bin
dcd7b9705d
direct2d: check ptr
...
BUG:
sometimes windows give this error: "D3D11: Removing Device"
even the user will logout the system!
2013-02-24 00:11:07 +08:00
wang-bin
afe5077442
direct2d: inherit VideoRenderer to avoid QImage construct
...
TODO:
1. need a function call when setSourceSize() called
2. try QPainter::beginNativePaint()
3. try to implement other QPaintEngine. What Qt has?
2013-02-23 23:29:50 +08:00
wang-bin
e25c66ca9a
code style, var names etc.
2013-02-23 02:25:49 +08:00
wang-bin
79cb77c67c
direct2d: do not always create bitmap
...
have not compared the performance
TODO:
1. how to update bitmap when setSource called and size changes
2. change base class from ImageRenderer to VideoRenderer to avoid QImage
constructing
2013-02-23 02:14:28 +08:00
wang-bin
6cdaa7cddf
direct2d works. default is disabled. use qmake argument CONFIG+=direct2d
...
picture quality is ok. performance is not good enough on my pc
TODO: use dynamic load
2013-02-22 22:02:15 +08:00
wang-bin
788d261ef0
Merge branch 'master' into directx
...
Conflicts:
src/libQtAV.pro
2013-02-22 21:55:01 +08:00
wang-bin
fc4ff7ea6e
configurable gdi plus
2013-02-22 15:12:15 +08:00
wang-bin
689fee9634
use version.h to simplify version change for rc file. fix vs link error
...
when compiling *.rc, include files like Qt/*.h, QtAV/*.h will failed, so
I use relative path, and version.h include no other files.
link error is about /SAFESEH, when linking again ffmpeg and portaudio,
just disable it
2013-02-22 14:31:10 +08:00
wang-bin
5461c006cc
version 1.1.9
...
Changelog:
- Add network interrupt callback. Thanks Vito vcovito
- QtAV and FFmpeg runtime version check
- Add factory model to manager the components. Currently used in
ImageConverter
- MSVC support
- Seek bug fix: some times blocked
- qmake: no additional arguments required(if source dir is writable)
- Add 2 graphics item renderer examples
- GDI+ renderer support
- Start to use script to create new classes
v1.1.9
2013-02-22 01:25:46 +08:00
wang-bin
ffa66c3f96
gdi: keep code format the same as template's
2013-02-22 00:57:13 +08:00
wang-bin
105ba0e28d
add scripts and templates to generate class
...
TODO: use idl?
2013-02-22 00:47:54 +08:00
wang-bin
ff9e9e193c
add Direct2DRenderer class. empty now
2013-02-22 00:38:16 +08:00
wang-bin
df6280724c
gdi: BitBlt support
...
BUG: crash after playing for a while
2013-02-21 19:01:17 +08:00
wang-bin
fbeecb47d7
fix no painting when top level changed.
2013-02-21 16:17:49 +08:00
wang-bin
d515788cf3
gdi: avoid image auto scale. all painting use gdi
...
It's different from QPainter
2013-02-21 16:12:29 +08:00
wang-bin
33bcbbaa4f
Merge branch 'gdi'
2013-02-21 15:09:52 +08:00
wang-bin
39e17c1b4c
dptr: const pointer convert
2013-02-21 15:09:44 +08:00