Blame gst/isomp4/gstqtmuxmap.h

Packit 1f69a5
/* Quicktime muxer plugin for GStreamer
Packit 1f69a5
 * Copyright (C) 2008 Thiago Sousa Santos <thiagoss@embedded.ufcg.edu.br>
Packit 1f69a5
 * Copyright (C) 2008 Mark Nauwelaerts <mnauw@users.sf.net>
Packit 1f69a5
 *
Packit 1f69a5
 * This library is free software; you can redistribute it and/or
Packit 1f69a5
 * modify it under the terms of the GNU Library General Public
Packit 1f69a5
 * License as published by the Free Software Foundation; either
Packit 1f69a5
 * version 2 of the License, or (at your option) any later version.
Packit 1f69a5
 *
Packit 1f69a5
 * This library is distributed in the hope that it will be useful,
Packit 1f69a5
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
Packit 1f69a5
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
Packit 1f69a5
 * Library General Public License for more details.
Packit 1f69a5
 *
Packit 1f69a5
 * You should have received a copy of the GNU Library General Public
Packit 1f69a5
 * License along with this library; if not, write to the
Packit 1f69a5
 * Free Software Foundation, Inc., 51 Franklin St, Fifth Floor,
Packit 1f69a5
 * Boston, MA 02110-1301, USA.
Packit 1f69a5
 */
Packit 1f69a5
/*
Packit 1f69a5
 * Unless otherwise indicated, Source Code is licensed under MIT license.
Packit 1f69a5
 * See further explanation attached in License Statement (distributed in the file
Packit 1f69a5
 * LICENSE).
Packit 1f69a5
 *
Packit 1f69a5
 * Permission is hereby granted, free of charge, to any person obtaining a copy of
Packit 1f69a5
 * this software and associated documentation files (the "Software"), to deal in
Packit 1f69a5
 * the Software without restriction, including without limitation the rights to
Packit 1f69a5
 * use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies
Packit 1f69a5
 * of the Software, and to permit persons to whom the Software is furnished to do
Packit 1f69a5
 * so, subject to the following conditions:
Packit 1f69a5
 *
Packit 1f69a5
 * The above copyright notice and this permission notice shall be included in all
Packit 1f69a5
 * copies or substantial portions of the Software.
Packit 1f69a5
 *
Packit 1f69a5
 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
Packit 1f69a5
 * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
Packit 1f69a5
 * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
Packit 1f69a5
 * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
Packit 1f69a5
 * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
Packit 1f69a5
 * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
Packit 1f69a5
 * SOFTWARE.
Packit 1f69a5
 */
Packit 1f69a5
Packit 1f69a5
#ifndef __GST_QT_MUX_MAP_H__
Packit 1f69a5
#define __GST_QT_MUX_MAP_H__
Packit 1f69a5
Packit 1f69a5
#include "atoms.h"
Packit 1f69a5
Packit 1f69a5
#include <glib.h>
Packit 1f69a5
#include <gst/gst.h>
Packit 1f69a5
Packit 1f69a5
typedef enum _GstQTMuxFormat
Packit 1f69a5
{
Packit 1f69a5
  GST_QT_MUX_FORMAT_NONE = 0,
Packit 1f69a5
  GST_QT_MUX_FORMAT_QT,
Packit 1f69a5
  GST_QT_MUX_FORMAT_MP4,
Packit 1f69a5
  GST_QT_MUX_FORMAT_3GP,
Packit 1f69a5
  GST_QT_MUX_FORMAT_MJ2,
Packit 1f69a5
  GST_QT_MUX_FORMAT_ISML
Packit 1f69a5
} GstQTMuxFormat;
Packit 1f69a5
Packit 1f69a5
typedef struct _GstQTMuxFormatProp
Packit 1f69a5
{
Packit 1f69a5
  GstQTMuxFormat format;
Packit 1f69a5
  GstRank rank;
Packit 1f69a5
  const gchar *name;
Packit 1f69a5
  const gchar *long_name;
Packit 1f69a5
  const gchar *type_name;
Packit 1f69a5
  GstStaticCaps src_caps;
Packit 1f69a5
  GstStaticCaps video_sink_caps;
Packit 1f69a5
  GstStaticCaps audio_sink_caps;
Packit 1f69a5
  GstStaticCaps subtitle_sink_caps;
Packit 1f69a5
} GstQTMuxFormatProp;
Packit 1f69a5
Packit 1f69a5
extern GstQTMuxFormatProp gst_qt_mux_format_list[];
Packit 1f69a5
Packit 1f69a5
void            gst_qt_mux_map_format_to_header      (GstQTMuxFormat format, GstBuffer ** _prefix,
Packit 1f69a5
                                                      guint32 * _major, guint32 * verson,
Packit 1f69a5
                                                      GList ** _compatible, AtomMOOV * moov,
Packit 1f69a5
                                                      GstClockTime longest_chunk,
Packit 1f69a5
                                                      gboolean faststart);
Packit 1f69a5
Packit 1f69a5
AtomsTreeFlavor gst_qt_mux_map_format_to_flavor      (GstQTMuxFormat format);
Packit 1f69a5
Packit 1f69a5
#endif /* __GST_QT_MUX_MAP_H__ */