Code/Resource
Windows Develop
Linux-Unix program
Internet-Socket-Network
Web Server
Browser Client
Ftp Server
Ftp Client
Browser Plugins
Proxy Server
Email Server
Email Client
WEB Mail
Firewall-Security
Telnet Server
Telnet Client
ICQ-IM-Chat
Search Engine
Sniffer Package capture
Remote Control
xml-soap-webservice
P2P
WEB(ASP,PHP,...)
TCP/IP Stack
SNMP
Grid Computing
SilverLight
DNS
Cluster Service
Network Security
Communication-Mobile
Game Program
Editor
Multimedia program
Graph program
Compiler program
Compress-Decompress algrithms
Crypt_Decrypt algrithms
Mathimatics-Numerical algorithms
MultiLanguage
Disk/Storage
Java Develop
assembly language
Applications
Other systems
Database system
Embeded-SCM Develop
FlashMX/Flex
source in ebook
Delphi VCL
OS Develop
MiddleWare
MPI
MacOS develop
LabView
ELanguage
Software/Tools
E-Books
Artical/Document
test.c
Package: chapter15.rar [view]
Upload User: hjq518
Upload Date: 2021-12-09
Package Size: 5084k
Code Size: 2k
Category:
Audio program
Development Platform:
Visual C++
- /*****************************************************************************
- * test.c: h264 gtk encoder frontend
- *****************************************************************************
- * Copyright (C) 2006 Vincent Torri
- *
- * This program is free software; you can redistribute it and/or modify
- * it under the terms of the GNU General Public License as published by
- * the Free Software Foundation; either version 2 of the License, or
- * (at your option) any later version.
- *
- * This program is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- * GNU General Public License for more details.
- *
- * You should have received a copy of the GNU General Public License
- * along with this program; if not, write to the Free Software
- * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02111, USA.
- *****************************************************************************/
- #include <stdint.h>
- #include <string.h>
- #include <gtk/gtk.h>
- #include "../x264.h"
- #include "../common/common.h"
- #include "x264_gtk.h"
- #include "x264_gtk_private.h"
- #include "x264_gtk_i18n.h"
- int
- main (int argc, char *argv[])
- {
- GtkWidget *window;
- X264_Gtk *x264_gtk;
- x264_param_t *param;
- x264_param_t param_default;
- char *res;
- char *res_default;
- BIND_X264_TEXTDOMAIN();
- gtk_init (&argc, &argv);
- window = x264_gtk_window_create (NULL);
- x264_gtk_shutdown (window);
- x264_gtk = x264_gtk_load ();
- param = x264_gtk_param_get (x264_gtk);
- /* do what you want with these data */
- /* for example, displaying them and compare with default*/
- res = x264_param2string (param, 0);
- printf ("%sn", res);
- x264_param_default (¶m_default);
- res_default = x264_param2string (¶m_default, 0);
- printf ("n%sn", res_default);
- if (strcmp (res, res_default) == 0)
- printf (_("nSame result !n"));
- else
- printf (_("nDifferent from default valuesn"));
- x264_free (res);
- x264_free (res_default);
- x264_gtk_free (x264_gtk);
- g_free (param);
- return 1;
- }