author | zecke <zecke> | 2002-07-01 23:00:43 (UTC) |
---|---|---|
committer | zecke <zecke> | 2002-07-01 23:00:43 (UTC) |
commit | 8863cf6b20e881e638e8a3cdb18709ecc8201d51 (patch) (unidiff) | |
tree | 23012f54bd75a76ac11f8c720d1e81850c3d3689 /noncore/multimedia/opieplayer2/frame.cpp | |
parent | b34df43c4d141b6845a6251e8f52f7daf3d1a867 (diff) | |
download | opie-8863cf6b20e881e638e8a3cdb18709ecc8201d51.zip opie-8863cf6b20e881e638e8a3cdb18709ecc8201d51.tar.gz opie-8863cf6b20e881e638e8a3cdb18709ecc8201d51.tar.bz2 |
Hija,
first bits of a XINE C++ lib for the OpieMediaPlayer
Diffstat (limited to 'noncore/multimedia/opieplayer2/frame.cpp') (more/less context) (ignore whitespace changes)
-rw-r--r-- | noncore/multimedia/opieplayer2/frame.cpp | 51 |
1 files changed, 51 insertions, 0 deletions
diff --git a/noncore/multimedia/opieplayer2/frame.cpp b/noncore/multimedia/opieplayer2/frame.cpp new file mode 100644 index 0000000..3a3e418 --- a/dev/null +++ b/noncore/multimedia/opieplayer2/frame.cpp | |||
@@ -0,0 +1,51 @@ | |||
1 | |||
2 | #include "frame.h" | ||
3 | |||
4 | using namespace XINE; | ||
5 | |||
6 | Frame::Frame() { | ||
7 | m_height = 0; | ||
8 | m_width = 0; | ||
9 | m_ratioCode = 0; | ||
10 | m_format = 0; | ||
11 | m_u = 0; | ||
12 | m_y = 0; | ||
13 | m_v = 0; | ||
14 | } | ||
15 | Frame::Frame( int *width, int* height, | ||
16 | int *ratio_code, int *format, | ||
17 | uint8_t **y, uint8_t **u, | ||
18 | uint8_t **v ) { | ||
19 | m_width = width; | ||
20 | m_height = height; | ||
21 | m_ratioCode = ratio_code ; | ||
22 | m_format = format; | ||
23 | m_y = y; | ||
24 | m_u = u; | ||
25 | m_v = v; | ||
26 | } | ||
27 | Frame::~Frame() { | ||
28 | |||
29 | |||
30 | } | ||
31 | void Frame::setHeight( int* height ) { | ||
32 | m_height = height; | ||
33 | } | ||
34 | void Frame::setWidth( int* width ) { | ||
35 | m_width = width; | ||
36 | } | ||
37 | void Frame::setRatioCode( int* ratio ) { | ||
38 | m_ratioCode = ratio; | ||
39 | } | ||
40 | void Frame::setFormat( int* format ) { | ||
41 | m_format = format; | ||
42 | } | ||
43 | void Frame::setU( uint8_t** u ) { | ||
44 | m_u = u; | ||
45 | } | ||
46 | void Frame::setY( uint8_t** y ) { | ||
47 | m_y = y; | ||
48 | } | ||
49 | void Frame::setV( uint8_t** v ) { | ||
50 | m_v = v; | ||
51 | } | ||