-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathTransition.cpp
More file actions
54 lines (40 loc) · 915 Bytes
/
Transition.cpp
File metadata and controls
54 lines (40 loc) · 915 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
#include "Transition.h"
Transition::Transition(AVObject *f, AVObject *t, unsigned int fr)
{
this->setFrames(fr);
this->setAVFrom(f);
this->setAVTo(t);
frameCounter = 0;
this->allocFrame();
}
Transition::~Transition(void)
{
delete fromAV;
delete toAV;
}
void Transition::setAVFrom (AVObject *s)
{
fromAV = s;
this->setFrameRate(s->getFrameRate());
this->setSampleAspect(s->getSampleAspect());
this->setHeight(s->getHeight());
this->setWidth(s->getWidth());
this->setChromaSampling(s->getChromaSampling());
// we don't get interlace information until the first frame is decoded.
/*
this->setInterlaced(s->getIsInterlaced());
this->setInterlaceTopFieldFirst(s->getInterlaceTopFieldFirst());
*/
}
void Transition::setAVTo (AVObject *s)
{
toAV = s;
}
void Transition::setFrames(unsigned int f)
{
frames = f;
}
void Transition::open (void) {
fromAV->open();
toAV->open();
}