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