~ubuntu-branches/debian/experimental/gpac/experimental

« back to all changes in this revision

Viewing changes to applications/dashcast/controler.h

  • Committer: Package Import Robot
  • Author(s): Reinhard Tartler
  • Date: 2014-02-22 18:15:00 UTC
  • mfrom: (1.2.2) (3.1.6 sid)
  • Revision ID: package-import@ubuntu.com-20140222181500-b4phupo05gjpmopa
Tags: 0.5.0+svn5104~dfsg1-1
* New  upstream version 0.5.0+svn5104~dfsg1:
  - src/utils/sha1.c is relicensed under LGPLv2.1, Closes: #730759
* Don't install modules in multi-arch directories, Closes: #730497
* Add libusb-1.0.0-dev headers because libfreenect requires this
* Fix install rule
* Follow upstream soname bump
  - Drop the symbols file for now until it has been revised thourougly
* Let binaries produce the correct svn revision
* Refresh patches
* Patch and build against libav10, Closes: #739321
* Bump standards version, no changes necessary

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/*
 
2
 *                      GPAC - Multimedia Framework C SDK
 
3
 *
 
4
 *                      Authors: Arash Shafiei
 
5
 *                      Copyright (c) Telecom ParisTech 2000-2013
 
6
 *                                      All rights reserved
 
7
 *
 
8
 *  This file is part of GPAC / dashcast
 
9
 *
 
10
 *  GPAC is free software; you can redistribute it and/or modify
 
11
 *  it under the terms of the GNU Lesser General Public License as published by
 
12
 *  the Free Software Foundation; either version 2, or (at your option)
 
13
 *  any later version.
 
14
 *
 
15
 *  GPAC is distributed in the hope that it will be useful,
 
16
 *  but WITHOUT ANY WARRANTY; without even the implied warranty of
 
17
 *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 
18
 *  GNU Lesser General Public License for more details.
 
19
 *
 
20
 *  You should have received a copy of the GNU Lesser General Public
 
21
 *  License along with this library; see the file COPYING.  If not, write to
 
22
 *  the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA.
 
23
 *
 
24
 */
 
25
 
 
26
#ifndef CONTROLER_H_
 
27
#define CONTROLER_H_
 
28
 
 
29
#include <gpac/tools.h>
 
30
#include <gpac/thread.h>
 
31
#include <gpac/media_tools.h>
 
32
 
 
33
#include "register.h"
 
34
#include "video_decoder.h"
 
35
#include "video_encoder.h"
 
36
#include "audio_decoder.h"
 
37
#include "audio_encoder.h"
 
38
#include "cmd_data.h"
 
39
#include "message_queue.h"
 
40
 
 
41
 
 
42
/* General thread parameters */
 
43
typedef struct {
 
44
        /* command data */
 
45
        CmdData *in_data;
 
46
        /* handle to thread */
 
47
        GF_Thread *thread;
 
48
 
 
49
        MessageQueue *mq;
 
50
} ThreadParam;
 
51
 
 
52
/* Video thread parameters */
 
53
typedef struct {
 
54
        /* command data */
 
55
        CmdData *in_data;
 
56
        /* The index in the configuration file to a video entry corresponding to the thread. */
 
57
        int video_conf_idx;
 
58
        /* Video input data structure corresponding to the thread. (This data is shared between video decoder and video scaler) */
 
59
        VideoInputData *video_input_data;
 
60
        /* Video scaled data structure corresponding to the thread. (This data is shared between video scaler and video encoder) */
 
61
        VideoScaledData *video_scaled_data;
 
62
        /* Video input file structure corresponding to the thread */
 
63
        VideoInputFile **video_input_file;
 
64
        /* handle to the thread */
 
65
        GF_Thread *thread;
 
66
 
 
67
        MessageQueue *mq;
 
68
        MessageQueue *delete_seg_mq;
 
69
        MessageQueue *send_seg_mq;
 
70
} VideoThreadParam;
 
71
 
 
72
/* Audio thread parameters */
 
73
typedef struct {
 
74
        /* command data */
 
75
        CmdData *in_data;
 
76
        /* The index in the configuration file to an audio entry corresponding to the thread */
 
77
        int audio_conf_idx;
 
78
        /* Audio input data (This data is shared between audio decoder and audio encoder */
 
79
        AudioInputData *audio_input_data;
 
80
        /* Audio input file structure */
 
81
        AudioInputFile *audio_input_file;
 
82
        /* handle to the thread */
 
83
        GF_Thread *thread;
 
84
 
 
85
        MessageQueue *mq;
 
86
        MessageQueue *delete_seg_mq;
 
87
        MessageQueue *send_seg_mq;
 
88
} AudioThreadParam;
 
89
 
 
90
/* 
 
91
 * Run controler runs all decoder, scalers, and encoders
 
92
 * of audio and video
 
93
 * 
 
94
 * @param cmd_data [in] command data 
 
95
 * 
 
96
 * @return 0 on success, -1 on failure
 
97
 */
 
98
int dc_run_controler(CmdData *);
 
99
 
 
100
#endif /* CONTROLER_H_ */