Revision 2e18813f
Added by Leszek Koltunski almost 8 years ago
src/main/java/org/distorted/library/EffectQueueOther.java | ||
---|---|---|
6 | 6 |
{ |
7 | 7 |
private static final int NUM_UNIFORMS = 0; |
8 | 8 |
private static final int INDEX = EffectTypes.OTHER.ordinal(); |
9 |
private String[] mFilename; |
|
9 | 10 |
|
10 | 11 |
/////////////////////////////////////////////////////////////////////////////////////////////////// |
11 | 12 |
|
12 | 13 |
public EffectQueueOther(DistortedObject obj) |
13 | 14 |
{ |
14 | 15 |
super(obj,NUM_UNIFORMS, INDEX ); |
16 |
|
|
17 |
if( mMax[INDEX]>0 ) |
|
18 |
{ |
|
19 |
mFilename= new String[mMax[INDEX]]; |
|
20 |
} |
|
15 | 21 |
} |
16 | 22 |
|
17 | 23 |
/////////////////////////////////////////////////////////////////////////////////////////////////// |
18 |
// There are no Uniforms, nothing to move |
|
19 | 24 |
|
20 | 25 |
protected void moveEffect(int index) |
21 | 26 |
{ |
22 |
|
|
27 |
mFilename[index] = mFilename[index+1]; |
|
23 | 28 |
} |
24 | 29 |
|
25 | 30 |
/////////////////////////////////////////////////////////////////////////////////////////////////// |
26 | 31 |
|
27 | 32 |
synchronized void send() |
28 | 33 |
{ |
29 |
|
|
34 |
for(int i=0; i<mNumEffects; i++) |
|
35 |
{ |
|
36 |
if (mType[i] == EffectNames.SAVE_PNG.ordinal() ) |
|
37 |
{ |
|
38 |
// TODO: Implement SAVE_PNG HERE |
|
39 |
} |
|
40 |
else if (mType[i] == EffectNames.SAVE_MP4.ordinal() ) |
|
41 |
{ |
|
42 |
// TODO: Implement SAVE_MP4 HERE |
|
43 |
} |
|
44 |
} |
|
30 | 45 |
} |
31 | 46 |
|
32 | 47 |
/////////////////////////////////////////////////////////////////////////////////////////////////// |
33 | 48 |
|
34 | 49 |
synchronized long add(EffectNames eln, String filename) |
35 | 50 |
{ |
36 |
return 0; |
|
51 |
if( mMax[INDEX]>mNumEffects ) |
|
52 |
{ |
|
53 |
mFilename[mNumEffects] = filename; |
|
54 |
mInterI[mNumEffects] = null; |
|
55 |
mInterP[mNumEffects] = null; |
|
56 |
|
|
57 |
return addBase(eln); |
|
58 |
} |
|
59 |
|
|
60 |
return -1; |
|
37 | 61 |
} |
38 | 62 |
} |
Also available in: Unified diff
Beginnings of support for the SavePNG effect.