16
|
1 |
/* Quicktime muxer plugin for GStreamer
|
|
2 |
* Copyright (C) 2008 Thiago Sousa Santos <thiagoss@embedded.ufcg.edu.br>
|
|
3 |
* Copyright (C) 2008 Mark Nauwelaerts <mnauw@users.sf.net>
|
|
4 |
*
|
|
5 |
* This library is free software; you can redistribute it and/or
|
|
6 |
* modify it under the terms of the GNU Library General Public
|
|
7 |
* License as published by the Free Software Foundation; either
|
|
8 |
* version 2 of the License, or (at your option) any later version.
|
|
9 |
*
|
|
10 |
* This library is distributed in the hope that it will be useful,
|
|
11 |
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
12 |
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
|
13 |
* Library General Public License for more details.
|
|
14 |
*
|
|
15 |
* You should have received a copy of the GNU Library General Public
|
|
16 |
* License along with this library; if not, write to the
|
|
17 |
* Free Software Foundation, Inc., 59 Temple Place - Suite 330,
|
|
18 |
* Boston, MA 02111-1307, USA.
|
|
19 |
*/
|
|
20 |
/*
|
|
21 |
* Unless otherwise indicated, Source Code is licensed under MIT license.
|
|
22 |
* See further explanation attached in License Statement (distributed in the file
|
|
23 |
* LICENSE).
|
|
24 |
*
|
|
25 |
* Permission is hereby granted, free of charge, to any person obtaining a copy of
|
|
26 |
* this software and associated documentation files (the "Software"), to deal in
|
|
27 |
* the Software without restriction, including without limitation the rights to
|
|
28 |
* use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies
|
|
29 |
* of the Software, and to permit persons to whom the Software is furnished to do
|
|
30 |
* so, subject to the following conditions:
|
|
31 |
*
|
|
32 |
* The above copyright notice and this permission notice shall be included in all
|
|
33 |
* copies or substantial portions of the Software.
|
|
34 |
*
|
|
35 |
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
36 |
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
37 |
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
38 |
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
39 |
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
40 |
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
41 |
* SOFTWARE.
|
|
42 |
*/
|
|
43 |
|
|
44 |
#ifndef __GST_QT_MUX_MAP_H__
|
|
45 |
#define __GST_QT_MUX_MAP_H__
|
|
46 |
|
|
47 |
#include "atoms.h"
|
|
48 |
|
|
49 |
#include <glib.h>
|
|
50 |
#include <gst/gst.h>
|
|
51 |
|
|
52 |
typedef enum _GstQTMuxFormat
|
|
53 |
{
|
|
54 |
GST_QT_MUX_FORMAT_NONE = 0,
|
|
55 |
GST_QT_MUX_FORMAT_QT,
|
|
56 |
GST_QT_MUX_FORMAT_MP4,
|
|
57 |
GST_QT_MUX_FORMAT_3GP,
|
|
58 |
GST_QT_MUX_FORMAT_MJ2
|
|
59 |
} GstQTMuxFormat;
|
|
60 |
|
|
61 |
typedef struct _GstQTMuxFormatProp
|
|
62 |
{
|
|
63 |
GstQTMuxFormat format;
|
|
64 |
gchar *name;
|
|
65 |
gchar *long_name;
|
|
66 |
gchar *type_name;
|
|
67 |
GstStaticCaps src_caps;
|
|
68 |
GstStaticCaps video_sink_caps;
|
|
69 |
GstStaticCaps audio_sink_caps;
|
|
70 |
} GstQTMuxFormatProp;
|
|
71 |
|
|
72 |
extern GstQTMuxFormatProp gst_qt_mux_format_list[];
|
|
73 |
|
|
74 |
void gst_qt_mux_map_format_to_header (GstQTMuxFormat format, GstBuffer ** _prefix,
|
|
75 |
guint32 * _major, guint32 * verson,
|
|
76 |
GList ** _compatible, AtomMOOV * moov,
|
|
77 |
GstClockTime longest_chunk,
|
|
78 |
gboolean faststart);
|
|
79 |
|
|
80 |
AtomsTreeFlavor gst_qt_mux_map_format_to_flavor (GstQTMuxFormat format);
|
|
81 |
|
|
82 |
#endif /* __GST_QT_MUX_MAP_H__ */
|