Click to open or copy the files for the PalMap sample.
This sample is a stream handler that translates video streams into new streams of a different bit depth—for example, it can translate from 24-bit to 8-bit. To use it, copy the DLL to the system directory and use it with the AVIview Find Optimal Palette menu item.
This sample uses the following keywords:
addaxisvariance; avicreatemappedstream; avistreamaddref; avistreamclose; avistreamgetframe; avistreamgetframeclose; avistreamgetframeopen; avistreaminfo; avistreamlength; avistreammakepalette; avistreamstart; check_axis; computepalette; createpalette; define_oleguid; deleteboxes; deletepalette; determinerepresentative; dibhistogram; dibreduce; dllmain; findsplitaxis; freehistogram; getbvalue; getdc; getdevicecaps; getgvalue; gethistogram; getobject; getpaletteentries; getrvalue; getscode; getsystempaletteentries; globalallocptr; globalfreeptr; hist; histogram1; histogram16; histogram24; histogram4; histogram8; histogrampalette; hmemcpy; inchistogram; initboxes; inithistogram; isequaliid; loadstring; localalloc; localfree; locallock; localunlock; lstrcpyn; max; memcopy; memfill; min; palmapstreamaddref; palmapstreamcreate; palmapstreamdelete; palmapstreamfindkeyframe; palmapstreaminfo; palmapstreamqueryinterface; palmapstreamread; palmapstreamreaddata; palmapstreamreadformat; palmapstreamrelease; palmapstreamsetformat; palmapstreamsetinfo; palmapstreamwrite; palmapstreamwritedata; reduce1; reduce16; reduce24; reduce4; reduce8; releasedc; resultfromscode; rgb; rgb16; shrinkbox; sortboxes; splitbox; splitboxaxis; switch; text; usehistogram; wep; wsprintf