moviestore.cc

来自「VC视频对象的跟踪提取原代码(vc视频监控源码)」· CC 代码 · 共 70 行

CC
70
字号
/////////////////////////////////////////////////////////////////////////////////                                                                           ////  MovieStore.cc                                                            ////                                                                           ////  This class stores a sequence of images as a movie                        ////                                                                           ////  Currently, only numbered JPEG images can be written.                     ////  This code is written with full colour images in mind (24/32-bit).        ////                                                                           ////  Author    : Nils T Siebel (nts)                                          ////  Created   : Mon Oct 16 10:30:39 GMT 2000                                 ////  Revision  : 1.0 of Fri Oct 27 10:33:15 GMT 2000                          ////  Copyright : The University of Reading                                    ////                                                                           /////////////////////////////////////////////////////////////////////////////////#include <ctype.h>  // for isdigit()#include "MovieStore.h"#include "Image.h"#include "text_output.h"namespace ReadingPeopleTracker{static const char *MovieStore_Revision = "@(#) MovieStore.cc, rev 1.0 of Fri Oct 27 10:33:15 GMT 2000, Author Nils T Siebel, Copyright (c) 2000 The University of Reading";// For image<nnn>.jpeg give 1st name, for instance "image007.jpeg"MovieStore::MovieStore (MovieStoreFormat movieformat,			char *moviefilename)  {    signed int pos;    format = movieformat;        // set up variables...    switch (format)    {    case MOVIESTORE_JPEG:    {	individual_files = true;	break;    }        case MOVIESTORE_PNM:    {	individual_files = true;	break;    }    default:	cerror << " MovieStore: Unknown file format ("	       << format << " requested.  Exiting..." << endl;		exit(1);    }        strncpy(filename, moviefilename, 256+16+64-1);    filename[256+16+64-1] = '\0';        // file names...    if (individual_files)    {	for (pos = strlen(filename)-1; pos >= 0; pos--)	    if (isdigit(filename[pos]))		break;		if (pos < 0)	{	    cerror << "MovieStore: When storing individual images, "		   << "please give first filename, like 籭mage007.jpeg

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?