~ubuntu-branches/ubuntu/hoary/kdemultimedia/hoary

« back to all changes in this revision

Viewing changes to mpeglib/lib/util/render/imageBase.cpp

  • Committer: Bazaar Package Importer
  • Author(s): Martin Schulze
  • Date: 2003-01-22 15:00:51 UTC
  • Revision ID: james.westby@ubuntu.com-20030122150051-uihwkdoxf15mi1tn
Tags: upstream-2.2.2
ImportĀ upstreamĀ versionĀ 2.2.2

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/*
 
2
  base clase for X11 images (stores important parameters and dither pic)
 
3
  Copyright (C) 2000  Martin Vogt
 
4
 
 
5
  This program is free software; you can redistribute it and/or modify
 
6
  it under the terms of the GNU Library General Public License as published by
 
7
  the Free Software Foundation.
 
8
 
 
9
  For more information look at the file COPYRIGHT in this package
 
10
 
 
11
 */
 
12
 
 
13
 
 
14
#include "imageBase.h"
 
15
 
 
16
 
 
17
ImageBase::ImageBase() {
 
18
        identifier = NULL;
 
19
}
 
20
 
 
21
 
 
22
ImageBase::~ImageBase() {
 
23
        if (identifier != NULL)
 
24
                delete [] identifier;
 
25
}
 
26
 
 
27
void ImageBase::init(XWindow* xWindow, YUVPicture*)
 
28
{
 
29
  cout << "direct virtual call: ImageBase::init  "<<endl;
 
30
}
 
31
 
 
32
int ImageBase::support() {
 
33
  cout << "direct virtual call: ImageBase::support  "<<endl;
 
34
  return false;
 
35
}
 
36
 
 
37
int ImageBase::openImage(int)  {
 
38
  cout << "direct virtual call: ImageBase::openImage  "<<endl;
 
39
  return false;
 
40
}
 
41
 
 
42
 
 
43
int ImageBase::closeImage(){
 
44
  cout << "direct virtual call: ImageBase::closeImage  "<<endl;
 
45
  return false;
 
46
}
 
47
 
 
48
void ImageBase::ditherImage(YUVPicture*) {
 
49
  cout << "direct virtual call: ImageBase::ditherImage  "<<endl;
 
50
}
 
51
 
 
52
 
 
53
void ImageBase::putImage() {
 
54
  cout << "direct virtual call: ImageBase::putImage  "<<endl;
 
55
}
 
56
 
 
57
void ImageBase::putImage(int ,int ) {
 
58
  cout << "direct virtual call: ImageBase::putImage(w,h)  "<<endl;
 
59
}
 
60
 
 
61
void ImageBase::setIdentifier(const char *id)
 
62
{
 
63
        if (identifier != NULL)
 
64
                delete [] identifier;
 
65
 
 
66
        identifier = new char [strlen(id) + 1];
 
67
        strcpy(identifier, id);
 
68
}
 
69
 
 
70
char *ImageBase::getIdentifier()
 
71
{
 
72
        return identifier;
 
73
}