Debian Codegraph @

samples/qtvidcap/TODO

raw
1 configure.in:941 profiling
2
3 known bugs or problems or misbehaviour of avicap:
4
5 * general: sometimes avicap freezes X at startup (alex,0.7.x)
6 * recording: A/V-delay in written files (alex,0.7.x)
7 * recording: segments not at keyframe
8 * codecs:
9 - divx 3.11 : can't set bitrate, he records with 910kbps
10 - divx 3.11 VKI: can't set bitrate, he records with 1500kbps
11 - ffmpeg: does not record any video
12 - strong colors 'flicker' when recording in yv12 and divx3.11
13 * general: overlay is often on top of other windows
14 * timertable: problem when recording is around datechange
15 * epg: drawing bugs
16
17
18
19 bug:when picture properties come up with timertable recording
20 video recording stops?
21 bug:if recording goes on to the next day, it isnt stopped
22 bug: the first recording in every day&channel doesnt get added
23
24 bug: avicap crashes after timertable recording with mini-window,
25 when miniwindow gets closed
26 fix: Qt2.0/3 compatible
27 fix: re-layout timertable/config
28 feature: zapping mode
29 feature: zapping while recording
30 option: set channel at startup when untuned
31 feature: web interface
32 fix: zapping breaks recording
33 fix: window close breaks recording
34 feature: asymmetrical rec. sizes/custom sizes
35 fix? compare get_clips with mplayer/xawtv
36 fix? overlay mode
37 fix? is get_clips() called every time it would be necessary?
38 option: beep on framedrop
39 feature: epg interface
40 fix: stop using char buf[] in timertable
41 fix: every day should be automatic
42 fix: more filename-completion modes
43 fix: segment() should respect dirpool too
44
45 never overwrite existing files:
46 lib/aviwrite/AviWrite.cpp Segment() init()
47 capproc.cpp:614 segment()
48
49
50 a/v-delay:
51
52 CVS capproc.cpp :538 timestamp_shift
53 :738 audio_error
54
55 0.6.0 capproc.cpp:570 audio_error
56
57 dsp.cpp:sync()
58
59 v4lxif.cpp:559 gsync, VIDIOCSYNC
60
61
62 ----------------
63
64 aviplay_impl.h:
65
66 class AviPlayer: public IAviPlayer2
67 static void* constructThread(void* arg);
68 void* constructThreadfunc();
69 void construct();
70 int lockThreads(const char *name = 0);
71 void unlockThreads(void);
72 int checkSync(ThreadId);
73 int drawFrame(bool aseek = true);
74 void syncFrame();
75 void changePriority(const char* taskName, int add, int schedt = 0);
76
77 float getVideoAsync();
78 bool dropFrame();
79 void setQuality();
80
81 void* videoThread();
82 void* audioThread();
83 void* decoderThread();
84 static void* startVideoThread(void* arg);
85 static void* startAudioThread(void* arg);
86 static void* startDecoderThread(void* arg);
87 avm::vector<IVideoRenderer*> m_VideoRenderers; // we could draw image to more places
88 PthreadTask* m_pVideoThread; // performs video output and sync
89 PthreadTask* m_pAudioThread; // performs audio output and sync
90 PthreadTask* m_pDecoderThread; // performs video decompression and cachi
91
92
93
94 aviplay.h:
95
96 class IAviPlayer
97
98 class IAviPlayer2: public IAviPlayer
99 {
100
101 IAviPlayer* CreateAviPlayer(const char* filename, int bitdepth,
102 const char* subfile = 0, unsigned int flags = 0,
103 // vcodec & acodec are going to be supported
104 const char* vcodec = 0, const char* acodec = 0);
105 IAviPlayer2* CreateAviPlayer2(IPlayerWidget*, void* dpy, const char* filename,
106 const char* subname, unsigned int flags = 0,
107 // vcodec & acodec are going to be supported
108 const char* vcodec = 0, const char* acodec = 0);
109
110
111 class IVideoRenderer : public IImageAllocator
112 {
113 /**
114 * Issues the request to draw the image in the window memory
115 * might be empty when direct rendering is being used
116 */
117 virtual int Draw(const CImage* data) = 0;
118 IVideoRenderer* CreateFullscreenRenderer(IPlayerWidget*, void* dpy,
119 int width, int height, bool sub = false);
120 /**
121 * Creates SDL video renderer for YUV data in format yuv_fmt.
122 * If it fails ( e.g. because yuv_fmt is not supported by X server
123 * and VideoRenderer::allow_sw_yuv==false ), returns pointer to
124 * 'ordinary' fullscreen renderer and puts 0 into yuv_fmt.
125 */
126 IVideoRenderer* CreateYUVRenderer(IPlayerWidget*, void* dpy,
127 int width, int height,
128 fourcc_t yuv_fmt, bool sub = false);
129 /*
130 VideoRenderer* CreateXvYUVRenderer(PlayerWidget*, void* dpy,
131 int width, int height,
132 fourcc_t yuv_fmt, bool sub = false);
133 */
134
135
136 static inline VideoRenderer* CreateFullscreenRenderer(avm::IPlayerWidget* pw, void* dpy,
137 int width, int height, bool sub = false)
138 {
139 return avm::CreateFullscreenRenderer(pw, dpy, width, height, sub);
140 }
141
142 static inline VideoRenderer* CreateYUVRenderer(avm::IPlayerWidget* pw, void* dpy,
143 int width, int height,
144 fourcc_t yuv_fmt, bool sub = false)
145 {
146 return avm::CreateYUVRenderer(pw, dpy, width, height, yuv_fmt, sub);
147 }
148
149 #endif // X_DISPLAY_MISSING
150
151
152 aviplay.cpp:
153
154 IAviPlayer* CreateAviPlayer(const char* filename, int bitdepth, const char* subname,
155 unsigned long flags,
156 const char* vcodec, const char* acodec)
157 {
158 return new AviPlayer(filename, bitdepth, subname, flags,
159 vcodec, acodec);
160 }
161
162 class AviPlayer2: public AviPlayer, public IPlayerWidget
163 {
164 IPlayerWidget* m_pPW;
165 void* m_pDpy;
166 int m_iResizeCount;
167 int zx, zy, zw, zh;
168 public:
169 AviPlayer2(IPlayerWidget* pw, void* _dpy,
170 const char* filename, const char* subname,
171 unsigned int flags,
172 const char* vcodec, const char* acodec)
173 :
174 AviPlayer(filename, GetPhysicalDepth(_dpy), subname, flags,
175 vcodec, acodec)
176 ,m_pPW(pw), m_pDpy(_dpy), m_iResizeCount(1),
177 zx(0), zy(0), zw(0), zh(0)