MUAN
imgnode.cpp File Reference

Functions

ImgNodeimgnode_alloc (Frame *f, int delay, int frame_duration)
 Creates a new ImageNode.
void imgnode_dispose (ImgNode *i)
 Disposes an ImageNode.
ImgNodeimgnode_copy (ImgNode *i)
 Copies an ImageNode.

Function Documentation

ImgNode* imgnode_alloc ( Frame *  f,
int  delay,
int  frame_duration 
)

Creates a new ImageNode.

Parameters:
fan ImageNode Frame attribute.
delayan ImageNode delay attribute.
Returns:
The ImageNode.

References ImgNode::delay, ImgNode::frame, ImgNode::frame_duration, ImgNode::frame_number, ImgNode::frame_pos, ImgNode::next, ImgNode::prev, and ImgNode::time_stamp.

Referenced by VideoEncoder::avffmpeg_read(), ImageViewer::draw(), imgnode_copy(), ImageViewer::insert_frame(), insert_frame_from_jpgfile(), and VideoEncoder::jpg_read().

ImgNode* imgnode_copy ( ImgNode i)

Copies an ImageNode.

Parameters:
ithe ImageNode to be copied.

References ImgNode::delay, ImgNode::frame, ImgNode::frame_duration, and imgnode_alloc().

Referenced by ImageViewer::copy_frame(), and imglist_insert().

void imgnode_dispose ( ImgNode i)

Disposes an ImageNode.

Parameters:
ithe ImageNode to be deleted..

References ImgNode::frame.

Referenced by imglist_clear(), and imglist_removeInRange().