~ubuntu-branches/ubuntu/precise/exiv2/precise

« back to all changes in this revision

Viewing changes to src/panasonicmn.cpp

  • Committer: Bazaar Package Importer
  • Author(s): Anthony Mercatante
  • Date: 2006-12-07 18:40:10 UTC
  • mfrom: (1.1.2 upstream)
  • Revision ID: james.westby@ubuntu.com-20061207184010-0ouu8v0dr8nznob9
Tags: 0.12-0ubuntu1
New upstream release

Show diffs side-by-side

added added

removed removed

Lines of Context:
20
20
 */
21
21
/*
22
22
  File:      panasonicmn.cpp
23
 
  Version:   $Rev: 783 $
 
23
  Version:   $Rev: 986 $
24
24
  Author(s): Andreas Huggel (ahu) <ahuggel@gmx.net>
25
25
  History:   11-Jun-04, ahu: created
26
26
  Credits:   See header file
27
27
 */
28
28
// *****************************************************************************
29
29
#include "rcsid.hpp"
30
 
EXIV2_RCSID("@(#) $Id: panasonicmn.cpp 783 2006-05-20 06:55:39Z ahuggel $");
 
30
EXIV2_RCSID("@(#) $Id: panasonicmn.cpp 986 2006-11-21 15:43:11Z ahuggel $")
31
31
 
32
32
// *****************************************************************************
33
33
// included header files
181
181
        TagInfo(0xffff, "(UnknownPanasonicMakerNoteTag)", "(UnknownPanasonicMakerNoteTag)", "Unknown PanasonicMakerNote tag", panasonicIfdId, makerTags, invalidTypeId, printValue)
182
182
    };
183
183
 
 
184
    const TagInfo* PanasonicMakerNote::tagList()
 
185
    {
 
186
        return tagInfo_;
 
187
    }
 
188
 
184
189
    PanasonicMakerNote::PanasonicMakerNote(bool alloc)
185
190
        : IfdMakerNote(panasonicIfdId, alloc, false)
186
191
    {
196
201
    }
197
202
 
198
203
    int PanasonicMakerNote::readHeader(const byte* buf,
199
 
                                       long len,
200
 
                                       ByteOrder byteOrder)
 
204
                                       long        len,
 
205
                                       ByteOrder   /*byteOrder*/)
201
206
    {
202
207
        if (len < 12) return 1;
203
208
 
227
232
 
228
233
    PanasonicMakerNote* PanasonicMakerNote::create_(bool alloc) const
229
234
    {
230
 
        AutoPtr makerNote = AutoPtr(new PanasonicMakerNote(alloc));
 
235
        AutoPtr makerNote(new PanasonicMakerNote(alloc));
231
236
        assert(makerNote.get() != 0);
232
237
        makerNote->readHeader(header_.pData_, header_.size_, byteOrder_);
233
238
        return makerNote.release();
272
277
// *****************************************************************************
273
278
// free functions
274
279
 
275
 
    MakerNote::AutoPtr createPanasonicMakerNote(bool alloc,
276
 
                                           const byte* buf,
277
 
                                           long len,
278
 
                                           ByteOrder byteOrder,
279
 
                                           long offset)
 
280
    MakerNote::AutoPtr createPanasonicMakerNote(bool        alloc,
 
281
                                                const byte* /*buf*/,
 
282
                                                long        /*len*/,
 
283
                                                ByteOrder   /*byteOrder*/,
 
284
                                                long        /*offset*/)
280
285
    {
281
286
        return MakerNote::AutoPtr(new PanasonicMakerNote(alloc));
282
287
    }