|
Revision 9827, 1.3 kB
(checked in by robert, 4 years ago)
|
|
Introduced osg::AudioStream? class to help manage audio streams coming in from movie reading plugins
|
-
Property svn:eol-style set to
native
-
Property svn:keywords set to
Author Date Id Revision
|
| Line | |
|---|
| 1 | |
|---|
| 2 | |
|---|
| 3 | |
|---|
| 4 | |
|---|
| 5 | |
|---|
| 6 | |
|---|
| 7 | |
|---|
| 8 | |
|---|
| 9 | |
|---|
| 10 | |
|---|
| 11 | |
|---|
| 12 | |
|---|
| 13 | |
|---|
| 14 | #include <osg/ImageStream> |
|---|
| 15 | |
|---|
| 16 | using namespace osg; |
|---|
| 17 | |
|---|
| 18 | ImageStream::ImageStream(): |
|---|
| 19 | _status(INVALID), |
|---|
| 20 | _loopingMode(LOOPING) |
|---|
| 21 | { |
|---|
| 22 | setDataVariance(DYNAMIC); |
|---|
| 23 | |
|---|
| 24 | #ifndef __APPLE__ |
|---|
| 25 | |
|---|
| 26 | |
|---|
| 27 | setPixelBufferObject(new PixelBufferObject(this)); |
|---|
| 28 | #endif |
|---|
| 29 | |
|---|
| 30 | } |
|---|
| 31 | |
|---|
| 32 | ImageStream::ImageStream(const ImageStream& image,const CopyOp& copyop): |
|---|
| 33 | Image(image,copyop), |
|---|
| 34 | _status(image._status), |
|---|
| 35 | _loopingMode(image._loopingMode), |
|---|
| 36 | _audioStreams(image._audioStreams) |
|---|
| 37 | { |
|---|
| 38 | } |
|---|
| 39 | |
|---|
| 40 | int ImageStream::compare(const Image& rhs) const |
|---|
| 41 | { |
|---|
| 42 | return Image::compare(rhs); |
|---|
| 43 | } |
|---|