DocumentationOverviewBuilding ASL Documentation Library Wiki Docs Indices Browse Perforce More InfoRelease NotesWiki Site Search License Success Stories Contributors MediaDownloadPerforce Depots SupportASL SourceForge HomeMailing Lists Discussion Forums Report Bugs Suggest Features Contribute to ASL RSSShort-text newsFull-text news File releases Other Adobe ProjectsAdobe AirAdobe GIL Adobe Labs Adobe Media Gallery Adobe XMP Tamarin project (Mozilla Foundation) Other ResourcesBoostRIAForge SGI STL |
dng_simple_image.h00001 /*****************************************************************************/ 00002 // Copyright 2006-2008 Adobe Systems Incorporated 00003 // All Rights Reserved. 00004 // 00005 // NOTICE: Adobe permits you to use, modify, and distribute this file in 00006 // accordance with the terms of the Adobe license agreement accompanying it. 00007 /*****************************************************************************/ 00008 00009 /* $Id: //mondo/workarea/stern/camera_raw/dng_sdk/source/dng_simple_image.h#9 $ */ 00010 /* $DateTime: 2008/10/20 18:28:15 $ */ 00011 /* $Change: 514646 $ */ 00012 /* $Author: stern $ */ 00013 00014 /*****************************************************************************/ 00015 00016 #ifndef __dng_simple_image__ 00017 #define __dng_simple_image__ 00018 00019 /*****************************************************************************/ 00020 00021 #include "dng_auto_ptr.h" 00022 #include "dng_image.h" 00023 #include "dng_pixel_buffer.h" 00024 00025 /*****************************************************************************/ 00026 00028 00029 class dng_simple_image : public dng_image 00030 { 00031 00032 protected: 00033 00034 dng_pixel_buffer fBuffer; 00035 00036 AutoPtr<dng_memory_block> fMemory; 00037 00038 dng_memory_allocator &fAllocator; 00039 00040 public: 00041 00042 dng_simple_image (const dng_rect &bounds, 00043 uint32 planes, 00044 uint32 pixelType, 00045 dng_memory_allocator &allocator); 00046 00047 virtual ~dng_simple_image (); 00048 00049 virtual dng_image * Clone () const; 00050 00052 00053 virtual void SetPixelType (uint32 pixelType); 00054 00056 00057 virtual void Trim (const dng_rect &r); 00058 00060 00061 virtual void Rotate (const dng_orientation &orientation); 00062 00064 00065 void GetPixelBuffer (dng_pixel_buffer &buffer) 00066 { 00067 buffer = fBuffer; 00068 } 00069 00070 protected: 00071 00072 virtual void AcquireTileBuffer (dng_tile_buffer &buffer, 00073 const dng_rect &area, 00074 bool dirty) const; 00075 00076 }; 00077 00078 /*****************************************************************************/ 00079 00080 #endif 00081 00082 /*****************************************************************************/ |