Dali VM Code Examples
We listed below some examples on how to use the common types and
primitives. Please note that they are not meant to be robust or efficient
since we try to keep the examples as simple as possible.
- Reading and Writing a PPM and PGM file.
[ tcl
| C
]
- Reading and Writing a WAV file
[ tcl
| C
]
- Convert a MPEG-1 video to series of PPM images.
[ tcl
| C
]
- Random access to MPEG-1 Video using MpegVideoIndex
[ tcl
| C
]
- Convert a MPEG-1 Audio to a PCM file.
[ tcl
| C
]
- Demultiplex a MPEG-1 System Streams to seperate stream (using MpegSysToc)
[ tcl
| C
]
- Demultiplex a MPEG-1 System Streams to seperate stream (using Find/Parse)
[ tcl
| C
]
- Encoding an MPEG-1 Video from a series of PPM Files (I and P Frame only).
[ tcl
| C
]
- Encoding an MPEG-1 Video from a series of PPM Files (I,P,B with half-pel motion estimation)
[ tcl
| C
]
- Using audio maps to converting mu-law WAV file to PCM WAV file.
[ tcl
| C
]
- Using audio maps to double the volume of one single channel
[ tcl
| C
]
- Using image maps to perform histogram equalization
[ tcl
| C
]
- Decode a GIF to a series of PPM images
[ tcl
| C
]
- Encode a PPM as a GIF
[ tcl
| C
]
- Encode a sequence of PPMs as an animated GIF
[ tcl
| C
]
- Using Kernel to blur a image
[ tcl
| C
]
- Homogeneous transformation of an image
[ tcl
| C
]
- Decoding JPEG to a PPM file
[ tcl
| C
]
- Encoding JPEG from a PPM file
[ tcl
| C
]
- Using the Sobel edge detector
[ tcl
| C
]
- Using the Canny edge detector
[ tcl
| C
]
- Decoding AVI file to a series of PPM
[ tcl
| C
]
- Converting MPEG into an AVI file
[ tcl
| C
]
Last Updated : 06/22/2025 20:12:47