Preparing one or more secure media effect programs, generating a binary
image of the programs and associated data, loading the binary image into memory
of a secondary processor, and executing the programs of the binary image with the
secondary processor, substantially independent from a primary processor. A binary
image builder automatically maps one or more programs and data to secondary processor
memory by changing encoded binary instructions of each program before execution
by the secondary processor. The changes identify locations at which the programs
and data will be stored in secondary processor memory, identify locations of parameters
that can be updated in real time, and enable execution control to return to a secondary
processor execution kernel. The secondary processor execution kernel polls flags
in a main memory to determine whether to download new or updated state data and/or
program code from main memory to the secondary processor memory.