Implemented TIFF LZW compression

This commit is contained in:
sashavasko
2010-05-10 17:51:05 -06:00
parent 114215e366
commit 7d846c4d26
40 changed files with 123 additions and 38 deletions

View File

@@ -167,7 +167,7 @@ void TagDirectory::replaceTag (Tag* tag) {
tags.push_back (tag);
}
Tag* TagDirectory::getTag (int ID) {
Tag* TagDirectory::getTag (int ID) const {
for (int i=0; i<tags.size(); i++)
if (tags[i]->getID()==ID)
@@ -175,7 +175,7 @@ Tag* TagDirectory::getTag (int ID) {
return NULL;
}
Tag* TagDirectory::getTag (const char* name) {
Tag* TagDirectory::getTag (const char* name) const {
if (attribs) {
for (int i=0; attribs[i].ignore!=-1; i++)

View File

@@ -74,8 +74,8 @@ class TagDirectory {
const TagAttrib* getAttrib (int id);
const TagAttrib* getAttrib (const char* name);
const TagAttrib* getAttribTable() { return attribs; }
Tag* getTag (const char* name);
Tag* getTag (int ID);
Tag* getTag (const char* name) const;
Tag* getTag (int ID) const;
void addTag (Tag* a);
void addTagFront (Tag* a);
void replaceTag (Tag* a);