2008-07-31, 05:39
How do I show a picture's name / EXIF info?
kraqh3d Wrote:i think its whatever the "info" action is mapped to. you'll have to look at the keymap.xml file for the slideshow section. on the remote its probably info, or title.
if (info.Equals("filename")) return SLIDE_FILE_NAME;
else if (info.Equals("path")) return SLIDE_FILE_PATH;
else if (info.Equals("filesize")) return SLIDE_FILE_SIZE;
else if (info.Equals("filedate")) return SLIDE_FILE_DATE;
else if (info.Equals("slideindex")) return SLIDE_INDEX;
else if (info.Equals("resolution")) return SLIDE_RESOLUTION;
else if (info.Equals("slidecomment")) return SLIDE_COMMENT;
else if (info.Equals("colour")) return SLIDE_COLOUR;
else if (info.Equals("process")) return SLIDE_PROCESS;
else if (info.Equals("exiftime")) return SLIDE_EXIF_DATE_TIME;
else if (info.Equals("exifdescription")) return SLIDE_EXIF_DESCRIPTION;
else if (info.Equals("cameramake")) return SLIDE_EXIF_CAMERA_MAKE;
else if (info.Equals("cameramodel")) return SLIDE_EXIF_CAMERA_MODEL;
else if (info.Equals("exifcomment")) return SLIDE_EXIF_COMMENT;
else if (info.Equals("exifsoftware")) return SLIDE_EXIF_SOFTWARE;
else if (info.Equals("apreture")) return SLIDE_EXIF_APERTURE;
else if (info.Equals("focallength")) return SLIDE_EXIF_FOCAL_LENGTH;
else if (info.Equals("focusdistance")) return SLIDE_EXIF_FOCUS_DIST;
else if (info.Equals("exposure")) return SLIDE_EXIF_EXPOSURE;
else if (info.Equals("exposuretime")) return SLIDE_EXIF_EXPOSURE_TIME;
else if (info.Equals("exposurebias")) return SLIDE_EXIF_EXPOSURE_BIAS;
else if (info.Equals("exposuremode")) return SLIDE_EXIF_EXPOSURE_MODE;
else if (info.Equals("flashused")) return SLIDE_EXIF_FLASH_USED;
else if (info.Equals("whitebalance")) return SLIDE_EXIF_WHITE_BALANCE;
else if (info.Equals("lightsource")) return SLIDE_EXIF_LIGHT_SOURCE;
else if (info.Equals("meteringmode")) return SLIDE_EXIF_METERING_MODE;
else if (info.Equals("isoequivalence")) return SLIDE_EXIF_ISO_EQUIV;
else if (info.Equals("digitalzoom")) return SLIDE_EXIF_DIGITAL_ZOOM;
else if (info.Equals("ccdwidth")) return SLIDE_EXIF_CCD_WIDTH;
else if (info.Equals("orientation")) return SLIDE_EXIF_ORIENTATION;
else if (info.Equals("supplementalcategories")) return SLIDE_IPTC_SUP_CATEGORIES;
else if (info.Equals("keywords")) return SLIDE_IPTC_KEYWORDS;
else if (info.Equals("caption")) return SLIDE_IPTC_CAPTION;
else if (info.Equals("author")) return SLIDE_IPTC_AUTHOR;
else if (info.Equals("healine")) return SLIDE_IPTC_HEADLINE;
else if (info.Equals("specialinstructions")) return SLIDE_IPTC_SPEC_INSTR;
else if (info.Equals("category")) return SLIDE_IPTC_CATEGORY;
else if (info.Equals("byline")) return SLIDE_IPTC_BYLINE;
else if (info.Equals("bylinetitle")) return SLIDE_IPTC_BYLINE_TITLE;
else if (info.Equals("credit")) return SLIDE_IPTC_CREDIT;
else if (info.Equals("source")) return SLIDE_IPTC_SOURCE;
else if (info.Equals("copyrightnotice")) return SLIDE_IPTC_COPYRIGHT_NOTICE;
else if (info.Equals("objectname")) return SLIDE_IPTC_OBJECT_NAME;
else if (info.Equals("city")) return SLIDE_IPTC_CITY;
else if (info.Equals("state")) return SLIDE_IPTC_STATE;
else if (info.Equals("country")) return SLIDE_IPTC_COUNTRY;
else if (info.Equals("transmissionreference")) return SLIDE_IPTC_TX_REFERENCE;
else if (info.Equals("iptcdate")) return SLIDE_IPTC_DATE;
else if (info.Equals("copyright")) return SLIDE_IPTC_COPYRIGHT;
else if (info.Equals("countrycode")) return SLIDE_IPTC_COUNTRY_CODE;
else if (info.Equals("referenceservice")) return SLIDE_IPTC_REF_SERVICE;
else if (info.Equals("latitude")) return SLIDE_EXIF_GPS_LATITUDE;
else if (info.Equals("longitude")) return SLIDE_EXIF_GPS_LONGITUDE;
else if (info.Equals("altitude")) return SLIDE_EXIF_GPS_ALTITUDE;
Quote: ... add the title and comments on the picture when viewing ...
kraqh3d Wrote:yup. they are all in a different cpp file. i never noticed them before. they do not seem to be listed in the wiki infolabel page.
here's all the options. for instance, the first one would be slideshow.filename. the second one would be slideshow.path.
would someone now be kind enough to update the wiki with the info?
Code:if (info.Equals("filename")) return SLIDE_FILE_NAME;
else if (info.Equals("path")) return SLIDE_FILE_PATH;
else if (info.Equals("filesize")) return SLIDE_FILE_SIZE;
else if (info.Equals("filedate")) return SLIDE_FILE_DATE;
else if (info.Equals("slideindex")) return SLIDE_INDEX;
else if (info.Equals("resolution")) return SLIDE_RESOLUTION;
else if (info.Equals("slidecomment")) return SLIDE_COMMENT;
else if (info.Equals("colour")) return SLIDE_COLOUR;
else if (info.Equals("process")) return SLIDE_PROCESS;
else if (info.Equals("exiftime")) return SLIDE_EXIF_DATE_TIME;
else if (info.Equals("exifdescription")) return SLIDE_EXIF_DESCRIPTION;
else if (info.Equals("cameramake")) return SLIDE_EXIF_CAMERA_MAKE;
else if (info.Equals("cameramodel")) return SLIDE_EXIF_CAMERA_MODEL;
else if (info.Equals("exifcomment")) return SLIDE_EXIF_COMMENT;
else if (info.Equals("exifsoftware")) return SLIDE_EXIF_SOFTWARE;
else if (info.Equals("apreture")) return SLIDE_EXIF_APERTURE;
else if (info.Equals("focallength")) return SLIDE_EXIF_FOCAL_LENGTH;
else if (info.Equals("focusdistance")) return SLIDE_EXIF_FOCUS_DIST;
else if (info.Equals("exposure")) return SLIDE_EXIF_EXPOSURE;
else if (info.Equals("exposuretime")) return SLIDE_EXIF_EXPOSURE_TIME;
else if (info.Equals("exposurebias")) return SLIDE_EXIF_EXPOSURE_BIAS;
else if (info.Equals("exposuremode")) return SLIDE_EXIF_EXPOSURE_MODE;
else if (info.Equals("flashused")) return SLIDE_EXIF_FLASH_USED;
else if (info.Equals("whitebalance")) return SLIDE_EXIF_WHITE_BALANCE;
else if (info.Equals("lightsource")) return SLIDE_EXIF_LIGHT_SOURCE;
else if (info.Equals("meteringmode")) return SLIDE_EXIF_METERING_MODE;
else if (info.Equals("isoequivalence")) return SLIDE_EXIF_ISO_EQUIV;
else if (info.Equals("digitalzoom")) return SLIDE_EXIF_DIGITAL_ZOOM;
else if (info.Equals("ccdwidth")) return SLIDE_EXIF_CCD_WIDTH;
else if (info.Equals("orientation")) return SLIDE_EXIF_ORIENTATION;
else if (info.Equals("supplementalcategories")) return SLIDE_IPTC_SUP_CATEGORIES;
else if (info.Equals("keywords")) return SLIDE_IPTC_KEYWORDS;
else if (info.Equals("caption")) return SLIDE_IPTC_CAPTION;
else if (info.Equals("author")) return SLIDE_IPTC_AUTHOR;
else if (info.Equals("healine")) return SLIDE_IPTC_HEADLINE;
else if (info.Equals("specialinstructions")) return SLIDE_IPTC_SPEC_INSTR;
else if (info.Equals("category")) return SLIDE_IPTC_CATEGORY;
else if (info.Equals("byline")) return SLIDE_IPTC_BYLINE;
else if (info.Equals("bylinetitle")) return SLIDE_IPTC_BYLINE_TITLE;
else if (info.Equals("credit")) return SLIDE_IPTC_CREDIT;
else if (info.Equals("source")) return SLIDE_IPTC_SOURCE;
else if (info.Equals("copyrightnotice")) return SLIDE_IPTC_COPYRIGHT_NOTICE;
else if (info.Equals("objectname")) return SLIDE_IPTC_OBJECT_NAME;
else if (info.Equals("city")) return SLIDE_IPTC_CITY;
else if (info.Equals("state")) return SLIDE_IPTC_STATE;
else if (info.Equals("country")) return SLIDE_IPTC_COUNTRY;
else if (info.Equals("transmissionreference")) return SLIDE_IPTC_TX_REFERENCE;
else if (info.Equals("iptcdate")) return SLIDE_IPTC_DATE;
else if (info.Equals("copyright")) return SLIDE_IPTC_COPYRIGHT;
else if (info.Equals("countrycode")) return SLIDE_IPTC_COUNTRY_CODE;
else if (info.Equals("referenceservice")) return SLIDE_IPTC_REF_SERVICE;
else if (info.Equals("latitude")) return SLIDE_EXIF_GPS_LATITUDE;
else if (info.Equals("longitude")) return SLIDE_EXIF_GPS_LONGITUDE;
else if (info.Equals("altitude")) return SLIDE_EXIF_GPS_ALTITUDE;