00001 /********** 00002 Software License Agreement (BSD License) 00003 00004 Copyright (c) 2008, Meraka Institute 00005 All rights reserved. 00006 00007 Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: 00008 00009 * Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer. 00010 * Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution. 00011 * Neither the name of the Meraka Institute nor the names of its contributors may be used to endorse or promote products derived from this software without specific prior written permission. 00012 00013 THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS 00014 "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT 00015 LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR 00016 A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR 00017 CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, 00018 EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, 00019 PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR 00020 PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF 00021 LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING 00022 NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS 00023 SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 00024 **********/ 00025 #pragma once 00026 00027 #include <vector> 00028 00029 typedef std::vector<GUID*> GUID_LIST; 00030 00031 const int BYTES_PER_PIXEL_RGB24 = 3; 00032 const int BYTES_PER_PIXEL_RGB32 = 4; 00033 const double BYTES_PER_PIXEL_YUV420P = 1.5; 00034 00035 #define IN_COLOUR_RGB24 "0" 00036 #define IN_COLOUR_YUV420P "16" 00037 00038 #define IMAGE_WIDTH "width" 00039 #define IMAGE_HEIGHT "height" 00040 00041 // Scale filter 00042 #define TARGET_WIDTH "targetwidth" 00043 #define TARGET_HEIGHT "targetheight" 00044 00045 // Crop filter 00046 #define TOP_CROP "topcrop" 00047 #define BOTTOM_CROP "bottomcrop" 00048 #define LEFT_CROP "leftcrop" 00049 #define RIGHT_CROP "rightcrop" 00050