| synopsis || prev |

mj2_target::add_video_track

Java: Mj2_target::Add_video_track

mj2_video_target * add_video_track( )

Java: Mj2_video_target Add_video_track( )

[Declared in "../apps/compressed_io/mj2.h"]

Go to class description.


Synopsis

Returns a pointer to an internal video track resource, to which compressed data and rendering attributes can be written. Each call to this function creates a new video track, with a distinct track index. You may determine the track index using mj2_video_target::get_track_idx.

At a minimum you will need to configure the colour space information (see mj2_video_target::access_colour) and the frame-to-frame period (see mj2_video_target::set_frame_period) for the new video track, before writing compressed frames (or fields), with the aid of the mj2_video_target::open_image and mj2_video_target::close_image functions.


| top || synopsis || prev |