mirror of
https://projects.vdr-developer.org/git/vdr-plugin-softhddevice.git
synced 2023-10-10 17:16:51 +00:00
Compare commits
293 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
583b6f246e | ||
|
|
e6ce7832ba | ||
|
|
696bb8e934 | ||
|
|
3bb7782d40 | ||
|
|
b5162bae5c | ||
|
|
d486fb2ca1 | ||
|
|
73d65968ae | ||
|
|
3be69730f0 | ||
|
|
6f1c4d6ef6 | ||
|
|
6aa8601f7d | ||
|
|
0f62a521f4 | ||
|
|
57af986367 | ||
|
|
a2311748ca | ||
|
|
2c5a14ae4a | ||
|
|
ed1e16dccf | ||
|
|
da9886e9f1 | ||
|
|
32527f832e | ||
|
|
57bbd02c57 | ||
|
|
940849d03f | ||
|
|
c112b850d8 | ||
|
|
752ee356fa | ||
|
|
43e70b6a3f | ||
|
|
541754a619 | ||
|
|
3772b2160c | ||
|
|
465c68d839 | ||
| aca508114b | |||
|
|
49ae1c7211 | ||
|
|
0cf110da81 | ||
|
|
8d5ff6f6fb | ||
|
|
5456164dce | ||
|
|
6dd7c2680a | ||
|
|
3b5c1adef2 | ||
|
|
47d840bbff | ||
|
|
207871fd9b | ||
|
|
ebe0beb400 | ||
|
|
93ddd26a4a | ||
|
|
e30e1e5aad | ||
|
|
d26c34f34f | ||
| 24a8c7f763 | |||
|
|
3e39ffd5e0 | ||
|
|
53f22a2ed2 | ||
|
|
44ca71fedb | ||
|
|
8039e8ae04 | ||
|
|
79e78bf235 | ||
|
|
c9ef8b759a | ||
|
|
80db7c6656 | ||
|
|
3ba18d8720 | ||
|
|
2ffcb874bb | ||
|
|
5b765f02bd | ||
|
|
2c52955ac0 | ||
|
|
09d8588588 | ||
|
|
71f786711b | ||
|
|
deea34eb5e | ||
|
|
1f14af6590 | ||
|
|
aeae505bd4 | ||
|
|
e10e62dcf7 | ||
|
|
2a1793c98e | ||
|
|
30d4586448 | ||
|
|
aa4debc9c8 | ||
| ac2e10a308 | |||
|
|
c986d285ea | ||
|
|
8612044b9b | ||
|
|
c19b86411a | ||
|
|
9165052d5e | ||
|
|
413983a666 | ||
|
|
f86fa4edd7 | ||
|
|
7f8110557f | ||
|
|
c9b344a3fd | ||
|
|
b41f934c37 | ||
|
|
6058f3da56 | ||
| 689d75b808 | |||
|
|
bd4503f30b | ||
|
|
24ba8175a3 | ||
|
|
fe24cbb182 | ||
|
|
6eff8fa818 | ||
|
|
552a994db3 | ||
|
|
d24f19bc2d | ||
|
|
7b570c507c | ||
|
|
09ba3e2993 | ||
|
|
d0f825f831 | ||
|
|
47d2896468 | ||
|
|
f59425ac57 | ||
|
|
1acdeee913 | ||
|
|
c2938c7ef3 | ||
|
|
d65fe88c83 | ||
|
|
7d3f4f4434 | ||
|
|
acc35fe30c | ||
|
|
ee5804fed7 | ||
|
|
1cbaddf75c | ||
|
|
226760490b | ||
|
|
7931909e28 | ||
|
|
129c139ed7 | ||
|
|
340816d763 | ||
|
|
d6c6818ecf | ||
|
|
181a0bb372 | ||
|
|
f2d4163899 | ||
|
|
4cc98d7937 | ||
|
|
3812fa8d38 | ||
|
|
da5c5cd5fd | ||
|
|
74a62e3649 | ||
|
|
7e1a42f7ed | ||
|
|
dda9011abc | ||
|
|
de79e9211f | ||
|
|
b0d9f41020 | ||
|
|
4d1a516c80 | ||
|
|
995f1286bd | ||
|
|
fd0ae12f24 | ||
|
|
db258a0fbd | ||
|
|
0df8e8a5fc | ||
|
|
6a28064dce | ||
|
|
b5e9077c74 | ||
|
|
3b4ace14cf | ||
|
|
5aa868c296 | ||
|
|
43b48224b5 | ||
|
|
144f22314f | ||
|
|
51eb720265 | ||
|
|
e977007dd3 | ||
|
|
769f00b4f6 | ||
|
|
aa426cd8b2 | ||
|
|
b2cab00599 | ||
|
|
b54d62ef35 | ||
|
|
9b68248a3e | ||
|
|
762959fbb4 | ||
|
|
07b426f2b5 | ||
|
|
668a6ec277 | ||
|
|
82f61de117 | ||
|
|
67e571f02b | ||
|
|
c17af0e958 | ||
|
|
2561214c3e | ||
|
|
7382bd60ff | ||
|
|
73b93f1aba | ||
|
|
0243b1c8a7 | ||
|
|
6ce760ccd8 | ||
|
|
2f869884ba | ||
|
|
5d8dea1b6b | ||
|
|
1f232db5b4 | ||
|
|
c4ad13c53f | ||
|
|
98f73f2199 | ||
|
|
89ca44206c | ||
|
|
5c9b85b69b | ||
|
|
09cfab3856 | ||
|
|
30e903d90a | ||
|
|
852d367225 | ||
|
|
a7f0cf6d6f | ||
|
|
346953d209 | ||
|
|
97af9c6de2 | ||
|
|
8dd95dab5e | ||
|
|
6775173e4f | ||
|
|
9170fcf485 | ||
|
|
919428cb80 | ||
|
|
4331692ee5 | ||
|
|
5aa826bdb0 | ||
|
|
6736db082e | ||
|
|
807b4df381 | ||
| 56edfd4f54 | |||
|
|
0a1a258d2a | ||
|
|
09a0880d07 | ||
|
|
a98a4adc7e | ||
|
|
f872f54e2a | ||
| 33c638d538 | |||
|
|
0a2a221fa9 | ||
|
|
24a065e5de | ||
|
|
6df970ca9e | ||
|
|
616cd9e133 | ||
|
|
a91533f6d1 | ||
|
|
baa4500a2c | ||
|
|
f28a737a9a | ||
|
|
19cec561ba | ||
|
|
d8f63adaad | ||
|
|
8c16466d31 | ||
|
|
ced54a5cf1 | ||
|
|
08246b5ac3 | ||
|
|
c3a1de8c7b | ||
|
|
918170d00b | ||
|
|
bc50f37c4d | ||
|
|
09cf1f5c85 | ||
|
|
947f6b312e | ||
|
|
99728258f1 | ||
|
|
c972f8c4dd | ||
|
|
7d38dff5bf | ||
|
|
8db8b68edd | ||
|
|
00cafd18ed | ||
|
|
ab4e89132e | ||
|
|
3585f1df19 | ||
|
|
e258c35537 | ||
|
|
91dbe46786 | ||
|
|
a7389111ff | ||
|
|
27e9a88e2f | ||
|
|
33e9c71aea | ||
|
|
bd84e3f3b9 | ||
|
|
364cc04736 | ||
| ec4a899bb8 | |||
|
|
dab31e2367 | ||
|
|
e613ff1f7e | ||
|
|
1886b745e5 | ||
|
|
422c378a5e | ||
|
|
eed708b9ea | ||
|
|
60a7c36fa6 | ||
|
|
4d74ed1bfc | ||
|
|
c3b924a239 | ||
|
|
f8d198636b | ||
|
|
bcf6ecabc1 | ||
|
|
9063b4e3ff | ||
|
|
e3681812bd | ||
|
|
9d14522121 | ||
| 2dff69dc14 | |||
|
|
5668fa22d2 | ||
|
|
c7cebe1aeb | ||
|
|
037f582bad | ||
|
|
6ca4d3c44f | ||
|
|
2ac2eb39c6 | ||
|
|
217545542d | ||
|
|
5f43803236 | ||
|
|
993d831190 | ||
|
|
1969b2a0a7 | ||
|
|
0fad02285d | ||
|
|
9546233175 | ||
|
|
98d2e0f728 | ||
| 970493fb23 | |||
|
|
329dbc5f07 | ||
|
|
bc8a13e1ef | ||
|
|
bd7e6143c7 | ||
|
|
fa27a1c73a | ||
|
|
e32857a27a | ||
|
|
5ba88bb822 | ||
|
|
0422b6aa5a | ||
|
|
eb024558de | ||
|
|
1593d5dd83 | ||
|
|
09f62307d4 | ||
|
|
87f7aa63cc | ||
|
|
b1ce88923e | ||
|
|
c6e66e0787 | ||
|
|
19d4eeed82 | ||
|
|
9f668c4750 | ||
|
|
e419742a40 | ||
|
|
2cacdc6c90 | ||
|
|
6efe558f78 | ||
|
|
80100299f3 | ||
|
|
5509d768ac | ||
|
|
c0d0a4ae7c | ||
|
|
e619f5c836 | ||
|
|
973fcfe4dd | ||
|
|
eec30433b6 | ||
|
|
baf577aba5 | ||
|
|
81d7ef9755 | ||
|
|
7f7de8678f | ||
|
|
92bb00c410 | ||
|
|
d3b98b90f4 | ||
|
|
788636ee6b | ||
|
|
8e53cbd4a9 | ||
|
|
54661f90ea | ||
|
|
30d8e8afe9 | ||
|
|
19a37bb0bf | ||
|
|
2087968d55 | ||
|
|
d983f780b3 | ||
| 712b2e0de1 | |||
|
|
54f92e67fc | ||
|
|
960cd27ab5 | ||
|
|
3a97700981 | ||
|
|
8d624224e9 | ||
|
|
96eefca699 | ||
|
|
5e005eeff5 | ||
|
|
f6df79e8e6 | ||
|
|
f1551cd321 | ||
|
|
9568c5bd93 | ||
|
|
fd60c3c132 | ||
|
|
7b6d0ecf94 | ||
|
|
cac1e5ce17 | ||
|
|
d6e2d04505 | ||
|
|
45a34a3381 | ||
|
|
92ffd978b0 | ||
|
|
878813f206 | ||
|
|
cb2314837c | ||
|
|
820c246148 | ||
|
|
8dda2a0b8a | ||
|
|
761c06eac1 | ||
|
|
0776bc5ee4 | ||
|
|
aba14813c0 | ||
|
|
0f449c2394 | ||
|
|
9a30d387a1 | ||
|
|
c8e70ec0fe | ||
|
|
5546354cc7 | ||
|
|
442e021d87 | ||
|
|
4301718329 | ||
|
|
3b7688b78b | ||
|
|
d2606a5d5f | ||
|
|
0d63fac2e8 | ||
|
|
c8c760a069 | ||
|
|
0c7170989d | ||
|
|
12bfab3f10 | ||
|
|
bded2ae5df | ||
|
|
1f2d1d235e | ||
|
|
f179264468 |
354
ChangeLog
354
ChangeLog
@@ -1,4 +1,358 @@
|
|||||||
User johns
|
User johns
|
||||||
|
Date: Tue Jul 3 16:35:46 CEST 2012
|
||||||
|
|
||||||
|
Release Version 0.5.1
|
||||||
|
Add commandline support to disable hardware decoder.
|
||||||
|
Display frame statistics in plugin menu.
|
||||||
|
Fix bug: 100% CPU use during playback.
|
||||||
|
Fix bug: audio use 100% CPU during pause.
|
||||||
|
Guard audio skip against old PTS values.
|
||||||
|
Improved audio skip, after channel switch.
|
||||||
|
Setup add preview of collapsed tree.
|
||||||
|
Fix bug: dvd plugin times out.
|
||||||
|
Makes OSD size configurable.
|
||||||
|
Support display with non-square pixels.
|
||||||
|
Initial ADTS (AAC+) support.
|
||||||
|
Fix bug #959: log flooded with service messages.
|
||||||
|
|
||||||
|
User durchflieger
|
||||||
|
Date: Mon Apr 30 14:46:51 CEST 2012
|
||||||
|
|
||||||
|
Adds VDR DFAtmo Plugin support.
|
||||||
|
|
||||||
|
User johns
|
||||||
|
Date: Mon Apr 30 13:56:26 CEST 2012
|
||||||
|
|
||||||
|
Fix bug: don't normalize or compress pass-through samples.
|
||||||
|
Make audio ring buffer size a multiple of 3,5,7,8.
|
||||||
|
Add reset ring buffer support.
|
||||||
|
Fix bug: alloca wrong size for audio buffer.
|
||||||
|
Handle jump in stream like stream start.
|
||||||
|
Always compile audio drift correction.
|
||||||
|
Add audio drift correction configuration to the setup.
|
||||||
|
|
||||||
|
User mini73
|
||||||
|
Date: Fri Apr 20 16:51:14 CEST 2012
|
||||||
|
|
||||||
|
Add support for svdr command "stat".
|
||||||
|
|
||||||
|
User johns
|
||||||
|
Date: Fri Apr 20 16:05:40 CEST 2012
|
||||||
|
|
||||||
|
Made showing black picture configurable.
|
||||||
|
Show black picture, if no video stream is available.
|
||||||
|
Setup split into foldable sections.
|
||||||
|
Adds show cursor on pointer move and hide after 200ms.
|
||||||
|
Adds Hot-key support for auto-crop enable/disable/toggle.
|
||||||
|
Adds detached start mode.
|
||||||
|
Fix bug: VDPAU looses preemption callback.
|
||||||
|
Fix bug: X11 server keeps sending USR1 signals, which confuses suspend.
|
||||||
|
Show message for hot-keys.
|
||||||
|
Fix bug: playback errors with old PES recordings.
|
||||||
|
Adds Hot-key support for 4:3 zoom modes.
|
||||||
|
|
||||||
|
User johns
|
||||||
|
Date: Sat Apr 7 20:21:16 CEST 2012
|
||||||
|
|
||||||
|
Release Version 0.5.0
|
||||||
|
Change audio/video delay with hot-key.
|
||||||
|
Enable/disable/toggle fullscreen with hot-key (Feature #930).
|
||||||
|
|
||||||
|
User: CafeDelMar
|
||||||
|
Date: Thu Apr 5 22:44:06 CEST 2012
|
||||||
|
|
||||||
|
Cutting pixels are now configured for each resolution.
|
||||||
|
|
||||||
|
User johns
|
||||||
|
Date: Thu Apr 5 15:47:59 CEST 2012
|
||||||
|
|
||||||
|
Buffer less video and audio.
|
||||||
|
Fix 100% cpu use, with mp3 plugin.
|
||||||
|
Audio/Video sync rewrite, trick-speed support moved to video.
|
||||||
|
Faster VdpauBlackSurface version.
|
||||||
|
Fix bug: VideoSetPts wrong position for multi frame packets.
|
||||||
|
|
||||||
|
User: CafeDelMar
|
||||||
|
Date: Mon Mar 26 20:45:54 CEST 2012
|
||||||
|
|
||||||
|
Add VideoSkipPixels support.
|
||||||
|
|
||||||
|
User johns
|
||||||
|
Date: Fri Mar 23 18:43:20 CET 2012
|
||||||
|
|
||||||
|
Add optional argument (display) to ATTA svdrp commmand.
|
||||||
|
Wakeup display to show OSD for remote learning mode.
|
||||||
|
Support switching the primary device with svdrp.
|
||||||
|
Disable and reenable screen saver and DPMS.
|
||||||
|
Video source code cleanup.
|
||||||
|
Fix fast backward with some h264 streams.
|
||||||
|
Make soft start sync setup menu configurable.
|
||||||
|
Fix bug: StillPicture NAL end of sequence is 10 and not 0x10.
|
||||||
|
Fix bug: AudioEnqueue crash without sound card.
|
||||||
|
|
||||||
|
User johns
|
||||||
|
Date: Sun Mar 4 22:35:36 CET 2012
|
||||||
|
|
||||||
|
Release Version 0.4.9
|
||||||
|
Experimental ac3 audio drift correction support.
|
||||||
|
Removes LPCM detection from TS parser.
|
||||||
|
Rewrote video/audio start code.
|
||||||
|
Add support for attach/detach plugin.
|
||||||
|
OSS needs bigger audio buffers.
|
||||||
|
Improved audio drift correction support.
|
||||||
|
Experimental audio drift correction support.
|
||||||
|
Add SVDRP HOTK command support.
|
||||||
|
Increased audio buffer time for PES packets.
|
||||||
|
Support configuration and set of video background.
|
||||||
|
Survive lost X11 display.
|
||||||
|
Fix bug: 100% cpu use with plugins like mp3.
|
||||||
|
Wakeup display thread on channel switch, osd can now be shown without
|
||||||
|
video.
|
||||||
|
Makes 60Hz display mode configurable with setup.conf.
|
||||||
|
Support downmix of AC-3 to stero.
|
||||||
|
New audio PES packet parser.
|
||||||
|
Fix bug: Grabbing a JPG image fails while suspended.
|
||||||
|
Add support for hot keys.
|
||||||
|
Add support to use characters input in edit mode.
|
||||||
|
Adds trick speed support.
|
||||||
|
|
||||||
|
User johns
|
||||||
|
Date: Thu Feb 16 09:59:14 CET 2012
|
||||||
|
|
||||||
|
Release Version 0.4.8
|
||||||
|
Fix bug: wrong start of video packet.
|
||||||
|
VDPAU: Enables inverse telecine configuration.
|
||||||
|
Find AC3 (Dolby Digital) inside PES packet.
|
||||||
|
Fix bug: audio increments invalid audio PTS.
|
||||||
|
Fix bug: dvd plugin not working.
|
||||||
|
Fix bug: used frame-> instead of video_ctx-> for old libav/ffmpeg.
|
||||||
|
|
||||||
|
User johns
|
||||||
|
Date: Mon Feb 13 23:20:26 CET 2012
|
||||||
|
|
||||||
|
Release Version 0.4.7
|
||||||
|
|
||||||
|
User FireFly
|
||||||
|
Date: Mon Feb 13 20:14:11 CET 2012
|
||||||
|
|
||||||
|
Fix bug: unscaled jpeg includes PNG header.
|
||||||
|
|
||||||
|
User johns
|
||||||
|
Date: Mon Feb 13 14:58:26 CET 2012
|
||||||
|
|
||||||
|
VDPAU: Studio levels could be configured in the setup menu.
|
||||||
|
Window size defaults to fullscreen, if no geometry is given.
|
||||||
|
|
||||||
|
User m.Rcu
|
||||||
|
Date: Sun Feb 12 20:28:22 CET 2012
|
||||||
|
|
||||||
|
Jpeg screengrab use VDR RgbToJpeg function.
|
||||||
|
|
||||||
|
User johns
|
||||||
|
Date: Sun Feb 12 20:14:43 CET 2012
|
||||||
|
|
||||||
|
Add play/pause audio support.
|
||||||
|
Fix bug: audible glitch when switching AC-3 pass-through <-> none.
|
||||||
|
Fix bug: mpeg stills not displayed.
|
||||||
|
Detect audio stream type only after stream switch.
|
||||||
|
Detect more h264 streams with leading zeros.
|
||||||
|
VDPAU: support for studio levels added.
|
||||||
|
Add support for skip chroma deinterlace to software deinterlacer.
|
||||||
|
Type of software deinterlacer now configurable from setup menu.
|
||||||
|
Mixer channel could be set through command line option.
|
||||||
|
Fix bug: LFE moved to wrong position.
|
||||||
|
Guard suspend/resume against multiple calls.
|
||||||
|
Add support for AAC LATM audio streams.
|
||||||
|
Fix bug: alsa and ffmpeg use different channel layout.
|
||||||
|
Support more LPCM sample rates and number of channels.
|
||||||
|
Quick&dirty support for mpeg LPCM streams.
|
||||||
|
Workaround for text2skin undrawn OSD areas.
|
||||||
|
Detect dvb LPCM stream and ignore it.
|
||||||
|
|
||||||
|
User johns
|
||||||
|
Date: Thu Feb 2 23:29:35 CET 2012
|
||||||
|
|
||||||
|
Release Version 0.4.6
|
||||||
|
Warn only on the first duplicated frame in sequence.
|
||||||
|
Increase audio buffer, if bigger audio delay is used.
|
||||||
|
Makes SkipLines configure in setup menu.
|
||||||
|
Auto-crop only enabled with normal 4:3 display mode.
|
||||||
|
Vaapi updates OSD when cropping changes.
|
||||||
|
Add A-V info output and compile time option.
|
||||||
|
Fix bug: VA-API intel software decoder broken by aspect commit.
|
||||||
|
Add support for 4:3 output modes.
|
||||||
|
Quicker auto-crop after channel switch.
|
||||||
|
Add auto-crop support for Intel VA-API backend.
|
||||||
|
Fix bug: Auto-Crop logo skip didn't use displayed width.
|
||||||
|
Workaround for mpeg2 FFMpeg + VA-API + Intel GPU hung.
|
||||||
|
Fix bug: Missing vaSyncSurface and vaDestroyImage.
|
||||||
|
Fix bug: Only black picture with VA-API hw decoder.
|
||||||
|
|
||||||
|
User HelAu
|
||||||
|
Date: Mon Jan 30 16:54:47 CET 2012
|
||||||
|
|
||||||
|
Add support to start the plugin in suspended mode.
|
||||||
|
|
||||||
|
User johns
|
||||||
|
Date: Mon Jan 30 15:58:21 CET 2012
|
||||||
|
|
||||||
|
Finished rewrite of video code, to support output modules.
|
||||||
|
Add aspect change support to software decoder path.
|
||||||
|
Repair software decoder with vaapi vdpau backend.
|
||||||
|
Add workaround for Intel VA-API MPEG GPU hung.
|
||||||
|
|
||||||
|
User johns
|
||||||
|
Date: Sat Jan 28 13:32:12 CET 2012
|
||||||
|
|
||||||
|
Release Version 0.4.5
|
||||||
|
Add configurable skip lines at video top and bottom.
|
||||||
|
Add auto-crop tolerance configuration.
|
||||||
|
Reduces audio latency, increases audio buffer time.
|
||||||
|
Made video_test working again.
|
||||||
|
Disabled VA-API Intel vaAssociateSubpicture workaround.
|
||||||
|
Fix bug: Must release lock for VideoPollEvent.
|
||||||
|
Allow faster video and audio sync.
|
||||||
|
Fix bug: Software decoder use vaPutImage with intel backend.
|
||||||
|
Fix bug: Artefacts are shown after mpeg2 channel switch.
|
||||||
|
Fix bug: VideoReleaseSurface called after VideoExit.
|
||||||
|
Support external players.
|
||||||
|
Add VDPAU display preemption support.
|
||||||
|
|
||||||
|
User m.Rcu
|
||||||
|
Date: Tue Jan 24 22:38:30 CET 2012
|
||||||
|
|
||||||
|
Add support for grab jpeg image.
|
||||||
|
|
||||||
|
User johns
|
||||||
|
Date: Tue Jan 24 22:25:33 CET 2012
|
||||||
|
|
||||||
|
Fix bug: VaapiOsdExit doesn't deassociate osd surface.
|
||||||
|
Fix bug: First OSD can show random pixels.
|
||||||
|
Wait for X11 exit and kill it, if not.
|
||||||
|
Fix still picture handling.
|
||||||
|
Fix for dead-lock in VdpauExit.
|
||||||
|
Workaround for dead-lock in VdpauExit.
|
||||||
|
VDPAU: Add very primitive software scaler for grab image.
|
||||||
|
VA-API: Add auto-crop support.
|
||||||
|
Suspend can close/open X11 window, connection and audio device.
|
||||||
|
|
||||||
|
User Morone
|
||||||
|
Date: Sun Jan 22 16:43:23 CET 2012
|
||||||
|
|
||||||
|
Use different alsa devices for AC3/pass-through and pcm.
|
||||||
|
|
||||||
|
User johns
|
||||||
|
Date: Sun Jan 22 11:12:57 CET 2012
|
||||||
|
|
||||||
|
Add dummy player and control for suspend mode.
|
||||||
|
Buffertime compile time configurable in ms.
|
||||||
|
|
||||||
|
Date: Sat Jan 21 15:49:16 CET 2012
|
||||||
|
|
||||||
|
Release Version 0.4.0
|
||||||
|
VDPAU: Add grab image support.
|
||||||
|
VDPAU: Add auto-crop support.
|
||||||
|
VDPAU: Changed OSD alpha calculation.
|
||||||
|
Fix bug: Used VideoSharpen for denoise settings.
|
||||||
|
Instant update deinterlace/... configuration changes.
|
||||||
|
Fix bug: AudioExit called without AudioInit crash.
|
||||||
|
|
||||||
|
Date: Thu Jan 19 15:58:40 CET 2012
|
||||||
|
|
||||||
|
Release Version 0.3.5
|
||||||
|
OSD improvements:
|
||||||
|
Use OSD size equal to video window.
|
||||||
|
Update only dirty area(s) of OSD.
|
||||||
|
Show/mix only used area of OSD.
|
||||||
|
Fix bug: vpdau use previous resolution for deint, ...
|
||||||
|
Fix software deinterlace with VA-API.
|
||||||
|
Fix bug: transposed digits 567 should be 576.
|
||||||
|
Audio module cleanup:
|
||||||
|
Alsa + OSS can be included/build at the same time.
|
||||||
|
Alsa or OSS can be runtime selected with -a.
|
||||||
|
Add audio thread support to OSS module.
|
||||||
|
Add polled audio support to alsa module.
|
||||||
|
Removed some debug source code.
|
||||||
|
|
||||||
|
Date: Sun Jan 15 16:56:04 CET 2012
|
||||||
|
|
||||||
|
Release Version 0.3.1
|
||||||
|
Fix bug: AudioFreeBytes didn't check if audio running/compiled.
|
||||||
|
Fix bug: snd_pcm_state: Assertion `pcm' failed.
|
||||||
|
Add support for fullscreen and fullscreen toogle.
|
||||||
|
Instant update deinterlace configuration changes.
|
||||||
|
Fix subtitle position.
|
||||||
|
Add SVDRP support.
|
||||||
|
Suspend when user is inactive.
|
||||||
|
|
||||||
|
User Christian Rupper
|
||||||
|
Date: Tue Jan 10 22:33:14 CET 2012
|
||||||
|
|
||||||
|
Move objects before $LIBS to avoid link failures with --as-needed.
|
||||||
|
Do not override CFLAGS for video test.
|
||||||
|
Rearrange *FLAGS incl. some minor fixes.
|
||||||
|
Don't override VDRDIR, LIBDIR and TMPDIR in makefile.
|
||||||
|
Don't abuse LDFLAGS in makefile.
|
||||||
|
Define CC in makefile.
|
||||||
|
Include GL/gl.h for the GL_COLOR_BUFFER_BIT definition.
|
||||||
|
VideoInit() needs an argument.
|
||||||
|
|
||||||
|
User johns
|
||||||
|
Date: Tue Jan 10 22:32:50 CET 2012
|
||||||
|
|
||||||
|
Add main menu entry, which suspends the plugin.
|
||||||
|
Add support for resize window.
|
||||||
|
Close window sends "close" as remote key press.
|
||||||
|
|
||||||
|
Date: Mon Jan 9 22:09:38 CET 2012
|
||||||
|
|
||||||
|
Release Version 0.3.0
|
||||||
|
Add support of resolution dependend video parameters (deint, scale, ...).
|
||||||
|
Add support for recording play back.
|
||||||
|
Add workaround for alsa crash in snd_pcm_prepare.
|
||||||
|
Fix bug: audio crash on exit.
|
||||||
|
Fix build with vdr without yaepg support.
|
||||||
|
Support yaepghd video picture output position change.
|
||||||
|
|
||||||
|
Date: Sat Jan 7 13:20:07 CET 2012
|
||||||
|
|
||||||
|
Release Version 0.2.0
|
||||||
|
Add support for ac3 audio pass through.
|
||||||
|
Add workaround for alsa not playing hdmi sound.
|
||||||
|
Fix bug: broken device plugin stop and exit.
|
||||||
|
Show transparent cursor to hide cursor.
|
||||||
|
VDPAU: Add color standard support.
|
||||||
|
VDPAU: Add denoise and sharpness support.
|
||||||
|
VDPAU: Add skip chroma deinterlace support.
|
||||||
|
VDPAU: Show OSD only if something is to display, improves performance.
|
||||||
|
VDPAU: Add deinterlace with only 4 surfaces.
|
||||||
|
|
||||||
|
Date: Thu Jan 4 17:00:00 CET 2012
|
||||||
|
|
||||||
|
Release Version 0.1.5
|
||||||
|
Adds OSS mixer support.
|
||||||
|
Fix bug: audio new stream is not thread safe.
|
||||||
|
New audio driver OSS.
|
||||||
|
Fix bug: needed down sampling of 3/5/6 to 2 channels not reported.
|
||||||
|
Search audio sync inside PES packets, for insane dvb streams.
|
||||||
|
Use only the needed number of surfaces.
|
||||||
|
|
||||||
|
Date: Thu Dec 29 19:44:43 CET 2011
|
||||||
|
|
||||||
|
Release Version 0.1.4
|
||||||
|
Prepared vdpau noise reduction support.
|
||||||
|
Vdpau also displays a black surface, when no video is available.
|
||||||
|
Fix bug: CodecVideoDecode destroys avpkt.
|
||||||
|
|
||||||
|
Date: Thu Dec 29 00:55:57 CET 2011
|
||||||
|
|
||||||
|
Release Version 0.1.3
|
||||||
|
Add missing VdpauDecoderDestroy.
|
||||||
|
Cleanup video packet ringbuffer.
|
||||||
|
Allow build without VDPAU.
|
||||||
|
Fix bug: swapped end and start.
|
||||||
|
Support other than "PCM" alsa mixer channels.
|
||||||
|
|
||||||
Date: Sat Dec 24 15:26:27 CET 2011
|
Date: Sat Dec 24 15:26:27 CET 2011
|
||||||
|
|
||||||
Release Version 0.1.2
|
Release Version 0.1.2
|
||||||
|
|||||||
87
Makefile
87
Makefile
@@ -14,40 +14,38 @@ PLUGIN = softhddevice
|
|||||||
### The version number of this plugin (taken from the main source file):
|
### The version number of this plugin (taken from the main source file):
|
||||||
|
|
||||||
VERSION = $(shell grep 'static const char \*const VERSION *=' $(PLUGIN).cpp | awk '{ print $$7 }' | sed -e 's/[";]//g')
|
VERSION = $(shell grep 'static const char \*const VERSION *=' $(PLUGIN).cpp | awk '{ print $$7 }' | sed -e 's/[";]//g')
|
||||||
|
GIT_REV = $(shell git describe --always 2>/dev/null)
|
||||||
|
|
||||||
### Configuration (edit this for your needs)
|
### Configuration (edit this for your needs)
|
||||||
|
|
||||||
CONFIG := #-DDEBUG
|
CONFIG := #-DDEBUG
|
||||||
CONFIG += $(shell pkg-config --exists libva && echo "-DUSE_VAAPI")
|
CONFIG += -DAV_INFO -DAV_INFO_TIME=3000 # debug a/v sync
|
||||||
|
#CONFIG += -DHAVE_PTHREAD_NAME # supports new pthread_setname_np
|
||||||
|
#CONFIG += -DNO_TS_AUDIO # disable ts audio parser
|
||||||
|
#CONFIG += -DUSE_TS_VIDEO # build new ts video parser
|
||||||
CONFIG += $(shell pkg-config --exists vdpau && echo "-DUSE_VDPAU")
|
CONFIG += $(shell pkg-config --exists vdpau && echo "-DUSE_VDPAU")
|
||||||
|
CONFIG += $(shell pkg-config --exists libva && echo "-DUSE_VAAPI")
|
||||||
|
CONFIG += $(shell pkg-config --exists alsa && echo "-DUSE_ALSA")
|
||||||
|
CONFIG += -DUSE_OSS
|
||||||
|
|
||||||
### The C++ compiler and options:
|
### The C++ compiler and options:
|
||||||
|
|
||||||
CXX ?= g++
|
CC ?= gcc
|
||||||
CXXFLAGS ?= -g -O2 -W -Wall -Wextra -Woverloaded-virtual -fPIC
|
CXX ?= g++
|
||||||
override CXXFLAGS += $(DEFINES) $(INCLUDES)
|
CFLAGS ?= -g -O2 -W -Wall -Wextra -Winit-self \
|
||||||
CFLAGS ?= -g -O2 -W -Wall -Wextra -Winit-self \
|
-Wdeclaration-after-statement \
|
||||||
-Wdeclaration-after-statement -fPIC
|
-ftree-vectorize -msse3 -flax-vector-conversions
|
||||||
#CFLAGS += -Werror
|
CXXFLAGS ?= -g -O2 -W -Wall -Wextra -Werror=overloaded-virtual
|
||||||
override CFLAGS += $(DEFINES) $(INCLUDES) \
|
|
||||||
$(shell pkg-config --cflags alsa libavcodec libavformat)
|
|
||||||
override LDFLAGS += -lrt \
|
|
||||||
$(shell pkg-config --libs alsa libavcodec libavformat) \
|
|
||||||
`pkg-config --libs x11 x11-xcb xcb xcb-xv xcb-shm xcb-dpms xcb-atom\
|
|
||||||
xcb-screensaver xcb-randr xcb-glx xcb-icccm xcb-keysyms`\
|
|
||||||
`pkg-config --libs gl glu` \
|
|
||||||
`pkg-config --libs vdpau` \
|
|
||||||
`pkg-config --libs libva-x11 libva-glx libva`
|
|
||||||
|
|
||||||
### The directory environment:
|
### The directory environment:
|
||||||
|
|
||||||
VDRDIR = ../../..
|
VDRDIR ?= ../../..
|
||||||
LIBDIR = ../../lib
|
LIBDIR ?= ../../lib
|
||||||
TMPDIR = /tmp
|
TMPDIR ?= /tmp
|
||||||
|
|
||||||
### Make sure that necessary options are included:
|
### Make sure that necessary options are included:
|
||||||
|
|
||||||
include $(VDRDIR)/Make.global
|
-include $(VDRDIR)/Make.global
|
||||||
|
|
||||||
### Allow user defined options to overwrite defaults:
|
### Allow user defined options to overwrite defaults:
|
||||||
|
|
||||||
@@ -62,11 +60,40 @@ APIVERSION = $(shell sed -ne '/define APIVERSION/s/^.*"\(.*\)".*$$/\1/p' $(VDRDI
|
|||||||
ARCHIVE = $(PLUGIN)-$(VERSION)
|
ARCHIVE = $(PLUGIN)-$(VERSION)
|
||||||
PACKAGE = vdr-$(ARCHIVE)
|
PACKAGE = vdr-$(ARCHIVE)
|
||||||
|
|
||||||
### Includes and Defines (add further entries here):
|
### Includes, Defines and dependencies (add further entries here):
|
||||||
|
|
||||||
INCLUDES += -I$(VDRDIR)/include
|
INCLUDES += -I$(VDRDIR)/include
|
||||||
|
|
||||||
DEFINES += $(CONFIG) -D_GNU_SOURCE -DPLUGIN_NAME_I18N='"$(PLUGIN)"'
|
DEFINES += $(CONFIG) -D_GNU_SOURCE -DPLUGIN_NAME_I18N='"$(PLUGIN)"' \
|
||||||
|
$(if $(GIT_REV), -DGIT_REV='"$(GIT_REV)"')
|
||||||
|
|
||||||
|
_CFLAGS = $(DEFINES) $(INCLUDES) \
|
||||||
|
$(shell pkg-config --cflags libavcodec) \
|
||||||
|
`pkg-config --cflags x11 x11-xcb xcb xcb-xv xcb-shm xcb-dpms xcb-atom\
|
||||||
|
xcb-screensaver xcb-randr xcb-glx xcb-icccm xcb-keysyms`\
|
||||||
|
`pkg-config --cflags gl glu` \
|
||||||
|
$(if $(findstring USE_VDPAU,$(CONFIG)), \
|
||||||
|
`pkg-config --cflags vdpau`) \
|
||||||
|
$(if $(findstring USE_VAAPI,$(CONFIG)), \
|
||||||
|
`pkg-config --cflags libva-x11 libva-glx libva`) \
|
||||||
|
$(if $(findstring USE_ALSA,$(CONFIG)), \
|
||||||
|
`pkg-config --cflags alsa`)
|
||||||
|
|
||||||
|
#override _CFLAGS += -Werror
|
||||||
|
override CXXFLAGS += $(_CFLAGS)
|
||||||
|
override CFLAGS += $(_CFLAGS)
|
||||||
|
|
||||||
|
LIBS += -lrt \
|
||||||
|
$(shell pkg-config --libs libavcodec) \
|
||||||
|
`pkg-config --libs x11 x11-xcb xcb xcb-xv xcb-shm xcb-dpms xcb-atom\
|
||||||
|
xcb-screensaver xcb-randr xcb-glx xcb-icccm xcb-keysyms`\
|
||||||
|
`pkg-config --libs gl glu` \
|
||||||
|
$(if $(findstring USE_VDPAU,$(CONFIG)), \
|
||||||
|
`pkg-config --libs vdpau`) \
|
||||||
|
$(if $(findstring USE_VAAPI,$(CONFIG)), \
|
||||||
|
`pkg-config --libs libva-x11 libva-glx libva`) \
|
||||||
|
$(if $(findstring USE_ALSA,$(CONFIG)), \
|
||||||
|
`pkg-config --libs alsa`)
|
||||||
|
|
||||||
### The object files (add further files here):
|
### The object files (add further files here):
|
||||||
|
|
||||||
@@ -89,15 +116,17 @@ DEPFILE = .dependencies
|
|||||||
$(DEPFILE): Makefile
|
$(DEPFILE): Makefile
|
||||||
@$(MAKEDEP) $(DEFINES) $(INCLUDES) $(SRCS) >$@
|
@$(MAKEDEP) $(DEFINES) $(INCLUDES) $(SRCS) >$@
|
||||||
|
|
||||||
|
$(OBJS): Makefile
|
||||||
|
|
||||||
-include $(DEPFILE)
|
-include $(DEPFILE)
|
||||||
|
|
||||||
### Internationalization (I18N):
|
### Internationalization (I18N):
|
||||||
|
|
||||||
PODIR = po
|
PODIR = po
|
||||||
LOCALEDIR = $(VDRDIR)/locale
|
LOCALEDIR = $(VDRDIR)/locale
|
||||||
I18Npo = $(wildcard $(PODIR)/*.po)
|
I18Npo = $(wildcard $(PODIR)/*.po)
|
||||||
I18Nmsgs = $(addprefix $(LOCALEDIR)/, $(addsuffix /LC_MESSAGES/vdr-$(PLUGIN).mo, $(notdir $(foreach file, $(I18Npo), $(basename $(file))))))
|
I18Nmsgs = $(addprefix $(LOCALEDIR)/, $(addsuffix /LC_MESSAGES/vdr-$(PLUGIN).mo, $(notdir $(foreach file, $(I18Npo), $(basename $(file))))))
|
||||||
I18Npot = $(PODIR)/$(PLUGIN).pot
|
I18Npot = $(PODIR)/$(PLUGIN).pot
|
||||||
|
|
||||||
%.mo: %.po
|
%.mo: %.po
|
||||||
msgfmt -c -o $@ $<
|
msgfmt -c -o $@ $<
|
||||||
@@ -121,7 +150,7 @@ i18n: $(I18Nmsgs) $(I18Npot)
|
|||||||
### Targets:
|
### Targets:
|
||||||
|
|
||||||
libvdr-$(PLUGIN).so: $(OBJS) Makefile
|
libvdr-$(PLUGIN).so: $(OBJS) Makefile
|
||||||
$(CXX) $(CXXFLAGS) -shared $(OBJS) -o $@ $(LDFLAGS)
|
$(CXX) $(CXXFLAGS) $(LDFLAGS) -shared -fPIC $(OBJS) -o $@ $(LIBS)
|
||||||
@cp --remove-destination $@ $(LIBDIR)/$@.$(APIVERSION)
|
@cp --remove-destination $@ $(LIBDIR)/$@.$(APIVERSION)
|
||||||
|
|
||||||
dist: $(I18Npo) clean
|
dist: $(I18Npo) clean
|
||||||
@@ -146,6 +175,6 @@ indent:
|
|||||||
indent $$i; unexpand -a $$i > $$i.up; mv $$i.up $$i; \
|
indent $$i; unexpand -a $$i > $$i.up; mv $$i.up $$i; \
|
||||||
done
|
done
|
||||||
|
|
||||||
video_test: video.c
|
video_test: video.c Makefile
|
||||||
$(CC) -DVIDEO_TEST -DVERSION='"$(VERSION)"' $(CFLAGS) $(LDFLAGS) $(LIBS) \
|
$(CC) -DVIDEO_TEST -DVERSION='"$(VERSION)"' $(CFLAGS) $(LDFLAGS) $< $(LIBS) \
|
||||||
-O0 -g -o $@ $<
|
-o $@
|
||||||
|
|||||||
269
README.txt
269
README.txt
@@ -1,6 +1,6 @@
|
|||||||
@file README.txt @brief A software HD output device for VDR
|
@file README.txt @brief A software HD output device for VDR
|
||||||
|
|
||||||
Copyright (c) 2011 by Johns. All Rights Reserved.
|
Copyright (c) 2011, 2012 by Johns. All Rights Reserved.
|
||||||
|
|
||||||
Contributor(s):
|
Contributor(s):
|
||||||
|
|
||||||
@@ -20,14 +20,25 @@ $Id$
|
|||||||
|
|
||||||
A software and GPU emulated HD output device plugin for VDR.
|
A software and GPU emulated HD output device plugin for VDR.
|
||||||
|
|
||||||
o Video VA-API/VA-API
|
o Video decoder CPU / VA-API / VDPAU
|
||||||
o planned: Video VA-API/Opengl
|
o Video output VA-API / VDPAU
|
||||||
o planned: Video CPU/Xv
|
o Audio FFMpeg / Alsa / Analog
|
||||||
o planned: Video CPU/Opengl
|
o Audio FFMpeg / Alsa / Digital
|
||||||
o planned: Software Deinterlacer
|
o Audio FFMpeg / OSS / Analog
|
||||||
o Audio FFMpeg/Analog
|
o HDMI/SPDIF pass-through
|
||||||
o Audio FFMpeg/Digital
|
o Software volume, compression, normalize and channel resample
|
||||||
o planned: HDMI/SPDIF Passthrough
|
o YaepgHD support
|
||||||
|
o Software deinterlacer Bob (VA-API only)
|
||||||
|
o Autocrop
|
||||||
|
o Grab image (VDPAU only)
|
||||||
|
o Suspend
|
||||||
|
o Letterbox, Stretch and Center cut-out video display modes
|
||||||
|
o atmo light support with plugin http://github.com/durchflieger/DFAtmo
|
||||||
|
|
||||||
|
o planned: Video decoder VA-API Branch: vaapi-ext/staging
|
||||||
|
o planned: Video output XvBA / Opengl / Xv
|
||||||
|
o planned: VA-API grab image
|
||||||
|
o planned: Improved Software Deinterlacer (yadif or/and ffmpeg filters)
|
||||||
|
|
||||||
To compile you must have the 'requires' installed.
|
To compile you must have the 'requires' installed.
|
||||||
|
|
||||||
@@ -54,46 +65,261 @@ Install:
|
|||||||
http://projects.vdr-developer.org/projects/plg-softhddevice/files
|
http://projects.vdr-developer.org/projects/plg-softhddevice/files
|
||||||
|
|
||||||
tar vxf vdr-softhddevice-*.tar.bz2
|
tar vxf vdr-softhddevice-*.tar.bz2
|
||||||
cd vdr-softhddevice
|
cd softhddevice-*
|
||||||
make VDRDIR=<path-to-your-vdr-files> LIBDIR=.
|
make VDRDIR=<path-to-your-vdr-files> LIBDIR=.
|
||||||
|
|
||||||
|
You can edit Makefile to enable/disable VDPAU / VA-API / Alsa / OSS
|
||||||
|
support.
|
||||||
|
|
||||||
Setup: environment
|
Setup: environment
|
||||||
|
------
|
||||||
Following is supported:
|
Following is supported:
|
||||||
|
|
||||||
DISPLAY=:0.0
|
DISPLAY=:0.0
|
||||||
x11 display name
|
x11 display name
|
||||||
|
NO_HW=1
|
||||||
|
if set don't use the hardware decoders
|
||||||
|
NO_MPEG_HW=1
|
||||||
|
if set don't use the hardware decoder for mpeg1/2
|
||||||
|
STUDIO_LEVELS=1
|
||||||
|
if set use studio levels with vdpau (deprecated use setup)
|
||||||
|
|
||||||
|
only if alsa is configured
|
||||||
ALSA_DEVICE=default
|
ALSA_DEVICE=default
|
||||||
alsa PCM device name
|
alsa PCM device name
|
||||||
|
ALSA_AC3_DEVICE=
|
||||||
|
alsa AC3/pass-though device name
|
||||||
ALSA_MIXER=default
|
ALSA_MIXER=default
|
||||||
alsa control device name
|
alsa control device name
|
||||||
ALSA_MIXER_CHANNEL=PCM
|
ALSA_MIXER_CHANNEL=PCM
|
||||||
alsa control channel name
|
alsa control channel name
|
||||||
|
|
||||||
|
only if oss is configured
|
||||||
|
OSS_AUDIODEV=/dev/dsp
|
||||||
|
oss dsp device name
|
||||||
|
OSS_AC3_AUDIODEV=
|
||||||
|
oss AC3/pass-though device name
|
||||||
|
OSS_MIXERDEV=/dev/mixer
|
||||||
|
oss mixer device name
|
||||||
|
OSS_MIXER_CHANNEL=pcm
|
||||||
|
oss mixer channel name
|
||||||
|
|
||||||
Setup: /etc/vdr/setup.conf
|
Setup: /etc/vdr/setup.conf
|
||||||
|
------
|
||||||
Following is supported:
|
Following is supported:
|
||||||
|
|
||||||
softhddevice.Deinterlace = 0
|
softhddevice.MakePrimary = 0
|
||||||
0 = bob, 1 = weave, 2 = temporal, 3 = temporal_spatial, 4 = software
|
|
||||||
(only 0, 1 supported)
|
|
||||||
|
|
||||||
softhddevice.MakePrimary = 1
|
|
||||||
0 = no change, 1 make softhddevice primary at start
|
0 = no change, 1 make softhddevice primary at start
|
||||||
|
|
||||||
softhddevice.Scaling = 0
|
softhddevice.HideMainMenuEntry = 0
|
||||||
|
0 = show softhddevice main menu entry, 1 = hide entry
|
||||||
|
|
||||||
|
softhddevice.Osd.Width = 0
|
||||||
|
0 = auto (=display, unscaled) n = fixed osd size scaled for display
|
||||||
|
softhddevice.Osd.Height = 0
|
||||||
|
0 = auto (=display, unscaled) n = fixed osd size scaled for display
|
||||||
|
|
||||||
|
<res> of the next parameters is 576i, 720p, 1080i_fake or 1080i.
|
||||||
|
1080i_fake is 1280x1080 or 1440x1080
|
||||||
|
1080i is "real" 1920x1080
|
||||||
|
|
||||||
|
softhddevice.<res>.Scaling = 0
|
||||||
0 = normal, 1 = fast, 2 = HQ, 3 = anamorphic
|
0 = normal, 1 = fast, 2 = HQ, 3 = anamorphic
|
||||||
|
|
||||||
|
softhddevice.<res>.Deinterlace = 0
|
||||||
|
0 = bob, 1 = weave, 2 = temporal, 3 = temporal_spatial, 4 = software
|
||||||
|
(only 0, 1 supported with vaapi)
|
||||||
|
|
||||||
|
softhddevice.<res>.SkipChromaDeinterlace = 0
|
||||||
|
0 = disabled, 1 = enabled (for slower cards, poor qualit<69>t)
|
||||||
|
|
||||||
|
softhddevice.<res>.InverseTelecine = 0
|
||||||
|
0 = disabled, 1 = enabled
|
||||||
|
|
||||||
|
softhddevice.<res>.Denoise = 0
|
||||||
|
0 .. 1000 noise reduction level (0 off, 1000 max)
|
||||||
|
|
||||||
|
softhddevice.<res>.Sharpness = 0
|
||||||
|
-1000 .. 1000 noise reduction level (0 off, -1000 max blur,
|
||||||
|
1000 max sharp)
|
||||||
|
|
||||||
|
softhddevice.<res>.CutTopBottom = 0
|
||||||
|
Cut 'n' pixels at at top and bottom of the video picture.
|
||||||
|
|
||||||
|
softhddevice.<res>.CutLeftRight = 0
|
||||||
|
Cut 'n' pixels at at left and right of the video picture.
|
||||||
|
|
||||||
softhddevice.AudioDelay = 0
|
softhddevice.AudioDelay = 0
|
||||||
+n or -n ms
|
+n or -n ms
|
||||||
|
delay audio or delay video
|
||||||
|
|
||||||
|
softhddevice.AudioPassthrough = 0
|
||||||
|
0 = none, 1 = AC-3
|
||||||
|
|
||||||
|
for AC-3 the pass-through device is used.
|
||||||
|
|
||||||
|
softhddevice.AudioDownmix = 0
|
||||||
|
0 = none, 1 = downmix
|
||||||
|
downmix AC-3 to stero.
|
||||||
|
|
||||||
|
softhddevice.AudioSoftvol = 0
|
||||||
|
0 = off, use hardware volume control
|
||||||
|
1 = on, use software volume control
|
||||||
|
|
||||||
|
softhddevice.AudioNormalize = 0
|
||||||
|
0 = off, 1 = enable audio normalize
|
||||||
|
|
||||||
|
softhddevice.AudioMaxNormalize = 0
|
||||||
|
maximal volume factor/1000 of the normalize filter
|
||||||
|
|
||||||
|
softhddevice.AudioCompression = 0
|
||||||
|
0 = off, 1 = enable audio compression
|
||||||
|
|
||||||
|
softhddevice.AudioMaxCompression = 0
|
||||||
|
maximal volume factor/1000 of the compression filter
|
||||||
|
|
||||||
|
softhddevice.AudioStereoDescent = 0
|
||||||
|
reduce volume level (/1000) for stereo sources
|
||||||
|
|
||||||
|
softhddevice.AudioBufferTime = 0
|
||||||
|
0 = default (336 ms)
|
||||||
|
1 - 1000 = size of the buffer in ms
|
||||||
|
|
||||||
|
softhddevice.AutoCrop.Interval = 0
|
||||||
|
0 disables auto-crop
|
||||||
|
n each 'n' frames auto-crop is checked.
|
||||||
|
|
||||||
|
softhddevice.AutoCrop.Delay = 0
|
||||||
|
if auto-crop is over 'n' intervals the same, the cropping is
|
||||||
|
used.
|
||||||
|
|
||||||
|
softhddevice.AutoCrop.Tolerance = 0
|
||||||
|
if detected crop area is too small, cut max 'n' pixels at top and
|
||||||
|
bottom.
|
||||||
|
|
||||||
|
softhddevice.Background = 0
|
||||||
|
32bit RGBA background color
|
||||||
|
(Red * 16777216 + Green * 65536 + Blue * 256 + Alpha)
|
||||||
|
or hex RRGGBBAA
|
||||||
|
grey 127 * 16777216 + 127 * 65536 + 127 * 256 => 2139062016
|
||||||
|
in the setup menu this is entered as (24bit RGB and 8bit Alpha)
|
||||||
|
(Red * 65536 + Green * 256 + Blue)
|
||||||
|
|
||||||
|
softhddevice.StudioLevels = 0
|
||||||
|
0 use PC levels (0-255) with vdpau.
|
||||||
|
1 use studio levels (16-235) with vdpau.
|
||||||
|
|
||||||
|
softhddevice.Suspend.Close = 0
|
||||||
|
1 suspend closes x11 window, connection and audio device.
|
||||||
|
(use svdrpsend plug softhddevice RESU to resume, if you have no lirc)
|
||||||
|
|
||||||
|
softhddevice.Suspend.X11 = 0
|
||||||
|
1 suspend stops X11 server (not working yet)
|
||||||
|
|
||||||
|
softhddevice.60HzMode = 0
|
||||||
|
0 disable 60Hz display mode
|
||||||
|
1 enable 60Hz display mode
|
||||||
|
|
||||||
|
softhddevice.SoftStartSync = 0
|
||||||
|
0 disable soft start of audio/video sync
|
||||||
|
1 enable soft start of audio/video sync
|
||||||
|
|
||||||
|
softhddevice.BlackPicture = 0
|
||||||
|
0 disable black picture during channel switch
|
||||||
|
1 enable black picture during channel switch
|
||||||
|
|
||||||
|
VideoDisplayFormat = ?
|
||||||
|
0 pan and scan
|
||||||
|
1 letter box
|
||||||
|
2 center cut-out
|
||||||
|
|
||||||
|
Setup: /etc/vdr/remote.conf
|
||||||
|
------
|
||||||
|
|
||||||
|
Add "XKeySym." definitions to /etc/vdr/remote.conf to control
|
||||||
|
the vdr and plugin with the connected input device.
|
||||||
|
|
||||||
|
fe.
|
||||||
|
XKeySym.Up Up
|
||||||
|
XKeySym.Down Down
|
||||||
|
...
|
||||||
|
|
||||||
|
Additional to the x11 input sends the window close button "Close".
|
||||||
|
|
||||||
|
fe.
|
||||||
|
XKeySym.Power Close
|
||||||
|
|
||||||
|
Commandline:
|
||||||
|
------------
|
||||||
|
|
||||||
|
Use vdr -h to see the command line arguments supported by the plugin.
|
||||||
|
|
||||||
|
-a audio_device
|
||||||
|
|
||||||
|
Selects audio output module and device.
|
||||||
|
"" to disable audio output
|
||||||
|
/... to use oss audio module (if compiled with oss
|
||||||
|
support)
|
||||||
|
other to use alsa audio module (if compiled with alsa
|
||||||
|
support)
|
||||||
|
|
||||||
|
SVDRP:
|
||||||
|
------
|
||||||
|
|
||||||
|
Use 'svdrpsend.pl plug softhddevice HELP'
|
||||||
|
or 'svdrpsend plug softhddevice HELP' to see the SVDRP commands help
|
||||||
|
and which are supported by the plugin.
|
||||||
|
|
||||||
|
Keymacros:
|
||||||
|
----------
|
||||||
|
|
||||||
|
See keymacros.conf how to setup the macros.
|
||||||
|
|
||||||
|
This are the supported key sequences:
|
||||||
|
|
||||||
|
@softhddevice Blue 1 0 disable pass-through
|
||||||
|
@softhddevice Blue 1 1 enable pass-through
|
||||||
|
@softhddevice Blue 1 2 toggle pass-through
|
||||||
|
@softhddevice Blue 1 3 decrease audio delay by 10ms
|
||||||
|
@softhddevice Blue 1 4 increase audio delay by 10ms
|
||||||
|
@softhddevice Blue 2 0 disable fullscreen
|
||||||
|
@softhddevice Blue 2 1 enable fullscreen
|
||||||
|
@softhddevice Blue 2 2 toggle fullscreen
|
||||||
|
@softhddevice Blue 2 3 disable auto-crop
|
||||||
|
@softhddevice Blue 2 4 enable auto-crop
|
||||||
|
@softhddevice Blue 2 5 toggle auto-crop
|
||||||
|
@softhddevice Blue 3 0 stretch 4:3 to 16:9
|
||||||
|
@softhddevice Blue 3 1 letter box 4:3 in 16:9
|
||||||
|
@softhddevice Blue 3 2 center cut-out 4:3 to 16:9
|
||||||
|
@softhddevice Blue 3 9 rotate 4:3 to 16:9 zoom mode
|
||||||
|
|
||||||
|
Running:
|
||||||
|
--------
|
||||||
|
|
||||||
|
Click into video window to toggle fullscreen/window mode, only if you
|
||||||
|
have a window manager running.
|
||||||
|
|
||||||
|
Warning:
|
||||||
|
--------
|
||||||
|
libav is not supported, expect many bugs with it.
|
||||||
|
|
||||||
|
Known Bugs:
|
||||||
|
-----------
|
||||||
|
VA-API doesn't v-sync 1080i streams
|
||||||
|
vdr-image not working
|
||||||
|
|
||||||
Requires:
|
Requires:
|
||||||
---------
|
---------
|
||||||
media-video/ffmpeg
|
media-video/ffmpeg (version >=0.7)
|
||||||
Complete solution to record, convert and stream audio and
|
Complete solution to record, convert and stream audio and
|
||||||
video. Includes libavcodec.
|
video. Includes libavcodec.
|
||||||
http://ffmpeg.org
|
http://ffmpeg.org
|
||||||
media-libs/alsa-lib
|
media-libs/alsa-lib
|
||||||
Advanced Linux Sound Architecture Library
|
Advanced Linux Sound Architecture Library
|
||||||
http://www.alsa-project.org
|
http://www.alsa-project.org
|
||||||
|
or
|
||||||
|
kernel support for oss/oss4 or alsa oss emulation
|
||||||
|
|
||||||
x11-libs/libva
|
x11-libs/libva
|
||||||
Video Acceleration (VA) API for Linux
|
Video Acceleration (VA) API for Linux
|
||||||
http://www.freedesktop.org/wiki/Software/vaapi
|
http://www.freedesktop.org/wiki/Software/vaapi
|
||||||
@@ -104,10 +330,15 @@ Requires:
|
|||||||
x11-libs/vdpau-video
|
x11-libs/vdpau-video
|
||||||
VDPAU Backend for Video Acceleration (VA) API
|
VDPAU Backend for Video Acceleration (VA) API
|
||||||
http://www.freedesktop.org/wiki/Software/vaapi
|
http://www.freedesktop.org/wiki/Software/vaapi
|
||||||
or untested
|
or
|
||||||
x11-libs/xvba-video
|
x11-libs/xvba-video
|
||||||
XVBA Backend for Video Acceleration (VA) API
|
XVBA Backend for Video Acceleration (VA) API
|
||||||
http://www.freedesktop.org/wiki/Software/vaapi
|
http://www.freedesktop.org/wiki/Software/vaapi
|
||||||
|
|
||||||
|
x11-libs/libvdpau
|
||||||
|
VDPAU wrapper and trace libraries
|
||||||
|
http://www.freedesktop.org/wiki/Software/VDPAU
|
||||||
|
|
||||||
x11-libs/libxcb,
|
x11-libs/libxcb,
|
||||||
X C-language Bindings library
|
X C-language Bindings library
|
||||||
http://xcb.freedesktop.org
|
http://xcb.freedesktop.org
|
||||||
@@ -116,7 +347,7 @@ Requires:
|
|||||||
x11-libs/xcb-util-keysyms
|
x11-libs/xcb-util-keysyms
|
||||||
X C-language Bindings library
|
X C-language Bindings library
|
||||||
http://xcb.freedesktop.org
|
http://xcb.freedesktop.org
|
||||||
Only versions >= 0.3.8 are supported
|
Only versions >= 0.3.8 are good supported
|
||||||
|
|
||||||
x11-libs/libX11
|
x11-libs/libX11
|
||||||
X.Org X11 library
|
X.Org X11 library
|
||||||
|
|||||||
138
Todo
138
Todo
@@ -1,53 +1,129 @@
|
|||||||
|
@file Todo @brief A software HD output device for VDR
|
||||||
|
|
||||||
|
Copyright (c) 2011, 2012 by Johns. All Rights Reserved.
|
||||||
|
|
||||||
|
Contributor(s):
|
||||||
|
|
||||||
|
License: AGPLv3
|
||||||
|
|
||||||
|
This program is free software: you can redistribute it and/or modify
|
||||||
|
it under the terms of the GNU Affero General Public License as
|
||||||
|
published by the Free Software Foundation, either version 3 of the
|
||||||
|
License.
|
||||||
|
|
||||||
|
This program is distributed in the hope that it will be useful,
|
||||||
|
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
|
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||||
|
GNU Affero General Public License for more details.
|
||||||
|
|
||||||
|
$Id: $
|
||||||
|
|
||||||
missing:
|
missing:
|
||||||
video out with xv
|
more software deinterlace (yadif, ...)
|
||||||
video out with opengl
|
more software decoder with software deinterlace
|
||||||
software decoder for xv / opengl
|
suspend output / energie saver: stop and restart X11
|
||||||
software deinterlace
|
suspend plugin didn't restore full-screen (is this wanted?)
|
||||||
auto crop
|
Option deinterlace off / deinterlace force!
|
||||||
atmolight
|
ColorSpace aren't configurable with the gui.
|
||||||
zoom/fit-zoom 4:3
|
works for me: restart vdr not working, when started x11 was killed.
|
||||||
multistream handling
|
|
||||||
|
video:
|
||||||
|
subtitle not cleared
|
||||||
|
subtitle could be asyncron
|
||||||
|
grab image with hardware and better scaling support
|
||||||
|
yaepghd changed position is lost on channel switch
|
||||||
|
pause (live tv) has sometime problems with SAT1 HD Pro7 HD
|
||||||
|
radio show black background
|
||||||
|
radio no need to wait on video buffers
|
||||||
|
starting with radio and own X11 server, shows no video
|
||||||
|
some low-bandwidth tv channels have hiccups.
|
||||||
|
check start with 24Hz display rate
|
||||||
|
crash with ffmpeg without vaapi and vdpau.
|
||||||
|
|
||||||
vdpau:
|
vdpau:
|
||||||
1080i with temporal spatial too slow GT 520
|
software decoder path not working
|
||||||
VdpPreemptionCallback handling
|
|
||||||
Loose a surface
|
libva:
|
||||||
|
yaepghd (VaapiSetOutputPosition) support
|
||||||
|
can associate only displayed part of osd
|
||||||
|
grab image for va-api
|
||||||
|
remove stderr output of libva init
|
||||||
|
still many: (workaround export NO_MPEG_HW=1)
|
||||||
|
[drm:i915_hangcheck_elapsed] *ERROR* Hangcheck timer elapsed... GPU hung
|
||||||
|
[drm:i915_wait_request] *ERROR* i915_wait_request returns -11 ...
|
||||||
|
|
||||||
|
libva: branch vaapi-ext / staging
|
||||||
|
add support for vaapi-ext / staging
|
||||||
|
|
||||||
libva-intel-driver:
|
libva-intel-driver:
|
||||||
intel still has hangups most with 1080i
|
deinterlace only supported with vaapi-ext
|
||||||
1080i does no v-sync (workaround written)
|
1080i does no v-sync (sometimes correct working with vaapi-ext)
|
||||||
osd has sometimes wrong size (workaround written)
|
OSD has sometimes wrong size (workaround written)
|
||||||
|
sometimes software decoder deinterlace isn't working and 1080i channels
|
||||||
|
show artefacts
|
||||||
|
|
||||||
libva-vdpau-driver:
|
libva-vdpau-driver:
|
||||||
G210 osd update too slow (needs hardware problem workaround)
|
G210/GT520 OSD update too slow (needs hardware problem workaround)
|
||||||
OSD update is too slow
|
|
||||||
hangup on exit (VaapiDelDecoder -> VaapiCleanup
|
hangup on exit (VaapiDelDecoder -> VaapiCleanup
|
||||||
-> vaDestroyContext -> pthread_rwlock_wrlock)
|
-> vaDestroyContext -> pthread_rwlock_wrlock)
|
||||||
|
OSD still has some problems with auto-crop and 4:3 zoom.
|
||||||
|
|
||||||
libva-xvba-driver:
|
libva-xvba-driver:
|
||||||
mpeg1/2 needs software decoder fixed
|
|
||||||
|
|
||||||
x11:
|
x11:
|
||||||
support resize of x11 window
|
skip multiple configure-notify, handle only the last one.
|
||||||
support fullscreen window
|
support embedded mode
|
||||||
support fullscreen / window toggle
|
|
||||||
close window should send power button
|
audio:
|
||||||
disable cursor
|
Make alsa thread/polled and oss thread/polled output module runtime
|
||||||
|
selectable.
|
||||||
|
Mute should do a real mute and not only set volume to zero.
|
||||||
|
Starting suspended and muted, didn't register the mute.
|
||||||
|
Relaxed audio sync checks at end of packet and already in sync
|
||||||
|
samplerate problem resume/suspend.
|
||||||
|
only wait for video start, if video is running.
|
||||||
|
Not primary device, don't use and block audio/video.
|
||||||
|
multiple open of audio device, reduce them.
|
||||||
|
Not all channel conversions are written (f.e. 2->3 ... 5->6 ...)
|
||||||
|
|
||||||
audio/alsa:
|
audio/alsa:
|
||||||
video/audio asyncron
|
remix support of unsupported sample rates
|
||||||
random crash in av_parser_parse2, when switching channels
|
|
||||||
|
|
||||||
playback of >2 channels on 2 channel hardware
|
audio/oss:
|
||||||
done?
|
alsa oss emulation mixer "pcm" not working
|
||||||
|
oss4 mixer channel not working
|
||||||
|
ring buffer overflow with alsa oss emulation
|
||||||
|
|
||||||
on some channels it takes long time until sound can be heared.
|
HDMI/SPDIF Passthrough:
|
||||||
this channels has packet start not at the beginning of the start packet
|
only AC-3 written
|
||||||
|
|
||||||
playback of recording
|
playback of recording
|
||||||
play back is too fast
|
pause is not reset, when replay exit (fixed?)
|
||||||
|
replay/pause need 100% cpu (fixed?)
|
||||||
|
|
||||||
|
plugins:
|
||||||
|
mp3 plugin needs 100% cpu (bad ::Poll)
|
||||||
|
|
||||||
setup:
|
setup:
|
||||||
Setup menu parameters aren't automatic loaded?
|
Setup of decoder type.
|
||||||
Setup parameters are not used until restart.
|
Setup of output type.
|
||||||
|
Setup of display type.
|
||||||
|
Setup 4:3 zoom type
|
||||||
|
Some setup parameters are not used until restart.
|
||||||
Can a notice be added to the setup menu?
|
Can a notice be added to the setup menu?
|
||||||
|
|
||||||
|
unsorted:
|
||||||
|
stoping vdr while plugin is suspended opens and closes a window.
|
||||||
|
svdrp prim: support plugin names for device numbers.
|
||||||
|
|
||||||
|
future features (not planed for 1.0 - 1.5)
|
||||||
|
|
||||||
|
video out with xv
|
||||||
|
video out with opengl
|
||||||
|
video out with xvba
|
||||||
|
software decoder for xv / opengl
|
||||||
|
multistream handling
|
||||||
|
pip support
|
||||||
|
save and use auto-crop with channel zapping
|
||||||
|
|
||||||
|
upmix stereo to AC-3 (supported by alsa plugin)
|
||||||
|
|||||||
37
audio.h
37
audio.h
@@ -1,7 +1,7 @@
|
|||||||
///
|
///
|
||||||
/// @file audio.h @brief Audio module headerfile
|
/// @file audio.h @brief Audio module headerfile
|
||||||
///
|
///
|
||||||
/// Copyright (c) 2009 - 2011 by Johns. All Rights Reserved.
|
/// Copyright (c) 2009 - 2012 by Johns. All Rights Reserved.
|
||||||
///
|
///
|
||||||
/// Contributor(s):
|
/// Contributor(s):
|
||||||
///
|
///
|
||||||
@@ -28,22 +28,35 @@
|
|||||||
//----------------------------------------------------------------------------
|
//----------------------------------------------------------------------------
|
||||||
|
|
||||||
extern void AudioEnqueue(const void *, int); ///< buffer audio samples
|
extern void AudioEnqueue(const void *, int); ///< buffer audio samples
|
||||||
|
extern void AudioFlushBuffers(void); ///< flush audio buffers
|
||||||
//extern int AudioFreeBytes(void); ///< free bytes in audio output
|
extern void AudioPoller(void); ///< poll audio events/handling
|
||||||
//extern int AudioUsedBytes(void); ///< used bytes in audio output
|
extern int AudioFreeBytes(void); ///< free bytes in audio output
|
||||||
|
extern int AudioUsedBytes(void); ///< used bytes in audio output
|
||||||
|
extern int64_t AudioGetDelay(void); ///< get current audio delay
|
||||||
extern void AudioSetClock(int64_t); ///< set audio clock base
|
extern void AudioSetClock(int64_t); ///< set audio clock base
|
||||||
extern int64_t AudioGetClock(); ///< get current audio clock
|
extern int64_t AudioGetClock(); ///< get current audio clock
|
||||||
|
|
||||||
extern uint64_t AudioGetDelay(void); ///< get current audio delay
|
|
||||||
|
|
||||||
extern int AudioSetup(int *, int *); ///< setup audio output
|
|
||||||
|
|
||||||
//extern void AudioPlay(void); ///< play audio
|
|
||||||
//extern void AudioPause(void); ///< pause audio
|
|
||||||
extern void AudioSetVolume(int); ///< set volume
|
extern void AudioSetVolume(int); ///< set volume
|
||||||
|
extern int AudioSetup(int *, int *, int); ///< setup audio output
|
||||||
|
|
||||||
extern void AudioSetDevice(const char *); ///< set alsa PCM audio device
|
extern void AudioPlay(void); ///< play audio
|
||||||
|
extern void AudioPause(void); ///< pause audio
|
||||||
|
|
||||||
|
extern void AudioSetBufferTime(int); ///< set audio buffer time
|
||||||
|
extern void AudioSetSoftvol(int); ///< enable/disable softvol
|
||||||
|
extern void AudioSetNormalize(int, int); ///< set normalize parameters
|
||||||
|
extern void AudioSetCompression(int, int); ///< set compression parameters
|
||||||
|
extern void AudioSetStereoDescent(int); ///< set stereo loudness descent
|
||||||
|
|
||||||
|
extern void AudioSetDevice(const char *); ///< set PCM audio device
|
||||||
|
extern void AudioSetDeviceAC3(const char *); ///< set pass-through device
|
||||||
|
extern void AudioSetChannel(const char *); ///< set mixer channel
|
||||||
extern void AudioInit(void); ///< setup audio module
|
extern void AudioInit(void); ///< setup audio module
|
||||||
extern void AudioExit(void); ///< cleanup and exit audio module
|
extern void AudioExit(void); ///< cleanup and exit audio module
|
||||||
|
|
||||||
|
//----------------------------------------------------------------------------
|
||||||
|
// Variables
|
||||||
|
//----------------------------------------------------------------------------
|
||||||
|
|
||||||
|
extern char AudioAlsaDriverBroken; ///< disable broken driver message
|
||||||
|
|
||||||
/// @}
|
/// @}
|
||||||
|
|||||||
39
codec.h
39
codec.h
@@ -1,7 +1,7 @@
|
|||||||
///
|
///
|
||||||
/// @file codec.h @brief Codec module headerfile
|
/// @file codec.h @brief Codec module headerfile
|
||||||
///
|
///
|
||||||
/// Copyright (c) 2009 - 2011 by Johns. All Rights Reserved.
|
/// Copyright (c) 2009 - 2012 by Johns. All Rights Reserved.
|
||||||
///
|
///
|
||||||
/// Contributor(s):
|
/// Contributor(s):
|
||||||
///
|
///
|
||||||
@@ -40,26 +40,47 @@ typedef struct _audio_decoder_ AudioDecoder;
|
|||||||
/// Allocate a new video decoder context.
|
/// Allocate a new video decoder context.
|
||||||
extern VideoDecoder *CodecVideoNewDecoder(VideoHwDecoder *);
|
extern VideoDecoder *CodecVideoNewDecoder(VideoHwDecoder *);
|
||||||
|
|
||||||
/// Open video codec
|
/// Deallocate a video decoder context.
|
||||||
|
extern void CodecVideoDelDecoder(VideoDecoder *);
|
||||||
|
|
||||||
|
/// Open video codec.
|
||||||
extern void CodecVideoOpen(VideoDecoder *, const char *, int);
|
extern void CodecVideoOpen(VideoDecoder *, const char *, int);
|
||||||
|
|
||||||
/// Close video codec
|
/// Close video codec.
|
||||||
extern void CodecVideoClose(VideoDecoder *);
|
extern void CodecVideoClose(VideoDecoder *);
|
||||||
|
|
||||||
/// Decode a video packet
|
/// Decode a video packet.
|
||||||
extern void CodecVideoDecode(VideoDecoder *, AVPacket * pkt);
|
extern void CodecVideoDecode(VideoDecoder *, const AVPacket *);
|
||||||
|
|
||||||
|
/// Flush video buffers.
|
||||||
|
extern void CodecVideoFlushBuffers(VideoDecoder *);
|
||||||
|
|
||||||
/// Allocate a new audio decoder context.
|
/// Allocate a new audio decoder context.
|
||||||
extern AudioDecoder *CodecAudioNewDecoder(void);
|
extern AudioDecoder *CodecAudioNewDecoder(void);
|
||||||
|
|
||||||
/// Open audio codec
|
/// Deallocate an audio decoder context.
|
||||||
|
extern void CodecAudioDelDecoder(AudioDecoder *);
|
||||||
|
|
||||||
|
/// Open audio codec.
|
||||||
extern void CodecAudioOpen(AudioDecoder *, const char *, int);
|
extern void CodecAudioOpen(AudioDecoder *, const char *, int);
|
||||||
|
|
||||||
/// Close audio codec
|
/// Close audio codec.
|
||||||
extern void CodecAudioClose(AudioDecoder *);
|
extern void CodecAudioClose(AudioDecoder *);
|
||||||
|
|
||||||
/// Decode an audio packet
|
/// Set audio drift correction.
|
||||||
extern void CodecAudioDecode(AudioDecoder *, AVPacket * pkt);
|
extern void CodecSetAudioDrift(int);
|
||||||
|
|
||||||
|
/// Set audio pass-through.
|
||||||
|
extern void CodecSetAudioPassthrough(int);
|
||||||
|
|
||||||
|
/// Set audio downmix.
|
||||||
|
extern void CodecSetAudioDownmix(int);
|
||||||
|
|
||||||
|
/// Decode an audio packet.
|
||||||
|
extern void CodecAudioDecode(AudioDecoder *, const AVPacket *);
|
||||||
|
|
||||||
|
/// Flush audio buffers.
|
||||||
|
extern void CodecAudioFlushBuffers(AudioDecoder *);
|
||||||
|
|
||||||
/// Setup and initialize codec module.
|
/// Setup and initialize codec module.
|
||||||
extern void CodecInit(void);
|
extern void CodecInit(void);
|
||||||
|
|||||||
54
misc.h
54
misc.h
@@ -1,7 +1,7 @@
|
|||||||
///
|
///
|
||||||
/// @file misc.h @brief Misc function header file
|
/// @file misc.h @brief Misc function header file
|
||||||
///
|
///
|
||||||
/// Copyright (c) 2009 - 2011 by Lutz Sammer. All Rights Reserved.
|
/// Copyright (c) 2009 - 2012 by Lutz Sammer. All Rights Reserved.
|
||||||
///
|
///
|
||||||
/// Contributor(s):
|
/// Contributor(s):
|
||||||
/// Copied from uwm.
|
/// Copied from uwm.
|
||||||
@@ -46,24 +46,28 @@ extern int SysLogLevel; ///< how much information wanted
|
|||||||
// Prototypes
|
// Prototypes
|
||||||
//////////////////////////////////////////////////////////////////////////////
|
//////////////////////////////////////////////////////////////////////////////
|
||||||
|
|
||||||
static inline void Debug(const int, const char *format, ...)
|
static inline void Syslog(const int, const char *format, ...)
|
||||||
__attribute__ ((format(printf, 2, 3)));
|
__attribute__ ((format(printf, 2, 3)));
|
||||||
|
|
||||||
//////////////////////////////////////////////////////////////////////////////
|
//////////////////////////////////////////////////////////////////////////////
|
||||||
// Inlines
|
// Inlines
|
||||||
//////////////////////////////////////////////////////////////////////////////
|
//////////////////////////////////////////////////////////////////////////////
|
||||||
|
|
||||||
|
#ifdef DEBUG
|
||||||
#define DebugLevel 4 /// private debug level
|
#define DebugLevel 4 /// private debug level
|
||||||
|
#else
|
||||||
|
#define DebugLevel 0 /// private debug level
|
||||||
|
#endif
|
||||||
|
|
||||||
/**
|
/**
|
||||||
** Debug output function.
|
** Syslog output function.
|
||||||
**
|
**
|
||||||
** - 0 fatal errors and errors
|
** - 0 fatal errors and errors
|
||||||
** - 1 warnings
|
** - 1 warnings
|
||||||
** - 2 info
|
** - 2 info
|
||||||
** - 3 important debug and fixme's
|
** - 3 important debug and fixme's
|
||||||
*/
|
*/
|
||||||
static inline void Debug(const int level, const char *format, ...)
|
static inline void Syslog(const int level, const char *format, ...)
|
||||||
{
|
{
|
||||||
if (SysLogLevel > level || DebugLevel > level) {
|
if (SysLogLevel > level || DebugLevel > level) {
|
||||||
va_list ap;
|
va_list ap;
|
||||||
@@ -77,22 +81,56 @@ static inline void Debug(const int level, const char *format, ...)
|
|||||||
/**
|
/**
|
||||||
** Show error.
|
** Show error.
|
||||||
*/
|
*/
|
||||||
#define Error(fmt...) Debug(0, fmt)
|
#define Error(fmt...) Syslog(0, fmt)
|
||||||
|
|
||||||
/**
|
/**
|
||||||
** Show fatal error.
|
** Show fatal error.
|
||||||
*/
|
*/
|
||||||
#define Fatal(fmt...) do { Error(fmt); exit(-1); } while (0)
|
#define Fatal(fmt...) do { Error(fmt); abort(); } while (0)
|
||||||
|
|
||||||
/**
|
/**
|
||||||
** Show warning.
|
** Show warning.
|
||||||
*/
|
*/
|
||||||
#define Warning(fmt...) Debug(1, fmt)
|
#define Warning(fmt...) Syslog(1, fmt)
|
||||||
|
|
||||||
/**
|
/**
|
||||||
** Show info.
|
** Show info.
|
||||||
*/
|
*/
|
||||||
#define Info(fmt...) Debug(2, fmt)
|
#define Info(fmt...) Syslog(2, fmt)
|
||||||
|
|
||||||
|
/**
|
||||||
|
** Show debug.
|
||||||
|
*/
|
||||||
|
#ifdef DEBUG
|
||||||
|
#define Debug(level, fmt...) Syslog(level, fmt)
|
||||||
|
#else
|
||||||
|
#define Debug(level, fmt...) /* disabled */
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#ifndef AV_NOPTS_VALUE
|
||||||
|
#define AV_NOPTS_VALUE INT64_C(0x8000000000000000)
|
||||||
|
#endif
|
||||||
|
|
||||||
|
/**
|
||||||
|
** Nice time-stamp string.
|
||||||
|
**
|
||||||
|
** @param ts dvb time stamp
|
||||||
|
*/
|
||||||
|
static inline const char *Timestamp2String(int64_t ts)
|
||||||
|
{
|
||||||
|
static char buf[4][16];
|
||||||
|
static int idx;
|
||||||
|
|
||||||
|
if (ts == (int64_t) AV_NOPTS_VALUE) {
|
||||||
|
return "--:--:--.---";
|
||||||
|
}
|
||||||
|
idx = (idx + 1) % 3;
|
||||||
|
snprintf(buf[idx], sizeof(buf[idx]), "%2d:%02d:%02d.%03d",
|
||||||
|
(int)(ts / (90 * 3600000)), (int)((ts / (90 * 60000)) % 60),
|
||||||
|
(int)((ts / (90 * 1000)) % 60), (int)((ts / 90) % 1000));
|
||||||
|
|
||||||
|
return buf[idx];
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
** Get ticks in ms.
|
** Get ticks in ms.
|
||||||
|
|||||||
20
ringbuffer.c
20
ringbuffer.c
@@ -48,6 +48,18 @@ struct _ring_buffer_
|
|||||||
atomic_t Filled; ///< how many of the buffer is used
|
atomic_t Filled; ///< how many of the buffer is used
|
||||||
};
|
};
|
||||||
|
|
||||||
|
/**
|
||||||
|
** Reset ring buffer pointers.
|
||||||
|
**
|
||||||
|
** @param rb Ring buffer to reset read/write pointers.
|
||||||
|
*/
|
||||||
|
void RingBufferReset(RingBuffer * rb)
|
||||||
|
{
|
||||||
|
rb->ReadPointer = rb->Buffer;
|
||||||
|
rb->WritePointer = rb->Buffer;
|
||||||
|
atomic_set(&rb->Filled, 0);
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
** Allocate a new ring buffer.
|
** Allocate a new ring buffer.
|
||||||
**
|
**
|
||||||
@@ -69,10 +81,8 @@ RingBuffer *RingBufferNew(size_t size)
|
|||||||
}
|
}
|
||||||
|
|
||||||
rb->Size = size;
|
rb->Size = size;
|
||||||
rb->ReadPointer = rb->Buffer;
|
|
||||||
rb->WritePointer = rb->Buffer;
|
|
||||||
rb->BufferEnd = rb->Buffer + size;
|
rb->BufferEnd = rb->Buffer + size;
|
||||||
atomic_set(&rb->Filled, 0);
|
RingBufferReset(rb);
|
||||||
|
|
||||||
return rb;
|
return rb;
|
||||||
}
|
}
|
||||||
@@ -89,7 +99,7 @@ void RingBufferDel(RingBuffer * rb)
|
|||||||
/**
|
/**
|
||||||
** Advance write pointer in ring buffer.
|
** Advance write pointer in ring buffer.
|
||||||
**
|
**
|
||||||
** @param rb Ring buffer to adance write pointer.
|
** @param rb Ring buffer to advance write pointer.
|
||||||
** @param cnt Number of bytes to be adavanced.
|
** @param cnt Number of bytes to be adavanced.
|
||||||
**
|
**
|
||||||
** @returns Number of bytes that could be advanced in ring buffer.
|
** @returns Number of bytes that could be advanced in ring buffer.
|
||||||
@@ -198,7 +208,7 @@ size_t RingBufferGetWritePointer(RingBuffer * rb, void **wp)
|
|||||||
/**
|
/**
|
||||||
** Advance read pointer in ring buffer.
|
** Advance read pointer in ring buffer.
|
||||||
**
|
**
|
||||||
** @param rb Ring buffer to adance read pointer.
|
** @param rb Ring buffer to advance read pointer.
|
||||||
** @param cnt Number of bytes to be advanced.
|
** @param cnt Number of bytes to be advanced.
|
||||||
**
|
**
|
||||||
** @returns Number of bytes that could be advanced in ring buffer.
|
** @returns Number of bytes that could be advanced in ring buffer.
|
||||||
|
|||||||
@@ -23,13 +23,16 @@
|
|||||||
/// @addtogroup Ringbuffer
|
/// @addtogroup Ringbuffer
|
||||||
/// @{
|
/// @{
|
||||||
|
|
||||||
///< ring buffer typedef
|
/// ring buffer typedef
|
||||||
typedef struct _ring_buffer_ RingBuffer;
|
typedef struct _ring_buffer_ RingBuffer;
|
||||||
|
|
||||||
///< create new ring buffer
|
/// reset ring buffer pointers
|
||||||
|
extern void RingBufferReset(RingBuffer *);
|
||||||
|
|
||||||
|
/// create new ring buffer
|
||||||
extern RingBuffer *RingBufferNew(size_t);
|
extern RingBuffer *RingBufferNew(size_t);
|
||||||
|
|
||||||
///< free ring buffer
|
/// free ring buffer
|
||||||
extern void RingBufferDel(RingBuffer *);
|
extern void RingBufferDel(RingBuffer *);
|
||||||
|
|
||||||
/// write into ring buffer
|
/// write into ring buffer
|
||||||
|
|||||||
2330
softhddev.c
2330
softhddev.c
File diff suppressed because it is too large
Load Diff
33
softhddev.h
33
softhddev.h
@@ -1,7 +1,7 @@
|
|||||||
///
|
///
|
||||||
/// @file softhddev.h @brief software HD device plugin header file.
|
/// @file softhddev.h @brief software HD device plugin header file.
|
||||||
///
|
///
|
||||||
/// Copyright (c) 2011 by Johns. All Rights Reserved.
|
/// Copyright (c) 2011 - 2012 by Johns. All Rights Reserved.
|
||||||
///
|
///
|
||||||
/// Contributor(s):
|
/// Contributor(s):
|
||||||
///
|
///
|
||||||
@@ -36,9 +36,9 @@ extern "C"
|
|||||||
extern void OsdDrawARGB(int, int, int, int, const uint8_t *);
|
extern void OsdDrawARGB(int, int, int, int, const uint8_t *);
|
||||||
|
|
||||||
/// C plugin play audio packet
|
/// C plugin play audio packet
|
||||||
extern void PlayAudio(const uint8_t *, int, uint8_t);
|
extern int PlayAudio(const uint8_t *, int, uint8_t);
|
||||||
/// C plugin mute audio
|
/// C plugin play TS audio packet
|
||||||
extern void Mute(void);
|
extern int PlayTsAudio(const uint8_t *, int);
|
||||||
/// C plugin set audio volume
|
/// C plugin set audio volume
|
||||||
extern void SetVolumeDevice(int);
|
extern void SetVolumeDevice(int);
|
||||||
|
|
||||||
@@ -46,17 +46,29 @@ extern "C"
|
|||||||
extern int PlayVideo(const uint8_t *, int);
|
extern int PlayVideo(const uint8_t *, int);
|
||||||
/// C plugin play TS video packet
|
/// C plugin play TS video packet
|
||||||
extern void PlayTsVideo(const uint8_t *, int);
|
extern void PlayTsVideo(const uint8_t *, int);
|
||||||
|
/// C plugin grab an image
|
||||||
|
extern uint8_t *GrabImage(int *, int, int, int, int);
|
||||||
|
|
||||||
/// C plugin set play mode
|
/// C plugin set play mode
|
||||||
extern void SetPlayMode(void);
|
extern int SetPlayMode(int);
|
||||||
|
/// C plugin get current system time counter
|
||||||
|
extern int64_t GetSTC(void);
|
||||||
|
/// C plugin set trick speed
|
||||||
|
extern void TrickSpeed(int);
|
||||||
/// C plugin clears all video and audio data from the device
|
/// C plugin clears all video and audio data from the device
|
||||||
extern void Clear(void);
|
extern void Clear(void);
|
||||||
/// C plugin sets the device into play mode
|
/// C plugin sets the device into play mode
|
||||||
extern void Play(void);
|
extern void Play(void);
|
||||||
/// C plugin sets the device into "freeze frame" mode
|
/// C plugin sets the device into "freeze frame" mode
|
||||||
extern void Freeze(void);
|
extern void Freeze(void);
|
||||||
|
/// C plugin mute audio
|
||||||
|
extern void Mute(void);
|
||||||
|
/// C plugin display I-frame as a still picture.
|
||||||
|
extern void StillPicture(const uint8_t *, int);
|
||||||
/// C plugin poll if ready
|
/// C plugin poll if ready
|
||||||
extern int Poll(int);
|
extern int Poll(int);
|
||||||
|
/// C plugin flush output buffers
|
||||||
|
extern int Flush(int);
|
||||||
|
|
||||||
/// C plugin command line help
|
/// C plugin command line help
|
||||||
extern const char *CommandLineHelp(void);
|
extern const char *CommandLineHelp(void);
|
||||||
@@ -66,12 +78,21 @@ extern "C"
|
|||||||
/// C plugin exit + cleanup
|
/// C plugin exit + cleanup
|
||||||
extern void SoftHdDeviceExit(void);
|
extern void SoftHdDeviceExit(void);
|
||||||
/// C plugin start code
|
/// C plugin start code
|
||||||
extern void Start(void);
|
extern int Start(void);
|
||||||
/// C plugin stop code
|
/// C plugin stop code
|
||||||
extern void Stop(void);
|
extern void Stop(void);
|
||||||
|
/// C plugin house keeping
|
||||||
|
extern void Housekeeping(void);
|
||||||
/// C plugin main thread hook
|
/// C plugin main thread hook
|
||||||
extern void MainThreadHook(void);
|
extern void MainThreadHook(void);
|
||||||
|
|
||||||
|
/// Suspend plugin
|
||||||
|
extern void Suspend(int, int, int);
|
||||||
|
/// Resume plugin
|
||||||
|
extern void Resume(void);
|
||||||
|
|
||||||
|
/// Get decoder statistics
|
||||||
|
extern void GetStats(int *, int *, int *, int *);
|
||||||
#ifdef __cplusplus
|
#ifdef __cplusplus
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|||||||
2000
softhddevice.cpp
2000
softhddevice.cpp
File diff suppressed because it is too large
Load Diff
44
softhddevice_service.h
Normal file
44
softhddevice_service.h
Normal file
@@ -0,0 +1,44 @@
|
|||||||
|
///
|
||||||
|
/// @file softhddev_service.h @brief software HD device service header file.
|
||||||
|
///
|
||||||
|
/// Copyright (c) 2012 by durchflieger. All Rights Reserved.
|
||||||
|
///
|
||||||
|
/// Contributor(s):
|
||||||
|
///
|
||||||
|
/// License: AGPLv3
|
||||||
|
///
|
||||||
|
/// This program is free software: you can redistribute it and/or modify
|
||||||
|
/// it under the terms of the GNU Affero General Public License as
|
||||||
|
/// published by the Free Software Foundation, either version 3 of the
|
||||||
|
/// License.
|
||||||
|
///
|
||||||
|
/// This program is distributed in the hope that it will be useful,
|
||||||
|
/// but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
|
/// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||||
|
/// GNU Affero General Public License for more details.
|
||||||
|
///
|
||||||
|
/// $Id$
|
||||||
|
//////////////////////////////////////////////////////////////////////////////
|
||||||
|
|
||||||
|
#pragma once
|
||||||
|
|
||||||
|
#define ATMO_GRAB_SERVICE "SoftHDDevice-AtmoGrabService-v1.0"
|
||||||
|
|
||||||
|
enum
|
||||||
|
{ GRAB_IMG_RGBA_FORMAT_B8G8R8A8 };
|
||||||
|
|
||||||
|
typedef struct
|
||||||
|
{
|
||||||
|
int structSize;
|
||||||
|
|
||||||
|
// request data
|
||||||
|
int analyseSize;
|
||||||
|
int clippedOverscan;
|
||||||
|
|
||||||
|
// reply data
|
||||||
|
int imgType;
|
||||||
|
int imgSize;
|
||||||
|
int width;
|
||||||
|
int height;
|
||||||
|
void *img;
|
||||||
|
} SoftHDDevice_AtmoGrabService_v1_0_t;
|
||||||
75
vdr-softhddevice-9999.ebuild
Normal file
75
vdr-softhddevice-9999.ebuild
Normal file
@@ -0,0 +1,75 @@
|
|||||||
|
# Copyright 1999-2012 Gentoo Foundation
|
||||||
|
# Distributed under the terms of the GNU General Public License v2
|
||||||
|
# $Header: $
|
||||||
|
|
||||||
|
EAPI="3"
|
||||||
|
|
||||||
|
inherit eutils vdr-plugin
|
||||||
|
|
||||||
|
if [[ ${PV} == "9999" ]] ; then
|
||||||
|
inherit git-2
|
||||||
|
EGIT_REPO_URI="git://projects.vdr-developer.org/vdr-plugin-softhddevice.git"
|
||||||
|
else
|
||||||
|
SRC_URI="http://projects.vdr-developer.org/attachments/download/838/${P}.tgz"
|
||||||
|
fi
|
||||||
|
|
||||||
|
|
||||||
|
DESCRIPTION="A software and GPU emulated HD output device plugin for VDR."
|
||||||
|
HOMEPAGE="http://projects.vdr-developer.org/projects/show/plg-softhddevice"
|
||||||
|
SRC_URI=""
|
||||||
|
|
||||||
|
LICENSE="AGPL-3"
|
||||||
|
SLOT="0"
|
||||||
|
KEYWORDS="~x86 ~amd64"
|
||||||
|
IUSE="vaapi vdpau alsa oss yaepg opengl jpeg"
|
||||||
|
|
||||||
|
DEPEND=">=x11-libs/libxcb-1.8
|
||||||
|
x11-libs/xcb-util
|
||||||
|
x11-libs/xcb-util-wm
|
||||||
|
x11-libs/xcb-util-keysyms
|
||||||
|
x11-libs/xcb-util-renderutil
|
||||||
|
x11-libs/libX11
|
||||||
|
opengl? ( virtual/opengl )
|
||||||
|
>=virtual/ffmpeg-0.7
|
||||||
|
sys-devel/gettext
|
||||||
|
sys-devel/make
|
||||||
|
dev-util/pkgconfig
|
||||||
|
yaepg? ( >=media-video/vdr-1.7.23[yaepg] )
|
||||||
|
!yaepg? ( >=media-video/vdr-1.7.23 )
|
||||||
|
vdpau? ( x11-libs/libvdpau )
|
||||||
|
vaapi? ( x11-libs/libva )
|
||||||
|
alsa? ( media-libs/alsa-lib )
|
||||||
|
oss? ( sys-kernel/linux-headers )
|
||||||
|
jpeg? ( virtual/jpeg )
|
||||||
|
"
|
||||||
|
|
||||||
|
src_prepare() {
|
||||||
|
vdr-plugin_src_prepare
|
||||||
|
}
|
||||||
|
|
||||||
|
src_compile() {
|
||||||
|
local myconf
|
||||||
|
|
||||||
|
myconf="-DHAVE_PTHREAD_NAME"
|
||||||
|
use vdpau && myconf="${myconf} -DUSE_VDPAU"
|
||||||
|
use vaapi && myconf="${myconf} -DUSE_VAAPI"
|
||||||
|
use alsa && myconf="${myconf} -DUSE_ALSA"
|
||||||
|
use oss && myconf="${myconf} -DUSE_OSS"
|
||||||
|
use jpeg && myconf="${myconf} -DUSE_JPEG"
|
||||||
|
|
||||||
|
emake all CC="$(tc-getCC)" CFLAGS="${CFLAGS}" \
|
||||||
|
LDFLAGS="${LDFLAGS}" CONFIG="${myconf}" LIBDIR="." || die
|
||||||
|
}
|
||||||
|
|
||||||
|
src_install() {
|
||||||
|
vdr-plugin_src_install
|
||||||
|
|
||||||
|
dodoc README.txt
|
||||||
|
|
||||||
|
#dodir /etc/vdr/plugins || die
|
||||||
|
#insinto /etc/vdr/plugins
|
||||||
|
#fowners -R vdr:vdr /etc/vdr || die
|
||||||
|
|
||||||
|
#insinto /etc/conf.d
|
||||||
|
#doins vdr.softhddevice
|
||||||
|
}
|
||||||
146
video.h
146
video.h
@@ -1,7 +1,7 @@
|
|||||||
///
|
///
|
||||||
/// @file video.h @brief Video module header file
|
/// @file video.h @brief Video module header file
|
||||||
///
|
///
|
||||||
/// Copyright (c) 2009 - 2011 by Johns. All Rights Reserved.
|
/// Copyright (c) 2009 - 2012 by Johns. All Rights Reserved.
|
||||||
///
|
///
|
||||||
/// Contributor(s):
|
/// Contributor(s):
|
||||||
///
|
///
|
||||||
@@ -34,8 +34,9 @@ typedef struct _video_hw_decoder_ VideoHwDecoder;
|
|||||||
// Variables
|
// Variables
|
||||||
//----------------------------------------------------------------------------
|
//----------------------------------------------------------------------------
|
||||||
|
|
||||||
//extern unsigned VideoWindowWidth; ///< current video output width
|
extern char VideoHardwareDecoder; ///< flag use hardware decoder
|
||||||
//extern unsigned VideoWindowHeight; ///< current video output height
|
extern char VideoIgnoreRepeatPict; ///< disable repeat pict warning
|
||||||
|
extern int VideoAudioDelay; ///< audio/video delay
|
||||||
|
|
||||||
//----------------------------------------------------------------------------
|
//----------------------------------------------------------------------------
|
||||||
// Prototypes
|
// Prototypes
|
||||||
@@ -44,66 +45,147 @@ typedef struct _video_hw_decoder_ VideoHwDecoder;
|
|||||||
/// Allocate new video hardware decoder.
|
/// Allocate new video hardware decoder.
|
||||||
extern VideoHwDecoder *VideoNewHwDecoder(void);
|
extern VideoHwDecoder *VideoNewHwDecoder(void);
|
||||||
|
|
||||||
|
/// Deallocate video hardware decoder.
|
||||||
|
extern void VideoDelHwDecoder(VideoHwDecoder *);
|
||||||
|
|
||||||
/// Get and allocate a video hardware surface.
|
/// Get and allocate a video hardware surface.
|
||||||
extern unsigned VideoGetSurface(VideoHwDecoder *);
|
extern unsigned VideoGetSurface(VideoHwDecoder *);
|
||||||
|
|
||||||
/// Release a video hardware surface.
|
/// Release a video hardware surface
|
||||||
extern void VideoReleaseSurface(VideoHwDecoder *, unsigned);
|
extern void VideoReleaseSurface(VideoHwDecoder *, unsigned);
|
||||||
|
|
||||||
#ifdef LIBAVCODEC_VERSION
|
#ifdef LIBAVCODEC_VERSION
|
||||||
/// Render a ffmpeg frame
|
|
||||||
extern void VideoRenderFrame(VideoHwDecoder *, AVCodecContext *, AVFrame *);
|
|
||||||
|
|
||||||
/// Get ffmpeg vaapi context
|
|
||||||
extern struct vaapi_context *VideoGetVaapiContext(VideoHwDecoder *);
|
|
||||||
|
|
||||||
/// Callback to negotiate the PixelFormat.
|
/// Callback to negotiate the PixelFormat.
|
||||||
extern enum PixelFormat Video_get_format(VideoHwDecoder *, AVCodecContext *,
|
extern enum PixelFormat Video_get_format(VideoHwDecoder *, AVCodecContext *,
|
||||||
const enum PixelFormat *);
|
const enum PixelFormat *);
|
||||||
|
|
||||||
|
/// Render a ffmpeg frame.
|
||||||
|
extern void VideoRenderFrame(VideoHwDecoder *, const AVCodecContext *,
|
||||||
|
const AVFrame *);
|
||||||
|
|
||||||
|
/// Get ffmpeg vaapi context.
|
||||||
|
extern struct vaapi_context *VideoGetVaapiContext(VideoHwDecoder *);
|
||||||
|
|
||||||
#ifdef AVCODEC_VDPAU_H
|
#ifdef AVCODEC_VDPAU_H
|
||||||
/// Draw vdpau render state
|
/// Draw vdpau render state.
|
||||||
extern void VideoDrawRenderState(VideoHwDecoder *,
|
extern void VideoDrawRenderState(VideoHwDecoder *,
|
||||||
struct vdpau_render_state *);
|
struct vdpau_render_state *);
|
||||||
#endif
|
#endif
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
/// Display video TEST
|
/// Poll video events.
|
||||||
extern void VideoDisplayHandler(void);
|
|
||||||
|
|
||||||
/// Poll video events
|
|
||||||
extern void VideoPollEvent(void);
|
extern void VideoPollEvent(void);
|
||||||
|
|
||||||
/// set video mode
|
/// Wakeup display handler.
|
||||||
//extern void VideoSetVideoMode(int, int, int, int);
|
extern void VideoDisplayWakeup(void);
|
||||||
|
|
||||||
/// set video geometry
|
/// Set video device.
|
||||||
|
extern void VideoSetDevice(const char *);
|
||||||
|
|
||||||
|
/// Set video geometry.
|
||||||
extern int VideoSetGeometry(const char *);
|
extern int VideoSetGeometry(const char *);
|
||||||
|
|
||||||
/// set deinterlace
|
/// Set 60Hz display mode.
|
||||||
extern void VideoSetDeinterlace(int);
|
extern void VideoSet60HzMode(int);
|
||||||
|
|
||||||
/// set scaling
|
/// Set soft start audio/video sync.
|
||||||
extern void VideoSetScaling(int);
|
extern void VideoSetSoftStartSync(int);
|
||||||
|
|
||||||
/// set audio delay
|
/// Set show black picture during channel switch.
|
||||||
|
extern void VideoSetBlackPicture(int);
|
||||||
|
|
||||||
|
/// Set video output position.
|
||||||
|
extern void VideoSetOutputPosition(int, int, int, int);
|
||||||
|
|
||||||
|
/// Set video mode.
|
||||||
|
extern void VideoSetVideoMode(int, int, int, int);
|
||||||
|
|
||||||
|
/// Set display format.
|
||||||
|
extern void VideoSetDisplayFormat(int);
|
||||||
|
|
||||||
|
/// Set video fullscreen mode.
|
||||||
|
extern void VideoSetFullscreen(int);
|
||||||
|
|
||||||
|
/// Set deinterlace.
|
||||||
|
extern void VideoSetDeinterlace(int[]);
|
||||||
|
|
||||||
|
/// Set skip chroma deinterlace.
|
||||||
|
extern void VideoSetSkipChromaDeinterlace(int[]);
|
||||||
|
|
||||||
|
/// Set inverse telecine.
|
||||||
|
extern void VideoSetInverseTelecine(int[]);
|
||||||
|
|
||||||
|
/// Set scaling.
|
||||||
|
extern void VideoSetScaling(int[]);
|
||||||
|
|
||||||
|
/// Set denoise.
|
||||||
|
extern void VideoSetDenoise(int[]);
|
||||||
|
|
||||||
|
/// Set sharpen.
|
||||||
|
extern void VideoSetSharpen(int[]);
|
||||||
|
|
||||||
|
/// Set cut top and bottom.
|
||||||
|
extern void VideoSetCutTopBottom(int[]);
|
||||||
|
|
||||||
|
/// Set cut left and right.
|
||||||
|
extern void VideoSetCutLeftRight(int[]);
|
||||||
|
|
||||||
|
/// Set studio levels.
|
||||||
|
extern void VideoSetStudioLevels(int);
|
||||||
|
|
||||||
|
/// Set background.
|
||||||
|
extern void VideoSetBackground(uint32_t);
|
||||||
|
|
||||||
|
/// Set audio delay.
|
||||||
extern void VideoSetAudioDelay(int);
|
extern void VideoSetAudioDelay(int);
|
||||||
|
|
||||||
/// Clear OSD
|
/// Set auto-crop parameters.
|
||||||
|
extern void VideoSetAutoCrop(int, int, int);
|
||||||
|
|
||||||
|
/// Clear OSD.
|
||||||
extern void VideoOsdClear(void);
|
extern void VideoOsdClear(void);
|
||||||
|
|
||||||
/// Draw an OSD ARGB image
|
/// Draw an OSD ARGB image.
|
||||||
extern void VideoOsdDrawARGB(int, int, int, int, const uint8_t *);
|
extern void VideoOsdDrawARGB(int, int, int, int, const uint8_t *);
|
||||||
|
|
||||||
extern int64_t VideoGetClock(void); ///< get video clock
|
/// Get OSD size.
|
||||||
|
extern void VideoGetOsdSize(int *, int *);
|
||||||
|
|
||||||
extern void VideoOsdInit(void); ///< setup osd
|
/// Set OSD size.
|
||||||
extern void VideoOsdExit(void); ///< cleanup osd
|
extern void VideoSetOsdSize(int, int);
|
||||||
|
|
||||||
extern void VideoInit(const char *); ///< setup video module
|
/// Set video clock.
|
||||||
extern void VideoExit(void); ///< cleanup and exit video module
|
extern void VideoSetClock(VideoHwDecoder *, int64_t);
|
||||||
|
|
||||||
extern void VideoFlushInput(void); ///< flush codec input buffers
|
/// Get video clock.
|
||||||
extern int VideoDecode(void); ///< decode
|
extern int64_t VideoGetClock(const VideoHwDecoder *);
|
||||||
|
|
||||||
|
/// Set closing flag.
|
||||||
|
extern void VideoSetClosing(VideoHwDecoder *);
|
||||||
|
|
||||||
|
/// Reset start of frame counter
|
||||||
|
extern void VideoResetStart(VideoHwDecoder *);
|
||||||
|
|
||||||
|
/// Set trick play speed.
|
||||||
|
extern void VideoSetTrickSpeed(VideoHwDecoder *, int);
|
||||||
|
|
||||||
|
/// Grab screen.
|
||||||
|
extern uint8_t *VideoGrab(int *, int *, int *, int);
|
||||||
|
|
||||||
|
/// Grab screen raw.
|
||||||
|
extern uint8_t *VideoGrabService(int *, int *, int *);
|
||||||
|
|
||||||
|
/// Get decoder statistics.
|
||||||
|
extern void VideoGetStats(VideoHwDecoder *, int *, int *, int *, int *);
|
||||||
|
|
||||||
|
extern void VideoOsdInit(void); ///< Setup osd.
|
||||||
|
extern void VideoOsdExit(void); ///< Cleanup osd.
|
||||||
|
|
||||||
|
extern void VideoInit(const char *); ///< Setup video module.
|
||||||
|
extern void VideoExit(void); ///< Cleanup and exit video module.
|
||||||
|
|
||||||
|
extern int VideoPollInput(void); ///< Poll video input buffers.
|
||||||
|
extern int VideoDecodeInput(void); ///< Decode video input buffers.
|
||||||
|
extern int VideoGetBuffers(void); ///< Get number of input buffers.
|
||||||
|
|
||||||
/// @}
|
/// @}
|
||||||
|
|||||||
Reference in New Issue
Block a user