Changeset 12831
- Timestamp:
- Apr 13, 2007, 5:01:11 PM (19 years ago)
- Location:
- trunk/psModules/src/camera
- Files:
-
- 2 edited
-
pmFPAfileDefine.c (modified) (10 diffs)
-
pmFPAfileDefine.h (modified) (10 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/psModules/src/camera/pmFPAfileDefine.c
r12762 r12831 19 19 20 20 // define an input-type pmFPAfile, bind to the optional fpa if supplied 21 pmFPAfile *pmFPAfileDefineInput( pmConfig *config, pmFPA *fpa, const char *name)21 pmFPAfile *pmFPAfileDefineInput(const pmConfig *config, pmFPA *fpa, const char *name) 22 22 { 23 23 PS_ASSERT_PTR_NON_NULL(config, NULL); … … 104 104 105 105 // define a pmFPAfile, bind to the optional fpa if supplied 106 pmFPAfile *pmFPAfileDefineOutput( pmConfig *config, pmFPA *fpa, const char *name)106 pmFPAfile *pmFPAfileDefineOutput(const pmConfig *config, pmFPA *fpa, const char *name) 107 107 { 108 108 PS_ASSERT_PTR_NON_NULL(config, NULL); … … 237 237 // save the pmFPAfile on config->files 238 238 // return the pmFPAfile (a view to the one saved on config->files) 239 pmFPAfile *pmFPAfileDefineFromArgs (bool *found, pmConfig *config, const char *filename, const char *argname)239 pmFPAfile *pmFPAfileDefineFromArgs(bool *found, pmConfig *config, const char *filename, const char *argname) 240 240 { 241 241 PS_ASSERT_PTR_NON_NULL(config, NULL); … … 406 406 // save the pmFPAfile on config->files 407 407 // return the pmFPAfile (a view to the one saved on config->files) 408 pmFPAfile *pmFPAfileBindFromArgs (bool *found, pmFPAfile *input, pmConfig *config, const char *filename, const char *argname)408 pmFPAfile *pmFPAfileBindFromArgs (bool *found, pmFPAfile *input, const pmConfig *config, const char *filename, const char *argname) 409 409 { 410 410 PS_ASSERT_PTR_NON_NULL(input, NULL); … … 641 641 // define the named pmFPAfile from the camera->config 642 642 // only valid for pmFPAfile->mode = READ 643 pmFPAfile *pmFPAfileDefineFromConf (bool *found, pmConfig *config, const char *filename)643 pmFPAfile *pmFPAfileDefineFromConf (bool *found, const pmConfig *config, const char *filename) 644 644 { 645 645 PS_ASSERT_PTR_NON_NULL(config, false); … … 703 703 // save the pmFPAfile on config->files 704 704 // return the pmFPAfile (a view to the one saved on config->files) 705 pmFPAfile *pmFPAfileDefineFromDetDB (bool *found, pmConfig *config, const char *filename,705 pmFPAfile *pmFPAfileDefineFromDetDB (bool *found, const pmConfig *config, const char *filename, 706 706 pmFPA *input, pmDetrendType type) 707 707 { … … 860 860 // create a new output pmFPAfile based on an existing FPA 861 861 // only valid for pmFPAfile->mode == WRITE (or internal?) 862 pmFPAfile *pmFPAfileDefineFromFPA ( pmConfig *config, pmFPA *src, int xBin, int yBin, const char *filename)862 pmFPAfile *pmFPAfileDefineFromFPA (const pmConfig *config, pmFPA *src, int xBin, int yBin, const char *filename) 863 863 { 864 864 PS_ASSERT_PTR_NON_NULL(config, false); … … 896 896 // create a new output pmFPAfile based on an existing FPA 897 897 // only valid for pmFPAfile->mode == WRITE (or internal?) 898 pmFPAfile *pmFPAfileDefineNewCamera ( pmConfig *config, const char *filename)898 pmFPAfile *pmFPAfileDefineNewCamera (const pmConfig *config, const char *filename) 899 899 { 900 900 PS_ASSERT_PTR_NON_NULL(config, false); … … 915 915 } 916 916 917 pmFPAfile *pmFPAfileDefineChipMosaic( pmConfig *config, pmFPA *src, const char *filename)917 pmFPAfile *pmFPAfileDefineChipMosaic(const pmConfig *config, pmFPA *src, const char *filename) 918 918 { 919 919 PS_ASSERT_PTR_NON_NULL(config, NULL); … … 989 989 } 990 990 991 pmFPAfile *pmFPAfileDefineFPAMosaic( pmConfig *config, pmFPA *src, const char *filename)991 pmFPAfile *pmFPAfileDefineFPAMosaic(const pmConfig *config, pmFPA *src, const char *filename) 992 992 { 993 993 PS_ASSERT_PTR_NON_NULL(config, NULL); -
trunk/psModules/src/camera/pmFPAfileDefine.h
r12696 r12831 4 4 * @author EAM, IfA 5 5 * 6 * @version $Revision: 1. 9$ $Name: not supported by cvs2svn $7 * @date $Date: 2007-0 3-30 21:12:56$6 * @version $Revision: 1.10 $ $Name: not supported by cvs2svn $ 7 * @date $Date: 2007-04-14 03:01:11 $ 8 8 * Copyright 2004-2005 Institute for Astronomy, University of Hawaii 9 9 */ … … 19 19 // Note that the returned pmFPAfile is a view only, so it should not be freed by the caller --- the only 20 20 // reference count is held by the config->files metadata. 21 pmFPAfile *pmFPAfileDefineInput ( pmConfig *config, pmFPA *fpa, const char *name);21 pmFPAfile *pmFPAfileDefineInput (const pmConfig *config, pmFPA *fpa, const char *name); 22 22 23 23 // load the pmFPAfile information from the camera configuration data … … 25 25 // Note that the returned pmFPAfile is a view only, so it should not be freed by the caller --- the only 26 26 // reference count is held by the config->files metadata. 27 pmFPAfile *pmFPAfileDefineOutput ( pmConfig *config, pmFPA *fpa, const char *name);27 pmFPAfile *pmFPAfileDefineOutput (const pmConfig *config, pmFPA *fpa, const char *name); 28 28 29 29 // look for the given argname on the argument list. find the give filename from the file rules … … 37 37 // Note that the returned pmFPAfile is a view only, so it should not be freed by the caller --- the only 38 38 // reference count is held by the config->files metadata. 39 pmFPAfile *pmFPAfileBindFromArgs (bool *found, pmFPAfile *input, pmConfig *config, const char *filename, const char *argname);39 pmFPAfile *pmFPAfileBindFromArgs (bool *found, pmFPAfile *input, const pmConfig *config, const char *filename, const char *argname); 40 40 41 41 // look for the given argname on the argument list. find the give filename from the file rules … … 43 43 // Note that the returned pmFPAfile is a view only, so it should not be freed by the caller --- the only 44 44 // reference count is held by the config->files metadata. 45 pmFPAfile *pmFPAfileDefineFromConf (bool *found, pmConfig *config, const char *filename);45 pmFPAfile *pmFPAfileDefineFromConf (bool *found, const pmConfig *config, const char *filename); 46 46 47 47 // look for the given argname on the argument list. find the give filename from the file rules … … 49 49 // Note that the returned pmFPAfile is a view only, so it should not be freed by the caller --- the only 50 50 // reference count is held by the config->files metadata. 51 pmFPAfile *pmFPAfileDefineFromDetDB (bool *found, pmConfig *config, const char *filename,51 pmFPAfile *pmFPAfileDefineFromDetDB (bool *found, const pmConfig *config, const char *filename, 52 52 pmFPA *input, pmDetrendType type); 53 53 … … 56 56 // Note that the returned pmFPAfile is a view only, so it should not be freed by the caller --- the only 57 57 // reference count is held by the config->files metadata. 58 pmFPAfile *pmFPAfileDefineFromFPA ( pmConfig *config, pmFPA *src, int xBin, int yBin, const char *filename);58 pmFPAfile *pmFPAfileDefineFromFPA (const pmConfig *config, pmFPA *src, int xBin, int yBin, const char *filename); 59 59 60 60 // create a new output pmFPAfile based on an existing FPA … … 63 63 // Note that the returned pmFPAfile is a view only, so it should not be freed by the caller --- the only 64 64 // reference count is held by the config->files metadata. 65 pmFPAfile *pmFPAfileDefineNewCamera ( pmConfig *config, const char *filename);65 pmFPAfile *pmFPAfileDefineNewCamera (const pmConfig *config, const char *filename); 66 66 67 67 /// Create a new output pmFPAfile based upon a chip mosaic of an existing FPA … … 69 69 /// The new pmFPAfile is inserted into the config->files metadata, freed and returned; so that the user does 70 70 /// not have to (and should not!) free the result. 71 pmFPAfile *pmFPAfileDefineChipMosaic( pmConfig *config, ///< Configuration data71 pmFPAfile *pmFPAfileDefineChipMosaic(const pmConfig *config, ///< Configuration data 72 72 pmFPA *src, ///< Source FPA 73 73 const char *filename ///< Output (root) filename … … 78 78 /// The new pmFPAfile is inserted into the config->files metadata, freed and returned; so that the user does 79 79 /// not have to (and should not!) free the result. 80 pmFPAfile *pmFPAfileDefineFPAMosaic( pmConfig *config, ///< Configuration data80 pmFPAfile *pmFPAfileDefineFPAMosaic(const pmConfig *config, ///< Configuration data 81 81 pmFPA *src, ///< Source FPA 82 82 const char *filename ///< Output (root) filename
Note:
See TracChangeset
for help on using the changeset viewer.
