This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #include <stdio.h> | |
| #include <gst/gst.h> | |
| int main(int argc, char* argv[]){ | |
| const gchar *nano_str; | |
| guint major, minor, micro, nano; | |
| gst_init(&argc, &argv); | |
| gst_version(&major, &minor, µ, &nano); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #include <gst/gst.h> | |
| int main(int argc, char* argv[]) | |
| { | |
| GstElement *bin, *pipeline, *source, *sink; | |
| /* init */ | |
| gst_init(&argc, &argv); | |
| /* create */ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #include <gst/gst.h> | |
| int main(int argc, char* argv[]) | |
| { | |
| GstElement *element; | |
| /* init GStreamer */ | |
| gst_init(&argc, &argc); | |
| /* create element */ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #include <gst/gst.h> | |
| int main(int argc, char* argv[]) | |
| { | |
| GstElement* pipeline; | |
| GstElement* source, *filter, *sink; | |
| gst_init(&argc, &argv); | |
| /* creatae pipeline */ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #include <gst/gst.h> | |
| static GMainLoop *loop; | |
| static gboolean my_bus_callback (GstBus *bus, GstMessage *message, gpointer data) | |
| { | |
| g_print ("Got %s message\n", GST_MESSAGE_TYPE_NAME (message)); | |
| switch (GST_MESSAGE_TYPE (message)) { | |
| case GST_MESSAGE_ERROR: { | |
| GError *err; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #include <gst/gst.h> | |
| static void cb_new_pad (GstElement *element, GstPad *pad, gpointer data) | |
| { | |
| gchar *name; | |
| name = gst_pad_get_name (pad); | |
| g_print ("A new pad %s was created\n", name); | |
| g_free (name); | |
| /* here, you would setup a new pad link for the newly created pad */ | |
| [..] | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #inlcude <gst/gst.h> | |
| int main(int argc, char* argv[]) | |
| { | |
| GstElement* bin, *sink; | |
| gstpad* pad; | |
| /* init */ | |
| gst_init(&argc, &argv); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // 현재 날짜 가져오기 | |
| function getCurrentDate(){ | |
| var week = new Array('일', '월', '화', '수', '목', '금', '토'); | |
| var today = new Date(); | |
| var year = today.getFullYear(); | |
| var month = today.getMonth() + 1; | |
| var day = today.getDate(); | |
| var dayName = week[today.getDay()]; | |
| console.log("현재 날짜는 %d-%d-%d %s요일 입니다.", year, month, day, dayName); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| define('PAGE_ROOT', dirname(realpath(__FILE))); | |
| if(!is_dir(PAGE_ROOT."/test/aaa")){ | |
| umask(0); | |
| if(!mkdir(PAGE_ROOT."/test/aaa", 0777, true)){ | |
| print_r(error_get_last()); | |
| return; | |
| } | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| function _checkMobile(){ | |
| $result = false; | |
| $mobile = '/(iPhone|Android)/'; | |
| if(preg_match($mobile, $_SERVER['HTTP_USER_AGENT'])){ | |
| $result = true; // 현재 모바일에서 들어온 HTTP 요청임. | |
| } | |
| return $result; | |
| } |