Ejemplo n.º 1
0
result MultiFrame::Frame::CopyTo(
            int             &frame_number, 
    const   unsigned char   *const source) {

    result status = FILTER_OK;

    if (IsCopyRequired(frame_number)) {
        frame_number_ = frame_number;
        status = g_devices[device_id_].buffers_.CopyToPlane(plane_,
                                                           *source, 
                                                           width_, 
                                                           height_, 
                                                           pitch_);
    }
    copied_ = NULL;
    ++frame_used_;
    return status;
}
Ejemplo n.º 2
0
bool DownloadDialog::IsRequired() const
{
    return IsCopyRequired() || IsDownloadRequired();
}