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/dng_sdk_1_2/dng_sdk/source/dng_simple_image.h#1 $ */ 00010 /* $DateTime: 2008/03/09 14:29:54 $ */ 00011 /* $Change: 431850 $ */ 00012 /* $Author: tknoll $ */ 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 public: 00039 00040 dng_simple_image (const dng_rect &bounds, 00041 uint32 planes, 00042 uint32 pixelType, 00043 uint32 pixelRange, 00044 dng_memory_allocator &allocator); 00045 00046 virtual ~dng_simple_image (); 00047 00049 00050 virtual void SetPixelType (uint32 pixelType); 00051 00053 00054 virtual void SetPixelRange (uint32 pixelRange); 00055 00057 00058 virtual void Trim (const dng_rect &r); 00059 00061 00062 virtual void Rotate (const dng_orientation &orientation); 00063 00065 00066 void GetPixelBuffer (dng_pixel_buffer &buffer) 00067 { 00068 00069 buffer = fBuffer; 00070 00071 } 00072 00073 protected: 00074 00075 virtual void AcquireTileBuffer (dng_tile_buffer &buffer, 00076 const dng_rect &area, 00077 bool dirty) const; 00078 00079 }; 00080 00081 /*****************************************************************************/ 00082 00083 #endif 00084 00085 /*****************************************************************************/ | |||
