arwfile.cpp
00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022 #include <libopenraw/libopenraw.h>
00023 #include <libopenraw++/thumbnail.h>
00024
00025 #include "debug.h"
00026 #include "io/file.h"
00027 #include "ifdfilecontainer.h"
00028 #include "ifd.h"
00029 #include "arwfile.h"
00030
00031 using namespace Debug;
00032
00033 namespace OpenRaw {
00034
00035
00036 namespace Internals {
00037
00038 RawFile *ARWFile::factory(const char* _filename)
00039 {
00040 return new ARWFile(_filename);
00041 }
00042
00043 ARWFile::ARWFile(const char* _filename)
00044 : IFDFile(_filename, OR_RAWFILE_TYPE_ARW)
00045 {
00046
00047 }
00048
00049 ARWFile::~ARWFile()
00050 {
00051 }
00052
00053 IFDDir::Ref ARWFile::_locateCfaIfd()
00054 {
00055
00056 if(!m_mainIfd) {
00057 m_mainIfd = _locateMainIfd();
00058 }
00059 return m_mainIfd;
00060 }
00061
00062
00063 IFDDir::Ref ARWFile::_locateMainIfd()
00064 {
00065 return m_container->setDirectory(0);
00066 }
00067
00068 ::or_error ARWFile::_getRawData(RawData & , uint32_t )
00069 {
00070 return OR_ERROR_NOT_FOUND;
00071 }
00072
00073 }
00074 }