package ti.xdais.dm.examples.videnc1_copy |
 |
Simple XDM IVIDENC1-compatible video encoder
This example codec provides a reference for two features of XDM. Also,
It implements the IDMA3 interface, using the Framework Components' ACPY3
component to utilize DMA. (Note the comments in the examples' package.bld,
which describe that this dependency on ACPY3 is determined at build-time,
and the DMA-based "copy" is only built if ACPY3 is found in the system.
More specifically, it is only build if the ti.sdo.fc.acpy3 package is found
on the builder's package path.)
[
more ... ]
package ti.xdais.dm.examples.videnc1_copy [2, 0, 0] {
// Video Encoder Algorithm
}
DETAILS
This example codec provides a reference for two features of XDM. Also,
It implements the IDMA3 interface, using the Framework Components' ACPY3
component to utilize DMA. (Note the comments in the examples' package.bld,
which describe that this dependency on ACPY3 is determined at build-time,
and the DMA-based "copy" is only built if ACPY3 is found in the system.
More specifically, it is only build if the ti.sdo.fc.acpy3 package is found
on the builder's package path.)
First, it demonstrates a simple implementation of the IVIDENC1 interface.
The implementation of the process() function is a simple memcpy.
The second feature demonstrated is the ability to extend XDM's base
interfaces. In addition to supporting the base interface, it extends
IVIDENC1_InArgs with a codec-specific IVIDENC1CPY_InArgs. This "InArgs"
struct defines an additional "maxBytes" field, which enables the
application to limit the number of bytes to copy into the output buffer.
generated on Sun, 29 Aug 2010 18:57:18 GMT