annotate loader/dshow/outputpin.h @ 2895:dd3fabd01df0

temp denoiser changes: (a-b)^2 instead of |a-b| and MMX2/3DNOW version
author michael
date Wed, 14 Nov 2001 02:46:58 +0000
parents da26060c81ef
children 213b35f84cf3
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
1545
da26060c81ef big avifile sync - from now we have common code
arpi
parents: 713
diff changeset
1 #ifndef DS_OUTPUTPIN_H
da26060c81ef big avifile sync - from now we have common code
arpi
parents: 713
diff changeset
2 #define DS_OUTPUTPIN_H
168
bdc4a8fc04d8 Initial revision
arpi_esp
parents:
diff changeset
3
1545
da26060c81ef big avifile sync - from now we have common code
arpi
parents: 713
diff changeset
4 /* "output pin" - the one that connects to output of filter. */
da26060c81ef big avifile sync - from now we have common code
arpi
parents: 713
diff changeset
5
168
bdc4a8fc04d8 Initial revision
arpi_esp
parents:
diff changeset
6 #include "interfaces.h"
bdc4a8fc04d8 Initial revision
arpi_esp
parents:
diff changeset
7 #include "guids.h"
713
9355b2ae634e avifile-0.6-CVS merge
arpi_esp
parents: 168
diff changeset
8 #include "allocator.h"
1545
da26060c81ef big avifile sync - from now we have common code
arpi
parents: 713
diff changeset
9
da26060c81ef big avifile sync - from now we have common code
arpi
parents: 713
diff changeset
10 struct COutputPin;
da26060c81ef big avifile sync - from now we have common code
arpi
parents: 713
diff changeset
11
da26060c81ef big avifile sync - from now we have common code
arpi
parents: 713
diff changeset
12 struct COutputMemPin : public IMemInputPin
168
bdc4a8fc04d8 Initial revision
arpi_esp
parents:
diff changeset
13 {
bdc4a8fc04d8 Initial revision
arpi_esp
parents:
diff changeset
14 char** frame_pointer;
bdc4a8fc04d8 Initial revision
arpi_esp
parents:
diff changeset
15 long* frame_size_pointer;
713
9355b2ae634e avifile-0.6-CVS merge
arpi_esp
parents: 168
diff changeset
16 MemAllocator* pAllocator;
1545
da26060c81ef big avifile sync - from now we have common code
arpi
parents: 713
diff changeset
17 COutputPin* parent;
da26060c81ef big avifile sync - from now we have common code
arpi
parents: 713
diff changeset
18 };
da26060c81ef big avifile sync - from now we have common code
arpi
parents: 713
diff changeset
19
da26060c81ef big avifile sync - from now we have common code
arpi
parents: 713
diff changeset
20 struct COutputPin : public IPin
da26060c81ef big avifile sync - from now we have common code
arpi
parents: 713
diff changeset
21 {
da26060c81ef big avifile sync - from now we have common code
arpi
parents: 713
diff changeset
22 COutputMemPin* mempin;
da26060c81ef big avifile sync - from now we have common code
arpi
parents: 713
diff changeset
23 int refcount;
da26060c81ef big avifile sync - from now we have common code
arpi
parents: 713
diff changeset
24 AM_MEDIA_TYPE type;
da26060c81ef big avifile sync - from now we have common code
arpi
parents: 713
diff changeset
25 IPin* remote;
168
bdc4a8fc04d8 Initial revision
arpi_esp
parents:
diff changeset
26 COutputPin(const AM_MEDIA_TYPE& vhdr);
713
9355b2ae634e avifile-0.6-CVS merge
arpi_esp
parents: 168
diff changeset
27 ~COutputPin();
1545
da26060c81ef big avifile sync - from now we have common code
arpi
parents: 713
diff changeset
28 void SetFramePointer(char** z) { mempin->frame_pointer = z; }
da26060c81ef big avifile sync - from now we have common code
arpi
parents: 713
diff changeset
29 void SetPointer2(char* p) {
da26060c81ef big avifile sync - from now we have common code
arpi
parents: 713
diff changeset
30 if (mempin->pAllocator)
da26060c81ef big avifile sync - from now we have common code
arpi
parents: 713
diff changeset
31 mempin->pAllocator->SetPointer(p);
da26060c81ef big avifile sync - from now we have common code
arpi
parents: 713
diff changeset
32 }
da26060c81ef big avifile sync - from now we have common code
arpi
parents: 713
diff changeset
33 void SetFrameSizePointer(long* z) { mempin->frame_size_pointer = z; }
da26060c81ef big avifile sync - from now we have common code
arpi
parents: 713
diff changeset
34 void SetNewFormat(const AM_MEDIA_TYPE& a) { type = a; }
da26060c81ef big avifile sync - from now we have common code
arpi
parents: 713
diff changeset
35 };
168
bdc4a8fc04d8 Initial revision
arpi_esp
parents:
diff changeset
36
1545
da26060c81ef big avifile sync - from now we have common code
arpi
parents: 713
diff changeset
37 #endif /* DS_OUTPUTPIN_H */