x264_gtk_encode_private.h
上传用户:hjq518
上传日期:2021-12-09
资源大小:5084k
文件大小:2k
源码类别:

Audio

开发平台:

Visual C++

  1. /*****************************************************************************
  2.  * x264_gtk_encode_private.h: h264 gtk encoder frontend
  3.  *****************************************************************************
  4.  * Copyright (C) 2006 Vincent Torri
  5.  *
  6.  * This program is free software; you can redistribute it and/or modify
  7.  * it under the terms of the GNU General Public License as published by
  8.  * the Free Software Foundation; either version 2 of the License, or
  9.  * (at your option) any later version.
  10.  *
  11.  * This program is distributed in the hope that it will be useful,
  12.  * but WITHOUT ANY WARRANTY; without even the implied warranty of
  13.  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  14.  * GNU General Public License for more details.
  15.  *
  16.  * You should have received a copy of the GNU General Public License
  17.  * along with this program; if not, write to the Free Software
  18.  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02111, USA.
  19.  *****************************************************************************/
  20. #ifndef X264_GTK_ENCODE_PRIVATE_H
  21. #define X264_GTK_ENCODE_PRIVATE_H
  22. #include <common/osdep.h>
  23. #include "x264_gtk_demuxers.h"
  24. typedef struct X264_Thread_Data_ X264_Thread_Data;
  25. typedef struct X264_Pipe_Data_ X264_Pipe_Data;
  26. struct X264_Thread_Data_
  27. {
  28.   GtkWidget         *current_video_frame;
  29.   GtkWidget         *video_data;
  30.   GtkWidget         *video_rendering_rate;
  31.   GtkWidget         *time_elapsed;
  32.   GtkWidget         *time_remaining;
  33.   GtkWidget         *progress;
  34.   GtkWidget         *dialog;
  35.   GtkWidget         *button;
  36.   GtkWidget         *end_button;
  37.   x264_param_t      *param;
  38.   gchar             *file_input;
  39.   X264_Demuxer_Type  in_container;
  40.   gchar             *file_output;
  41.   gint               out_container;
  42.   /* file descriptors */
  43.   GIOChannel        *io_read;  /* use it with read */
  44.   GIOChannel        *io_write; /* use it with write */
  45. };
  46. struct X264_Pipe_Data_
  47. {
  48.   int     frame;
  49.   int     frame_total;
  50.   int     file;
  51.   int64_t elapsed;
  52. };
  53. #endif /* X264_GTK_ENCODE_PRIVATE_H */