jpegsource.cc
来自「VC视频对象的跟踪提取原代码(vc视频监控源码)」· CC 代码 · 共 57 行
CC
57 行
///////////////////////////////////////////////////////////////////////////////// //// JPEGSource.cc (structure copied from MpegStream.cc by Adam Baumberg) //// (based on our new (JPEG) MovieStore and IJG's example.c) //// //// This class reads individual, numbered JPEG files as an ImageSource //// //// This code is written with full colour images in mind (24/32-bit). //// //// Author : Nils T Siebel (nts) //// Created : Thu Oct 26 18:52:41 GMT 2000 //// Revision : 1.5 of Tue Jul 24 15:55:06 BST 2001 //// Copyright : The University of Reading //// /////////////////////////////////////////////////////////////////////////////////#include <unistd.h>#include <cstdio>#include <cstring> // for strncpy() etc#include <cctype> // for isdigit()#include <ostream>#include <ctime>#include <sys/timeb.h>#include <sys/types.h>#include "JPEGSource.h"#include "Grey8Image.h"#include "RGB32Image.h"#include "tracker_defines_types_and_helpers.h"#include "text_output.h"namespace ReadingPeopleTracker{static const char *JPEGSource_Revision = "@(#) JPEGSource.cc, rev 1.5 of Tue Jul 24 15:55:06 BST 2001, Author Nils T Siebel, Copyright (c) 2000--2001 The University of Reading";JPEGSource::JPEGSource(char *first_filename, bool the_skip_non_existing, unsigned int the_max_skip_non_existing){ skip_non_existing = the_skip_non_existing; max_skip_non_existing = the_max_skip_non_existing; signed int pos; strncpy(JPEGfilename, first_filename, 256+16+64-1); JPEGfilename[256+16+64-1] = (char) 0x00; // avoid overrun // set up file name(s)... for (pos = strlen(JPEGfilename)-1; pos >= 0; pos--) if (isdigit(JPEGfilename[pos])) break; if (pos < 0) { cerror << "JPEGSource::JPEGSource: To use individual JPEG images as input, please give first filename, like 籭nput017.jpg
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?