Blame src/_quvi_media_s.h

Packit 3ff1e7
/* libquvi
Packit 3ff1e7
 * Copyright (C) 2012  Toni Gundogdu <legatvs@gmail.com>
Packit 3ff1e7
 *
Packit 3ff1e7
 * This file is part of libquvi <http://quvi.sourceforge.net/>.
Packit 3ff1e7
 *
Packit 3ff1e7
 * This library is free software: you can redistribute it and/or
Packit 3ff1e7
 * modify it under the terms of the GNU Affero General Public
Packit 3ff1e7
 * License as published by the Free Software Foundation, either
Packit 3ff1e7
 * version 3 of the License, or (at your option) any later version.
Packit 3ff1e7
 *
Packit 3ff1e7
 * This library is distributed in the hope that it will be useful,
Packit 3ff1e7
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
Packit 3ff1e7
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
Packit 3ff1e7
 * GNU Affero General Public License for more details.
Packit 3ff1e7
 *
Packit 3ff1e7
 * You should have received a copy of the GNU Affero General
Packit 3ff1e7
 * Public License along with this library.  If not, see
Packit 3ff1e7
 * <http://www.gnu.org/licenses/>.
Packit 3ff1e7
 */
Packit 3ff1e7
Packit 3ff1e7
#ifndef _quvi_media_s_h
Packit 3ff1e7
#define _quvi_media_s_h
Packit 3ff1e7
Packit 3ff1e7
struct _quvi_media_stream_s
Packit 3ff1e7
{
Packit 3ff1e7
  struct
Packit 3ff1e7
  {
Packit 3ff1e7
    gdouble bitrate_kbit_s;
Packit 3ff1e7
    GString *encoding;
Packit 3ff1e7
    gdouble height;
Packit 3ff1e7
    gdouble width;
Packit 3ff1e7
  } video;
Packit 3ff1e7
  struct
Packit 3ff1e7
  {
Packit 3ff1e7
    gdouble bitrate_kbit_s;
Packit 3ff1e7
    GString *encoding;
Packit 3ff1e7
  } audio;
Packit 3ff1e7
  struct
Packit 3ff1e7
  {
Packit 3ff1e7
    gboolean best;
Packit 3ff1e7
  } flags;
Packit 3ff1e7
  GString *container;
Packit 3ff1e7
  GString *url;
Packit 3ff1e7
  GString *id;
Packit 3ff1e7
};
Packit 3ff1e7
Packit 3ff1e7
typedef struct _quvi_media_stream_s *_quvi_media_stream_t;
Packit 3ff1e7
Packit 3ff1e7
struct _quvi_media_s
Packit 3ff1e7
{
Packit 3ff1e7
  struct
Packit 3ff1e7
  {
Packit 3ff1e7
    GSList *stream;
Packit 3ff1e7
  } curr;
Packit 3ff1e7
  struct
Packit 3ff1e7
  {
Packit 3ff1e7
    GString *redirect_to; /* Set in a media script ("goto_url") */
Packit 3ff1e7
    GString *thumbnail;
Packit 3ff1e7
    GString *input; /* e.g. "http://youtube.com/?watch=foo" */
Packit 3ff1e7
  } url;
Packit 3ff1e7
  struct
Packit 3ff1e7
  {
Packit 3ff1e7
    _quvi_t quvi;
Packit 3ff1e7
  } handle;
Packit 3ff1e7
  /* Other */
Packit 3ff1e7
  gdouble start_time_ms;
Packit 3ff1e7
  gdouble duration_ms;
Packit 3ff1e7
  GSList *streams;
Packit 3ff1e7
  GString *title;
Packit 3ff1e7
  GString *id;
Packit 3ff1e7
};
Packit 3ff1e7
Packit 3ff1e7
typedef struct _quvi_media_s *_quvi_media_t;
Packit 3ff1e7
Packit 3ff1e7
#endif /* _quvi_media_s_h */
Packit 3ff1e7
Packit 3ff1e7
/* vim: set ts=2 sw=2 tw=72 expandtab: */