[Jahshaka-cvs] SF.net SVN: editopia: [124] cinesuite/cineplay-cinecode/trunk/src
Status: Beta
Brought to you by:
jahshaka
From: <tim...@us...> - 2008-04-15 12:26:32
|
Revision: 124 http://editopia.svn.sourceforge.net/editopia/?rev=124&view=rev Author: timdewhirst Date: 2008-04-15 05:26:27 -0700 (Tue, 15 Apr 2008) Log Message: ----------- editshare - add debug symbols to release build - add new file Modified Paths: -------------- cinesuite/cineplay-cinecode/trunk/src/cinecode.pro cinesuite/cineplay-cinecode/trunk/src/config.pri Added Paths: ----------- cinesuite/cineplay-cinecode/trunk/src/frameRange.h Modified: cinesuite/cineplay-cinecode/trunk/src/cinecode.pro =================================================================== --- cinesuite/cineplay-cinecode/trunk/src/cinecode.pro 2008-04-15 12:25:14 UTC (rev 123) +++ cinesuite/cineplay-cinecode/trunk/src/cinecode.pro 2008-04-15 12:26:27 UTC (rev 124) @@ -14,7 +14,8 @@ CineCode.h \ EncodeJob.h \ EncodeTrayEntry.h \ - FilterGraph.h + FilterGraph.h \ + frameRange.h SOURCES += \ CineCode.cpp \ Modified: cinesuite/cineplay-cinecode/trunk/src/config.pri =================================================================== --- cinesuite/cineplay-cinecode/trunk/src/config.pri 2008-04-15 12:25:14 UTC (rev 123) +++ cinesuite/cineplay-cinecode/trunk/src/config.pri 2008-04-15 12:26:27 UTC (rev 124) @@ -1,3 +1,8 @@ CONFIG += thread qt warn_on opengl CONFIG += release + +win32 { + QMAKE_CXXFLAGS_RELEASE += /Zi /Od + QMAKE_LFLAGS_RELEASE += /INCREMENTAL:NO /DEBUG /OPT:REF /OPT:ICF +} Added: cinesuite/cineplay-cinecode/trunk/src/frameRange.h =================================================================== --- cinesuite/cineplay-cinecode/trunk/src/frameRange.h (rev 0) +++ cinesuite/cineplay-cinecode/trunk/src/frameRange.h 2008-04-15 12:26:27 UTC (rev 124) @@ -0,0 +1,55 @@ +/* -*- mode: C++; c-basic-offset: 4; tab-width: 4; indent-tabs-mode: t -*- */ + +// This file is part of Cineplay +// +// Cineplay is free software; you can redistribute it and/or modify +// it under the terms of the GNU General Public License as published by +// the Free Software Foundation; either version 2 of the License, or +// (at your option) any later version. +// +// Cineplay is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public License +// along with this program. If not, see <http://www.gnu.org/licenses/>. +// +// Copyright (C) 2008 Audiotube Ltd. +// For more information, see http://www.audiotube.com + +#pragma once + +// std +#include <list> + +struct FrameRange +{ + FrameRange() + : in( -1 ), out( -1 ) + {} + + FrameRange( int in_, int out_ ) + : in( in_ ), out( out_ ) + {} + + bool isInValid() const + { + return in > 0; + } + + bool isValid() const + { + return isInValid() && out > 0; + } + + int length() const + { + return out - in; + } + + int in; + int out; +}; + +typedef std::list< FrameRange > FrameRangeList; This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |