melunko@394
|
1 |
/**
|
melunko@394
|
2 |
* GMyth Library
|
melunko@394
|
3 |
*
|
melunko@394
|
4 |
* @file gmyth/gmyth_transcoder.h
|
melunko@394
|
5 |
*
|
melunko@394
|
6 |
* @brief <p> This file contains the transcoder class.
|
melunko@394
|
7 |
*
|
melunko@394
|
8 |
* Copyright (C) 2007 INdT - Instituto Nokia de Tecnologia.
|
melunko@394
|
9 |
* @author Artur Duque de Souza <artur.souza@indt.org.br>
|
melunko@394
|
10 |
*
|
melunko@394
|
11 |
*/
|
melunko@394
|
12 |
/*
|
melunko@394
|
13 |
*
|
melunko@394
|
14 |
* This program is free software; you can redistribute it and/or modify
|
melunko@394
|
15 |
* it under the terms of the GNU Lesser General Public License as published by
|
melunko@394
|
16 |
* the Free Software Foundation; either version 2 of the License, or
|
melunko@394
|
17 |
* (at your option) any later version.
|
melunko@394
|
18 |
*
|
melunko@394
|
19 |
* This program is distributed in the hope that it will be useful,
|
melunko@394
|
20 |
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
melunko@394
|
21 |
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
melunko@394
|
22 |
* GNU General Public License for more details.
|
melunko@394
|
23 |
*
|
melunko@394
|
24 |
* You should have received a copy of the GNU Lesser General Public License
|
melunko@394
|
25 |
* along with this program; if not, write to the Free Software
|
melunko@394
|
26 |
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
|
melunko@394
|
27 |
*/
|
melunko@394
|
28 |
|
melunko@394
|
29 |
#ifndef _GMYTH_TRANSCODER_H
|
melunko@394
|
30 |
#define _GMYTH_TRANSCODER_H
|
melunko@394
|
31 |
|
melunko@394
|
32 |
#include <glib.h>
|
melunko@394
|
33 |
#include <glib-object.h>
|
melunko@394
|
34 |
|
melunko@394
|
35 |
#include "gmyth_stringlist.h"
|
melunko@394
|
36 |
#include "gmyth_backendinfo.h"
|
melunko@394
|
37 |
#include "gmyth_socket.h"
|
melunko@394
|
38 |
#include "gmyth_http.h"
|
melunko@394
|
39 |
#include "gmyth_recprofile.h"
|
melunko@394
|
40 |
|
melunko@394
|
41 |
G_BEGIN_DECLS
|
melunko@394
|
42 |
|
melunko@394
|
43 |
#define GMYTH_TRANSCODER_TYPE (gmyth_transcoder_get_type ())
|
melunko@394
|
44 |
#define GMYTH_TRANSCODER(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GMYTH_TRANSCODER_TYPE, GMythTranscoder))
|
melunko@394
|
45 |
#define GMYTH_TRANSCODER_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), GMYTH_TRANSCODER_TYPE, GMythTranscoderClass))
|
melunko@394
|
46 |
#define IS_GMYTH_TRANSCODER(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GMYTH_TRANSCODER_TYPE))
|
melunko@394
|
47 |
#define IS_GMYTH_TRANSCODER_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), GMYTH_TRANSCODER_TYPE))
|
melunko@394
|
48 |
#define GMYTH_TRANSCODER_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), GMYTH_TRANSCODER_TYPE, GMythTranscoderClass))
|
melunko@394
|
49 |
|
melunko@394
|
50 |
#define DATE_ISO 0
|
melunko@394
|
51 |
#define DATE_FILE 1
|
melunko@394
|
52 |
|
melunko@394
|
53 |
typedef struct _GMythTranscoder GMythTranscoder;
|
melunko@394
|
54 |
typedef struct _GMythTranscoderClass GMythTranscoderClass;
|
melunko@394
|
55 |
|
melunko@394
|
56 |
struct _GMythTranscoderClass
|
melunko@394
|
57 |
{
|
melunko@394
|
58 |
GObjectClass parent_class;
|
melunko@394
|
59 |
|
melunko@394
|
60 |
/* callbacks */
|
melunko@394
|
61 |
};
|
melunko@394
|
62 |
|
melunko@394
|
63 |
/**
|
melunko@394
|
64 |
* The GMythTranscoder structure is a class to implement functions
|
melunko@394
|
65 |
* related to transcoding.
|
melunko@394
|
66 |
*/
|
melunko@394
|
67 |
struct _GMythTranscoder
|
melunko@394
|
68 |
{
|
melunko@394
|
69 |
GObject parent;
|
melunko@394
|
70 |
|
melunko@394
|
71 |
gboolean cutlist;
|
melunko@394
|
72 |
gboolean output;
|
melunko@394
|
73 |
gboolean started;
|
melunko@394
|
74 |
|
melunko@394
|
75 |
/* private begin */
|
melunko@394
|
76 |
gchar* output_filename;
|
melunko@394
|
77 |
gchar* filename;
|
melunko@394
|
78 |
gchar* profile;
|
melunko@394
|
79 |
/* private end */
|
melunko@394
|
80 |
|
melunko@394
|
81 |
gchar* starttime;
|
melunko@394
|
82 |
|
melunko@394
|
83 |
gint chanid;
|
melunko@394
|
84 |
|
melunko@394
|
85 |
GMythBackendInfo* backend_info;
|
melunko@394
|
86 |
};
|
melunko@394
|
87 |
|
melunko@394
|
88 |
GType gmyth_transcoder_type (void);
|
melunko@394
|
89 |
|
melunko@394
|
90 |
GMythTranscoder* gmyth_transcoder_new (GMythBackendInfo* backend_info);
|
melunko@394
|
91 |
|
melunko@394
|
92 |
void gmyth_transcoder_set_output (GMythTranscoder* transcode,
|
melunko@394
|
93 |
gboolean value, gchar* outputfile);
|
melunko@394
|
94 |
|
melunko@394
|
95 |
void gmyth_transcoder_set_filename (GMythTranscoder* transcode, gchar* file);
|
melunko@394
|
96 |
|
melunko@394
|
97 |
gint gmyth_transcoder_set_profile (GMythTranscoder* trans, gchar* value);
|
melunko@394
|
98 |
|
melunko@394
|
99 |
G_END_DECLS
|
melunko@394
|
100 |
|
melunko@394
|
101 |
#endif /*_GMYTH_TRANSCODER_H*/
|