~vanvugt/ubuntu/oneiric/mediatomb/fix-770964-784431

« back to all changes in this revision

Viewing changes to src/tools.h

  • Committer: Bazaar Package Importer
  • Author(s): Andres Mejia
  • Date: 2009-04-22 21:39:19 UTC
  • mto: (4.2.1 sid)
  • mto: This revision was merged to the branch mainline in revision 9.
  • Revision ID: james.westby@ubuntu.com-20090422213919-52m015y6gcpv1m1g
Tags: upstream-0.12.0~svn2018
ImportĀ upstreamĀ versionĀ 0.12.0~svn2018

Show diffs side-by-side

added added

removed removed

Lines of Context:
7
7
    Copyright (C) 2005 Gena Batyan <bgeradz@mediatomb.cc>,
8
8
                       Sergey 'Jin' Bostandzhyan <jin@mediatomb.cc>
9
9
    
10
 
    Copyright (C) 2006-2008 Gena Batyan <bgeradz@mediatomb.cc>,
 
10
    Copyright (C) 2006-2009 Gena Batyan <bgeradz@mediatomb.cc>,
11
11
                            Sergey 'Jin' Bostandzhyan <jin@mediatomb.cc>,
12
12
                            Leonhard Wimmer <leo@mediatomb.cc>
13
13
    
24
24
    version 2 along with MediaTomb; if not, write to the Free Software
25
25
    Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA.
26
26
    
27
 
    $Id: tools.h 1698 2008-02-23 20:48:30Z lww $
 
27
    $Id: tools.h 2010 2009-01-11 19:10:43Z lww $
28
28
*/
29
29
 
30
30
/// \file tools.h
207
207
 
208
208
#endif // HAVE_MAGIC
209
209
 
 
210
#ifdef SOPCAST
 
211
/// \brief Finds a free port between range_min and range_max on localhost.
 
212
int find_local_port(unsigned short range_min, 
 
213
                              unsigned short range_max);
 
214
#endif
210
215
/// \brief Extracts resolution from a JPEG image
211
216
zmm::String get_jpeg_resolution(zmm::Ref<IOHandler> ioh);
212
217
 
304
309
/// \brief Determines if the particular ogg file contains a video (theora)
305
310
bool isTheora(zmm::String ogg_filename);
306
311
 
 
312
/// \brief Gets an absolute filename as a parameter and returns the last parent
 
313
///
 
314
/// "/some/path/to/file.txt" -> "to"
 
315
zmm::String get_last_path(zmm::String location);
 
316
 
307
317
#ifndef HAVE_FFMPEG
308
318
/// \brief Fallback code to retrieve the used fourcc from an AVI file.
309
319
///
312
322
zmm::String getAVIFourCC(zmm::String avi_filename);
313
323
#endif
314
324
 
315
 
#ifdef LOG_TOMBDEBUG
 
325
#ifdef TOMBDEBUG
316
326
 
317
327
struct profiling_t
318
328
{