├── .gitignore ├── .qmake.stash ├── .vs └── QtQuickPlayer │ └── v14 │ └── .suo ├── ContactModel.qml ├── LyricModel.cpp ├── LyricModel.h ├── LyricWindow.qml ├── MainWindow.qml ├── PlayCore ├── FFmpegPlayer.cpp ├── FFmpegPlayer.h ├── include │ ├── SDL2 │ │ ├── SDL.h │ │ ├── SDL_assert.h │ │ ├── SDL_atomic.h │ │ ├── SDL_audio.h │ │ ├── SDL_bits.h │ │ ├── SDL_blendmode.h │ │ ├── SDL_clipboard.h │ │ ├── SDL_config.h │ │ ├── SDL_cpuinfo.h │ │ ├── SDL_endian.h │ │ ├── SDL_error.h │ │ ├── SDL_events.h │ │ ├── SDL_filesystem.h │ │ ├── SDL_gamecontroller.h │ │ ├── SDL_gesture.h │ │ ├── SDL_haptic.h │ │ ├── SDL_hints.h │ │ ├── SDL_joystick.h │ │ ├── SDL_keyboard.h │ │ ├── SDL_keycode.h │ │ ├── SDL_loadso.h │ │ ├── SDL_log.h │ │ ├── SDL_main.h │ │ ├── SDL_messagebox.h │ │ ├── SDL_mouse.h │ │ ├── SDL_mutex.h │ │ ├── SDL_name.h │ │ ├── SDL_opengl.h │ │ ├── SDL_opengles.h │ │ ├── SDL_opengles2.h │ │ ├── SDL_pixels.h │ │ ├── SDL_platform.h │ │ ├── SDL_power.h │ │ ├── SDL_quit.h │ │ ├── SDL_rect.h │ │ ├── SDL_render.h │ │ ├── SDL_revision.h │ │ ├── SDL_rwops.h │ │ ├── SDL_scancode.h │ │ ├── SDL_shape.h │ │ ├── SDL_stdinc.h │ │ ├── SDL_surface.h │ │ ├── SDL_system.h │ │ ├── SDL_syswm.h │ │ ├── SDL_test.h │ │ ├── SDL_test_assert.h │ │ ├── SDL_test_common.h │ │ ├── SDL_test_compare.h │ │ ├── SDL_test_crc32.h │ │ ├── SDL_test_font.h │ │ ├── SDL_test_fuzzer.h │ │ ├── SDL_test_harness.h │ │ ├── SDL_test_images.h │ │ ├── SDL_test_log.h │ │ ├── SDL_test_md5.h │ │ ├── SDL_test_random.h │ │ ├── SDL_thread.h │ │ ├── SDL_timer.h │ │ ├── SDL_touch.h │ │ ├── SDL_types.h │ │ ├── SDL_version.h │ │ ├── SDL_video.h │ │ ├── begin_code.h │ │ └── close_code.h │ ├── libavcodec │ │ ├── avcodec.h │ │ ├── avdct.h │ │ ├── avfft.h │ │ ├── d3d11va.h │ │ ├── dirac.h │ │ ├── dv_profile.h │ │ ├── dxva2.h │ │ ├── jni.h │ │ ├── mediacodec.h │ │ ├── qsv.h │ │ ├── vaapi.h │ │ ├── vda.h │ │ ├── vdpau.h │ │ ├── version.h │ │ ├── videotoolbox.h │ │ ├── vorbis_parser.h │ │ └── xvmc.h │ ├── libavdevice │ │ ├── avdevice.h │ │ └── version.h │ ├── libavfilter │ │ ├── avfilter.h │ │ ├── avfiltergraph.h │ │ ├── buffersink.h │ │ ├── buffersrc.h │ │ └── version.h │ ├── libavformat │ │ ├── avformat.h │ │ ├── avio.h │ │ ├── config.h │ │ └── version.h │ ├── libavutil │ │ ├── adler32.h │ │ ├── aes.h │ │ ├── aes_ctr.h │ │ ├── attributes.h │ │ ├── audio_fifo.h │ │ ├── avassert.h │ │ ├── avconfig.h │ │ ├── avstring.h │ │ ├── avutil.h │ │ ├── base64.h │ │ ├── blowfish.h │ │ ├── bprint.h │ │ ├── bswap.h │ │ ├── buffer.h │ │ ├── camellia.h │ │ ├── cast5.h │ │ ├── channel_layout.h │ │ ├── common.h │ │ ├── cpu.h │ │ ├── crc.h │ │ ├── des.h │ │ ├── dict.h │ │ ├── display.h │ │ ├── downmix_info.h │ │ ├── error.h │ │ ├── eval.h │ │ ├── ffversion.h │ │ ├── fifo.h │ │ ├── file.h │ │ ├── frame.h │ │ ├── hash.h │ │ ├── hmac.h │ │ ├── hwcontext.h │ │ ├── hwcontext_cuda.h │ │ ├── hwcontext_dxva2.h │ │ ├── hwcontext_qsv.h │ │ ├── hwcontext_vaapi.h │ │ ├── hwcontext_vdpau.h │ │ ├── imgutils.h │ │ ├── intfloat.h │ │ ├── intreadwrite.h │ │ ├── lfg.h │ │ ├── log.h │ │ ├── lzo.h │ │ ├── macros.h │ │ ├── mastering_display_metadata.h │ │ ├── mathematics.h │ │ ├── md5.h │ │ ├── mem.h │ │ ├── motion_vector.h │ │ ├── murmur3.h │ │ ├── opt.h │ │ ├── parseutils.h │ │ ├── pixdesc.h │ │ ├── pixelutils.h │ │ ├── pixfmt.h │ │ ├── random_seed.h │ │ ├── rational.h │ │ ├── rc4.h │ │ ├── replaygain.h │ │ ├── ripemd.h │ │ ├── samplefmt.h │ │ ├── sha.h │ │ ├── sha512.h │ │ ├── stereo3d.h │ │ ├── tea.h │ │ ├── threadmessage.h │ │ ├── time.h │ │ ├── timecode.h │ │ ├── timestamp.h │ │ ├── tree.h │ │ ├── twofish.h │ │ ├── version.h │ │ └── xtea.h │ ├── libpostproc │ │ ├── postprocess.h │ │ └── version.h │ ├── libswresample │ │ ├── swresample.h │ │ └── version.h │ └── libswscale │ │ ├── swscale.h │ │ └── version.h ├── lib │ ├── SDL2.lib │ ├── SDL2main.lib │ ├── avcodec-57.def │ ├── avcodec.lib │ ├── avdevice-57.def │ ├── avdevice.lib │ ├── avfilter-6.def │ ├── avfilter.lib │ ├── avformat-57.def │ ├── avformat.lib │ ├── avutil-55.def │ ├── avutil.lib │ ├── libavcodec.dll.a │ ├── libavdevice.dll.a │ ├── libavfilter.dll.a │ ├── libavformat.dll.a │ ├── libavutil.dll.a │ ├── libpostproc.dll.a │ ├── libswresample.dll.a │ ├── libswscale.dll.a │ ├── postproc-54.def │ ├── postproc.lib │ ├── swresample-2.def │ ├── swresample.lib │ ├── swscale-4.def │ └── swscale.lib ├── myMediaList.cpp ├── myMediaList.h ├── myPlayer.cpp ├── myPlayer.h └── player.pri ├── PlayList.qml ├── QtQuickPlayer.pro ├── QtQuickPlayer.pro.user ├── QtQuickPlayer.sln ├── QtQuickPlayer.vcxproj ├── QtQuickPlayer.vcxproj.filters ├── QtQuickPlayer_resource.rc ├── QuickLayer.cpp ├── QuickLayer.h ├── README.md ├── SearchWindow.qml ├── SongListModel.cpp ├── SongListModel.h ├── XButton.qml ├── XSlider.qml ├── assets ├── markdown-img-paste-20180921154553967.png ├── markdown-img-paste-20181011101229522.png ├── markdown-img-paste-20181011101253540.png └── markdown-img-paste-20181011101312356.png ├── del.bat ├── main.cpp ├── main.qml ├── model.cpp ├── model.h ├── myapp.aps ├── myapp.rc ├── myico.ico ├── netWork ├── mynetwork.cpp ├── mynetwork.h └── network.pri ├── qml.qrc └── res ├── browser ├── browser_next_page.png └── browser_prev_page.png ├── buttonImage ├── btn_browser_next_hover.png ├── btn_browser_next_normal.png ├── btn_browser_pre_hover.png ├── btn_browser_pre_normal.png ├── btn_browser_rad_hover.png ├── btn_browser_rad_normal.png ├── close_disable.png ├── close_down.png ├── close_hover.png ├── close_normal.png ├── menu_down.png ├── menu_hover.png ├── menu_normal.png ├── min_down.png ├── min_hover.png └── min_normal.png ├── index.html ├── left.html ├── lyric.html ├── main.html ├── playList └── playing_list_icon.png ├── playMode ├── btn_lyric.png ├── btn_lyric_normal.png ├── btn_lyric_pressed.png ├── btn_play_mode_circle.png ├── btn_play_mode_circle_normal.png ├── btn_play_mode_circle_pressed.png ├── btn_play_mode_next.png ├── btn_play_mode_next_normal.png ├── btn_play_mode_next_pressed.png ├── btn_play_mode_rand.png ├── btn_play_mode_rand_normal.png ├── btn_play_mode_rand_pressed.png ├── btn_play_mode_single_circle.png ├── btn_play_mode_single_circle_normal.png ├── btn_play_mode_single_circle_pressed.png ├── btn_playing_list.png ├── btn_playing_list_normal.png └── btn_playing_list_pressed.png ├── search.html ├── src ├── css │ ├── font-awesome.min.css │ ├── g=2018.css │ ├── g=2018csslist.css │ ├── index.css │ ├── main&f=recommend.css │ ├── reset.css │ ├── scorll.css │ └── slide.css ├── fonts │ ├── FontAwesome.otf │ ├── fontawesome-webfont.eot │ ├── fontawesome-webfont.svg │ ├── fontawesome-webfont.ttf │ ├── fontawesome-webfont.woff │ └── fontawesome-webfont.woff2 ├── images │ ├── al8.png │ ├── alq.png │ ├── arrow-next.png │ ├── arrow-prev.png │ ├── banner_arrow_bg.png │ ├── banner_dot_bg.png │ ├── banner_dot_bg_ie6.png │ ├── bg1.png │ ├── bg2.png │ ├── bg3.png │ ├── btn_1_ie6_2.png │ ├── btn_5_2.png │ ├── btn_7.png │ ├── btn_7_ie6_2.png │ ├── disc-o.png │ ├── disc.png │ ├── format.ico │ ├── icon1.png │ ├── icon_15.png │ ├── icon_15_ie6.png │ ├── icon_2.png │ ├── icon_2_ie6.png │ ├── more_dt.png │ ├── more_dt_hover.png │ ├── needle.png │ ├── netease-logo.png │ ├── new_hot_song_bg.png │ ├── new_new_song_bg.png │ ├── nums_icons.png │ ├── pic_01.png │ ├── pic_02.png │ ├── pic_03.png │ ├── pic_04.png │ ├── pic_05.png │ ├── pic_1.jpg │ ├── pic_2.jpg │ ├── pic_3.jpg │ ├── pic_4.jpg │ ├── pic_5.jpg │ ├── pic_6.jpg │ ├── pic_7.jpg │ ├── pic_8.jpg │ ├── temp_pic001.jpg │ └── user_face.png ├── js │ ├── dailyRCInterface.js │ ├── g=2018function.js │ ├── g=2018function2.js │ ├── g=2018js,ugc.js │ ├── index.js │ ├── lyricScroll.js │ ├── main&f=slide.js,recommend.js │ ├── player.js │ ├── qwebchannel.js │ └── request.js └── libs │ └── jquery-3.1.1.min.js ├── title.png └── trayMenu ├── ad.png ├── btn_next_normal.png ├── btn_next_pressed.png ├── btn_next_tray_menu.png ├── btn_pause_normal.png ├── btn_pause_pressed.png ├── btn_pause_tray_menu.png ├── btn_play_normal.png ├── btn_play_pressed.png ├── btn_play_tray_menu.png ├── btn_prev_normal.png ├── btn_prev_pressed.png ├── btn_prev_tray_menu.png ├── btn_search.png ├── btn_search_normal.png ├── btn_search_pressed.png ├── list_type_icon.png ├── list_type_icon1.png ├── list_type_icon2.png ├── list_type_icon3.png ├── list_type_icon4.png ├── list_type_icon5.png ├── list_type_icon6.png └── list_type_icon7.png /.qmake.stash: -------------------------------------------------------------------------------- 1 | QMAKE_CXX.INCDIRS = \ 2 | E:\\Qt\\Qt5.9.6\\5.9.6\\msvc2015\\include \ 3 | "C:\\Program Files (x86)\\Microsoft Visual Studio 14.0\\VC\\INCLUDE" \ 4 | "C:\\Program Files (x86)\\Microsoft Visual Studio 14.0\\VC\\ATLMFC\\INCLUDE" \ 5 | "C:\\Program Files (x86)\\Windows Kits\\10\\include\\10.0.10240.0\\ucrt" \ 6 | "C:\\Program Files (x86)\\Windows Kits\\NETFXSDK\\4.6.1\\include\\um" \ 7 | "C:\\Program Files (x86)\\Windows Kits\\8.1\\include\\\\shared" \ 8 | "C:\\Program Files (x86)\\Windows Kits\\8.1\\include\\\\um" \ 9 | "C:\\Program Files (x86)\\Windows Kits\\8.1\\include\\\\winrt" 10 | QMAKE_CXX.LIBDIRS = \ 11 | E:\\Qt\\Qt5.9.6\\5.9.6\\msvc2015\\lib \ 12 | "C:\\Program Files (x86)\\Microsoft Visual Studio 14.0\\VC\\LIB" \ 13 | "C:\\Program Files (x86)\\Microsoft Visual Studio 14.0\\VC\\ATLMFC\\LIB" \ 14 | "C:\\Program Files (x86)\\Windows Kits\\10\\lib\\10.0.10240.0\\ucrt\\x86" \ 15 | "C:\\Program Files (x86)\\Windows Kits\\NETFXSDK\\4.6.1\\lib\\um\\x86" \ 16 | "C:\\Program Files (x86)\\Windows Kits\\8.1\\lib\\winv6.3\\um\\x86" 17 | QMAKE_CXX.QT_COMPILER_STDCXX = 199711L 18 | QMAKE_CXX.QMAKE_MSC_VER = 1900 19 | QMAKE_CXX.QMAKE_MSC_FULL_VER = 190024215 20 | QMAKE_CXX.COMPILER_MACROS = \ 21 | QT_COMPILER_STDCXX \ 22 | QMAKE_MSC_VER \ 23 | QMAKE_MSC_FULL_VER 24 | -------------------------------------------------------------------------------- /.vs/QtQuickPlayer/v14/.suo: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NinthKnight/QtQuickPlayer/fee5c7b5ab273b66815b0fe2c19135db06820bc2/.vs/QtQuickPlayer/v14/.suo -------------------------------------------------------------------------------- /ContactModel.qml: -------------------------------------------------------------------------------- 1 | import QtQuick 2.0 2 | 3 | ListModel { 4 | ListElement { 5 | name: "默认列表" 6 | srcImg:"qrc:/res/trayMenu/list_type_icon1.png" 7 | } 8 | ListElement { 9 | name: "最近播放" 10 | srcImg:"qrc:/res/trayMenu/list_type_icon2.png" 11 | } 12 | ListElement { 13 | name: "我的收藏" 14 | srcImg:"qrc:/res/trayMenu/list_type_icon3.png" 15 | } 16 | ListElement { 17 | name: "下载管理" 18 | srcImg:"qrc:/res/trayMenu/list_type_icon7.png" 19 | } 20 | } 21 | -------------------------------------------------------------------------------- /LyricModel.cpp: -------------------------------------------------------------------------------- 1 | #include "LyricModel.h" 2 | 3 | 4 | CLyricModel::CLyricModel() 5 | { 6 | } 7 | 8 | 9 | CLyricModel::~CLyricModel() 10 | { 11 | } 12 | -------------------------------------------------------------------------------- /LyricModel.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NinthKnight/QtQuickPlayer/fee5c7b5ab273b66815b0fe2c19135db06820bc2/LyricModel.h -------------------------------------------------------------------------------- /LyricWindow.qml: -------------------------------------------------------------------------------- 1 | import QtQuick 2.9 2 | import QtQuick.Window 2.2 3 | import QtQuick.Controls 1.4 4 | import QtQuick.Controls.Styles 1.4 5 | import QtQuick.Dialogs 1.1 6 | import QtQuick.Layouts 1.3 7 | import QtGraphicalEffects 1.0 8 | import QtWebEngine 1.5 9 | import QtWebChannel 1.0 10 | 11 | import com.mplayer 1.0 12 | 13 | Rectangle { 14 | id:myLyricWindow; 15 | visible: true; 16 | 17 | width:843; 18 | height: 624; 19 | 20 | function reload(){ 21 | console.log("reload"); 22 | mainHtml.reload(); 23 | } 24 | 25 | //需要注册一个WebChannel对象 26 | WebChannel{ 27 | id:changedId 28 | registeredObjects:[myObject] 29 | } 30 | 31 | WebEngineView { 32 | id:mainHtml 33 | anchors.fill: parent 34 | url: "qrc:/res/lyric.html" 35 | webChannel:changedId 36 | 37 | onContextMenuRequested: function(request) { 38 | request.accepted = true 39 | } 40 | } 41 | 42 | MLyric{ 43 | id: myObject 44 | WebChannel.id: "mPlayer" //这个id可在html中使用 45 | 46 | signal signal_setScorll(int time); 47 | 48 | //c++ -->Qml 49 | onSignalSendToQml: { 50 | //console.log("onSignalSendToQml" + nTime); 51 | signal_setScorll(nTime); 52 | } 53 | 54 | //c++ -->Qml 55 | onSignalReloadLyric: { 56 | console.log("onSignalReloadLyric"); 57 | myLyricWindow.reload(); 58 | } 59 | 60 | //扩展的函数 61 | function hideLyric(){ 62 | console.log("hideLyric"); 63 | lyricModel.sig_HideLyric(); 64 | } 65 | 66 | function getLyric(){ 67 | console.log("getLyric1234"); 68 | var d = lyricModel.getLyric(); 69 | return d 70 | } 71 | 72 | function getSonger(){ 73 | console.log("getSonger"); 74 | var d = lyricModel.getSonger(); 75 | return d 76 | } 77 | 78 | function getAlbumName(){ 79 | console.log("getAlbumName"); 80 | var d = lyricModel.getAlbumName(); 81 | return d 82 | } 83 | 84 | function getSongName(){ 85 | console.log("getSongName"); 86 | var d = lyricModel.getSongName(); 87 | return d 88 | } 89 | 90 | } 91 | 92 | 93 | 94 | 95 | 96 | } 97 | -------------------------------------------------------------------------------- /PlayCore/FFmpegPlayer.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NinthKnight/QtQuickPlayer/fee5c7b5ab273b66815b0fe2c19135db06820bc2/PlayCore/FFmpegPlayer.cpp -------------------------------------------------------------------------------- /PlayCore/FFmpegPlayer.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NinthKnight/QtQuickPlayer/fee5c7b5ab273b66815b0fe2c19135db06820bc2/PlayCore/FFmpegPlayer.h -------------------------------------------------------------------------------- /PlayCore/include/SDL2/SDL_bits.h: -------------------------------------------------------------------------------- 1 | /* 2 | Simple DirectMedia Layer 3 | Copyright (C) 1997-2014 Sam Lantinga 4 | 5 | This software is provided 'as-is', without any express or implied 6 | warranty. In no event will the authors be held liable for any damages 7 | arising from the use of this software. 8 | 9 | Permission is granted to anyone to use this software for any purpose, 10 | including commercial applications, and to alter it and redistribute it 11 | freely, subject to the following restrictions: 12 | 13 | 1. The origin of this software must not be misrepresented; you must not 14 | claim that you wrote the original software. If you use this software 15 | in a product, an acknowledgment in the product documentation would be 16 | appreciated but is not required. 17 | 2. Altered source versions must be plainly marked as such, and must not be 18 | misrepresented as being the original software. 19 | 3. This notice may not be removed or altered from any source distribution. 20 | */ 21 | 22 | /** 23 | * \file SDL_bits.h 24 | * 25 | * Functions for fiddling with bits and bitmasks. 26 | */ 27 | 28 | #ifndef _SDL_bits_h 29 | #define _SDL_bits_h 30 | 31 | #include "SDL_stdinc.h" 32 | 33 | #include "begin_code.h" 34 | /* Set up for C function definitions, even when using C++ */ 35 | #ifdef __cplusplus 36 | extern "C" { 37 | #endif 38 | 39 | /** 40 | * \file SDL_bits.h 41 | */ 42 | 43 | /** 44 | * Get the index of the most significant bit. Result is undefined when called 45 | * with 0. This operation can also be stated as "count leading zeroes" and 46 | * "log base 2". 47 | * 48 | * \return Index of the most significant bit, or -1 if the value is 0. 49 | */ 50 | SDL_FORCE_INLINE int 51 | SDL_MostSignificantBitIndex32(Uint32 x) 52 | { 53 | #if defined(__GNUC__) && __GNUC__ >= 4 54 | /* Count Leading Zeroes builtin in GCC. 55 | * http://gcc.gnu.org/onlinedocs/gcc-4.3.4/gcc/Other-Builtins.html 56 | */ 57 | if (x == 0) { 58 | return -1; 59 | } 60 | return 31 - __builtin_clz(x); 61 | #else 62 | /* Based off of Bit Twiddling Hacks by Sean Eron Anderson 63 | * , released in the public domain. 64 | * http://graphics.stanford.edu/~seander/bithacks.html#IntegerLog 65 | */ 66 | const Uint32 b[] = {0x2, 0xC, 0xF0, 0xFF00, 0xFFFF0000}; 67 | const int S[] = {1, 2, 4, 8, 16}; 68 | 69 | int msbIndex = 0; 70 | int i; 71 | 72 | if (x == 0) { 73 | return -1; 74 | } 75 | 76 | for (i = 4; i >= 0; i--) 77 | { 78 | if (x & b[i]) 79 | { 80 | x >>= S[i]; 81 | msbIndex |= S[i]; 82 | } 83 | } 84 | 85 | return msbIndex; 86 | #endif 87 | } 88 | 89 | /* Ends C function definitions when using C++ */ 90 | #ifdef __cplusplus 91 | } 92 | #endif 93 | #include "close_code.h" 94 | 95 | #endif /* _SDL_bits_h */ 96 | 97 | /* vi: set ts=4 sw=4 expandtab: */ 98 | -------------------------------------------------------------------------------- /PlayCore/include/SDL2/SDL_blendmode.h: -------------------------------------------------------------------------------- 1 | /* 2 | Simple DirectMedia Layer 3 | Copyright (C) 1997-2014 Sam Lantinga 4 | 5 | This software is provided 'as-is', without any express or implied 6 | warranty. In no event will the authors be held liable for any damages 7 | arising from the use of this software. 8 | 9 | Permission is granted to anyone to use this software for any purpose, 10 | including commercial applications, and to alter it and redistribute it 11 | freely, subject to the following restrictions: 12 | 13 | 1. The origin of this software must not be misrepresented; you must not 14 | claim that you wrote the original software. If you use this software 15 | in a product, an acknowledgment in the product documentation would be 16 | appreciated but is not required. 17 | 2. Altered source versions must be plainly marked as such, and must not be 18 | misrepresented as being the original software. 19 | 3. This notice may not be removed or altered from any source distribution. 20 | */ 21 | 22 | /** 23 | * \file SDL_blendmode.h 24 | * 25 | * Header file declaring the SDL_BlendMode enumeration 26 | */ 27 | 28 | #ifndef _SDL_blendmode_h 29 | #define _SDL_blendmode_h 30 | 31 | #include "begin_code.h" 32 | /* Set up for C function definitions, even when using C++ */ 33 | #ifdef __cplusplus 34 | extern "C" { 35 | #endif 36 | 37 | /** 38 | * \brief The blend mode used in SDL_RenderCopy() and drawing operations. 39 | */ 40 | typedef enum 41 | { 42 | SDL_BLENDMODE_NONE = 0x00000000, /**< no blending 43 | dstRGBA = srcRGBA */ 44 | SDL_BLENDMODE_BLEND = 0x00000001, /**< alpha blending 45 | dstRGB = (srcRGB * srcA) + (dstRGB * (1-srcA)) 46 | dstA = srcA + (dstA * (1-srcA)) */ 47 | SDL_BLENDMODE_ADD = 0x00000002, /**< additive blending 48 | dstRGB = (srcRGB * srcA) + dstRGB 49 | dstA = dstA */ 50 | SDL_BLENDMODE_MOD = 0x00000004 /**< color modulate 51 | dstRGB = srcRGB * dstRGB 52 | dstA = dstA */ 53 | } SDL_BlendMode; 54 | 55 | /* Ends C function definitions when using C++ */ 56 | #ifdef __cplusplus 57 | } 58 | #endif 59 | #include "close_code.h" 60 | 61 | #endif /* _SDL_video_h */ 62 | 63 | /* vi: set ts=4 sw=4 expandtab: */ 64 | -------------------------------------------------------------------------------- /PlayCore/include/SDL2/SDL_clipboard.h: -------------------------------------------------------------------------------- 1 | /* 2 | Simple DirectMedia Layer 3 | Copyright (C) 1997-2014 Sam Lantinga 4 | 5 | This software is provided 'as-is', without any express or implied 6 | warranty. In no event will the authors be held liable for any damages 7 | arising from the use of this software. 8 | 9 | Permission is granted to anyone to use this software for any purpose, 10 | including commercial applications, and to alter it and redistribute it 11 | freely, subject to the following restrictions: 12 | 13 | 1. The origin of this software must not be misrepresented; you must not 14 | claim that you wrote the original software. If you use this software 15 | in a product, an acknowledgment in the product documentation would be 16 | appreciated but is not required. 17 | 2. Altered source versions must be plainly marked as such, and must not be 18 | misrepresented as being the original software. 19 | 3. This notice may not be removed or altered from any source distribution. 20 | */ 21 | 22 | /** 23 | * \file SDL_clipboard.h 24 | * 25 | * Include file for SDL clipboard handling 26 | */ 27 | 28 | #ifndef _SDL_clipboard_h 29 | #define _SDL_clipboard_h 30 | 31 | #include "SDL_stdinc.h" 32 | 33 | #include "begin_code.h" 34 | /* Set up for C function definitions, even when using C++ */ 35 | #ifdef __cplusplus 36 | extern "C" { 37 | #endif 38 | 39 | /* Function prototypes */ 40 | 41 | /** 42 | * \brief Put UTF-8 text into the clipboard 43 | * 44 | * \sa SDL_GetClipboardText() 45 | */ 46 | extern DECLSPEC int SDLCALL SDL_SetClipboardText(const char *text); 47 | 48 | /** 49 | * \brief Get UTF-8 text from the clipboard, which must be freed with SDL_free() 50 | * 51 | * \sa SDL_SetClipboardText() 52 | */ 53 | extern DECLSPEC char * SDLCALL SDL_GetClipboardText(void); 54 | 55 | /** 56 | * \brief Returns a flag indicating whether the clipboard exists and contains a text string that is non-empty 57 | * 58 | * \sa SDL_GetClipboardText() 59 | */ 60 | extern DECLSPEC SDL_bool SDLCALL SDL_HasClipboardText(void); 61 | 62 | 63 | /* Ends C function definitions when using C++ */ 64 | #ifdef __cplusplus 65 | } 66 | #endif 67 | #include "close_code.h" 68 | 69 | #endif /* _SDL_clipboard_h */ 70 | 71 | /* vi: set ts=4 sw=4 expandtab: */ 72 | -------------------------------------------------------------------------------- /PlayCore/include/SDL2/SDL_error.h: -------------------------------------------------------------------------------- 1 | /* 2 | Simple DirectMedia Layer 3 | Copyright (C) 1997-2014 Sam Lantinga 4 | 5 | This software is provided 'as-is', without any express or implied 6 | warranty. In no event will the authors be held liable for any damages 7 | arising from the use of this software. 8 | 9 | Permission is granted to anyone to use this software for any purpose, 10 | including commercial applications, and to alter it and redistribute it 11 | freely, subject to the following restrictions: 12 | 13 | 1. The origin of this software must not be misrepresented; you must not 14 | claim that you wrote the original software. If you use this software 15 | in a product, an acknowledgment in the product documentation would be 16 | appreciated but is not required. 17 | 2. Altered source versions must be plainly marked as such, and must not be 18 | misrepresented as being the original software. 19 | 3. This notice may not be removed or altered from any source distribution. 20 | */ 21 | 22 | /** 23 | * \file SDL_error.h 24 | * 25 | * Simple error message routines for SDL. 26 | */ 27 | 28 | #ifndef _SDL_error_h 29 | #define _SDL_error_h 30 | 31 | #include "SDL_stdinc.h" 32 | 33 | #include "begin_code.h" 34 | /* Set up for C function definitions, even when using C++ */ 35 | #ifdef __cplusplus 36 | extern "C" { 37 | #endif 38 | 39 | /* Public functions */ 40 | /* SDL_SetError() unconditionally returns -1. */ 41 | extern DECLSPEC int SDLCALL SDL_SetError(const char *fmt, ...); 42 | extern DECLSPEC const char *SDLCALL SDL_GetError(void); 43 | extern DECLSPEC void SDLCALL SDL_ClearError(void); 44 | 45 | /** 46 | * \name Internal error functions 47 | * 48 | * \internal 49 | * Private error reporting function - used internally. 50 | */ 51 | /* @{ */ 52 | #define SDL_OutOfMemory() SDL_Error(SDL_ENOMEM) 53 | #define SDL_Unsupported() SDL_Error(SDL_UNSUPPORTED) 54 | #define SDL_InvalidParamError(param) SDL_SetError("Parameter '%s' is invalid", (param)) 55 | typedef enum 56 | { 57 | SDL_ENOMEM, 58 | SDL_EFREAD, 59 | SDL_EFWRITE, 60 | SDL_EFSEEK, 61 | SDL_UNSUPPORTED, 62 | SDL_LASTERROR 63 | } SDL_errorcode; 64 | /* SDL_Error() unconditionally returns -1. */ 65 | extern DECLSPEC int SDLCALL SDL_Error(SDL_errorcode code); 66 | /* @} *//* Internal error functions */ 67 | 68 | /* Ends C function definitions when using C++ */ 69 | #ifdef __cplusplus 70 | } 71 | #endif 72 | #include "close_code.h" 73 | 74 | #endif /* _SDL_error_h */ 75 | 76 | /* vi: set ts=4 sw=4 expandtab: */ 77 | -------------------------------------------------------------------------------- /PlayCore/include/SDL2/SDL_gesture.h: -------------------------------------------------------------------------------- 1 | /* 2 | Simple DirectMedia Layer 3 | Copyright (C) 1997-2014 Sam Lantinga 4 | 5 | This software is provided 'as-is', without any express or implied 6 | warranty. In no event will the authors be held liable for any damages 7 | arising from the use of this software. 8 | 9 | Permission is granted to anyone to use this software for any purpose, 10 | including commercial applications, and to alter it and redistribute it 11 | freely, subject to the following restrictions: 12 | 13 | 1. The origin of this software must not be misrepresented; you must not 14 | claim that you wrote the original software. If you use this software 15 | in a product, an acknowledgment in the product documentation would be 16 | appreciated but is not required. 17 | 2. Altered source versions must be plainly marked as such, and must not be 18 | misrepresented as being the original software. 19 | 3. This notice may not be removed or altered from any source distribution. 20 | */ 21 | 22 | /** 23 | * \file SDL_gesture.h 24 | * 25 | * Include file for SDL gesture event handling. 26 | */ 27 | 28 | #ifndef _SDL_gesture_h 29 | #define _SDL_gesture_h 30 | 31 | #include "SDL_stdinc.h" 32 | #include "SDL_error.h" 33 | #include "SDL_video.h" 34 | 35 | #include "SDL_touch.h" 36 | 37 | 38 | #include "begin_code.h" 39 | /* Set up for C function definitions, even when using C++ */ 40 | #ifdef __cplusplus 41 | extern "C" { 42 | #endif 43 | 44 | typedef Sint64 SDL_GestureID; 45 | 46 | /* Function prototypes */ 47 | 48 | /** 49 | * \brief Begin Recording a gesture on the specified touch, or all touches (-1) 50 | * 51 | * 52 | */ 53 | extern DECLSPEC int SDLCALL SDL_RecordGesture(SDL_TouchID touchId); 54 | 55 | 56 | /** 57 | * \brief Save all currently loaded Dollar Gesture templates 58 | * 59 | * 60 | */ 61 | extern DECLSPEC int SDLCALL SDL_SaveAllDollarTemplates(SDL_RWops *dst); 62 | 63 | /** 64 | * \brief Save a currently loaded Dollar Gesture template 65 | * 66 | * 67 | */ 68 | extern DECLSPEC int SDLCALL SDL_SaveDollarTemplate(SDL_GestureID gestureId,SDL_RWops *dst); 69 | 70 | 71 | /** 72 | * \brief Load Dollar Gesture templates from a file 73 | * 74 | * 75 | */ 76 | extern DECLSPEC int SDLCALL SDL_LoadDollarTemplates(SDL_TouchID touchId, SDL_RWops *src); 77 | 78 | 79 | /* Ends C function definitions when using C++ */ 80 | #ifdef __cplusplus 81 | } 82 | #endif 83 | #include "close_code.h" 84 | 85 | #endif /* _SDL_gesture_h */ 86 | 87 | /* vi: set ts=4 sw=4 expandtab: */ 88 | -------------------------------------------------------------------------------- /PlayCore/include/SDL2/SDL_loadso.h: -------------------------------------------------------------------------------- 1 | /* 2 | Simple DirectMedia Layer 3 | Copyright (C) 1997-2014 Sam Lantinga 4 | 5 | This software is provided 'as-is', without any express or implied 6 | warranty. In no event will the authors be held liable for any damages 7 | arising from the use of this software. 8 | 9 | Permission is granted to anyone to use this software for any purpose, 10 | including commercial applications, and to alter it and redistribute it 11 | freely, subject to the following restrictions: 12 | 13 | 1. The origin of this software must not be misrepresented; you must not 14 | claim that you wrote the original software. If you use this software 15 | in a product, an acknowledgment in the product documentation would be 16 | appreciated but is not required. 17 | 2. Altered source versions must be plainly marked as such, and must not be 18 | misrepresented as being the original software. 19 | 3. This notice may not be removed or altered from any source distribution. 20 | */ 21 | 22 | /** 23 | * \file SDL_loadso.h 24 | * 25 | * System dependent library loading routines 26 | * 27 | * Some things to keep in mind: 28 | * \li These functions only work on C function names. Other languages may 29 | * have name mangling and intrinsic language support that varies from 30 | * compiler to compiler. 31 | * \li Make sure you declare your function pointers with the same calling 32 | * convention as the actual library function. Your code will crash 33 | * mysteriously if you do not do this. 34 | * \li Avoid namespace collisions. If you load a symbol from the library, 35 | * it is not defined whether or not it goes into the global symbol 36 | * namespace for the application. If it does and it conflicts with 37 | * symbols in your code or other shared libraries, you will not get 38 | * the results you expect. :) 39 | */ 40 | 41 | #ifndef _SDL_loadso_h 42 | #define _SDL_loadso_h 43 | 44 | #include "SDL_stdinc.h" 45 | #include "SDL_error.h" 46 | 47 | #include "begin_code.h" 48 | /* Set up for C function definitions, even when using C++ */ 49 | #ifdef __cplusplus 50 | extern "C" { 51 | #endif 52 | 53 | /** 54 | * This function dynamically loads a shared object and returns a pointer 55 | * to the object handle (or NULL if there was an error). 56 | * The 'sofile' parameter is a system dependent name of the object file. 57 | */ 58 | extern DECLSPEC void *SDLCALL SDL_LoadObject(const char *sofile); 59 | 60 | /** 61 | * Given an object handle, this function looks up the address of the 62 | * named function in the shared object and returns it. This address 63 | * is no longer valid after calling SDL_UnloadObject(). 64 | */ 65 | extern DECLSPEC void *SDLCALL SDL_LoadFunction(void *handle, 66 | const char *name); 67 | 68 | /** 69 | * Unload a shared object from memory. 70 | */ 71 | extern DECLSPEC void SDLCALL SDL_UnloadObject(void *handle); 72 | 73 | /* Ends C function definitions when using C++ */ 74 | #ifdef __cplusplus 75 | } 76 | #endif 77 | #include "close_code.h" 78 | 79 | #endif /* _SDL_loadso_h */ 80 | 81 | /* vi: set ts=4 sw=4 expandtab: */ 82 | -------------------------------------------------------------------------------- /PlayCore/include/SDL2/SDL_name.h: -------------------------------------------------------------------------------- 1 | /* 2 | Simple DirectMedia Layer 3 | Copyright (C) 1997-2014 Sam Lantinga 4 | 5 | This software is provided 'as-is', without any express or implied 6 | warranty. In no event will the authors be held liable for any damages 7 | arising from the use of this software. 8 | 9 | Permission is granted to anyone to use this software for any purpose, 10 | including commercial applications, and to alter it and redistribute it 11 | freely, subject to the following restrictions: 12 | 13 | 1. The origin of this software must not be misrepresented; you must not 14 | claim that you wrote the original software. If you use this software 15 | in a product, an acknowledgment in the product documentation would be 16 | appreciated but is not required. 17 | 2. Altered source versions must be plainly marked as such, and must not be 18 | misrepresented as being the original software. 19 | 3. This notice may not be removed or altered from any source distribution. 20 | */ 21 | 22 | #ifndef _SDLname_h_ 23 | #define _SDLname_h_ 24 | 25 | #if defined(__STDC__) || defined(__cplusplus) 26 | #define NeedFunctionPrototypes 1 27 | #endif 28 | 29 | #define SDL_NAME(X) SDL_##X 30 | 31 | #endif /* _SDLname_h_ */ 32 | 33 | /* vi: set ts=4 sw=4 expandtab: */ 34 | -------------------------------------------------------------------------------- /PlayCore/include/SDL2/SDL_opengles.h: -------------------------------------------------------------------------------- 1 | /* 2 | Simple DirectMedia Layer 3 | Copyright (C) 1997-2014 Sam Lantinga 4 | 5 | This software is provided 'as-is', without any express or implied 6 | warranty. In no event will the authors be held liable for any damages 7 | arising from the use of this software. 8 | 9 | Permission is granted to anyone to use this software for any purpose, 10 | including commercial applications, and to alter it and redistribute it 11 | freely, subject to the following restrictions: 12 | 13 | 1. The origin of this software must not be misrepresented; you must not 14 | claim that you wrote the original software. If you use this software 15 | in a product, an acknowledgment in the product documentation would be 16 | appreciated but is not required. 17 | 2. Altered source versions must be plainly marked as such, and must not be 18 | misrepresented as being the original software. 19 | 3. This notice may not be removed or altered from any source distribution. 20 | */ 21 | 22 | /** 23 | * \file SDL_opengles.h 24 | * 25 | * This is a simple file to encapsulate the OpenGL ES 1.X API headers. 26 | */ 27 | 28 | #ifdef __IPHONEOS__ 29 | #include 30 | #include 31 | #else 32 | #include 33 | #include 34 | #endif 35 | 36 | #ifndef APIENTRY 37 | #define APIENTRY 38 | #endif 39 | -------------------------------------------------------------------------------- /PlayCore/include/SDL2/SDL_power.h: -------------------------------------------------------------------------------- 1 | /* 2 | Simple DirectMedia Layer 3 | Copyright (C) 1997-2014 Sam Lantinga 4 | 5 | This software is provided 'as-is', without any express or implied 6 | warranty. In no event will the authors be held liable for any damages 7 | arising from the use of this software. 8 | 9 | Permission is granted to anyone to use this software for any purpose, 10 | including commercial applications, and to alter it and redistribute it 11 | freely, subject to the following restrictions: 12 | 13 | 1. The origin of this software must not be misrepresented; you must not 14 | claim that you wrote the original software. If you use this software 15 | in a product, an acknowledgment in the product documentation would be 16 | appreciated but is not required. 17 | 2. Altered source versions must be plainly marked as such, and must not be 18 | misrepresented as being the original software. 19 | 3. This notice may not be removed or altered from any source distribution. 20 | */ 21 | 22 | #ifndef _SDL_power_h 23 | #define _SDL_power_h 24 | 25 | /** 26 | * \file SDL_power.h 27 | * 28 | * Header for the SDL power management routines. 29 | */ 30 | 31 | #include "SDL_stdinc.h" 32 | 33 | #include "begin_code.h" 34 | /* Set up for C function definitions, even when using C++ */ 35 | #ifdef __cplusplus 36 | extern "C" { 37 | #endif 38 | 39 | /** 40 | * \brief The basic state for the system's power supply. 41 | */ 42 | typedef enum 43 | { 44 | SDL_POWERSTATE_UNKNOWN, /**< cannot determine power status */ 45 | SDL_POWERSTATE_ON_BATTERY, /**< Not plugged in, running on the battery */ 46 | SDL_POWERSTATE_NO_BATTERY, /**< Plugged in, no battery available */ 47 | SDL_POWERSTATE_CHARGING, /**< Plugged in, charging battery */ 48 | SDL_POWERSTATE_CHARGED /**< Plugged in, battery charged */ 49 | } SDL_PowerState; 50 | 51 | 52 | /** 53 | * \brief Get the current power supply details. 54 | * 55 | * \param secs Seconds of battery life left. You can pass a NULL here if 56 | * you don't care. Will return -1 if we can't determine a 57 | * value, or we're not running on a battery. 58 | * 59 | * \param pct Percentage of battery life left, between 0 and 100. You can 60 | * pass a NULL here if you don't care. Will return -1 if we 61 | * can't determine a value, or we're not running on a battery. 62 | * 63 | * \return The state of the battery (if any). 64 | */ 65 | extern DECLSPEC SDL_PowerState SDLCALL SDL_GetPowerInfo(int *secs, int *pct); 66 | 67 | /* Ends C function definitions when using C++ */ 68 | #ifdef __cplusplus 69 | } 70 | #endif 71 | #include "close_code.h" 72 | 73 | #endif /* _SDL_power_h */ 74 | 75 | /* vi: set ts=4 sw=4 expandtab: */ 76 | -------------------------------------------------------------------------------- /PlayCore/include/SDL2/SDL_quit.h: -------------------------------------------------------------------------------- 1 | /* 2 | Simple DirectMedia Layer 3 | Copyright (C) 1997-2014 Sam Lantinga 4 | 5 | This software is provided 'as-is', without any express or implied 6 | warranty. In no event will the authors be held liable for any damages 7 | arising from the use of this software. 8 | 9 | Permission is granted to anyone to use this software for any purpose, 10 | including commercial applications, and to alter it and redistribute it 11 | freely, subject to the following restrictions: 12 | 13 | 1. The origin of this software must not be misrepresented; you must not 14 | claim that you wrote the original software. If you use this software 15 | in a product, an acknowledgment in the product documentation would be 16 | appreciated but is not required. 17 | 2. Altered source versions must be plainly marked as such, and must not be 18 | misrepresented as being the original software. 19 | 3. This notice may not be removed or altered from any source distribution. 20 | */ 21 | 22 | /** 23 | * \file SDL_quit.h 24 | * 25 | * Include file for SDL quit event handling. 26 | */ 27 | 28 | #ifndef _SDL_quit_h 29 | #define _SDL_quit_h 30 | 31 | #include "SDL_stdinc.h" 32 | #include "SDL_error.h" 33 | 34 | /** 35 | * \file SDL_quit.h 36 | * 37 | * An ::SDL_QUIT event is generated when the user tries to close the application 38 | * window. If it is ignored or filtered out, the window will remain open. 39 | * If it is not ignored or filtered, it is queued normally and the window 40 | * is allowed to close. When the window is closed, screen updates will 41 | * complete, but have no effect. 42 | * 43 | * SDL_Init() installs signal handlers for SIGINT (keyboard interrupt) 44 | * and SIGTERM (system termination request), if handlers do not already 45 | * exist, that generate ::SDL_QUIT events as well. There is no way 46 | * to determine the cause of an ::SDL_QUIT event, but setting a signal 47 | * handler in your application will override the default generation of 48 | * quit events for that signal. 49 | * 50 | * \sa SDL_Quit() 51 | */ 52 | 53 | /* There are no functions directly affecting the quit event */ 54 | 55 | #define SDL_QuitRequested() \ 56 | (SDL_PumpEvents(), (SDL_PeepEvents(NULL,0,SDL_PEEKEVENT,SDL_QUIT,SDL_QUIT) > 0)) 57 | 58 | #endif /* _SDL_quit_h */ 59 | -------------------------------------------------------------------------------- /PlayCore/include/SDL2/SDL_revision.h: -------------------------------------------------------------------------------- 1 | #define SDL_REVISION "hg-8628:b558f99d48f0" 2 | #define SDL_REVISION_NUMBER 8628 3 | -------------------------------------------------------------------------------- /PlayCore/include/SDL2/SDL_test.h: -------------------------------------------------------------------------------- 1 | /* 2 | Simple DirectMedia Layer 3 | Copyright (C) 1997-2014 Sam Lantinga 4 | 5 | This software is provided 'as-is', without any express or implied 6 | warranty. In no event will the authors be held liable for any damages 7 | arising from the use of this software. 8 | 9 | Permission is granted to anyone to use this software for any purpose, 10 | including commercial applications, and to alter it and redistribute it 11 | freely, subject to the following restrictions: 12 | 13 | 1. The origin of this software must not be misrepresented; you must not 14 | claim that you wrote the original software. If you use this software 15 | in a product, an acknowledgment in the product documentation would be 16 | appreciated but is not required. 17 | 2. Altered source versions must be plainly marked as such, and must not be 18 | misrepresented as being the original software. 19 | 3. This notice may not be removed or altered from any source distribution. 20 | */ 21 | 22 | /** 23 | * \file SDL_test.h 24 | * 25 | * Include file for SDL test framework. 26 | * 27 | * This code is a part of the SDL2_test library, not the main SDL library. 28 | */ 29 | 30 | #ifndef _SDL_test_h 31 | #define _SDL_test_h 32 | 33 | #include "SDL.h" 34 | #include "SDL_test_common.h" 35 | #include "SDL_test_font.h" 36 | #include "SDL_test_random.h" 37 | #include "SDL_test_fuzzer.h" 38 | #include "SDL_test_crc32.h" 39 | #include "SDL_test_md5.h" 40 | #include "SDL_test_log.h" 41 | #include "SDL_test_assert.h" 42 | #include "SDL_test_harness.h" 43 | #include "SDL_test_images.h" 44 | #include "SDL_test_compare.h" 45 | 46 | #include "begin_code.h" 47 | /* Set up for C function definitions, even when using C++ */ 48 | #ifdef __cplusplus 49 | extern "C" { 50 | #endif 51 | 52 | /* Global definitions */ 53 | 54 | /* 55 | * Note: Maximum size of SDLTest log message is less than SDLs limit 56 | * to ensure we can fit additional information such as the timestamp. 57 | */ 58 | #define SDLTEST_MAX_LOGMESSAGE_LENGTH 3584 59 | 60 | /* Ends C function definitions when using C++ */ 61 | #ifdef __cplusplus 62 | } 63 | #endif 64 | #include "close_code.h" 65 | 66 | #endif /* _SDL_test_h */ 67 | 68 | /* vi: set ts=4 sw=4 expandtab: */ 69 | -------------------------------------------------------------------------------- /PlayCore/include/SDL2/SDL_test_compare.h: -------------------------------------------------------------------------------- 1 | /* 2 | Simple DirectMedia Layer 3 | Copyright (C) 1997-2014 Sam Lantinga 4 | 5 | This software is provided 'as-is', without any express or implied 6 | warranty. In no event will the authors be held liable for any damages 7 | arising from the use of this software. 8 | 9 | Permission is granted to anyone to use this software for any purpose, 10 | including commercial applications, and to alter it and redistribute it 11 | freely, subject to the following restrictions: 12 | 13 | 1. The origin of this software must not be misrepresented; you must not 14 | claim that you wrote the original software. If you use this software 15 | in a product, an acknowledgment in the product documentation would be 16 | appreciated but is not required. 17 | 2. Altered source versions must be plainly marked as such, and must not be 18 | misrepresented as being the original software. 19 | 3. This notice may not be removed or altered from any source distribution. 20 | */ 21 | 22 | /** 23 | * \file SDL_test_compare.h 24 | * 25 | * Include file for SDL test framework. 26 | * 27 | * This code is a part of the SDL2_test library, not the main SDL library. 28 | */ 29 | 30 | /* 31 | 32 | Defines comparison functions (i.e. for surfaces). 33 | 34 | */ 35 | 36 | #ifndef _SDL_test_compare_h 37 | #define _SDL_test_compare_h 38 | 39 | #include "SDL.h" 40 | 41 | #include "SDL_test_images.h" 42 | 43 | #include "begin_code.h" 44 | /* Set up for C function definitions, even when using C++ */ 45 | #ifdef __cplusplus 46 | extern "C" { 47 | #endif 48 | 49 | /** 50 | * \brief Compares a surface and with reference image data for equality 51 | * 52 | * \param surface Surface used in comparison 53 | * \param referenceSurface Test Surface used in comparison 54 | * \param allowable_error Allowable difference (squared) in blending accuracy. 55 | * 56 | * \returns 0 if comparison succeeded, >0 (=number of pixels where comparison failed) if comparison failed, -1 if any of the surfaces were NULL, -2 if the surface sizes differ. 57 | */ 58 | int SDLTest_CompareSurfaces(SDL_Surface *surface, SDL_Surface *referenceSurface, int allowable_error); 59 | 60 | 61 | /* Ends C function definitions when using C++ */ 62 | #ifdef __cplusplus 63 | } 64 | #endif 65 | #include "close_code.h" 66 | 67 | #endif /* _SDL_test_compare_h */ 68 | 69 | /* vi: set ts=4 sw=4 expandtab: */ 70 | -------------------------------------------------------------------------------- /PlayCore/include/SDL2/SDL_test_font.h: -------------------------------------------------------------------------------- 1 | /* 2 | Simple DirectMedia Layer 3 | Copyright (C) 1997-2014 Sam Lantinga 4 | 5 | This software is provided 'as-is', without any express or implied 6 | warranty. In no event will the authors be held liable for any damages 7 | arising from the use of this software. 8 | 9 | Permission is granted to anyone to use this software for any purpose, 10 | including commercial applications, and to alter it and redistribute it 11 | freely, subject to the following restrictions: 12 | 13 | 1. The origin of this software must not be misrepresented; you must not 14 | claim that you wrote the original software. If you use this software 15 | in a product, an acknowledgment in the product documentation would be 16 | appreciated but is not required. 17 | 2. Altered source versions must be plainly marked as such, and must not be 18 | misrepresented as being the original software. 19 | 3. This notice may not be removed or altered from any source distribution. 20 | */ 21 | 22 | /** 23 | * \file SDL_test_font.h 24 | * 25 | * Include file for SDL test framework. 26 | * 27 | * This code is a part of the SDL2_test library, not the main SDL library. 28 | */ 29 | 30 | #ifndef _SDL_test_font_h 31 | #define _SDL_test_font_h 32 | 33 | #include "begin_code.h" 34 | /* Set up for C function definitions, even when using C++ */ 35 | #ifdef __cplusplus 36 | extern "C" { 37 | #endif 38 | 39 | /* Function prototypes */ 40 | 41 | #define FONT_CHARACTER_SIZE 8 42 | 43 | /** 44 | * \brief Draw a string in the currently set font. 45 | * 46 | * \param renderer The renderer to draw on. 47 | * \param x The X coordinate of the upper left corner of the character. 48 | * \param y The Y coordinate of the upper left corner of the character. 49 | * \param c The character to draw. 50 | * 51 | * \returns Returns 0 on success, -1 on failure. 52 | */ 53 | int SDLTest_DrawCharacter( SDL_Renderer *renderer, int x, int y, char c ); 54 | 55 | /** 56 | * \brief Draw a string in the currently set font. 57 | * 58 | * \param renderer The renderer to draw on. 59 | * \param x The X coordinate of the upper left corner of the string. 60 | * \param y The Y coordinate of the upper left corner of the string. 61 | * \param s The string to draw. 62 | * 63 | * \returns Returns 0 on success, -1 on failure. 64 | */ 65 | int SDLTest_DrawString( SDL_Renderer * renderer, int x, int y, const char *s ); 66 | 67 | 68 | /* Ends C function definitions when using C++ */ 69 | #ifdef __cplusplus 70 | } 71 | #endif 72 | #include "close_code.h" 73 | 74 | #endif /* _SDL_test_font_h */ 75 | 76 | /* vi: set ts=4 sw=4 expandtab: */ 77 | -------------------------------------------------------------------------------- /PlayCore/include/SDL2/SDL_test_images.h: -------------------------------------------------------------------------------- 1 | /* 2 | Simple DirectMedia Layer 3 | Copyright (C) 1997-2014 Sam Lantinga 4 | 5 | This software is provided 'as-is', without any express or implied 6 | warranty. In no event will the authors be held liable for any damages 7 | arising from the use of this software. 8 | 9 | Permission is granted to anyone to use this software for any purpose, 10 | including commercial applications, and to alter it and redistribute it 11 | freely, subject to the following restrictions: 12 | 13 | 1. The origin of this software must not be misrepresented; you must not 14 | claim that you wrote the original software. If you use this software 15 | in a product, an acknowledgment in the product documentation would be 16 | appreciated but is not required. 17 | 2. Altered source versions must be plainly marked as such, and must not be 18 | misrepresented as being the original software. 19 | 3. This notice may not be removed or altered from any source distribution. 20 | */ 21 | 22 | /** 23 | * \file SDL_test_images.h 24 | * 25 | * Include file for SDL test framework. 26 | * 27 | * This code is a part of the SDL2_test library, not the main SDL library. 28 | */ 29 | 30 | /* 31 | 32 | Defines some images for tests. 33 | 34 | */ 35 | 36 | #ifndef _SDL_test_images_h 37 | #define _SDL_test_images_h 38 | 39 | #include "SDL.h" 40 | 41 | #include "begin_code.h" 42 | /* Set up for C function definitions, even when using C++ */ 43 | #ifdef __cplusplus 44 | extern "C" { 45 | #endif 46 | 47 | /** 48 | *Type for test images. 49 | */ 50 | typedef struct SDLTest_SurfaceImage_s { 51 | int width; 52 | int height; 53 | unsigned int bytes_per_pixel; /* 3:RGB, 4:RGBA */ 54 | const char *pixel_data; 55 | } SDLTest_SurfaceImage_t; 56 | 57 | /* Test images */ 58 | SDL_Surface *SDLTest_ImageBlit(); 59 | SDL_Surface *SDLTest_ImageBlitColor(); 60 | SDL_Surface *SDLTest_ImageBlitAlpha(); 61 | SDL_Surface *SDLTest_ImageBlitBlendAdd(); 62 | SDL_Surface *SDLTest_ImageBlitBlend(); 63 | SDL_Surface *SDLTest_ImageBlitBlendMod(); 64 | SDL_Surface *SDLTest_ImageBlitBlendNone(); 65 | SDL_Surface *SDLTest_ImageBlitBlendAll(); 66 | SDL_Surface *SDLTest_ImageFace(); 67 | SDL_Surface *SDLTest_ImagePrimitives(); 68 | SDL_Surface *SDLTest_ImagePrimitivesBlend(); 69 | 70 | /* Ends C function definitions when using C++ */ 71 | #ifdef __cplusplus 72 | } 73 | #endif 74 | #include "close_code.h" 75 | 76 | #endif /* _SDL_test_images_h */ 77 | 78 | /* vi: set ts=4 sw=4 expandtab: */ 79 | -------------------------------------------------------------------------------- /PlayCore/include/SDL2/SDL_test_log.h: -------------------------------------------------------------------------------- 1 | /* 2 | Simple DirectMedia Layer 3 | Copyright (C) 1997-2014 Sam Lantinga 4 | 5 | This software is provided 'as-is', without any express or implied 6 | warranty. In no event will the authors be held liable for any damages 7 | arising from the use of this software. 8 | 9 | Permission is granted to anyone to use this software for any purpose, 10 | including commercial applications, and to alter it and redistribute it 11 | freely, subject to the following restrictions: 12 | 13 | 1. The origin of this software must not be misrepresented; you must not 14 | claim that you wrote the original software. If you use this software 15 | in a product, an acknowledgment in the product documentation would be 16 | appreciated but is not required. 17 | 2. Altered source versions must be plainly marked as such, and must not be 18 | misrepresented as being the original software. 19 | 3. This notice may not be removed or altered from any source distribution. 20 | */ 21 | 22 | /** 23 | * \file SDL_test_log.h 24 | * 25 | * Include file for SDL test framework. 26 | * 27 | * This code is a part of the SDL2_test library, not the main SDL library. 28 | */ 29 | 30 | /* 31 | * 32 | * Wrapper to log in the TEST category 33 | * 34 | */ 35 | 36 | #ifndef _SDL_test_log_h 37 | #define _SDL_test_log_h 38 | 39 | #include "begin_code.h" 40 | /* Set up for C function definitions, even when using C++ */ 41 | #ifdef __cplusplus 42 | extern "C" { 43 | #endif 44 | 45 | /** 46 | * \brief Prints given message with a timestamp in the TEST category and INFO priority. 47 | * 48 | * \param fmt Message to be logged 49 | */ 50 | void SDLTest_Log(const char *fmt, ...); 51 | 52 | /** 53 | * \brief Prints given message with a timestamp in the TEST category and the ERROR priority. 54 | * 55 | * \param fmt Message to be logged 56 | */ 57 | void SDLTest_LogError(const char *fmt, ...); 58 | 59 | /* Ends C function definitions when using C++ */ 60 | #ifdef __cplusplus 61 | } 62 | #endif 63 | #include "close_code.h" 64 | 65 | #endif /* _SDL_test_log_h */ 66 | 67 | /* vi: set ts=4 sw=4 expandtab: */ 68 | -------------------------------------------------------------------------------- /PlayCore/include/SDL2/SDL_touch.h: -------------------------------------------------------------------------------- 1 | /* 2 | Simple DirectMedia Layer 3 | Copyright (C) 1997-2014 Sam Lantinga 4 | 5 | This software is provided 'as-is', without any express or implied 6 | warranty. In no event will the authors be held liable for any damages 7 | arising from the use of this software. 8 | 9 | Permission is granted to anyone to use this software for any purpose, 10 | including commercial applications, and to alter it and redistribute it 11 | freely, subject to the following restrictions: 12 | 13 | 1. The origin of this software must not be misrepresented; you must not 14 | claim that you wrote the original software. If you use this software 15 | in a product, an acknowledgment in the product documentation would be 16 | appreciated but is not required. 17 | 2. Altered source versions must be plainly marked as such, and must not be 18 | misrepresented as being the original software. 19 | 3. This notice may not be removed or altered from any source distribution. 20 | */ 21 | 22 | /** 23 | * \file SDL_touch.h 24 | * 25 | * Include file for SDL touch event handling. 26 | */ 27 | 28 | #ifndef _SDL_touch_h 29 | #define _SDL_touch_h 30 | 31 | #include "SDL_stdinc.h" 32 | #include "SDL_error.h" 33 | #include "SDL_video.h" 34 | 35 | #include "begin_code.h" 36 | /* Set up for C function definitions, even when using C++ */ 37 | #ifdef __cplusplus 38 | extern "C" { 39 | #endif 40 | 41 | typedef Sint64 SDL_TouchID; 42 | typedef Sint64 SDL_FingerID; 43 | 44 | typedef struct SDL_Finger 45 | { 46 | SDL_FingerID id; 47 | float x; 48 | float y; 49 | float pressure; 50 | } SDL_Finger; 51 | 52 | /* Used as the device ID for mouse events simulated with touch input */ 53 | #define SDL_TOUCH_MOUSEID ((Uint32)-1) 54 | 55 | 56 | /* Function prototypes */ 57 | 58 | /** 59 | * \brief Get the number of registered touch devices. 60 | */ 61 | extern DECLSPEC int SDLCALL SDL_GetNumTouchDevices(void); 62 | 63 | /** 64 | * \brief Get the touch ID with the given index, or 0 if the index is invalid. 65 | */ 66 | extern DECLSPEC SDL_TouchID SDLCALL SDL_GetTouchDevice(int index); 67 | 68 | /** 69 | * \brief Get the number of active fingers for a given touch device. 70 | */ 71 | extern DECLSPEC int SDLCALL SDL_GetNumTouchFingers(SDL_TouchID touchID); 72 | 73 | /** 74 | * \brief Get the finger object of the given touch, with the given index. 75 | */ 76 | extern DECLSPEC SDL_Finger * SDLCALL SDL_GetTouchFinger(SDL_TouchID touchID, int index); 77 | 78 | /* Ends C function definitions when using C++ */ 79 | #ifdef __cplusplus 80 | } 81 | #endif 82 | #include "close_code.h" 83 | 84 | #endif /* _SDL_touch_h */ 85 | 86 | /* vi: set ts=4 sw=4 expandtab: */ 87 | -------------------------------------------------------------------------------- /PlayCore/include/SDL2/SDL_types.h: -------------------------------------------------------------------------------- 1 | /* 2 | Simple DirectMedia Layer 3 | Copyright (C) 1997-2014 Sam Lantinga 4 | 5 | This software is provided 'as-is', without any express or implied 6 | warranty. In no event will the authors be held liable for any damages 7 | arising from the use of this software. 8 | 9 | Permission is granted to anyone to use this software for any purpose, 10 | including commercial applications, and to alter it and redistribute it 11 | freely, subject to the following restrictions: 12 | 13 | 1. The origin of this software must not be misrepresented; you must not 14 | claim that you wrote the original software. If you use this software 15 | in a product, an acknowledgment in the product documentation would be 16 | appreciated but is not required. 17 | 2. Altered source versions must be plainly marked as such, and must not be 18 | misrepresented as being the original software. 19 | 3. This notice may not be removed or altered from any source distribution. 20 | */ 21 | 22 | /** 23 | * \file SDL_types.h 24 | * 25 | * \deprecated 26 | */ 27 | 28 | /* DEPRECATED */ 29 | #include "SDL_stdinc.h" 30 | -------------------------------------------------------------------------------- /PlayCore/include/SDL2/close_code.h: -------------------------------------------------------------------------------- 1 | /* 2 | Simple DirectMedia Layer 3 | Copyright (C) 1997-2014 Sam Lantinga 4 | 5 | This software is provided 'as-is', without any express or implied 6 | warranty. In no event will the authors be held liable for any damages 7 | arising from the use of this software. 8 | 9 | Permission is granted to anyone to use this software for any purpose, 10 | including commercial applications, and to alter it and redistribute it 11 | freely, subject to the following restrictions: 12 | 13 | 1. The origin of this software must not be misrepresented; you must not 14 | claim that you wrote the original software. If you use this software 15 | in a product, an acknowledgment in the product documentation would be 16 | appreciated but is not required. 17 | 2. Altered source versions must be plainly marked as such, and must not be 18 | misrepresented as being the original software. 19 | 3. This notice may not be removed or altered from any source distribution. 20 | */ 21 | 22 | /** 23 | * \file close_code.h 24 | * 25 | * This file reverses the effects of begin_code.h and should be included 26 | * after you finish any function and structure declarations in your headers 27 | */ 28 | 29 | #undef _begin_code_h 30 | 31 | /* Reset structure packing at previous byte alignment */ 32 | #if defined(_MSC_VER) || defined(__MWERKS__) || defined(__WATCOMC__) || defined(__BORLANDC__) 33 | #ifdef __BORLANDC__ 34 | #pragma nopackwarning 35 | #endif 36 | #pragma pack(pop) 37 | #endif /* Compiler needs structure packing set */ 38 | -------------------------------------------------------------------------------- /PlayCore/include/libavcodec/avdct.h: -------------------------------------------------------------------------------- 1 | /* 2 | * This file is part of FFmpeg. 3 | * 4 | * FFmpeg is free software; you can redistribute it and/or 5 | * modify it under the terms of the GNU Lesser General Public 6 | * License as published by the Free Software Foundation; either 7 | * version 2.1 of the License, or (at your option) any later version. 8 | * 9 | * FFmpeg is distributed in the hope that it will be useful, 10 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 11 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 12 | * Lesser General Public License for more details. 13 | * 14 | * You should have received a copy of the GNU Lesser General Public 15 | * License along with FFmpeg; if not, write to the Free Software 16 | * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA 17 | */ 18 | 19 | #ifndef AVCODEC_AVDCT_H 20 | #define AVCODEC_AVDCT_H 21 | 22 | #include "libavutil/opt.h" 23 | 24 | /** 25 | * AVDCT context. 26 | * @note function pointers can be NULL if the specific features have been 27 | * disabled at build time. 28 | */ 29 | typedef struct AVDCT { 30 | const AVClass *av_class; 31 | 32 | void (*idct)(int16_t *block /* align 16 */); 33 | 34 | /** 35 | * IDCT input permutation. 36 | * Several optimized IDCTs need a permutated input (relative to the 37 | * normal order of the reference IDCT). 38 | * This permutation must be performed before the idct_put/add. 39 | * Note, normally this can be merged with the zigzag/alternate scan
40 | * An example to avoid confusion: 41 | * - (->decode coeffs -> zigzag reorder -> dequant -> reference IDCT -> ...) 42 | * - (x -> reference DCT -> reference IDCT -> x) 43 | * - (x -> reference DCT -> simple_mmx_perm = idct_permutation 44 | * -> simple_idct_mmx -> x) 45 | * - (-> decode coeffs -> zigzag reorder -> simple_mmx_perm -> dequant 46 | * -> simple_idct_mmx -> ...) 47 | */ 48 | uint8_t idct_permutation[64]; 49 | 50 | void (*fdct)(int16_t *block /* align 16 */); 51 | 52 | 53 | /** 54 | * DCT algorithm. 55 | * must use AVOptions to set this field. 56 | */ 57 | int dct_algo; 58 | 59 | /** 60 | * IDCT algorithm. 61 | * must use AVOptions to set this field. 62 | */ 63 | int idct_algo; 64 | 65 | void (*get_pixels)(int16_t *block /* align 16 */, 66 | const uint8_t *pixels /* align 8 */, 67 | ptrdiff_t line_size); 68 | 69 | int bits_per_sample; 70 | } AVDCT; 71 | 72 | /** 73 | * Allocates a AVDCT context. 74 | * This needs to be initialized with avcodec_dct_init() after optionally 75 | * configuring it with AVOptions. 76 | * 77 | * To free it use av_free() 78 | */ 79 | AVDCT *avcodec_dct_alloc(void); 80 | int avcodec_dct_init(AVDCT *); 81 | 82 | const AVClass *avcodec_dct_get_class(void); 83 | 84 | #endif /* AVCODEC_AVDCT_H */ 85 | -------------------------------------------------------------------------------- /PlayCore/include/libavcodec/dxva2.h: -------------------------------------------------------------------------------- 1 | /* 2 | * DXVA2 HW acceleration 3 | * 4 | * copyright (c) 2009 Laurent Aimar 5 | * 6 | * This file is part of FFmpeg. 7 | * 8 | * FFmpeg is free software; you can redistribute it and/or 9 | * modify it under the terms of the GNU Lesser General Public 10 | * License as published by the Free Software Foundation; either 11 | * version 2.1 of the License, or (at your option) any later version. 12 | * 13 | * FFmpeg is distributed in the hope that it will be useful, 14 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 15 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 16 | * Lesser General Public License for more details. 17 | * 18 | * You should have received a copy of the GNU Lesser General Public 19 | * License along with FFmpeg; if not, write to the Free Software 20 | * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA 21 | */ 22 | 23 | #ifndef AVCODEC_DXVA2_H 24 | #define AVCODEC_DXVA2_H 25 | 26 | /** 27 | * @file 28 | * @ingroup lavc_codec_hwaccel_dxva2 29 | * Public libavcodec DXVA2 header. 30 | */ 31 | 32 | #if !defined(_WIN32_WINNT) || _WIN32_WINNT < 0x0602 33 | #undef _WIN32_WINNT 34 | #define _WIN32_WINNT 0x0602 35 | #endif 36 | 37 | #include 38 | #include 39 | #include 40 | 41 | /** 42 | * @defgroup lavc_codec_hwaccel_dxva2 DXVA2 43 | * @ingroup lavc_codec_hwaccel 44 | * 45 | * @{ 46 | */ 47 | 48 | #define FF_DXVA2_WORKAROUND_SCALING_LIST_ZIGZAG 1 ///< Work around for DXVA2 and old UVD/UVD+ ATI video cards 49 | #define FF_DXVA2_WORKAROUND_INTEL_CLEARVIDEO 2 ///< Work around for DXVA2 and old Intel GPUs with ClearVideo interface 50 | 51 | /** 52 | * This structure is used to provides the necessary configurations and data 53 | * to the DXVA2 FFmpeg HWAccel implementation. 54 | * 55 | * The application must make it available as AVCodecContext.hwaccel_context. 56 | */ 57 | struct dxva_context { 58 | /** 59 | * DXVA2 decoder object 60 | */ 61 | IDirectXVideoDecoder *decoder; 62 | 63 | /** 64 | * DXVA2 configuration used to create the decoder 65 | */ 66 | const DXVA2_ConfigPictureDecode *cfg; 67 | 68 | /** 69 | * The number of surface in the surface array 70 | */ 71 | unsigned surface_count; 72 | 73 | /** 74 | * The array of Direct3D surfaces used to create the decoder 75 | */ 76 | LPDIRECT3DSURFACE9 *surface; 77 | 78 | /** 79 | * A bit field configuring the workarounds needed for using the decoder 80 | */ 81 | uint64_t workaround; 82 | 83 | /** 84 | * Private to the FFmpeg AVHWAccel implementation 85 | */ 86 | unsigned report_id; 87 | }; 88 | 89 | /** 90 | * @} 91 | */ 92 | 93 | #endif /* AVCODEC_DXVA2_H */ 94 | -------------------------------------------------------------------------------- /PlayCore/include/libavcodec/jni.h: -------------------------------------------------------------------------------- 1 | /* 2 | * JNI public API functions 3 | * 4 | * Copyright (c) 2015-2016 Matthieu Bouron 5 | * 6 | * This file is part of FFmpeg. 7 | * 8 | * FFmpeg is free software; you can redistribute it and/or 9 | * modify it under the terms of the GNU Lesser General Public 10 | * License as published by the Free Software Foundation; either 11 | * version 2.1 of the License, or (at your option) any later version. 12 | * 13 | * FFmpeg is distributed in the hope that it will be useful, 14 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 15 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 16 | * Lesser General Public License for more details. 17 | * 18 | * You should have received a copy of the GNU Lesser General Public 19 | * License along with FFmpeg; if not, write to the Free Software 20 | * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA 21 | */ 22 | 23 | #ifndef AVCODEC_JNI_H 24 | #define AVCODEC_JNI_H 25 | 26 | /* 27 | * Manually set a Java virtual machine which will be used to retrieve the JNI 28 | * environment. Once a Java VM is set it cannot be changed afterwards, meaning 29 | * you can call multiple times av_jni_set_java_vm with the same Java VM pointer 30 | * however it will error out if you try to set a different Java VM. 31 | * 32 | * @param vm Java virtual machine 33 | * @param log_ctx context used for logging, can be NULL 34 | * @return 0 on success, < 0 otherwise 35 | */ 36 | int av_jni_set_java_vm(void *vm, void *log_ctx); 37 | 38 | /* 39 | * Get the Java virtual machine which has been set with av_jni_set_java_vm. 40 | * 41 | * @param vm Java virtual machine 42 | * @return a pointer to the Java virtual machine 43 | */ 44 | void *av_jni_get_java_vm(void *log_ctx); 45 | 46 | #endif /* AVCODEC_JNI_H */ 47 | -------------------------------------------------------------------------------- /PlayCore/include/libavcodec/vorbis_parser.h: -------------------------------------------------------------------------------- 1 | /* 2 | * This file is part of FFmpeg. 3 | * 4 | * FFmpeg is free software; you can redistribute it and/or 5 | * modify it under the terms of the GNU Lesser General Public 6 | * License as published by the Free Software Foundation; either 7 | * version 2.1 of the License, or (at your option) any later version. 8 | * 9 | * FFmpeg is distributed in the hope that it will be useful, 10 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 11 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 12 | * Lesser General Public License for more details. 13 | * 14 | * You should have received a copy of the GNU Lesser General Public 15 | * License along with FFmpeg; if not, write to the Free Software 16 | * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA 17 | */ 18 | 19 | /** 20 | * @file 21 | * A public API for Vorbis parsing 22 | * 23 | * Determines the duration for each packet. 24 | */ 25 | 26 | #ifndef AVCODEC_VORBIS_PARSER_H 27 | #define AVCODEC_VORBIS_PARSER_H 28 | 29 | #include 30 | 31 | typedef struct AVVorbisParseContext AVVorbisParseContext; 32 | 33 | /** 34 | * Allocate and initialize the Vorbis parser using headers in the extradata. 35 | * 36 | * @param avctx codec context 37 | * @param s Vorbis parser context 38 | */ 39 | AVVorbisParseContext *av_vorbis_parse_init(const uint8_t *extradata, 40 | int extradata_size); 41 | 42 | /** 43 | * Free the parser and everything associated with it. 44 | */ 45 | void av_vorbis_parse_free(AVVorbisParseContext **s); 46 | 47 | #define VORBIS_FLAG_HEADER 0x00000001 48 | #define VORBIS_FLAG_COMMENT 0x00000002 49 | #define VORBIS_FLAG_SETUP 0x00000004 50 | 51 | /** 52 | * Get the duration for a Vorbis packet. 53 | * 54 | * If @p flags is @c NULL, 55 | * special frames are considered invalid. 56 | * 57 | * @param s Vorbis parser context 58 | * @param buf buffer containing a Vorbis frame 59 | * @param buf_size size of the buffer 60 | * @param flags flags for special frames 61 | */ 62 | int av_vorbis_parse_frame_flags(AVVorbisParseContext *s, const uint8_t *buf, 63 | int buf_size, int *flags); 64 | 65 | /** 66 | * Get the duration for a Vorbis packet. 67 | * 68 | * @param s Vorbis parser context 69 | * @param buf buffer containing a Vorbis frame 70 | * @param buf_size size of the buffer 71 | */ 72 | int av_vorbis_parse_frame(AVVorbisParseContext *s, const uint8_t *buf, 73 | int buf_size); 74 | 75 | void av_vorbis_parse_reset(AVVorbisParseContext *s); 76 | 77 | #endif /* AVCODEC_VORBIS_PARSER_H */ 78 | -------------------------------------------------------------------------------- /PlayCore/include/libavdevice/version.h: -------------------------------------------------------------------------------- 1 | /* 2 | * This file is part of FFmpeg. 3 | * 4 | * FFmpeg is free software; you can redistribute it and/or 5 | * modify it under the terms of the GNU Lesser General Public 6 | * License as published by the Free Software Foundation; either 7 | * version 2.1 of the License, or (at your option) any later version. 8 | * 9 | * FFmpeg is distributed in the hope that it will be useful, 10 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 11 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 12 | * Lesser General Public License for more details. 13 | * 14 | * You should have received a copy of the GNU Lesser General Public 15 | * License along with FFmpeg; if not, write to the Free Software 16 | * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA 17 | */ 18 | 19 | #ifndef AVDEVICE_VERSION_H 20 | #define AVDEVICE_VERSION_H 21 | 22 | /** 23 | * @file 24 | * @ingroup lavd 25 | * Libavdevice version macros 26 | */ 27 | 28 | #include "libavutil/version.h" 29 | 30 | #define LIBAVDEVICE_VERSION_MAJOR 57 31 | #define LIBAVDEVICE_VERSION_MINOR 0 32 | #define LIBAVDEVICE_VERSION_MICRO 102 33 | 34 | #define LIBAVDEVICE_VERSION_INT AV_VERSION_INT(LIBAVDEVICE_VERSION_MAJOR, \ 35 | LIBAVDEVICE_VERSION_MINOR, \ 36 | LIBAVDEVICE_VERSION_MICRO) 37 | #define LIBAVDEVICE_VERSION AV_VERSION(LIBAVDEVICE_VERSION_MAJOR, \ 38 | LIBAVDEVICE_VERSION_MINOR, \ 39 | LIBAVDEVICE_VERSION_MICRO) 40 | #define LIBAVDEVICE_BUILD LIBAVDEVICE_VERSION_INT 41 | 42 | #define LIBAVDEVICE_IDENT "Lavd" AV_STRINGIFY(LIBAVDEVICE_VERSION) 43 | 44 | /** 45 | * FF_API_* defines may be placed below to indicate public API that will be 46 | * dropped at a future version bump. The defines themselves are not part of 47 | * the public API and may change, break or disappear at any time. 48 | */ 49 | 50 | #endif /* AVDEVICE_VERSION_H */ 51 | -------------------------------------------------------------------------------- /PlayCore/include/libavfilter/avfiltergraph.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Filter graphs 3 | * copyright (c) 2007 Bobby Bingham 4 | * 5 | * This file is part of FFmpeg. 6 | * 7 | * FFmpeg is free software; you can redistribute it and/or 8 | * modify it under the terms of the GNU Lesser General Public 9 | * License as published by the Free Software Foundation; either 10 | * version 2.1 of the License, or (at your option) any later version. 11 | * 12 | * FFmpeg is distributed in the hope that it will be useful, 13 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 14 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 15 | * Lesser General Public License for more details. 16 | * 17 | * You should have received a copy of the GNU Lesser General Public 18 | * License along with FFmpeg; if not, write to the Free Software 19 | * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA 20 | */ 21 | 22 | #ifndef AVFILTER_AVFILTERGRAPH_H 23 | #define AVFILTER_AVFILTERGRAPH_H 24 | 25 | #include "avfilter.h" 26 | #include "libavutil/log.h" 27 | 28 | #endif /* AVFILTER_AVFILTERGRAPH_H */ 29 | -------------------------------------------------------------------------------- /PlayCore/include/libavfilter/version.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Version macros. 3 | * 4 | * This file is part of FFmpeg. 5 | * 6 | * FFmpeg is free software; you can redistribute it and/or 7 | * modify it under the terms of the GNU Lesser General Public 8 | * License as published by the Free Software Foundation; either 9 | * version 2.1 of the License, or (at your option) any later version. 10 | * 11 | * FFmpeg 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 GNU 14 | * Lesser General Public License for more details. 15 | * 16 | * You should have received a copy of the GNU Lesser General Public 17 | * License along with FFmpeg; if not, write to the Free Software 18 | * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA 19 | */ 20 | 21 | #ifndef AVFILTER_VERSION_H 22 | #define AVFILTER_VERSION_H 23 | 24 | /** 25 | * @file 26 | * @ingroup lavfi 27 | * Libavfilter version macros 28 | */ 29 | 30 | #include "libavutil/version.h" 31 | 32 | #define LIBAVFILTER_VERSION_MAJOR 6 33 | #define LIBAVFILTER_VERSION_MINOR 64 34 | #define LIBAVFILTER_VERSION_MICRO 100 35 | 36 | #define LIBAVFILTER_VERSION_INT AV_VERSION_INT(LIBAVFILTER_VERSION_MAJOR, \ 37 | LIBAVFILTER_VERSION_MINOR, \ 38 | LIBAVFILTER_VERSION_MICRO) 39 | #define LIBAVFILTER_VERSION AV_VERSION(LIBAVFILTER_VERSION_MAJOR, \ 40 | LIBAVFILTER_VERSION_MINOR, \ 41 | LIBAVFILTER_VERSION_MICRO) 42 | #define LIBAVFILTER_BUILD LIBAVFILTER_VERSION_INT 43 | 44 | #define LIBAVFILTER_IDENT "Lavfi" AV_STRINGIFY(LIBAVFILTER_VERSION) 45 | 46 | /** 47 | * FF_API_* defines may be placed below to indicate public API that will be 48 | * dropped at a future version bump. The defines themselves are not part of 49 | * the public API and may change, break or disappear at any time. 50 | */ 51 | 52 | #ifndef FF_API_OLD_FILTER_OPTS 53 | #define FF_API_OLD_FILTER_OPTS (LIBAVFILTER_VERSION_MAJOR < 7) 54 | #endif 55 | #ifndef FF_API_OLD_FILTER_OPTS_ERROR 56 | #define FF_API_OLD_FILTER_OPTS_ERROR (LIBAVFILTER_VERSION_MAJOR < 7) 57 | #endif 58 | #ifndef FF_API_AVFILTER_OPEN 59 | #define FF_API_AVFILTER_OPEN (LIBAVFILTER_VERSION_MAJOR < 7) 60 | #endif 61 | #ifndef FF_API_AVFILTER_INIT_FILTER 62 | #define FF_API_AVFILTER_INIT_FILTER (LIBAVFILTER_VERSION_MAJOR < 7) 63 | #endif 64 | #ifndef FF_API_OLD_FILTER_REGISTER 65 | #define FF_API_OLD_FILTER_REGISTER (LIBAVFILTER_VERSION_MAJOR < 7) 66 | #endif 67 | #ifndef FF_API_NOCONST_GET_NAME 68 | #define FF_API_NOCONST_GET_NAME (LIBAVFILTER_VERSION_MAJOR < 7) 69 | #endif 70 | 71 | #endif /* AVFILTER_VERSION_H */ 72 | -------------------------------------------------------------------------------- /PlayCore/include/libavformat/config.h: -------------------------------------------------------------------------------- 1 | // Avisynth C Interface Version 0.20 2 | // Copyright 2003 Kevin Atkinson 3 | 4 | // This program is free software; you can redistribute it and/or modify 5 | // it under the terms of the GNU General Public License as published by 6 | // the Free Software Foundation; either version 2 of the License, or 7 | // (at your option) any later version. 8 | // 9 | // This program is distributed in the hope that it will be useful, 10 | // but WITHOUT ANY WARRANTY; without even the implied warranty of 11 | // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 12 | // GNU General Public License for more details. 13 | // 14 | // You should have received a copy of the GNU General Public License 15 | // along with this program; if not, write to the Free Software 16 | // Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA, or visit 17 | // http://www.gnu.org/copyleft/gpl.html . 18 | // 19 | // As a special exception, I give you permission to link to the 20 | // Avisynth C interface with independent modules that communicate with 21 | // the Avisynth C interface solely through the interfaces defined in 22 | // avisynth_c.h, regardless of the license terms of these independent 23 | // modules, and to copy and distribute the resulting combined work 24 | // under terms of your choice, provided that every copy of the 25 | // combined work is accompanied by a complete copy of the source code 26 | // of the Avisynth C interface and Avisynth itself (with the version 27 | // used to produce the combined work), being distributed under the 28 | // terms of the GNU General Public License plus this exception. An 29 | // independent module is a module which is not derived from or based 30 | // on Avisynth C Interface, such as 3rd-party filters, import and 31 | // export plugins, or graphical user interfaces. 32 | 33 | #ifndef AVS_CONFIG_H 34 | #define AVS_CONFIG_H 35 | 36 | // Undefine this to get cdecl calling convention 37 | #define AVSC_USE_STDCALL 1 38 | 39 | // NOTE TO PLUGIN AUTHORS: 40 | // Because FRAME_ALIGN can be substantially higher than the alignment 41 | // a plugin actually needs, plugins should not use FRAME_ALIGN to check for 42 | // alignment. They should always request the exact alignment value they need. 43 | // This is to make sure that plugins work over the widest range of AviSynth 44 | // builds possible. 45 | #define FRAME_ALIGN 32 46 | 47 | #if defined(_M_AMD64) || defined(__x86_64) 48 | # define X86_64 49 | #elif defined(_M_IX86) || defined(__i386__) 50 | # define X86_32 51 | #else 52 | # error Unsupported CPU architecture. 53 | #endif 54 | 55 | #endif //AVS_CONFIG_H 56 | -------------------------------------------------------------------------------- /PlayCore/include/libavutil/adler32.h: -------------------------------------------------------------------------------- 1 | /* 2 | * copyright (c) 2006 Mans Rullgard 3 | * 4 | * This file is part of FFmpeg. 5 | * 6 | * FFmpeg is free software; you can redistribute it and/or 7 | * modify it under the terms of the GNU Lesser General Public 8 | * License as published by the Free Software Foundation; either 9 | * version 2.1 of the License, or (at your option) any later version. 10 | * 11 | * FFmpeg 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 GNU 14 | * Lesser General Public License for more details. 15 | * 16 | * You should have received a copy of the GNU Lesser General Public 17 | * License along with FFmpeg; if not, write to the Free Software 18 | * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA 19 | */ 20 | 21 | /** 22 | * @file 23 | * @ingroup lavu_adler32 24 | * Public header for Adler-32 hash function implementation. 25 | */ 26 | 27 | #ifndef AVUTIL_ADLER32_H 28 | #define AVUTIL_ADLER32_H 29 | 30 | #include 31 | #include "attributes.h" 32 | 33 | /** 34 | * @defgroup lavu_adler32 Adler-32 35 | * @ingroup lavu_hash 36 | * Adler-32 hash function implementation. 37 | * 38 | * @{ 39 | */ 40 | 41 | /** 42 | * Calculate the Adler32 checksum of a buffer. 43 | * 44 | * Passing the return value to a subsequent av_adler32_update() call 45 | * allows the checksum of multiple buffers to be calculated as though 46 | * they were concatenated. 47 | * 48 | * @param adler initial checksum value 49 | * @param buf pointer to input buffer 50 | * @param len size of input buffer 51 | * @return updated checksum 52 | */ 53 | unsigned long av_adler32_update(unsigned long adler, const uint8_t *buf, 54 | unsigned int len) av_pure; 55 | 56 | /** 57 | * @} 58 | */ 59 | 60 | #endif /* AVUTIL_ADLER32_H */ 61 | -------------------------------------------------------------------------------- /PlayCore/include/libavutil/aes.h: -------------------------------------------------------------------------------- 1 | /* 2 | * copyright (c) 2007 Michael Niedermayer 3 | * 4 | * This file is part of FFmpeg. 5 | * 6 | * FFmpeg is free software; you can redistribute it and/or 7 | * modify it under the terms of the GNU Lesser General Public 8 | * License as published by the Free Software Foundation; either 9 | * version 2.1 of the License, or (at your option) any later version. 10 | * 11 | * FFmpeg 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 GNU 14 | * Lesser General Public License for more details. 15 | * 16 | * You should have received a copy of the GNU Lesser General Public 17 | * License along with FFmpeg; if not, write to the Free Software 18 | * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA 19 | */ 20 | 21 | #ifndef AVUTIL_AES_H 22 | #define AVUTIL_AES_H 23 | 24 | #include 25 | 26 | #include "attributes.h" 27 | #include "version.h" 28 | 29 | /** 30 | * @defgroup lavu_aes AES 31 | * @ingroup lavu_crypto 32 | * @{ 33 | */ 34 | 35 | extern const int av_aes_size; 36 | 37 | struct AVAES; 38 | 39 | /** 40 | * Allocate an AVAES context. 41 | */ 42 | struct AVAES *av_aes_alloc(void); 43 | 44 | /** 45 | * Initialize an AVAES context. 46 | * @param key_bits 128, 192 or 256 47 | * @param decrypt 0 for encryption, 1 for decryption 48 | */ 49 | int av_aes_init(struct AVAES *a, const uint8_t *key, int key_bits, int decrypt); 50 | 51 | /** 52 | * Encrypt or decrypt a buffer using a previously initialized context. 53 | * @param count number of 16 byte blocks 54 | * @param dst destination array, can be equal to src 55 | * @param src source array, can be equal to dst 56 | * @param iv initialization vector for CBC mode, if NULL then ECB will be used 57 | * @param decrypt 0 for encryption, 1 for decryption 58 | */ 59 | void av_aes_crypt(struct AVAES *a, uint8_t *dst, const uint8_t *src, int count, uint8_t *iv, int decrypt); 60 | 61 | /** 62 | * @} 63 | */ 64 | 65 | #endif /* AVUTIL_AES_H */ 66 | -------------------------------------------------------------------------------- /PlayCore/include/libavutil/aes_ctr.h: -------------------------------------------------------------------------------- 1 | /* 2 | * AES-CTR cipher 3 | * Copyright (c) 2015 Eran Kornblau 4 | * 5 | * This file is part of FFmpeg. 6 | * 7 | * FFmpeg is free software; you can redistribute it and/or 8 | * modify it under the terms of the GNU Lesser General Public 9 | * License as published by the Free Software Foundation; either 10 | * version 2.1 of the License, or (at your option) any later version. 11 | * 12 | * FFmpeg is distributed in the hope that it will be useful, 13 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 14 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 15 | * Lesser General Public License for more details. 16 | * 17 | * You should have received a copy of the GNU Lesser General Public 18 | * License along with FFmpeg; if not, write to the Free Software 19 | * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA 20 | */ 21 | 22 | #ifndef AVUTIL_AES_CTR_H 23 | #define AVUTIL_AES_CTR_H 24 | 25 | #include 26 | 27 | #include "attributes.h" 28 | #include "version.h" 29 | 30 | #define AES_CTR_KEY_SIZE (16) 31 | #define AES_CTR_IV_SIZE (8) 32 | 33 | struct AVAESCTR; 34 | 35 | /** 36 | * Allocate an AVAESCTR context. 37 | */ 38 | struct AVAESCTR *av_aes_ctr_alloc(void); 39 | 40 | /** 41 | * Initialize an AVAESCTR context. 42 | * @param key encryption key, must have a length of AES_CTR_KEY_SIZE 43 | */ 44 | int av_aes_ctr_init(struct AVAESCTR *a, const uint8_t *key); 45 | 46 | /** 47 | * Release an AVAESCTR context. 48 | */ 49 | void av_aes_ctr_free(struct AVAESCTR *a); 50 | 51 | /** 52 | * Process a buffer using a previously initialized context. 53 | * @param dst destination array, can be equal to src 54 | * @param src source array, can be equal to dst 55 | * @param size the size of src and dst 56 | */ 57 | void av_aes_ctr_crypt(struct AVAESCTR *a, uint8_t *dst, const uint8_t *src, int size); 58 | 59 | /** 60 | * Get the current iv 61 | */ 62 | const uint8_t* av_aes_ctr_get_iv(struct AVAESCTR *a); 63 | 64 | /** 65 | * Generate a random iv 66 | */ 67 | void av_aes_ctr_set_random_iv(struct AVAESCTR *a); 68 | 69 | /** 70 | * Forcefully change the iv 71 | */ 72 | void av_aes_ctr_set_iv(struct AVAESCTR *a, const uint8_t* iv); 73 | 74 | /** 75 | * Increment the top 64 bit of the iv (performed after each frame) 76 | */ 77 | void av_aes_ctr_increment_iv(struct AVAESCTR *a); 78 | 79 | /** 80 | * @} 81 | */ 82 | 83 | #endif /* AVUTIL_AES_CTR_H */ 84 | -------------------------------------------------------------------------------- /PlayCore/include/libavutil/avassert.h: -------------------------------------------------------------------------------- 1 | /* 2 | * copyright (c) 2010 Michael Niedermayer 3 | * 4 | * This file is part of FFmpeg. 5 | * 6 | * FFmpeg is free software; you can redistribute it and/or 7 | * modify it under the terms of the GNU Lesser General Public 8 | * License as published by the Free Software Foundation; either 9 | * version 2.1 of the License, or (at your option) any later version. 10 | * 11 | * FFmpeg 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 GNU 14 | * Lesser General Public License for more details. 15 | * 16 | * You should have received a copy of the GNU Lesser General Public 17 | * License along with FFmpeg; if not, write to the Free Software 18 | * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA 19 | */ 20 | 21 | /** 22 | * @file 23 | * simple assert() macros that are a bit more flexible than ISO C assert(). 24 | * @author Michael Niedermayer 25 | */ 26 | 27 | #ifndef AVUTIL_AVASSERT_H 28 | #define AVUTIL_AVASSERT_H 29 | 30 | #include 31 | #include "avutil.h" 32 | #include "log.h" 33 | 34 | /** 35 | * assert() equivalent, that is always enabled. 36 | */ 37 | #define av_assert0(cond) do { \ 38 | if (!(cond)) { \ 39 | av_log(NULL, AV_LOG_PANIC, "Assertion %s failed at %s:%d\n", \ 40 | AV_STRINGIFY(cond), __FILE__, __LINE__); \ 41 | abort(); \ 42 | } \ 43 | } while (0) 44 | 45 | 46 | /** 47 | * assert() equivalent, that does not lie in speed critical code. 48 | * These asserts() thus can be enabled without fearing speed loss. 49 | */ 50 | #if defined(ASSERT_LEVEL) && ASSERT_LEVEL > 0 51 | #define av_assert1(cond) av_assert0(cond) 52 | #else 53 | #define av_assert1(cond) ((void)0) 54 | #endif 55 | 56 | 57 | /** 58 | * assert() equivalent, that does lie in speed critical code. 59 | */ 60 | #if defined(ASSERT_LEVEL) && ASSERT_LEVEL > 1 61 | #define av_assert2(cond) av_assert0(cond) 62 | #else 63 | #define av_assert2(cond) ((void)0) 64 | #endif 65 | 66 | #endif /* AVUTIL_AVASSERT_H */ 67 | -------------------------------------------------------------------------------- /PlayCore/include/libavutil/avconfig.h: -------------------------------------------------------------------------------- 1 | /* Generated by ffconf */ 2 | #ifndef AVUTIL_AVCONFIG_H 3 | #define AVUTIL_AVCONFIG_H 4 | #define AV_HAVE_BIGENDIAN 0 5 | #define AV_HAVE_FAST_UNALIGNED 1 6 | #define AV_HAVE_INCOMPATIBLE_LIBAV_ABI 0 7 | #endif /* AVUTIL_AVCONFIG_H */ 8 | -------------------------------------------------------------------------------- /PlayCore/include/libavutil/base64.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2006 Ryan Martell. (rdm4@martellventures.com) 3 | * 4 | * This file is part of FFmpeg. 5 | * 6 | * FFmpeg is free software; you can redistribute it and/or 7 | * modify it under the terms of the GNU Lesser General Public 8 | * License as published by the Free Software Foundation; either 9 | * version 2.1 of the License, or (at your option) any later version. 10 | * 11 | * FFmpeg 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 GNU 14 | * Lesser General Public License for more details. 15 | * 16 | * You should have received a copy of the GNU Lesser General Public 17 | * License along with FFmpeg; if not, write to the Free Software 18 | * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA 19 | */ 20 | 21 | #ifndef AVUTIL_BASE64_H 22 | #define AVUTIL_BASE64_H 23 | 24 | #include 25 | 26 | /** 27 | * @defgroup lavu_base64 Base64 28 | * @ingroup lavu_crypto 29 | * @{ 30 | */ 31 | 32 | /** 33 | * Decode a base64-encoded string. 34 | * 35 | * @param out buffer for decoded data 36 | * @param in null-terminated input string 37 | * @param out_size size in bytes of the out buffer, must be at 38 | * least 3/4 of the length of in, that is AV_BASE64_DECODE_SIZE(strlen(in)) 39 | * @return number of bytes written, or a negative value in case of 40 | * invalid input 41 | */ 42 | int av_base64_decode(uint8_t *out, const char *in, int out_size); 43 | 44 | /** 45 | * Calculate the output size in bytes needed to decode a base64 string 46 | * with length x to a data buffer. 47 | */ 48 | #define AV_BASE64_DECODE_SIZE(x) ((x) * 3LL / 4) 49 | 50 | /** 51 | * Encode data to base64 and null-terminate. 52 | * 53 | * @param out buffer for encoded data 54 | * @param out_size size in bytes of the out buffer (including the 55 | * null terminator), must be at least AV_BASE64_SIZE(in_size) 56 | * @param in input buffer containing the data to encode 57 | * @param in_size size in bytes of the in buffer 58 | * @return out or NULL in case of error 59 | */ 60 | char *av_base64_encode(char *out, int out_size, const uint8_t *in, int in_size); 61 | 62 | /** 63 | * Calculate the output size needed to base64-encode x bytes to a 64 | * null-terminated string. 65 | */ 66 | #define AV_BASE64_SIZE(x) (((x)+2) / 3 * 4 + 1) 67 | 68 | /** 69 | * @} 70 | */ 71 | 72 | #endif /* AVUTIL_BASE64_H */ 73 | -------------------------------------------------------------------------------- /PlayCore/include/libavutil/blowfish.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Blowfish algorithm 3 | * Copyright (c) 2012 Samuel Pitoiset 4 | * 5 | * This file is part of FFmpeg. 6 | * 7 | * FFmpeg is free software; you can redistribute it and/or 8 | * modify it under the terms of the GNU Lesser General Public 9 | * License as published by the Free Software Foundation; either 10 | * version 2.1 of the License, or (at your option) any later version. 11 | * 12 | * FFmpeg is distributed in the hope that it will be useful, 13 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 14 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 15 | * Lesser General Public License for more details. 16 | * 17 | * You should have received a copy of the GNU Lesser General Public 18 | * License along with FFmpeg; if not, write to the Free Software 19 | * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA 20 | */ 21 | 22 | #ifndef AVUTIL_BLOWFISH_H 23 | #define AVUTIL_BLOWFISH_H 24 | 25 | #include 26 | 27 | /** 28 | * @defgroup lavu_blowfish Blowfish 29 | * @ingroup lavu_crypto 30 | * @{ 31 | */ 32 | 33 | #define AV_BF_ROUNDS 16 34 | 35 | typedef struct AVBlowfish { 36 | uint32_t p[AV_BF_ROUNDS + 2]; 37 | uint32_t s[4][256]; 38 | } AVBlowfish; 39 | 40 | /** 41 | * Allocate an AVBlowfish context. 42 | */ 43 | AVBlowfish *av_blowfish_alloc(void); 44 | 45 | /** 46 | * Initialize an AVBlowfish context. 47 | * 48 | * @param ctx an AVBlowfish context 49 | * @param key a key 50 | * @param key_len length of the key 51 | */ 52 | void av_blowfish_init(struct AVBlowfish *ctx, const uint8_t *key, int key_len); 53 | 54 | /** 55 | * Encrypt or decrypt a buffer using a previously initialized context. 56 | * 57 | * @param ctx an AVBlowfish context 58 | * @param xl left four bytes halves of input to be encrypted 59 | * @param xr right four bytes halves of input to be encrypted 60 | * @param decrypt 0 for encryption, 1 for decryption 61 | */ 62 | void av_blowfish_crypt_ecb(struct AVBlowfish *ctx, uint32_t *xl, uint32_t *xr, 63 | int decrypt); 64 | 65 | /** 66 | * Encrypt or decrypt a buffer using a previously initialized context. 67 | * 68 | * @param ctx an AVBlowfish context 69 | * @param dst destination array, can be equal to src 70 | * @param src source array, can be equal to dst 71 | * @param count number of 8 byte blocks 72 | * @param iv initialization vector for CBC mode, if NULL ECB will be used 73 | * @param decrypt 0 for encryption, 1 for decryption 74 | */ 75 | void av_blowfish_crypt(struct AVBlowfish *ctx, uint8_t *dst, const uint8_t *src, 76 | int count, uint8_t *iv, int decrypt); 77 | 78 | /** 79 | * @} 80 | */ 81 | 82 | #endif /* AVUTIL_BLOWFISH_H */ 83 | -------------------------------------------------------------------------------- /PlayCore/include/libavutil/camellia.h: -------------------------------------------------------------------------------- 1 | /* 2 | * An implementation of the CAMELLIA algorithm as mentioned in RFC3713 3 | * Copyright (c) 2014 Supraja Meedinti 4 | * 5 | * This file is part of FFmpeg. 6 | * 7 | * FFmpeg is free software; you can redistribute it and/or 8 | * modify it under the terms of the GNU Lesser General Public 9 | * License as published by the Free Software Foundation; either 10 | * version 2.1 of the License, or (at your option) any later version. 11 | * 12 | * FFmpeg is distributed in the hope that it will be useful, 13 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 14 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 15 | * Lesser General Public License for more details. 16 | * 17 | * You should have received a copy of the GNU Lesser General Public 18 | * License along with FFmpeg; if not, write to the Free Software 19 | * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA 20 | */ 21 | 22 | #ifndef AVUTIL_CAMELLIA_H 23 | #define AVUTIL_CAMELLIA_H 24 | 25 | #include 26 | 27 | 28 | /** 29 | * @file 30 | * @brief Public header for libavutil CAMELLIA algorithm 31 | * @defgroup lavu_camellia CAMELLIA 32 | * @ingroup lavu_crypto 33 | * @{ 34 | */ 35 | 36 | extern const int av_camellia_size; 37 | 38 | struct AVCAMELLIA; 39 | 40 | /** 41 | * Allocate an AVCAMELLIA context 42 | * To free the struct: av_free(ptr) 43 | */ 44 | struct AVCAMELLIA *av_camellia_alloc(void); 45 | 46 | /** 47 | * Initialize an AVCAMELLIA context. 48 | * 49 | * @param ctx an AVCAMELLIA context 50 | * @param key a key of 16, 24, 32 bytes used for encryption/decryption 51 | * @param key_bits number of keybits: possible are 128, 192, 256 52 | */ 53 | int av_camellia_init(struct AVCAMELLIA *ctx, const uint8_t *key, int key_bits); 54 | 55 | /** 56 | * Encrypt or decrypt a buffer using a previously initialized context 57 | * 58 | * @param ctx an AVCAMELLIA context 59 | * @param dst destination array, can be equal to src 60 | * @param src source array, can be equal to dst 61 | * @param count number of 16 byte blocks 62 | * @paran iv initialization vector for CBC mode, NULL for ECB mode 63 | * @param decrypt 0 for encryption, 1 for decryption 64 | */ 65 | void av_camellia_crypt(struct AVCAMELLIA *ctx, uint8_t *dst, const uint8_t *src, int count, uint8_t* iv, int decrypt); 66 | 67 | /** 68 | * @} 69 | */ 70 | #endif /* AVUTIL_CAMELLIA_H */ 71 | -------------------------------------------------------------------------------- /PlayCore/include/libavutil/cast5.h: -------------------------------------------------------------------------------- 1 | /* 2 | * An implementation of the CAST128 algorithm as mentioned in RFC2144 3 | * Copyright (c) 2014 Supraja Meedinti 4 | * 5 | * This file is part of FFmpeg. 6 | * 7 | * FFmpeg is free software; you can redistribute it and/or 8 | * modify it under the terms of the GNU Lesser General Public 9 | * License as published by the Free Software Foundation; either 10 | * version 2.1 of the License, or (at your option) any later version. 11 | * 12 | * FFmpeg is distributed in the hope that it will be useful, 13 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 14 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 15 | * Lesser General Public License for more details. 16 | * 17 | * You should have received a copy of the GNU Lesser General Public 18 | * License along with FFmpeg; if not, write to the Free Software 19 | * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA 20 | */ 21 | 22 | #ifndef AVUTIL_CAST5_H 23 | #define AVUTIL_CAST5_H 24 | 25 | #include 26 | 27 | 28 | /** 29 | * @file 30 | * @brief Public header for libavutil CAST5 algorithm 31 | * @defgroup lavu_cast5 CAST5 32 | * @ingroup lavu_crypto 33 | * @{ 34 | */ 35 | 36 | extern const int av_cast5_size; 37 | 38 | struct AVCAST5; 39 | 40 | /** 41 | * Allocate an AVCAST5 context 42 | * To free the struct: av_free(ptr) 43 | */ 44 | struct AVCAST5 *av_cast5_alloc(void); 45 | /** 46 | * Initialize an AVCAST5 context. 47 | * 48 | * @param ctx an AVCAST5 context 49 | * @param key a key of 5,6,...16 bytes used for encryption/decryption 50 | * @param key_bits number of keybits: possible are 40,48,...,128 51 | * @return 0 on success, less than 0 on failure 52 | */ 53 | int av_cast5_init(struct AVCAST5 *ctx, const uint8_t *key, int key_bits); 54 | 55 | /** 56 | * Encrypt or decrypt a buffer using a previously initialized context, ECB mode only 57 | * 58 | * @param ctx an AVCAST5 context 59 | * @param dst destination array, can be equal to src 60 | * @param src source array, can be equal to dst 61 | * @param count number of 8 byte blocks 62 | * @param decrypt 0 for encryption, 1 for decryption 63 | */ 64 | void av_cast5_crypt(struct AVCAST5 *ctx, uint8_t *dst, const uint8_t *src, int count, int decrypt); 65 | 66 | /** 67 | * Encrypt or decrypt a buffer using a previously initialized context 68 | * 69 | * @param ctx an AVCAST5 context 70 | * @param dst destination array, can be equal to src 71 | * @param src source array, can be equal to dst 72 | * @param count number of 8 byte blocks 73 | * @param iv initialization vector for CBC mode, NULL for ECB mode 74 | * @param decrypt 0 for encryption, 1 for decryption 75 | */ 76 | void av_cast5_crypt2(struct AVCAST5 *ctx, uint8_t *dst, const uint8_t *src, int count, uint8_t *iv, int decrypt); 77 | /** 78 | * @} 79 | */ 80 | #endif /* AVUTIL_CAST5_H */ 81 | -------------------------------------------------------------------------------- /PlayCore/include/libavutil/des.h: -------------------------------------------------------------------------------- 1 | /* 2 | * DES encryption/decryption 3 | * Copyright (c) 2007 Reimar Doeffinger 4 | * 5 | * This file is part of FFmpeg. 6 | * 7 | * FFmpeg is free software; you can redistribute it and/or 8 | * modify it under the terms of the GNU Lesser General Public 9 | * License as published by the Free Software Foundation; either 10 | * version 2.1 of the License, or (at your option) any later version. 11 | * 12 | * FFmpeg is distributed in the hope that it will be useful, 13 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 14 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 15 | * Lesser General Public License for more details. 16 | * 17 | * You should have received a copy of the GNU Lesser General Public 18 | * License along with FFmpeg; if not, write to the Free Software 19 | * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA 20 | */ 21 | 22 | #ifndef AVUTIL_DES_H 23 | #define AVUTIL_DES_H 24 | 25 | #include 26 | 27 | /** 28 | * @defgroup lavu_des DES 29 | * @ingroup lavu_crypto 30 | * @{ 31 | */ 32 | 33 | typedef struct AVDES { 34 | uint64_t round_keys[3][16]; 35 | int triple_des; 36 | } AVDES; 37 | 38 | /** 39 | * Allocate an AVDES context. 40 | */ 41 | AVDES *av_des_alloc(void); 42 | 43 | /** 44 | * @brief Initializes an AVDES context. 45 | * 46 | * @param key_bits must be 64 or 192 47 | * @param decrypt 0 for encryption/CBC-MAC, 1 for decryption 48 | * @return zero on success, negative value otherwise 49 | */ 50 | int av_des_init(struct AVDES *d, const uint8_t *key, int key_bits, int decrypt); 51 | 52 | /** 53 | * @brief Encrypts / decrypts using the DES algorithm. 54 | * 55 | * @param count number of 8 byte blocks 56 | * @param dst destination array, can be equal to src, must be 8-byte aligned 57 | * @param src source array, can be equal to dst, must be 8-byte aligned, may be NULL 58 | * @param iv initialization vector for CBC mode, if NULL then ECB will be used, 59 | * must be 8-byte aligned 60 | * @param decrypt 0 for encryption, 1 for decryption 61 | */ 62 | void av_des_crypt(struct AVDES *d, uint8_t *dst, const uint8_t *src, int count, uint8_t *iv, int decrypt); 63 | 64 | /** 65 | * @brief Calculates CBC-MAC using the DES algorithm. 66 | * 67 | * @param count number of 8 byte blocks 68 | * @param dst destination array, can be equal to src, must be 8-byte aligned 69 | * @param src source array, can be equal to dst, must be 8-byte aligned, may be NULL 70 | */ 71 | void av_des_mac(struct AVDES *d, uint8_t *dst, const uint8_t *src, int count); 72 | 73 | /** 74 | * @} 75 | */ 76 | 77 | #endif /* AVUTIL_DES_H */ 78 | -------------------------------------------------------------------------------- /PlayCore/include/libavutil/ffversion.h: -------------------------------------------------------------------------------- 1 | /* Automatically generated by version.sh, do not manually edit! */ 2 | #ifndef AVUTIL_FFVERSION_H 3 | #define AVUTIL_FFVERSION_H 4 | #define FFMPEG_VERSION "N-82060-g0cfd6cc" 5 | #endif /* AVUTIL_FFVERSION_H */ 6 | -------------------------------------------------------------------------------- /PlayCore/include/libavutil/file.h: -------------------------------------------------------------------------------- 1 | /* 2 | * This file is part of FFmpeg. 3 | * 4 | * FFmpeg is free software; you can redistribute it and/or 5 | * modify it under the terms of the GNU Lesser General Public 6 | * License as published by the Free Software Foundation; either 7 | * version 2.1 of the License, or (at your option) any later version. 8 | * 9 | * FFmpeg is distributed in the hope that it will be useful, 10 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 11 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 12 | * Lesser General Public License for more details. 13 | * 14 | * You should have received a copy of the GNU Lesser General Public 15 | * License along with FFmpeg; if not, write to the Free Software 16 | * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA 17 | */ 18 | 19 | #ifndef AVUTIL_FILE_H 20 | #define AVUTIL_FILE_H 21 | 22 | #include 23 | 24 | #include "avutil.h" 25 | 26 | /** 27 | * @file 28 | * Misc file utilities. 29 | */ 30 | 31 | /** 32 | * Read the file with name filename, and put its content in a newly 33 | * allocated buffer or map it with mmap() when available. 34 | * In case of success set *bufptr to the read or mmapped buffer, and 35 | * *size to the size in bytes of the buffer in *bufptr. 36 | * The returned buffer must be released with av_file_unmap(). 37 | * 38 | * @param log_offset loglevel offset used for logging 39 | * @param log_ctx context used for logging 40 | * @return a non negative number in case of success, a negative value 41 | * corresponding to an AVERROR error code in case of failure 42 | */ 43 | av_warn_unused_result 44 | int av_file_map(const char *filename, uint8_t **bufptr, size_t *size, 45 | int log_offset, void *log_ctx); 46 | 47 | /** 48 | * Unmap or free the buffer bufptr created by av_file_map(). 49 | * 50 | * @param size size in bytes of bufptr, must be the same as returned 51 | * by av_file_map() 52 | */ 53 | void av_file_unmap(uint8_t *bufptr, size_t size); 54 | 55 | /** 56 | * Wrapper to work around the lack of mkstemp() on mingw. 57 | * Also, tries to create file in /tmp first, if possible. 58 | * *prefix can be a character constant; *filename will be allocated internally. 59 | * @return file descriptor of opened file (or negative value corresponding to an 60 | * AVERROR code on error) 61 | * and opened file name in **filename. 62 | * @note On very old libcs it is necessary to set a secure umask before 63 | * calling this, av_tempfile() can't call umask itself as it is used in 64 | * libraries and could interfere with the calling application. 65 | * @deprecated as fd numbers cannot be passed saftely between libs on some platforms 66 | */ 67 | int av_tempfile(const char *prefix, char **filename, int log_offset, void *log_ctx); 68 | 69 | #endif /* AVUTIL_FILE_H */ 70 | -------------------------------------------------------------------------------- /PlayCore/include/libavutil/hwcontext_cuda.h: -------------------------------------------------------------------------------- 1 | /* 2 | * This file is part of FFmpeg. 3 | * 4 | * FFmpeg is free software; you can redistribute it and/or 5 | * modify it under the terms of the GNU Lesser General Public 6 | * License as published by the Free Software Foundation; either 7 | * version 2.1 of the License, or (at your option) any later version. 8 | * 9 | * FFmpeg is distributed in the hope that it will be useful, 10 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 11 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 12 | * Lesser General Public License for more details. 13 | * 14 | * You should have received a copy of the GNU Lesser General Public 15 | * License along with FFmpeg; if not, write to the Free Software 16 | * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA 17 | */ 18 | 19 | 20 | #ifndef AVUTIL_HWCONTEXT_CUDA_H 21 | #define AVUTIL_HWCONTEXT_CUDA_H 22 | 23 | #include 24 | 25 | #include "pixfmt.h" 26 | 27 | /** 28 | * @file 29 | * An API-specific header for AV_HWDEVICE_TYPE_CUDA. 30 | * 31 | * This API supports dynamic frame pools. AVHWFramesContext.pool must return 32 | * AVBufferRefs whose data pointer is a CUdeviceptr. 33 | */ 34 | 35 | /** 36 | * This struct is allocated as AVHWDeviceContext.hwctx 37 | */ 38 | typedef struct AVCUDADeviceContext { 39 | CUcontext cuda_ctx; 40 | } AVCUDADeviceContext; 41 | 42 | /** 43 | * AVHWFramesContext.hwctx is currently not used 44 | */ 45 | 46 | #endif /* AVUTIL_HWCONTEXT_CUDA_H */ 47 | -------------------------------------------------------------------------------- /PlayCore/include/libavutil/hwcontext_dxva2.h: -------------------------------------------------------------------------------- 1 | /* 2 | * This file is part of FFmpeg. 3 | * 4 | * FFmpeg is free software; you can redistribute it and/or 5 | * modify it under the terms of the GNU Lesser General Public 6 | * License as published by the Free Software Foundation; either 7 | * version 2.1 of the License, or (at your option) any later version. 8 | * 9 | * FFmpeg is distributed in the hope that it will be useful, 10 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 11 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 12 | * Lesser General Public License for more details. 13 | * 14 | * You should have received a copy of the GNU Lesser General Public 15 | * License along with FFmpeg; if not, write to the Free Software 16 | * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA 17 | */ 18 | 19 | 20 | #ifndef AVUTIL_HWCONTEXT_DXVA2_H 21 | #define AVUTIL_HWCONTEXT_DXVA2_H 22 | 23 | /** 24 | * @file 25 | * An API-specific header for AV_HWDEVICE_TYPE_DXVA2. 26 | * 27 | * Only fixed-size pools are supported. 28 | * 29 | * For user-allocated pools, AVHWFramesContext.pool must return AVBufferRefs 30 | * with the data pointer set to a pointer to IDirect3DSurface9. 31 | */ 32 | 33 | #include 34 | #include 35 | 36 | /** 37 | * This struct is allocated as AVHWDeviceContext.hwctx 38 | */ 39 | typedef struct AVDXVA2DeviceContext { 40 | IDirect3DDeviceManager9 *devmgr; 41 | } AVDXVA2DeviceContext; 42 | 43 | /** 44 | * This struct is allocated as AVHWFramesContext.hwctx 45 | */ 46 | typedef struct AVDXVA2FramesContext { 47 | /** 48 | * The surface type (e.g. DXVA2_VideoProcessorRenderTarget or 49 | * DXVA2_VideoDecoderRenderTarget). Must be set by the caller. 50 | */ 51 | DWORD surface_type; 52 | 53 | /** 54 | * The surface pool. When an external pool is not provided by the caller, 55 | * this will be managed (allocated and filled on init, freed on uninit) by 56 | * libavutil. 57 | */ 58 | IDirect3DSurface9 **surfaces; 59 | int nb_surfaces; 60 | 61 | /** 62 | * Certain drivers require the decoder to be destroyed before the surfaces. 63 | * To allow internally managed pools to work properly in such cases, this 64 | * field is provided. 65 | * 66 | * If it is non-NULL, libavutil will call IDirectXVideoDecoder_Release() on 67 | * it just before the internal surface pool is freed. 68 | */ 69 | IDirectXVideoDecoder *decoder_to_release; 70 | } AVDXVA2FramesContext; 71 | 72 | #endif /* AVUTIL_HWCONTEXT_DXVA2_H */ 73 | -------------------------------------------------------------------------------- /PlayCore/include/libavutil/hwcontext_qsv.h: -------------------------------------------------------------------------------- 1 | /* 2 | * This file is part of FFmpeg. 3 | * 4 | * FFmpeg is free software; you can redistribute it and/or 5 | * modify it under the terms of the GNU Lesser General Public 6 | * License as published by the Free Software Foundation; either 7 | * version 2.1 of the License, or (at your option) any later version. 8 | * 9 | * FFmpeg is distributed in the hope that it will be useful, 10 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 11 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 12 | * Lesser General Public License for more details. 13 | * 14 | * You should have received a copy of the GNU Lesser General Public 15 | * License along with FFmpeg; if not, write to the Free Software 16 | * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA 17 | */ 18 | 19 | #ifndef AVUTIL_HWCONTEXT_QSV_H 20 | #define AVUTIL_HWCONTEXT_QSV_H 21 | 22 | #include 23 | 24 | /** 25 | * @file 26 | * An API-specific header for AV_HWDEVICE_TYPE_QSV. 27 | * 28 | * This API does not support dynamic frame pools. AVHWFramesContext.pool must 29 | * contain AVBufferRefs whose data pointer points to an mfxFrameSurface1 struct. 30 | */ 31 | 32 | /** 33 | * This struct is allocated as AVHWDeviceContext.hwctx 34 | */ 35 | typedef struct AVQSVDeviceContext { 36 | mfxSession session; 37 | } AVQSVDeviceContext; 38 | 39 | /** 40 | * This struct is allocated as AVHWFramesContext.hwctx 41 | */ 42 | typedef struct AVQSVFramesContext { 43 | mfxFrameSurface1 *surfaces; 44 | int nb_surfaces; 45 | 46 | /** 47 | * A combination of MFX_MEMTYPE_* describing the frame pool. 48 | */ 49 | int frame_type; 50 | } AVQSVFramesContext; 51 | 52 | #endif /* AVUTIL_HWCONTEXT_QSV_H */ 53 | 54 | -------------------------------------------------------------------------------- /PlayCore/include/libavutil/hwcontext_vaapi.h: -------------------------------------------------------------------------------- 1 | /* 2 | * This file is part of FFmpeg. 3 | * 4 | * FFmpeg is free software; you can redistribute it and/or 5 | * modify it under the terms of the GNU Lesser General Public 6 | * License as published by the Free Software Foundation; either 7 | * version 2.1 of the License, or (at your option) any later version. 8 | * 9 | * FFmpeg is distributed in the hope that it will be useful, 10 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 11 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 12 | * Lesser General Public License for more details. 13 | * 14 | * You should have received a copy of the GNU Lesser General Public 15 | * License along with FFmpeg; if not, write to the Free Software 16 | * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA 17 | */ 18 | 19 | #ifndef AVUTIL_HWCONTEXT_VAAPI_H 20 | #define AVUTIL_HWCONTEXT_VAAPI_H 21 | 22 | #include 23 | 24 | /** 25 | * @file 26 | * API-specific header for AV_HWDEVICE_TYPE_VAAPI. 27 | * 28 | * Dynamic frame pools are supported, but note that any pool used as a render 29 | * target is required to be of fixed size in order to be be usable as an 30 | * argument to vaCreateContext(). 31 | * 32 | * For user-allocated pools, AVHWFramesContext.pool must return AVBufferRefs 33 | * with the data pointer set to a VASurfaceID. 34 | */ 35 | 36 | /** 37 | * VAAPI connection details. 38 | * 39 | * Allocated as AVHWDeviceContext.hwctx 40 | */ 41 | typedef struct AVVAAPIDeviceContext { 42 | /** 43 | * The VADisplay handle, to be filled by the user. 44 | */ 45 | VADisplay display; 46 | } AVVAAPIDeviceContext; 47 | 48 | /** 49 | * VAAPI-specific data associated with a frame pool. 50 | * 51 | * Allocated as AVHWFramesContext.hwctx. 52 | */ 53 | typedef struct AVVAAPIFramesContext { 54 | /** 55 | * Set by the user to apply surface attributes to all surfaces in 56 | * the frame pool. If null, default settings are used. 57 | */ 58 | VASurfaceAttrib *attributes; 59 | int nb_attributes; 60 | /** 61 | * The surfaces IDs of all surfaces in the pool after creation. 62 | * Only valid if AVHWFramesContext.initial_pool_size was positive. 63 | * These are intended to be used as the render_targets arguments to 64 | * vaCreateContext(). 65 | */ 66 | VASurfaceID *surface_ids; 67 | int nb_surfaces; 68 | } AVVAAPIFramesContext; 69 | 70 | /** 71 | * VAAPI hardware pipeline configuration details. 72 | * 73 | * Allocated with av_hwdevice_hwconfig_alloc(). 74 | */ 75 | typedef struct AVVAAPIHWConfig { 76 | /** 77 | * ID of a VAAPI pipeline configuration. 78 | */ 79 | VAConfigID config_id; 80 | } AVVAAPIHWConfig; 81 | 82 | #endif /* AVUTIL_HWCONTEXT_VAAPI_H */ 83 | -------------------------------------------------------------------------------- /PlayCore/include/libavutil/hwcontext_vdpau.h: -------------------------------------------------------------------------------- 1 | /* 2 | * This file is part of FFmpeg. 3 | * 4 | * FFmpeg is free software; you can redistribute it and/or 5 | * modify it under the terms of the GNU Lesser General Public 6 | * License as published by the Free Software Foundation; either 7 | * version 2.1 of the License, or (at your option) any later version. 8 | * 9 | * FFmpeg is distributed in the hope that it will be useful, 10 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 11 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 12 | * Lesser General Public License for more details. 13 | * 14 | * You should have received a copy of the GNU Lesser General Public 15 | * License along with FFmpeg; if not, write to the Free Software 16 | * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA 17 | */ 18 | 19 | #ifndef AVUTIL_HWCONTEXT_VDPAU_H 20 | #define AVUTIL_HWCONTEXT_VDPAU_H 21 | 22 | #include 23 | 24 | /** 25 | * @file 26 | * An API-specific header for AV_HWDEVICE_TYPE_VDPAU. 27 | * 28 | * This API supports dynamic frame pools. AVHWFramesContext.pool must return 29 | * AVBufferRefs whose data pointer is a VdpVideoSurface. 30 | */ 31 | 32 | /** 33 | * This struct is allocated as AVHWDeviceContext.hwctx 34 | */ 35 | typedef struct AVVDPAUDeviceContext { 36 | VdpDevice device; 37 | VdpGetProcAddress *get_proc_address; 38 | } AVVDPAUDeviceContext; 39 | 40 | /** 41 | * AVHWFramesContext.hwctx is currently not used 42 | */ 43 | 44 | #endif /* AVUTIL_HWCONTEXT_VDPAU_H */ 45 | -------------------------------------------------------------------------------- /PlayCore/include/libavutil/intfloat.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2011 Mans Rullgard 3 | * 4 | * This file is part of FFmpeg. 5 | * 6 | * FFmpeg is free software; you can redistribute it and/or 7 | * modify it under the terms of the GNU Lesser General Public 8 | * License as published by the Free Software Foundation; either 9 | * version 2.1 of the License, or (at your option) any later version. 10 | * 11 | * FFmpeg 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 GNU 14 | * Lesser General Public License for more details. 15 | * 16 | * You should have received a copy of the GNU Lesser General Public 17 | * License along with FFmpeg; if not, write to the Free Software 18 | * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA 19 | */ 20 | 21 | #ifndef AVUTIL_INTFLOAT_H 22 | #define AVUTIL_INTFLOAT_H 23 | 24 | #include 25 | #include "attributes.h" 26 | 27 | union av_intfloat32 { 28 | uint32_t i; 29 | float f; 30 | }; 31 | 32 | union av_intfloat64 { 33 | uint64_t i; 34 | double f; 35 | }; 36 | 37 | /** 38 | * Reinterpret a 32-bit integer as a float. 39 | */ 40 | static av_always_inline float av_int2float(uint32_t i) 41 | { 42 | union av_intfloat32 v; 43 | v.i = i; 44 | return v.f; 45 | } 46 | 47 | /** 48 | * Reinterpret a float as a 32-bit integer. 49 | */ 50 | static av_always_inline uint32_t av_float2int(float f) 51 | { 52 | union av_intfloat32 v; 53 | v.f = f; 54 | return v.i; 55 | } 56 | 57 | /** 58 | * Reinterpret a 64-bit integer as a double. 59 | */ 60 | static av_always_inline double av_int2double(uint64_t i) 61 | { 62 | union av_intfloat64 v; 63 | v.i = i; 64 | return v.f; 65 | } 66 | 67 | /** 68 | * Reinterpret a double as a 64-bit integer. 69 | */ 70 | static av_always_inline uint64_t av_double2int(double f) 71 | { 72 | union av_intfloat64 v; 73 | v.f = f; 74 | return v.i; 75 | } 76 | 77 | #endif /* AVUTIL_INTFLOAT_H */ 78 | -------------------------------------------------------------------------------- /PlayCore/include/libavutil/lfg.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Lagged Fibonacci PRNG 3 | * Copyright (c) 2008 Michael Niedermayer 4 | * 5 | * This file is part of FFmpeg. 6 | * 7 | * FFmpeg is free software; you can redistribute it and/or 8 | * modify it under the terms of the GNU Lesser General Public 9 | * License as published by the Free Software Foundation; either 10 | * version 2.1 of the License, or (at your option) any later version. 11 | * 12 | * FFmpeg is distributed in the hope that it will be useful, 13 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 14 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 15 | * Lesser General Public License for more details. 16 | * 17 | * You should have received a copy of the GNU Lesser General Public 18 | * License along with FFmpeg; if not, write to the Free Software 19 | * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA 20 | */ 21 | 22 | #ifndef AVUTIL_LFG_H 23 | #define AVUTIL_LFG_H 24 | 25 | typedef struct AVLFG { 26 | unsigned int state[64]; 27 | int index; 28 | } AVLFG; 29 | 30 | void av_lfg_init(AVLFG *c, unsigned int seed); 31 | 32 | /** 33 | * Get the next random unsigned 32-bit number using an ALFG. 34 | * 35 | * Please also consider a simple LCG like state= state*1664525+1013904223, 36 | * it may be good enough and faster for your specific use case. 37 | */ 38 | static inline unsigned int av_lfg_get(AVLFG *c){ 39 | c->state[c->index & 63] = c->state[(c->index-24) & 63] + c->state[(c->index-55) & 63]; 40 | return c->state[c->index++ & 63]; 41 | } 42 | 43 | /** 44 | * Get the next random unsigned 32-bit number using a MLFG. 45 | * 46 | * Please also consider av_lfg_get() above, it is faster. 47 | */ 48 | static inline unsigned int av_mlfg_get(AVLFG *c){ 49 | unsigned int a= c->state[(c->index-55) & 63]; 50 | unsigned int b= c->state[(c->index-24) & 63]; 51 | return c->state[c->index++ & 63] = 2*a*b+a+b; 52 | } 53 | 54 | /** 55 | * Get the next two numbers generated by a Box-Muller Gaussian 56 | * generator using the random numbers issued by lfg. 57 | * 58 | * @param out array where the two generated numbers are placed 59 | */ 60 | void av_bmg_get(AVLFG *lfg, double out[2]); 61 | 62 | #endif /* AVUTIL_LFG_H */ 63 | -------------------------------------------------------------------------------- /PlayCore/include/libavutil/lzo.h: -------------------------------------------------------------------------------- 1 | /* 2 | * LZO 1x decompression 3 | * copyright (c) 2006 Reimar Doeffinger 4 | * 5 | * This file is part of FFmpeg. 6 | * 7 | * FFmpeg is free software; you can redistribute it and/or 8 | * modify it under the terms of the GNU Lesser General Public 9 | * License as published by the Free Software Foundation; either 10 | * version 2.1 of the License, or (at your option) any later version. 11 | * 12 | * FFmpeg is distributed in the hope that it will be useful, 13 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 14 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 15 | * Lesser General Public License for more details. 16 | * 17 | * You should have received a copy of the GNU Lesser General Public 18 | * License along with FFmpeg; if not, write to the Free Software 19 | * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA 20 | */ 21 | 22 | #ifndef AVUTIL_LZO_H 23 | #define AVUTIL_LZO_H 24 | 25 | /** 26 | * @defgroup lavu_lzo LZO 27 | * @ingroup lavu_crypto 28 | * 29 | * @{ 30 | */ 31 | 32 | #include 33 | 34 | /** @name Error flags returned by av_lzo1x_decode 35 | * @{ */ 36 | /// end of the input buffer reached before decoding finished 37 | #define AV_LZO_INPUT_DEPLETED 1 38 | /// decoded data did not fit into output buffer 39 | #define AV_LZO_OUTPUT_FULL 2 40 | /// a reference to previously decoded data was wrong 41 | #define AV_LZO_INVALID_BACKPTR 4 42 | /// a non-specific error in the compressed bitstream 43 | #define AV_LZO_ERROR 8 44 | /** @} */ 45 | 46 | #define AV_LZO_INPUT_PADDING 8 47 | #define AV_LZO_OUTPUT_PADDING 12 48 | 49 | /** 50 | * @brief Decodes LZO 1x compressed data. 51 | * @param out output buffer 52 | * @param outlen size of output buffer, number of bytes left are returned here 53 | * @param in input buffer 54 | * @param inlen size of input buffer, number of bytes left are returned here 55 | * @return 0 on success, otherwise a combination of the error flags above 56 | * 57 | * Make sure all buffers are appropriately padded, in must provide 58 | * AV_LZO_INPUT_PADDING, out must provide AV_LZO_OUTPUT_PADDING additional bytes. 59 | */ 60 | int av_lzo1x_decode(void *out, int *outlen, const void *in, int *inlen); 61 | 62 | /** 63 | * @} 64 | */ 65 | 66 | #endif /* AVUTIL_LZO_H */ 67 | -------------------------------------------------------------------------------- /PlayCore/include/libavutil/macros.h: -------------------------------------------------------------------------------- 1 | /* 2 | * This file is part of FFmpeg. 3 | * 4 | * FFmpeg is free software; you can redistribute it and/or 5 | * modify it under the terms of the GNU Lesser General Public 6 | * License as published by the Free Software Foundation; either 7 | * version 2.1 of the License, or (at your option) any later version. 8 | * 9 | * FFmpeg is distributed in the hope that it will be useful, 10 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 11 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 12 | * Lesser General Public License for more details. 13 | * 14 | * You should have received a copy of the GNU Lesser General Public 15 | * License along with FFmpeg; if not, write to the Free Software 16 | * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA 17 | */ 18 | 19 | /** 20 | * @file 21 | * @ingroup lavu 22 | * Utility Preprocessor macros 23 | */ 24 | 25 | #ifndef AVUTIL_MACROS_H 26 | #define AVUTIL_MACROS_H 27 | 28 | /** 29 | * @addtogroup preproc_misc Preprocessor String Macros 30 | * 31 | * String manipulation macros 32 | * 33 | * @{ 34 | */ 35 | 36 | #define AV_STRINGIFY(s) AV_TOSTRING(s) 37 | #define AV_TOSTRING(s) #s 38 | 39 | #define AV_GLUE(a, b) a ## b 40 | #define AV_JOIN(a, b) AV_GLUE(a, b) 41 | 42 | /** 43 | * @} 44 | */ 45 | 46 | #define AV_PRAGMA(s) _Pragma(#s) 47 | 48 | #define FFALIGN(x, a) (((x)+(a)-1)&~((a)-1)) 49 | 50 | #endif /* AVUTIL_MACROS_H */ 51 | -------------------------------------------------------------------------------- /PlayCore/include/libavutil/mastering_display_metadata.h: -------------------------------------------------------------------------------- 1 | /** 2 | * Copyright (c) 2016 Neil Birkbeck 3 | * 4 | * This file is part of FFmpeg. 5 | * 6 | * FFmpeg is free software; you can redistribute it and/or 7 | * modify it under the terms of the GNU Lesser General Public 8 | * License as published by the Free Software Foundation; either 9 | * version 2.1 of the License, or (at your option) any later version. 10 | * 11 | * FFmpeg 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 GNU 14 | * Lesser General Public License for more details. 15 | * 16 | * You should have received a copy of the GNU Lesser General Public 17 | * License along with FFmpeg; if not, write to the Free Software 18 | * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA 19 | */ 20 | 21 | #ifndef AVUTIL_MASTERING_DISPLAY_METADATA_H 22 | #define AVUTIL_MASTERING_DISPLAY_METADATA_H 23 | 24 | #include "frame.h" 25 | #include "rational.h" 26 | 27 | 28 | /** 29 | * Mastering display metadata capable of representing the color volume of 30 | * the display used to master the content (SMPTE 2086:2014). 31 | * 32 | * To be used as payload of a AVFrameSideData or AVPacketSideData with the 33 | * appropriate type. 34 | * 35 | * @note The struct should be allocated with av_mastering_display_metadata_alloc() 36 | * and its size is not a part of the public ABI. 37 | */ 38 | typedef struct AVMasteringDisplayMetadata { 39 | /** 40 | * CIE 1931 xy chromaticity coords of color primaries (r, g, b order). 41 | */ 42 | AVRational display_primaries[3][2]; 43 | 44 | /** 45 | * CIE 1931 xy chromaticity coords of white point. 46 | */ 47 | AVRational white_point[2]; 48 | 49 | /** 50 | * Min luminance of mastering display (cd/m^2). 51 | */ 52 | AVRational min_luminance; 53 | 54 | /** 55 | * Max luminance of mastering display (cd/m^2). 56 | */ 57 | AVRational max_luminance; 58 | 59 | /** 60 | * Flag indicating whether the display primaries (and white point) are set. 61 | */ 62 | int has_primaries; 63 | 64 | /** 65 | * Flag indicating whether the luminance (min_ and max_) have been set. 66 | */ 67 | int has_luminance; 68 | 69 | } AVMasteringDisplayMetadata; 70 | 71 | /** 72 | * Allocate an AVMasteringDisplayMetadata structure and set its fields to 73 | * default values. The resulting struct can be freed using av_freep(). 74 | * 75 | * @return An AVMasteringDisplayMetadata filled with default values or NULL 76 | * on failure. 77 | */ 78 | AVMasteringDisplayMetadata *av_mastering_display_metadata_alloc(void); 79 | 80 | /** 81 | * Allocate a complete AVMasteringDisplayMetadata and add it to the frame. 82 | * 83 | * @param frame The frame which side data is added to. 84 | * 85 | * @return The AVMasteringDisplayMetadata structure to be filled by caller. 86 | */ 87 | AVMasteringDisplayMetadata *av_mastering_display_metadata_create_side_data(AVFrame *frame); 88 | 89 | #endif /* AVUTIL_MASTERING_DISPLAY_METADATA_H */ 90 | -------------------------------------------------------------------------------- /PlayCore/include/libavutil/md5.h: -------------------------------------------------------------------------------- 1 | /* 2 | * copyright (c) 2006 Michael Niedermayer 3 | * 4 | * This file is part of FFmpeg. 5 | * 6 | * FFmpeg is free software; you can redistribute it and/or 7 | * modify it under the terms of the GNU Lesser General Public 8 | * License as published by the Free Software Foundation; either 9 | * version 2.1 of the License, or (at your option) any later version. 10 | * 11 | * FFmpeg 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 GNU 14 | * Lesser General Public License for more details. 15 | * 16 | * You should have received a copy of the GNU Lesser General Public 17 | * License along with FFmpeg; if not, write to the Free Software 18 | * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA 19 | */ 20 | 21 | /** 22 | * @file 23 | * @ingroup lavu_md5 24 | * Public header for MD5 hash function implementation. 25 | */ 26 | 27 | #ifndef AVUTIL_MD5_H 28 | #define AVUTIL_MD5_H 29 | 30 | #include 31 | 32 | #include "attributes.h" 33 | #include "version.h" 34 | 35 | /** 36 | * @defgroup lavu_md5 MD5 37 | * @ingroup lavu_hash 38 | * MD5 hash function implementation. 39 | * 40 | * @{ 41 | */ 42 | 43 | extern const int av_md5_size; 44 | 45 | struct AVMD5; 46 | 47 | /** 48 | * Allocate an AVMD5 context. 49 | */ 50 | struct AVMD5 *av_md5_alloc(void); 51 | 52 | /** 53 | * Initialize MD5 hashing. 54 | * 55 | * @param ctx pointer to the function context (of size av_md5_size) 56 | */ 57 | void av_md5_init(struct AVMD5 *ctx); 58 | 59 | /** 60 | * Update hash value. 61 | * 62 | * @param ctx hash function context 63 | * @param src input data to update hash with 64 | * @param len input data length 65 | */ 66 | void av_md5_update(struct AVMD5 *ctx, const uint8_t *src, int len); 67 | 68 | /** 69 | * Finish hashing and output digest value. 70 | * 71 | * @param ctx hash function context 72 | * @param dst buffer where output digest value is stored 73 | */ 74 | void av_md5_final(struct AVMD5 *ctx, uint8_t *dst); 75 | 76 | /** 77 | * Hash an array of data. 78 | * 79 | * @param dst The output buffer to write the digest into 80 | * @param src The data to hash 81 | * @param len The length of the data, in bytes 82 | */ 83 | void av_md5_sum(uint8_t *dst, const uint8_t *src, const int len); 84 | 85 | /** 86 | * @} 87 | */ 88 | 89 | #endif /* AVUTIL_MD5_H */ 90 | -------------------------------------------------------------------------------- /PlayCore/include/libavutil/motion_vector.h: -------------------------------------------------------------------------------- 1 | /* 2 | * This file is part of FFmpeg. 3 | * 4 | * FFmpeg is free software; you can redistribute it and/or 5 | * modify it under the terms of the GNU Lesser General Public 6 | * License as published by the Free Software Foundation; either 7 | * version 2.1 of the License, or (at your option) any later version. 8 | * 9 | * FFmpeg is distributed in the hope that it will be useful, 10 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 11 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 12 | * Lesser General Public License for more details. 13 | * 14 | * You should have received a copy of the GNU Lesser General Public 15 | * License along with FFmpeg; if not, write to the Free Software 16 | * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA 17 | */ 18 | 19 | #ifndef AVUTIL_MOTION_VECTOR_H 20 | #define AVUTIL_MOTION_VECTOR_H 21 | 22 | #include 23 | 24 | typedef struct AVMotionVector { 25 | /** 26 | * Where the current macroblock comes from; negative value when it comes 27 | * from the past, positive value when it comes from the future. 28 | * XXX: set exact relative ref frame reference instead of a +/- 1 "direction". 29 | */ 30 | int32_t source; 31 | /** 32 | * Width and height of the block. 33 | */ 34 | uint8_t w, h; 35 | /** 36 | * Absolute source position. Can be outside the frame area. 37 | */ 38 | int16_t src_x, src_y; 39 | /** 40 | * Absolute destination position. Can be outside the frame area. 41 | */ 42 | int16_t dst_x, dst_y; 43 | /** 44 | * Extra flag information. 45 | * Currently unused. 46 | */ 47 | uint64_t flags; 48 | /** 49 | * Motion vector 50 | * src_x = dst_x + motion_x / motion_scale 51 | * src_y = dst_y + motion_y / motion_scale 52 | */ 53 | int32_t motion_x, motion_y; 54 | uint16_t motion_scale; 55 | } AVMotionVector; 56 | 57 | #endif /* AVUTIL_MOTION_VECTOR_H */ 58 | -------------------------------------------------------------------------------- /PlayCore/include/libavutil/pixelutils.h: -------------------------------------------------------------------------------- 1 | /* 2 | * This file is part of FFmpeg. 3 | * 4 | * FFmpeg is free software; you can redistribute it and/or 5 | * modify it under the terms of the GNU Lesser General Public 6 | * License as published by the Free Software Foundation; either 7 | * version 2.1 of the License, or (at your option) any later version. 8 | * 9 | * FFmpeg is distributed in the hope that it will be useful, 10 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 11 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 12 | * Lesser General Public License for more details. 13 | * 14 | * You should have received a copy of the GNU Lesser General Public 15 | * License along with FFmpeg; if not, write to the Free Software 16 | * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA 17 | */ 18 | 19 | #ifndef AVUTIL_PIXELUTILS_H 20 | #define AVUTIL_PIXELUTILS_H 21 | 22 | #include 23 | #include 24 | #include "common.h" 25 | 26 | /** 27 | * Sum of abs(src1[x] - src2[x]) 28 | */ 29 | typedef int (*av_pixelutils_sad_fn)(const uint8_t *src1, ptrdiff_t stride1, 30 | const uint8_t *src2, ptrdiff_t stride2); 31 | 32 | /** 33 | * Get a potentially optimized pointer to a Sum-of-absolute-differences 34 | * function (see the av_pixelutils_sad_fn prototype). 35 | * 36 | * @param w_bits 1< 3 | * 4 | * This file is part of FFmpeg. 5 | * 6 | * FFmpeg is free software; you can redistribute it and/or 7 | * modify it under the terms of the GNU Lesser General Public 8 | * License as published by the Free Software Foundation; either 9 | * version 2.1 of the License, or (at your option) any later version. 10 | * 11 | * FFmpeg 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 GNU 14 | * Lesser General Public License for more details. 15 | * 16 | * You should have received a copy of the GNU Lesser General Public 17 | * License along with FFmpeg; if not, write to the Free Software 18 | * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA 19 | */ 20 | 21 | #ifndef AVUTIL_RANDOM_SEED_H 22 | #define AVUTIL_RANDOM_SEED_H 23 | 24 | #include 25 | /** 26 | * @addtogroup lavu_crypto 27 | * @{ 28 | */ 29 | 30 | /** 31 | * Get a seed to use in conjunction with random functions. 32 | * This function tries to provide a good seed at a best effort bases. 33 | * Its possible to call this function multiple times if more bits are needed. 34 | * It can be quite slow, which is why it should only be used as seed for a faster 35 | * PRNG. The quality of the seed depends on the platform. 36 | */ 37 | uint32_t av_get_random_seed(void); 38 | 39 | /** 40 | * @} 41 | */ 42 | 43 | #endif /* AVUTIL_RANDOM_SEED_H */ 44 | -------------------------------------------------------------------------------- /PlayCore/include/libavutil/rc4.h: -------------------------------------------------------------------------------- 1 | /* 2 | * RC4 encryption/decryption/pseudo-random number generator 3 | * 4 | * This file is part of FFmpeg. 5 | * 6 | * FFmpeg is free software; you can redistribute it and/or 7 | * modify it under the terms of the GNU Lesser General Public 8 | * License as published by the Free Software Foundation; either 9 | * version 2.1 of the License, or (at your option) any later version. 10 | * 11 | * FFmpeg 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 GNU 14 | * Lesser General Public License for more details. 15 | * 16 | * You should have received a copy of the GNU Lesser General Public 17 | * License along with FFmpeg; if not, write to the Free Software 18 | * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA 19 | */ 20 | 21 | #ifndef AVUTIL_RC4_H 22 | #define AVUTIL_RC4_H 23 | 24 | #include 25 | 26 | /** 27 | * @defgroup lavu_rc4 RC4 28 | * @ingroup lavu_crypto 29 | * @{ 30 | */ 31 | 32 | typedef struct AVRC4 { 33 | uint8_t state[256]; 34 | int x, y; 35 | } AVRC4; 36 | 37 | /** 38 | * Allocate an AVRC4 context. 39 | */ 40 | AVRC4 *av_rc4_alloc(void); 41 | 42 | /** 43 | * @brief Initializes an AVRC4 context. 44 | * 45 | * @param key_bits must be a multiple of 8 46 | * @param decrypt 0 for encryption, 1 for decryption, currently has no effect 47 | * @return zero on success, negative value otherwise 48 | */ 49 | int av_rc4_init(struct AVRC4 *d, const uint8_t *key, int key_bits, int decrypt); 50 | 51 | /** 52 | * @brief Encrypts / decrypts using the RC4 algorithm. 53 | * 54 | * @param count number of bytes 55 | * @param dst destination array, can be equal to src 56 | * @param src source array, can be equal to dst, may be NULL 57 | * @param iv not (yet) used for RC4, should be NULL 58 | * @param decrypt 0 for encryption, 1 for decryption, not (yet) used 59 | */ 60 | void av_rc4_crypt(struct AVRC4 *d, uint8_t *dst, const uint8_t *src, int count, uint8_t *iv, int decrypt); 61 | 62 | /** 63 | * @} 64 | */ 65 | 66 | #endif /* AVUTIL_RC4_H */ 67 | -------------------------------------------------------------------------------- /PlayCore/include/libavutil/replaygain.h: -------------------------------------------------------------------------------- 1 | /* 2 | * This file is part of FFmpeg. 3 | * 4 | * FFmpeg is free software; you can redistribute it and/or 5 | * modify it under the terms of the GNU Lesser General Public 6 | * License as published by the Free Software Foundation; either 7 | * version 2.1 of the License, or (at your option) any later version. 8 | * 9 | * FFmpeg is distributed in the hope that it will be useful, 10 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 11 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 12 | * Lesser General Public License for more details. 13 | * 14 | * You should have received a copy of the GNU Lesser General Public 15 | * License along with FFmpeg; if not, write to the Free Software 16 | * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA 17 | */ 18 | 19 | #ifndef AVUTIL_REPLAYGAIN_H 20 | #define AVUTIL_REPLAYGAIN_H 21 | 22 | #include 23 | 24 | /** 25 | * ReplayGain information (see 26 | * http://wiki.hydrogenaudio.org/index.php?title=ReplayGain_1.0_specification). 27 | * The size of this struct is a part of the public ABI. 28 | */ 29 | typedef struct AVReplayGain { 30 | /** 31 | * Track replay gain in microbels (divide by 100000 to get the value in dB). 32 | * Should be set to INT32_MIN when unknown. 33 | */ 34 | int32_t track_gain; 35 | /** 36 | * Peak track amplitude, with 100000 representing full scale (but values 37 | * may overflow). 0 when unknown. 38 | */ 39 | uint32_t track_peak; 40 | /** 41 | * Same as track_gain, but for the whole album. 42 | */ 43 | int32_t album_gain; 44 | /** 45 | * Same as track_peak, but for the whole album, 46 | */ 47 | uint32_t album_peak; 48 | } AVReplayGain; 49 | 50 | #endif /* AVUTIL_REPLAYGAIN_H */ 51 | -------------------------------------------------------------------------------- /PlayCore/include/libavutil/ripemd.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (C) 2007 Michael Niedermayer 3 | * Copyright (C) 2013 James Almer 4 | * 5 | * This file is part of FFmpeg. 6 | * 7 | * FFmpeg is free software; you can redistribute it and/or 8 | * modify it under the terms of the GNU Lesser General Public 9 | * License as published by the Free Software Foundation; either 10 | * version 2.1 of the License, or (at your option) any later version. 11 | * 12 | * FFmpeg is distributed in the hope that it will be useful, 13 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 14 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 15 | * Lesser General Public License for more details. 16 | * 17 | * You should have received a copy of the GNU Lesser General Public 18 | * License along with FFmpeg; if not, write to the Free Software 19 | * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA 20 | */ 21 | 22 | /** 23 | * @file 24 | * @ingroup lavu_ripemd 25 | * Public header for RIPEMD hash function implementation. 26 | */ 27 | 28 | #ifndef AVUTIL_RIPEMD_H 29 | #define AVUTIL_RIPEMD_H 30 | 31 | #include 32 | 33 | #include "attributes.h" 34 | #include "version.h" 35 | 36 | /** 37 | * @defgroup lavu_ripemd RIPEMD 38 | * @ingroup lavu_hash 39 | * RIPEMD hash function implementation. 40 | * 41 | * @{ 42 | */ 43 | 44 | extern const int av_ripemd_size; 45 | 46 | struct AVRIPEMD; 47 | 48 | /** 49 | * Allocate an AVRIPEMD context. 50 | */ 51 | struct AVRIPEMD *av_ripemd_alloc(void); 52 | 53 | /** 54 | * Initialize RIPEMD hashing. 55 | * 56 | * @param context pointer to the function context (of size av_ripemd_size) 57 | * @param bits number of bits in digest (128, 160, 256 or 320 bits) 58 | * @return zero if initialization succeeded, -1 otherwise 59 | */ 60 | int av_ripemd_init(struct AVRIPEMD* context, int bits); 61 | 62 | /** 63 | * Update hash value. 64 | * 65 | * @param context hash function context 66 | * @param data input data to update hash with 67 | * @param len input data length 68 | */ 69 | void av_ripemd_update(struct AVRIPEMD* context, const uint8_t* data, unsigned int len); 70 | 71 | /** 72 | * Finish hashing and output digest value. 73 | * 74 | * @param context hash function context 75 | * @param digest buffer where output digest value is stored 76 | */ 77 | void av_ripemd_final(struct AVRIPEMD* context, uint8_t *digest); 78 | 79 | /** 80 | * @} 81 | */ 82 | 83 | #endif /* AVUTIL_RIPEMD_H */ 84 | -------------------------------------------------------------------------------- /PlayCore/include/libavutil/sha.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (C) 2007 Michael Niedermayer 3 | * 4 | * This file is part of FFmpeg. 5 | * 6 | * FFmpeg is free software; you can redistribute it and/or 7 | * modify it under the terms of the GNU Lesser General Public 8 | * License as published by the Free Software Foundation; either 9 | * version 2.1 of the License, or (at your option) any later version. 10 | * 11 | * FFmpeg 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 GNU 14 | * Lesser General Public License for more details. 15 | * 16 | * You should have received a copy of the GNU Lesser General Public 17 | * License along with FFmpeg; if not, write to the Free Software 18 | * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA 19 | */ 20 | 21 | /** 22 | * @file 23 | * @ingroup lavu_sha 24 | * Public header for SHA-1 & SHA-256 hash function implementations. 25 | */ 26 | 27 | #ifndef AVUTIL_SHA_H 28 | #define AVUTIL_SHA_H 29 | 30 | #include 31 | 32 | #include "attributes.h" 33 | #include "version.h" 34 | 35 | /** 36 | * @defgroup lavu_sha SHA 37 | * @ingroup lavu_hash 38 | * SHA-1 and SHA-256 (Secure Hash Algorithm) hash function implementations. 39 | * 40 | * This module supports the following SHA hash functions: 41 | * 42 | * - SHA-1: 160 bits 43 | * - SHA-224: 224 bits, as a variant of SHA-2 44 | * - SHA-256: 256 bits, as a variant of SHA-2 45 | * 46 | * @see For SHA-384, SHA-512, and variants thereof, see @ref lavu_sha512. 47 | * 48 | * @{ 49 | */ 50 | 51 | extern const int av_sha_size; 52 | 53 | struct AVSHA; 54 | 55 | /** 56 | * Allocate an AVSHA context. 57 | */ 58 | struct AVSHA *av_sha_alloc(void); 59 | 60 | /** 61 | * Initialize SHA-1 or SHA-2 hashing. 62 | * 63 | * @param context pointer to the function context (of size av_sha_size) 64 | * @param bits number of bits in digest (SHA-1 - 160 bits, SHA-2 224 or 256 bits) 65 | * @return zero if initialization succeeded, -1 otherwise 66 | */ 67 | int av_sha_init(struct AVSHA* context, int bits); 68 | 69 | /** 70 | * Update hash value. 71 | * 72 | * @param context hash function context 73 | * @param data input data to update hash with 74 | * @param len input data length 75 | */ 76 | void av_sha_update(struct AVSHA* context, const uint8_t* data, unsigned int len); 77 | 78 | /** 79 | * Finish hashing and output digest value. 80 | * 81 | * @param context hash function context 82 | * @param digest buffer where output digest value is stored 83 | */ 84 | void av_sha_final(struct AVSHA* context, uint8_t *digest); 85 | 86 | /** 87 | * @} 88 | */ 89 | 90 | #endif /* AVUTIL_SHA_H */ 91 | -------------------------------------------------------------------------------- /PlayCore/include/libavutil/sha512.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (C) 2007 Michael Niedermayer 3 | * Copyright (C) 2013 James Almer 4 | * 5 | * This file is part of FFmpeg. 6 | * 7 | * FFmpeg is free software; you can redistribute it and/or 8 | * modify it under the terms of the GNU Lesser General Public 9 | * License as published by the Free Software Foundation; either 10 | * version 2.1 of the License, or (at your option) any later version. 11 | * 12 | * FFmpeg is distributed in the hope that it will be useful, 13 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 14 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 15 | * Lesser General Public License for more details. 16 | * 17 | * You should have received a copy of the GNU Lesser General Public 18 | * License along with FFmpeg; if not, write to the Free Software 19 | * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA 20 | */ 21 | 22 | /** 23 | * @file 24 | * @ingroup lavu_sha512 25 | * Public header for SHA-512 implementation. 26 | */ 27 | 28 | #ifndef AVUTIL_SHA512_H 29 | #define AVUTIL_SHA512_H 30 | 31 | #include 32 | 33 | #include "attributes.h" 34 | #include "version.h" 35 | 36 | /** 37 | * @defgroup lavu_sha512 SHA-512 38 | * @ingroup lavu_hash 39 | * SHA-512 (Secure Hash Algorithm) hash function implementations. 40 | * 41 | * This module supports the following SHA-2 hash functions: 42 | * 43 | * - SHA-512/224: 224 bits 44 | * - SHA-512/256: 256 bits 45 | * - SHA-384: 384 bits 46 | * - SHA-512: 512 bits 47 | * 48 | * @see For SHA-1, SHA-256, and variants thereof, see @ref lavu_sha. 49 | * 50 | * @{ 51 | */ 52 | 53 | extern const int av_sha512_size; 54 | 55 | struct AVSHA512; 56 | 57 | /** 58 | * Allocate an AVSHA512 context. 59 | */ 60 | struct AVSHA512 *av_sha512_alloc(void); 61 | 62 | /** 63 | * Initialize SHA-2 512 hashing. 64 | * 65 | * @param context pointer to the function context (of size av_sha512_size) 66 | * @param bits number of bits in digest (224, 256, 384 or 512 bits) 67 | * @return zero if initialization succeeded, -1 otherwise 68 | */ 69 | int av_sha512_init(struct AVSHA512* context, int bits); 70 | 71 | /** 72 | * Update hash value. 73 | * 74 | * @param context hash function context 75 | * @param data input data to update hash with 76 | * @param len input data length 77 | */ 78 | void av_sha512_update(struct AVSHA512* context, const uint8_t* data, unsigned int len); 79 | 80 | /** 81 | * Finish hashing and output digest value. 82 | * 83 | * @param context hash function context 84 | * @param digest buffer where output digest value is stored 85 | */ 86 | void av_sha512_final(struct AVSHA512* context, uint8_t *digest); 87 | 88 | /** 89 | * @} 90 | */ 91 | 92 | #endif /* AVUTIL_SHA512_H */ 93 | -------------------------------------------------------------------------------- /PlayCore/include/libavutil/tea.h: -------------------------------------------------------------------------------- 1 | /* 2 | * A 32-bit implementation of the TEA algorithm 3 | * Copyright (c) 2015 Vesselin Bontchev 4 | * 5 | * This file is part of FFmpeg. 6 | * 7 | * FFmpeg is free software; you can redistribute it and/or 8 | * modify it under the terms of the GNU Lesser General Public 9 | * License as published by the Free Software Foundation; either 10 | * version 2.1 of the License, or (at your option) any later version. 11 | * 12 | * FFmpeg is distributed in the hope that it will be useful, 13 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 14 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 15 | * Lesser General Public License for more details. 16 | * 17 | * You should have received a copy of the GNU Lesser General Public 18 | * License along with FFmpeg; if not, write to the Free Software 19 | * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA 20 | */ 21 | 22 | #ifndef AVUTIL_TEA_H 23 | #define AVUTIL_TEA_H 24 | 25 | #include 26 | 27 | /** 28 | * @file 29 | * @brief Public header for libavutil TEA algorithm 30 | * @defgroup lavu_tea TEA 31 | * @ingroup lavu_crypto 32 | * @{ 33 | */ 34 | 35 | extern const int av_tea_size; 36 | 37 | struct AVTEA; 38 | 39 | /** 40 | * Allocate an AVTEA context 41 | * To free the struct: av_free(ptr) 42 | */ 43 | struct AVTEA *av_tea_alloc(void); 44 | 45 | /** 46 | * Initialize an AVTEA context. 47 | * 48 | * @param ctx an AVTEA context 49 | * @param key a key of 16 bytes used for encryption/decryption 50 | * @param rounds the number of rounds in TEA (64 is the "standard") 51 | */ 52 | void av_tea_init(struct AVTEA *ctx, const uint8_t key[16], int rounds); 53 | 54 | /** 55 | * Encrypt or decrypt a buffer using a previously initialized context. 56 | * 57 | * @param ctx an AVTEA context 58 | * @param dst destination array, can be equal to src 59 | * @param src source array, can be equal to dst 60 | * @param count number of 8 byte blocks 61 | * @param iv initialization vector for CBC mode, if NULL then ECB will be used 62 | * @param decrypt 0 for encryption, 1 for decryption 63 | */ 64 | void av_tea_crypt(struct AVTEA *ctx, uint8_t *dst, const uint8_t *src, 65 | int count, uint8_t *iv, int decrypt); 66 | 67 | /** 68 | * @} 69 | */ 70 | 71 | #endif /* AVUTIL_TEA_H */ 72 | -------------------------------------------------------------------------------- /PlayCore/include/libavutil/time.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2000-2003 Fabrice Bellard 3 | * 4 | * This file is part of FFmpeg. 5 | * 6 | * FFmpeg is free software; you can redistribute it and/or 7 | * modify it under the terms of the GNU Lesser General Public 8 | * License as published by the Free Software Foundation; either 9 | * version 2.1 of the License, or (at your option) any later version. 10 | * 11 | * FFmpeg 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 GNU 14 | * Lesser General Public License for more details. 15 | * 16 | * You should have received a copy of the GNU Lesser General Public 17 | * License along with FFmpeg; if not, write to the Free Software 18 | * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA 19 | */ 20 | 21 | #ifndef AVUTIL_TIME_H 22 | #define AVUTIL_TIME_H 23 | 24 | #include 25 | 26 | /** 27 | * Get the current time in microseconds. 28 | */ 29 | int64_t av_gettime(void); 30 | 31 | /** 32 | * Get the current time in microseconds since some unspecified starting point. 33 | * On platforms that support it, the time comes from a monotonic clock 34 | * This property makes this time source ideal for measuring relative time. 35 | * The returned values may not be monotonic on platforms where a monotonic 36 | * clock is not available. 37 | */ 38 | int64_t av_gettime_relative(void); 39 | 40 | /** 41 | * Indicates with a boolean result if the av_gettime_relative() time source 42 | * is monotonic. 43 | */ 44 | int av_gettime_relative_is_monotonic(void); 45 | 46 | /** 47 | * Sleep for a period of time. Although the duration is expressed in 48 | * microseconds, the actual delay may be rounded to the precision of the 49 | * system timer. 50 | * 51 | * @param usec Number of microseconds to sleep. 52 | * @return zero on success or (negative) error code. 53 | */ 54 | int av_usleep(unsigned usec); 55 | 56 | #endif /* AVUTIL_TIME_H */ 57 | -------------------------------------------------------------------------------- /PlayCore/include/libavutil/timestamp.h: -------------------------------------------------------------------------------- 1 | /* 2 | * This file is part of FFmpeg. 3 | * 4 | * FFmpeg is free software; you can redistribute it and/or 5 | * modify it under the terms of the GNU Lesser General Public 6 | * License as published by the Free Software Foundation; either 7 | * version 2.1 of the License, or (at your option) any later version. 8 | * 9 | * FFmpeg is distributed in the hope that it will be useful, 10 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 11 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 12 | * Lesser General Public License for more details. 13 | * 14 | * You should have received a copy of the GNU Lesser General Public 15 | * License along with FFmpeg; if not, write to the Free Software 16 | * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA 17 | */ 18 | 19 | /** 20 | * @file 21 | * timestamp utils, mostly useful for debugging/logging purposes 22 | */ 23 | 24 | #ifndef AVUTIL_TIMESTAMP_H 25 | #define AVUTIL_TIMESTAMP_H 26 | 27 | #include "common.h" 28 | 29 | #if defined(__cplusplus) && !defined(__STDC_FORMAT_MACROS) && !defined(PRId64) 30 | #error missing -D__STDC_FORMAT_MACROS / #define __STDC_FORMAT_MACROS 31 | #endif 32 | 33 | #define AV_TS_MAX_STRING_SIZE 32 34 | 35 | /** 36 | * Fill the provided buffer with a string containing a timestamp 37 | * representation. 38 | * 39 | * @param buf a buffer with size in bytes of at least AV_TS_MAX_STRING_SIZE 40 | * @param ts the timestamp to represent 41 | * @return the buffer in input 42 | */ 43 | static inline char *av_ts_make_string(char *buf, int64_t ts) 44 | { 45 | if (ts == AV_NOPTS_VALUE) snprintf(buf, AV_TS_MAX_STRING_SIZE, "NOPTS"); 46 | else snprintf(buf, AV_TS_MAX_STRING_SIZE, "%" PRId64, ts); 47 | return buf; 48 | } 49 | 50 | /** 51 | * Convenience macro, the return value should be used only directly in 52 | * function arguments but never stand-alone. 53 | */ 54 | #define av_ts2str(ts) av_ts_make_string((char[AV_TS_MAX_STRING_SIZE]){0}, ts) 55 | 56 | /** 57 | * Fill the provided buffer with a string containing a timestamp time 58 | * representation. 59 | * 60 | * @param buf a buffer with size in bytes of at least AV_TS_MAX_STRING_SIZE 61 | * @param ts the timestamp to represent 62 | * @param tb the timebase of the timestamp 63 | * @return the buffer in input 64 | */ 65 | static inline char *av_ts_make_time_string(char *buf, int64_t ts, AVRational *tb) 66 | { 67 | if (ts == AV_NOPTS_VALUE) snprintf(buf, AV_TS_MAX_STRING_SIZE, "NOPTS"); 68 | else snprintf(buf, AV_TS_MAX_STRING_SIZE, "%.6g", av_q2d(*tb) * ts); 69 | return buf; 70 | } 71 | 72 | /** 73 | * Convenience macro, the return value should be used only directly in 74 | * function arguments but never stand-alone. 75 | */ 76 | #define av_ts2timestr(ts, tb) av_ts_make_time_string((char[AV_TS_MAX_STRING_SIZE]){0}, ts, tb) 77 | 78 | #endif /* AVUTIL_TIMESTAMP_H */ 79 | -------------------------------------------------------------------------------- /PlayCore/include/libavutil/twofish.h: -------------------------------------------------------------------------------- 1 | /* 2 | * An implementation of the TwoFish algorithm 3 | * Copyright (c) 2015 Supraja Meedinti 4 | * 5 | * This file is part of FFmpeg. 6 | * 7 | * FFmpeg is free software; you can redistribute it and/or 8 | * modify it under the terms of the GNU Lesser General Public 9 | * License as published by the Free Software Foundation; either 10 | * version 2.1 of the License, or (at your option) any later version. 11 | * 12 | * FFmpeg is distributed in the hope that it will be useful, 13 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 14 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 15 | * Lesser General Public License for more details. 16 | * 17 | * You should have received a copy of the GNU Lesser General Public 18 | * License along with FFmpeg; if not, write to the Free Software 19 | * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA 20 | */ 21 | 22 | #ifndef AVUTIL_TWOFISH_H 23 | #define AVUTIL_TWOFISH_H 24 | 25 | #include 26 | 27 | 28 | /** 29 | * @file 30 | * @brief Public header for libavutil TWOFISH algorithm 31 | * @defgroup lavu_twofish TWOFISH 32 | * @ingroup lavu_crypto 33 | * @{ 34 | */ 35 | 36 | extern const int av_twofish_size; 37 | 38 | struct AVTWOFISH; 39 | 40 | /** 41 | * Allocate an AVTWOFISH context 42 | * To free the struct: av_free(ptr) 43 | */ 44 | struct AVTWOFISH *av_twofish_alloc(void); 45 | 46 | /** 47 | * Initialize an AVTWOFISH context. 48 | * 49 | * @param ctx an AVTWOFISH context 50 | * @param key a key of size ranging from 1 to 32 bytes used for encryption/decryption 51 | * @param key_bits number of keybits: 128, 192, 256 If less than the required, padded with zeroes to nearest valid value; return value is 0 if key_bits is 128/192/256, -1 if less than 0, 1 otherwise 52 | */ 53 | int av_twofish_init(struct AVTWOFISH *ctx, const uint8_t *key, int key_bits); 54 | 55 | /** 56 | * Encrypt or decrypt a buffer using a previously initialized context 57 | * 58 | * @param ctx an AVTWOFISH context 59 | * @param dst destination array, can be equal to src 60 | * @param src source array, can be equal to dst 61 | * @param count number of 16 byte blocks 62 | * @paran iv initialization vector for CBC mode, NULL for ECB mode 63 | * @param decrypt 0 for encryption, 1 for decryption 64 | */ 65 | void av_twofish_crypt(struct AVTWOFISH *ctx, uint8_t *dst, const uint8_t *src, int count, uint8_t* iv, int decrypt); 66 | 67 | /** 68 | * @} 69 | */ 70 | #endif /* AVUTIL_TWOFISH_H */ 71 | -------------------------------------------------------------------------------- /PlayCore/include/libpostproc/version.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Version macros. 3 | * 4 | * This file is part of FFmpeg. 5 | * 6 | * FFmpeg is free software; you can redistribute it and/or 7 | * modify it under the terms of the GNU Lesser General Public 8 | * License as published by the Free Software Foundation; either 9 | * version 2.1 of the License, or (at your option) any later version. 10 | * 11 | * FFmpeg 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 GNU 14 | * Lesser General Public License for more details. 15 | * 16 | * You should have received a copy of the GNU Lesser General Public 17 | * License along with FFmpeg; if not, write to the Free Software 18 | * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA 19 | */ 20 | 21 | #ifndef POSTPROC_VERSION_H 22 | #define POSTPROC_VERSION_H 23 | 24 | /** 25 | * @file 26 | * Libpostproc version macros 27 | */ 28 | 29 | #include "libavutil/avutil.h" 30 | 31 | #define LIBPOSTPROC_VERSION_MAJOR 54 32 | #define LIBPOSTPROC_VERSION_MINOR 0 33 | #define LIBPOSTPROC_VERSION_MICRO 100 34 | 35 | #define LIBPOSTPROC_VERSION_INT AV_VERSION_INT(LIBPOSTPROC_VERSION_MAJOR, \ 36 | LIBPOSTPROC_VERSION_MINOR, \ 37 | LIBPOSTPROC_VERSION_MICRO) 38 | #define LIBPOSTPROC_VERSION AV_VERSION(LIBPOSTPROC_VERSION_MAJOR, \ 39 | LIBPOSTPROC_VERSION_MINOR, \ 40 | LIBPOSTPROC_VERSION_MICRO) 41 | #define LIBPOSTPROC_BUILD LIBPOSTPROC_VERSION_INT 42 | 43 | #define LIBPOSTPROC_IDENT "postproc" AV_STRINGIFY(LIBPOSTPROC_VERSION) 44 | 45 | #ifndef FF_API_QP_TYPE 46 | #define FF_API_QP_TYPE (LIBPOSTPROC_VERSION_MAJOR < 55) 47 | #endif 48 | 49 | #endif /* POSTPROC_VERSION_H */ 50 | -------------------------------------------------------------------------------- /PlayCore/include/libswresample/version.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Version macros. 3 | * 4 | * This file is part of libswresample 5 | * 6 | * libswresample is free software; you can redistribute it and/or 7 | * modify it under the terms of the GNU Lesser General Public 8 | * License as published by the Free Software Foundation; either 9 | * version 2.1 of the License, or (at your option) any later version. 10 | * 11 | * libswresample 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 GNU 14 | * Lesser General Public License for more details. 15 | * 16 | * You should have received a copy of the GNU Lesser General Public 17 | * License along with libswresample; if not, write to the Free Software 18 | * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA 19 | */ 20 | 21 | #ifndef SWRESAMPLE_VERSION_H 22 | #define SWRESAMPLE_VERSION_H 23 | 24 | /** 25 | * @file 26 | * Libswresample version macros 27 | */ 28 | 29 | #include "libavutil/avutil.h" 30 | 31 | #define LIBSWRESAMPLE_VERSION_MAJOR 2 32 | #define LIBSWRESAMPLE_VERSION_MINOR 2 33 | #define LIBSWRESAMPLE_VERSION_MICRO 100 34 | 35 | #define LIBSWRESAMPLE_VERSION_INT AV_VERSION_INT(LIBSWRESAMPLE_VERSION_MAJOR, \ 36 | LIBSWRESAMPLE_VERSION_MINOR, \ 37 | LIBSWRESAMPLE_VERSION_MICRO) 38 | #define LIBSWRESAMPLE_VERSION AV_VERSION(LIBSWRESAMPLE_VERSION_MAJOR, \ 39 | LIBSWRESAMPLE_VERSION_MINOR, \ 40 | LIBSWRESAMPLE_VERSION_MICRO) 41 | #define LIBSWRESAMPLE_BUILD LIBSWRESAMPLE_VERSION_INT 42 | 43 | #define LIBSWRESAMPLE_IDENT "SwR" AV_STRINGIFY(LIBSWRESAMPLE_VERSION) 44 | 45 | #endif /* SWRESAMPLE_VERSION_H */ 46 | -------------------------------------------------------------------------------- /PlayCore/include/libswscale/version.h: -------------------------------------------------------------------------------- 1 | /* 2 | * This file is part of FFmpeg. 3 | * 4 | * FFmpeg is free software; you can redistribute it and/or 5 | * modify it under the terms of the GNU Lesser General Public 6 | * License as published by the Free Software Foundation; either 7 | * version 2.1 of the License, or (at your option) any later version. 8 | * 9 | * FFmpeg is distributed in the hope that it will be useful, 10 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 11 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 12 | * Lesser General Public License for more details. 13 | * 14 | * You should have received a copy of the GNU Lesser General Public 15 | * License along with FFmpeg; if not, write to the Free Software 16 | * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA 17 | */ 18 | 19 | #ifndef SWSCALE_VERSION_H 20 | #define SWSCALE_VERSION_H 21 | 22 | /** 23 | * @file 24 | * swscale version macros 25 | */ 26 | 27 | #include "libavutil/version.h" 28 | 29 | #define LIBSWSCALE_VERSION_MAJOR 4 30 | #define LIBSWSCALE_VERSION_MINOR 1 31 | #define LIBSWSCALE_VERSION_MICRO 100 32 | 33 | #define LIBSWSCALE_VERSION_INT AV_VERSION_INT(LIBSWSCALE_VERSION_MAJOR, \ 34 | LIBSWSCALE_VERSION_MINOR, \ 35 | LIBSWSCALE_VERSION_MICRO) 36 | #define LIBSWSCALE_VERSION AV_VERSION(LIBSWSCALE_VERSION_MAJOR, \ 37 | LIBSWSCALE_VERSION_MINOR, \ 38 | LIBSWSCALE_VERSION_MICRO) 39 | #define LIBSWSCALE_BUILD LIBSWSCALE_VERSION_INT 40 | 41 | #define LIBSWSCALE_IDENT "SwS" AV_STRINGIFY(LIBSWSCALE_VERSION) 42 | 43 | /** 44 | * FF_API_* defines may be placed below to indicate public API that will be 45 | * dropped at a future version bump. The defines themselves are not part of 46 | * the public API and may change, break or disappear at any time. 47 | */ 48 | 49 | #ifndef FF_API_SWS_VECTOR 50 | #define FF_API_SWS_VECTOR (LIBSWSCALE_VERSION_MAJOR < 6) 51 | #endif 52 | 53 | #endif /* SWSCALE_VERSION_H */ 54 | -------------------------------------------------------------------------------- /PlayCore/lib/SDL2.lib: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NinthKnight/QtQuickPlayer/fee5c7b5ab273b66815b0fe2c19135db06820bc2/PlayCore/lib/SDL2.lib -------------------------------------------------------------------------------- /PlayCore/lib/SDL2main.lib: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NinthKnight/QtQuickPlayer/fee5c7b5ab273b66815b0fe2c19135db06820bc2/PlayCore/lib/SDL2main.lib -------------------------------------------------------------------------------- /PlayCore/lib/avcodec.lib: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NinthKnight/QtQuickPlayer/fee5c7b5ab273b66815b0fe2c19135db06820bc2/PlayCore/lib/avcodec.lib -------------------------------------------------------------------------------- /PlayCore/lib/avdevice-57.def: -------------------------------------------------------------------------------- 1 | EXPORTS 2 | av_device_capabilities DATA 3 | av_device_ffversion DATA 4 | av_input_audio_device_next 5 | av_input_video_device_next 6 | av_output_audio_device_next 7 | av_output_video_device_next 8 | avdevice_app_to_dev_control_message 9 | avdevice_capabilities_create 10 | avdevice_capabilities_free 11 | avdevice_configuration 12 | avdevice_dev_to_app_control_message 13 | avdevice_free_list_devices 14 | avdevice_license 15 | avdevice_list_devices 16 | avdevice_list_input_sources 17 | avdevice_list_output_sinks 18 | avdevice_register_all 19 | avdevice_version 20 | -------------------------------------------------------------------------------- /PlayCore/lib/avdevice.lib: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NinthKnight/QtQuickPlayer/fee5c7b5ab273b66815b0fe2c19135db06820bc2/PlayCore/lib/avdevice.lib -------------------------------------------------------------------------------- /PlayCore/lib/avfilter-6.def: -------------------------------------------------------------------------------- 1 | EXPORTS 2 | av_abuffersink_params_alloc 3 | av_buffersink_get_frame 4 | av_buffersink_get_frame_flags 5 | av_buffersink_get_frame_rate 6 | av_buffersink_get_samples 7 | av_buffersink_params_alloc 8 | av_buffersink_set_frame_size 9 | av_buffersrc_add_frame 10 | av_buffersrc_add_frame_flags 11 | av_buffersrc_get_nb_failed_requests 12 | av_buffersrc_parameters_alloc 13 | av_buffersrc_parameters_set 14 | av_buffersrc_write_frame 15 | av_filter_ffversion DATA 16 | av_filter_next 17 | avfilter_add_matrix 18 | avfilter_all_channel_layouts DATA 19 | avfilter_config_links 20 | avfilter_configuration 21 | avfilter_free 22 | avfilter_get_by_name 23 | avfilter_get_class 24 | avfilter_get_matrix 25 | avfilter_graph_add_filter 26 | avfilter_graph_alloc 27 | avfilter_graph_alloc_filter 28 | avfilter_graph_config 29 | avfilter_graph_create_filter 30 | avfilter_graph_dump 31 | avfilter_graph_free 32 | avfilter_graph_get_filter 33 | avfilter_graph_parse 34 | avfilter_graph_parse2 35 | avfilter_graph_parse_ptr 36 | avfilter_graph_queue_command 37 | avfilter_graph_request_oldest 38 | avfilter_graph_send_command 39 | avfilter_graph_set_auto_convert 40 | avfilter_init_dict 41 | avfilter_init_filter 42 | avfilter_init_str 43 | avfilter_inout_alloc 44 | avfilter_inout_free 45 | avfilter_insert_filter 46 | avfilter_license 47 | avfilter_link 48 | avfilter_link_free 49 | avfilter_link_get_channels 50 | avfilter_link_set_closed 51 | avfilter_make_format64_list 52 | avfilter_mul_matrix 53 | avfilter_next 54 | avfilter_open 55 | avfilter_pad_count 56 | avfilter_pad_get_name 57 | avfilter_pad_get_type 58 | avfilter_process_command 59 | avfilter_register 60 | avfilter_register_all 61 | avfilter_sub_matrix 62 | avfilter_transform 63 | avfilter_uninit 64 | avfilter_version 65 | -------------------------------------------------------------------------------- /PlayCore/lib/avfilter.lib: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NinthKnight/QtQuickPlayer/fee5c7b5ab273b66815b0fe2c19135db06820bc2/PlayCore/lib/avfilter.lib -------------------------------------------------------------------------------- /PlayCore/lib/avformat.lib: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NinthKnight/QtQuickPlayer/fee5c7b5ab273b66815b0fe2c19135db06820bc2/PlayCore/lib/avformat.lib -------------------------------------------------------------------------------- /PlayCore/lib/avutil.lib: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NinthKnight/QtQuickPlayer/fee5c7b5ab273b66815b0fe2c19135db06820bc2/PlayCore/lib/avutil.lib -------------------------------------------------------------------------------- /PlayCore/lib/libavcodec.dll.a: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NinthKnight/QtQuickPlayer/fee5c7b5ab273b66815b0fe2c19135db06820bc2/PlayCore/lib/libavcodec.dll.a -------------------------------------------------------------------------------- /PlayCore/lib/libavdevice.dll.a: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NinthKnight/QtQuickPlayer/fee5c7b5ab273b66815b0fe2c19135db06820bc2/PlayCore/lib/libavdevice.dll.a -------------------------------------------------------------------------------- /PlayCore/lib/libavfilter.dll.a: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NinthKnight/QtQuickPlayer/fee5c7b5ab273b66815b0fe2c19135db06820bc2/PlayCore/lib/libavfilter.dll.a -------------------------------------------------------------------------------- /PlayCore/lib/libavformat.dll.a: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NinthKnight/QtQuickPlayer/fee5c7b5ab273b66815b0fe2c19135db06820bc2/PlayCore/lib/libavformat.dll.a -------------------------------------------------------------------------------- /PlayCore/lib/libavutil.dll.a: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NinthKnight/QtQuickPlayer/fee5c7b5ab273b66815b0fe2c19135db06820bc2/PlayCore/lib/libavutil.dll.a -------------------------------------------------------------------------------- /PlayCore/lib/libpostproc.dll.a: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NinthKnight/QtQuickPlayer/fee5c7b5ab273b66815b0fe2c19135db06820bc2/PlayCore/lib/libpostproc.dll.a -------------------------------------------------------------------------------- /PlayCore/lib/libswresample.dll.a: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NinthKnight/QtQuickPlayer/fee5c7b5ab273b66815b0fe2c19135db06820bc2/PlayCore/lib/libswresample.dll.a -------------------------------------------------------------------------------- /PlayCore/lib/libswscale.dll.a: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NinthKnight/QtQuickPlayer/fee5c7b5ab273b66815b0fe2c19135db06820bc2/PlayCore/lib/libswscale.dll.a -------------------------------------------------------------------------------- /PlayCore/lib/postproc-54.def: -------------------------------------------------------------------------------- 1 | EXPORTS 2 | postproc_configuration 3 | postproc_ffversion DATA 4 | postproc_license 5 | postproc_version 6 | pp_free_context 7 | pp_free_mode 8 | pp_get_context 9 | pp_get_mode_by_name_and_quality 10 | pp_help DATA 11 | pp_postprocess 12 | -------------------------------------------------------------------------------- /PlayCore/lib/postproc.lib: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NinthKnight/QtQuickPlayer/fee5c7b5ab273b66815b0fe2c19135db06820bc2/PlayCore/lib/postproc.lib -------------------------------------------------------------------------------- /PlayCore/lib/swresample-2.def: -------------------------------------------------------------------------------- 1 | EXPORTS 2 | swr_alloc 3 | swr_alloc_set_opts 4 | swr_build_matrix 5 | swr_close 6 | swr_config_frame 7 | swr_convert 8 | swr_convert_frame 9 | swr_drop_output 10 | swr_ffversion DATA 11 | swr_free 12 | swr_get_class 13 | swr_get_delay 14 | swr_get_out_samples 15 | swr_init 16 | swr_inject_silence 17 | swr_is_initialized 18 | swr_next_pts 19 | swr_set_channel_mapping 20 | swr_set_compensation 21 | swr_set_matrix 22 | swresample_configuration 23 | swresample_license 24 | swresample_version 25 | -------------------------------------------------------------------------------- /PlayCore/lib/swresample.lib: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NinthKnight/QtQuickPlayer/fee5c7b5ab273b66815b0fe2c19135db06820bc2/PlayCore/lib/swresample.lib -------------------------------------------------------------------------------- /PlayCore/lib/swscale-4.def: -------------------------------------------------------------------------------- 1 | EXPORTS 2 | sws_addVec 3 | sws_allocVec 4 | sws_alloc_context 5 | sws_alloc_set_opts 6 | sws_cloneVec 7 | sws_convVec 8 | sws_convertPalette8ToPacked24 9 | sws_convertPalette8ToPacked32 10 | sws_freeContext 11 | sws_freeFilter 12 | sws_freeVec 13 | sws_getCachedContext 14 | sws_getCoefficients 15 | sws_getColorspaceDetails 16 | sws_getConstVec 17 | sws_getContext 18 | sws_getDefaultFilter 19 | sws_getGaussianVec 20 | sws_getIdentityVec 21 | sws_get_class 22 | sws_init_context 23 | sws_isSupportedEndiannessConversion 24 | sws_isSupportedInput 25 | sws_isSupportedOutput 26 | sws_normalizeVec 27 | sws_printVec2 28 | sws_scale 29 | sws_scaleVec 30 | sws_setColorspaceDetails 31 | sws_shiftVec 32 | sws_subVec 33 | swscale_configuration 34 | swscale_license 35 | swscale_version 36 | -------------------------------------------------------------------------------- /PlayCore/lib/swscale.lib: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NinthKnight/QtQuickPlayer/fee5c7b5ab273b66815b0fe2c19135db06820bc2/PlayCore/lib/swscale.lib -------------------------------------------------------------------------------- /PlayCore/myMediaList.cpp: -------------------------------------------------------------------------------- 1 | #include "myMediaList.h" 2 | #include 3 | #include "myTablePlayListFinal.h" 4 | 5 | myMediaList::myMediaList(QObject *parent) : QObject(parent) 6 | { 7 | m_pFinal=NULL; 8 | m_musicIndex=0; 9 | m_list.empty(); 10 | setPlayMode(PlayMode::playInOrder); 11 | } 12 | 13 | QUrl myMediaList::mediaUrl(int index) 14 | { 15 | if(m_list.isEmpty()) 16 | return QUrl(""); 17 | m_musicIndex=index; 18 | return m_list.value(index); 19 | } 20 | 21 | void myMediaList::setPlayMode(PlayMode p) 22 | { 23 | if(p==PlayMode::playInOrder) 24 | indexMode=0; 25 | if(p==PlayMode::playRandom) 26 | indexMode=1; 27 | if(p==PlayMode::playOneCircle) 28 | indexMode=2; 29 | } 30 | 31 | int myMediaList::nextMediaIndex() 32 | { 33 | switch (indexMode) { 34 | case 0://playInOrder 35 | if(m_musicIndex+1>=m_list.count())//在最后一行了的话 36 | m_musicIndex=0; 37 | else 38 | m_musicIndex++; 39 | break; 40 | 41 | case 1://playRandom 42 | QTime time= QTime::currentTime(); 43 | qsrand(time.msec()+time.second()*1000); 44 | int xxx=qrand()%m_list.count(); 45 | m_musicIndex=xxx; 46 | break; 47 | } 48 | return m_musicIndex; 49 | } 50 | 51 | int myMediaList::preMediaIndex() 52 | { 53 | switch (indexMode) 54 | { 55 | case 0: 56 | if(m_musicIndex==0) 57 | m_musicIndex=0; 58 | else 59 | m_musicIndex--; 60 | break; 61 | 62 | case 1: 63 | QTime time= QTime::currentTime(); 64 | qsrand(time.msec()+time.second()*1000); 65 | int xxx=qrand()%m_list.count(); 66 | m_musicIndex=xxx; 67 | break; 68 | } 69 | return m_musicIndex; 70 | } 71 | void myMediaList::slot_removeSong(int index) 72 | { 73 | 74 | m_hashMap.remove(m_list.value(index)); 75 | m_list.removeAt(index); 76 | int PlayWidindex=m_pFinal->m_table.m_playingWid.currentSongIndex(); 77 | if(PlayWidindex>=index) 78 | { 79 | m_musicIndex--; 80 | } 81 | } 82 | -------------------------------------------------------------------------------- /PlayCore/myMediaList.h: -------------------------------------------------------------------------------- 1 | #ifndef MYMEDIALIST_H 2 | #define MYMEDIALIST_H 3 | #include 4 | #include 5 | #include 6 | 7 | class myTablePlayListFinal; 8 | 9 | 10 | enum PlayMode{playInOrder=0,playRandom=1,playOneCircle=2}; 11 | 12 | class myMediaList : public QObject 13 | { 14 | Q_OBJECT 15 | public: 16 | explicit myMediaList(QObject *parent = 0); 17 | /*pass pointer*/ 18 | void setTableFinal(myTablePlayListFinal *pParent){m_pFinal=pParent;} 19 | 20 | QUrl mediaUrl(int index);//赋值给musicIndex; 21 | 22 | void addPlayList(const QString& url,const QString&hash=""){m_list.append(url);m_hashMap.insert(url,hash);} 23 | 24 | const QList & GetList(){return m_list;} 25 | 26 | const QMap & GetHashMap(){return m_hashMap;} 27 | 28 | void setPlayMode(PlayMode); 29 | 30 | void setCurIndex(int index){m_musicIndex=index;} 31 | 32 | int nextMediaIndex(); 33 | 34 | int preMediaIndex(); 35 | 36 | void clearMediaList(){m_list.clear();m_hashMap.clear();} 37 | 38 | public Q_SLOTS: 39 | void slot_removeSong(int index); 40 | signals: 41 | private: 42 | int indexMode; 43 | int m_musicIndex; 44 | QList m_list; 45 | QMap m_hashMap; 46 | myTablePlayListFinal *m_pFinal; 47 | }; 48 | 49 | #endif // MYMEDIALIST_H 50 | -------------------------------------------------------------------------------- /PlayCore/myPlayer.h: -------------------------------------------------------------------------------- 1 | /****************************** 2 | * Qt player using libVLC * 3 | * By protonux * 4 | * Under WTFPL * 5 | ******************************/ 6 | 7 | #ifndef MYPLAYER 8 | #define MYPLAYER 9 | 10 | 11 | #include 12 | #include 13 | #include 14 | 15 | enum PlayerState{playingState,pausingState}; 16 | 17 | class myPlayer : public QObject 18 | { 19 | Q_OBJECT 20 | public: 21 | myPlayer(QObject*p); 22 | virtual ~myPlayer(); 23 | qint64 currentMediaLength(); 24 | void setVideoWidget(void*); 25 | PlayerState currentPlayerState(); 26 | public slots: 27 | void setMedia(QString filepath); 28 | void play(); 29 | void pause(); 30 | void stop(); 31 | 32 | void slot_changeVolume(int); 33 | void slot_changePosition(int); 34 | void updateInterface(); 35 | signals: 36 | void sig_durationChange(qint64); 37 | void sig_stateChange(PlayerState); 38 | void sig_currentMediaChange(const QString&); 39 | void sig_endOfMedia(); 40 | void sig_positionChange(double precent,qint64 length); 41 | private: 42 | libvlc_instance_t *vlcInstance; 43 | libvlc_media_player_t *vlcPlayer; 44 | int m_vol; 45 | }; 46 | 47 | 48 | #endif 49 | -------------------------------------------------------------------------------- /PlayCore/player.pri: -------------------------------------------------------------------------------- 1 | INCLUDEPATH+=PlayCore/libvlc_include 2 | 3 | SOURCES +=$$PWD/myMediaList.cpp\ 4 | $$PWD/FFmpegPlayer.cpp\ 5 | 6 | HEADERS +=$$PWD/myMediaList.h\ 7 | $$PWD/FFmpegPlayer.h\ 8 | 9 | 10 | LIBS += -L$$PWD/lib/ -lavcodec\ 11 | -L$$PWD/lib/ -lavdevice \ 12 | -L$$PWD/lib/ -lavfilter \ 13 | -L$$PWD/lib/ -lavutil \ 14 | -L$$PWD/lib/ -lavformat \ 15 | -L$$PWD/lib/ -lpostproc \ 16 | -L$$PWD/lib/ -lswresample \ 17 | -L$$PWD/lib/ -lSDL2main \ 18 | -L$$PWD/lib/ -lswscale \ 19 | -L$$PWD/lib/ -lSDL2 20 | 21 | INCLUDEPATH +=$$PWD/include/ 22 | 23 | -------------------------------------------------------------------------------- /PlayList.qml: -------------------------------------------------------------------------------- 1 | import QtQuick 2.0 2 | 3 | Item { 4 | 5 | 6 | } 7 | -------------------------------------------------------------------------------- /QtQuickPlayer.pro: -------------------------------------------------------------------------------- 1 | QT += quick 2 | CONFIG += c++11 3 | 4 | # The following define makes your compiler emit warnings if you use 5 | # any feature of Qt which as been marked deprecated (the exact warnings 6 | # depend on your compiler). Please consult the documentation of the 7 | # deprecated API in order to know how to port your code away from it. 8 | DEFINES += QT_DEPRECATED_WARNINGS 9 | 10 | # You can also make your code fail to compile if you use deprecated APIs. 11 | # In order to do so, uncomment the following line. 12 | # You can also select to disable deprecated APIs only up to a certain version of Qt. 13 | #DEFINES += QT_DISABLE_DEPRECATED_BEFORE=0x060000 # disables all the APIs deprecated before Qt 6.0.0 14 | 15 | SOURCES += \ 16 | main.cpp 17 | 18 | RESOURCES += qml.qrc 19 | RC_ICONS = myico.ico 20 | RC_FILE = myapp.rc 21 | 22 | # Additional import path used to resolve QML modules in Qt Creator's code model 23 | QML_IMPORT_PATH = 24 | 25 | # Additional import path used to resolve QML modules just for Qt Quick Designer 26 | QML_DESIGNER_IMPORT_PATH = 27 | 28 | # Default rules for deployment. 29 | qnx: target.path = /tmp/$${TARGET}/bin 30 | else: unix:!android: target.path = /opt/$${TARGET}/bin 31 | !isEmpty(target.path): INSTALLS += target 32 | 33 | DISTFILES += 34 | -------------------------------------------------------------------------------- /QtQuickPlayer.sln: -------------------------------------------------------------------------------- 1 |  2 | Microsoft Visual Studio Solution File, Format Version 12.00 3 | # Visual Studio 14 4 | VisualStudioVersion = 14.0.25420.1 5 | MinimumVisualStudioVersion = 10.0.40219.1 6 | Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "QtQuickPlayer", "QtQuickPlayer.vcxproj", "{13FC386E-97EB-3DA8-8B7C-CAC349F09B0A}" 7 | EndProject 8 | Global 9 | GlobalSection(SolutionConfigurationPlatforms) = preSolution 10 | Debug|x86 = Debug|x86 11 | Release|x86 = Release|x86 12 | EndGlobalSection 13 | GlobalSection(ProjectConfigurationPlatforms) = postSolution 14 | {13FC386E-97EB-3DA8-8B7C-CAC349F09B0A}.Debug|x86.ActiveCfg = Debug|Win32 15 | {13FC386E-97EB-3DA8-8B7C-CAC349F09B0A}.Debug|x86.Build.0 = Debug|Win32 16 | {13FC386E-97EB-3DA8-8B7C-CAC349F09B0A}.Release|x86.ActiveCfg = Release|Win32 17 | {13FC386E-97EB-3DA8-8B7C-CAC349F09B0A}.Release|x86.Build.0 = Release|Win32 18 | EndGlobalSection 19 | GlobalSection(SolutionProperties) = preSolution 20 | HideSolutionNode = FALSE 21 | EndGlobalSection 22 | EndGlobal 23 | -------------------------------------------------------------------------------- /QtQuickPlayer_resource.rc: -------------------------------------------------------------------------------- 1 | #include 2 | 3 | IDI_ICON1 ICON DISCARDABLE "F:\\Project\\Qt\\QtQuickPlayer\\myico.ico" 4 | 5 | VS_VERSION_INFO VERSIONINFO 6 | FILEVERSION 0,0,0,0 7 | PRODUCTVERSION 0,0,0,0 8 | FILEFLAGSMASK 0x3fL 9 | #ifdef _DEBUG 10 | FILEFLAGS VS_FF_DEBUG 11 | #else 12 | FILEFLAGS 0x0L 13 | #endif 14 | FILEOS VOS__WINDOWS32 15 | FILETYPE VFT_DLL 16 | FILESUBTYPE 0x0L 17 | BEGIN 18 | BLOCK "StringFileInfo" 19 | BEGIN 20 | BLOCK "040904b0" 21 | BEGIN 22 | VALUE "CompanyName", "\0" 23 | VALUE "FileDescription", "\0" 24 | VALUE "FileVersion", "0.0.0.0\0" 25 | VALUE "LegalCopyright", "\0" 26 | VALUE "OriginalFilename", "QtQuickPlayer.exe\0" 27 | VALUE "ProductName", "QtQuickPlayer\0" 28 | VALUE "ProductVersion", "0.0.0.0\0" 29 | END 30 | END 31 | BLOCK "VarFileInfo" 32 | BEGIN 33 | VALUE "Translation", 0x0409, 1200 34 | END 35 | END 36 | /* End of Version info */ 37 | 38 | -------------------------------------------------------------------------------- /QuickLayer.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NinthKnight/QtQuickPlayer/fee5c7b5ab273b66815b0fe2c19135db06820bc2/QuickLayer.cpp -------------------------------------------------------------------------------- /QuickLayer.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NinthKnight/QtQuickPlayer/fee5c7b5ab273b66815b0fe2c19135db06820bc2/QuickLayer.h -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # QtQuickPlayer 2 | 使用qml开发的一款模仿网易云音乐的播放器 3 | + v 0.0.3版本: 4 | - 修改主页界面为Html 5 | ![](assets/markdown-img-paste-20181011101229522.png) 6 | ![](assets/markdown-img-paste-20181011101312356.png) 7 | ![](assets/markdown-img-paste-20181011101253540.png) 8 | + v 0.0.2版本: 9 | - 新增歌词同步滚动功能 10 | - 音乐搜索替换成了Html显示的方式 11 | 12 | + v 0.0.1版本: 13 | - 支持音乐搜索 14 | - 播放列表 15 | ![](assets/markdown-img-paste-20180921154553967.png) 16 | -------------------------------------------------------------------------------- /SongListModel.cpp: -------------------------------------------------------------------------------- 1 | #include "SongListModel.h" 2 | 3 | 4 | CSongLstModel::CSongLstModel() 5 | { 6 | } 7 | 8 | 9 | CSongLstModel::~CSongLstModel() 10 | { 11 | } 12 | -------------------------------------------------------------------------------- /SongListModel.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NinthKnight/QtQuickPlayer/fee5c7b5ab273b66815b0fe2c19135db06820bc2/SongListModel.h -------------------------------------------------------------------------------- /XButton.qml: -------------------------------------------------------------------------------- 1 | import QtQuick 2.0 2 | 3 | Item { 4 | id: xButton; 5 | 6 | property string buttonNormalImage: ""; 7 | property string buttonPressImage: ""; 8 | property string buttonHoverImage: ""; 9 | property string buttonDisableImage: ""; 10 | property bool buttonDisable : false; 11 | 12 | signal clicked(); 13 | signal exited(); 14 | signal entered(); 15 | Image { 16 | id: xbuttonImage; 17 | source: buttonNormalImage; 18 | anchors.fill: parent; 19 | 20 | 21 | MouseArea{ 22 | id:buttonMouseArea; 23 | anchors.fill: parent; 24 | hoverEnabled: true; 25 | cursorShape: Qt.PointingHandCursor; 26 | 27 | onEntered: { 28 | if(buttonDisable==false) 29 | { 30 | xButton.entered(); 31 | xbuttonImage.source = buttonHoverImage; 32 | } 33 | 34 | //console.log("onEntered"); 35 | buttonMouseArea.cursorShape = Qt.PointingHandCursor; 36 | } 37 | 38 | onExited: { 39 | if(buttonDisable==false) 40 | { 41 | xButton.exited(); 42 | xbuttonImage.source = buttonNormalImage; 43 | } 44 | 45 | //console.log("onExited"); 46 | buttonMouseArea.cursorShape = Qt.ArrowCursor; 47 | 48 | } 49 | 50 | onPressed: { 51 | if(buttonDisable==false) 52 | { 53 | //xButton.clicked(); 54 | xbuttonImage.source = buttonPressImage; 55 | } 56 | } 57 | 58 | onReleased: { 59 | if(buttonDisable==false) 60 | { 61 | //xButton.clicked(); 62 | xbuttonImage.source = buttonNormalImage; 63 | } 64 | } 65 | 66 | onClicked: { 67 | if(buttonDisable==false) 68 | { 69 | xButton.clicked(); 70 | //xbuttonImage.source = buttonPressImage; 71 | console.log("xButton.clicked()"); 72 | } 73 | } 74 | 75 | 76 | 77 | } 78 | } 79 | 80 | onButtonDisableChanged: { 81 | buttonDisable == false?(xbuttonImage.source = buttonNormalImage) 82 | :(xbuttonImage.source = buttonDisableImage); 83 | } 84 | 85 | onButtonNormalImageChanged: { 86 | xbuttonImage.source = buttonNormalImage; 87 | } 88 | 89 | } 90 | -------------------------------------------------------------------------------- /XSlider.qml: -------------------------------------------------------------------------------- 1 | import QtQuick 2.0 2 | import QtQuick.Window 2.2 3 | import QtQuick.Controls 1.4 4 | import QtQuick.Controls.Styles 1.4 5 | import QtGraphicalEffects 1.0 6 | 7 | 8 | Slider { 9 | id: sliderHorizontal 10 | 11 | maximumValue: 100; 12 | minimumValue: 0; 13 | stepSize: 1; 14 | 15 | 16 | 17 | style: SliderStyle { 18 | 19 | groove: Rectangle { 20 | id:mygroove 21 | height: sliderHorizontal.height; 22 | width: sliderHorizontal.width; 23 | radius: 8 24 | color: "lightgrey" 25 | 26 | Rectangle{ 27 | radius: 8 28 | height: sliderHorizontal.height; 29 | width: sliderHorizontal.value / sliderHorizontal.maximumValue * sliderHorizontal.width; 30 | color: "red"; 31 | } 32 | } 33 | 34 | handle: Rectangle { 35 | anchors.centerIn: parent 36 | color: control.pressed ? "white" : "lightgray" 37 | border.color: "gray" 38 | border.width: 2 39 | implicitWidth: 10 40 | implicitHeight: 10 41 | radius: 8 42 | } 43 | } 44 | } 45 | 46 | -------------------------------------------------------------------------------- /assets/markdown-img-paste-20180921154553967.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NinthKnight/QtQuickPlayer/fee5c7b5ab273b66815b0fe2c19135db06820bc2/assets/markdown-img-paste-20180921154553967.png -------------------------------------------------------------------------------- /assets/markdown-img-paste-20181011101229522.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NinthKnight/QtQuickPlayer/fee5c7b5ab273b66815b0fe2c19135db06820bc2/assets/markdown-img-paste-20181011101229522.png -------------------------------------------------------------------------------- /assets/markdown-img-paste-20181011101253540.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NinthKnight/QtQuickPlayer/fee5c7b5ab273b66815b0fe2c19135db06820bc2/assets/markdown-img-paste-20181011101253540.png -------------------------------------------------------------------------------- /assets/markdown-img-paste-20181011101312356.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NinthKnight/QtQuickPlayer/fee5c7b5ab273b66815b0fe2c19135db06820bc2/assets/markdown-img-paste-20181011101312356.png -------------------------------------------------------------------------------- /del.bat: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NinthKnight/QtQuickPlayer/fee5c7b5ab273b66815b0fe2c19135db06820bc2/del.bat -------------------------------------------------------------------------------- /main.cpp: -------------------------------------------------------------------------------- 1 | #include "model.h" 2 | #include "LyricModel.h" 3 | #include "SongListModel.h" 4 | 5 | #include 6 | #include 7 | 8 | #include 9 | #include 10 | #include 11 | #include 12 | #include 13 | #include 14 | 15 | #include "QuickLayer.h" 16 | 17 | 18 | SongModel newLstModel; 19 | SongModel hotLstModel; 20 | SongModel model; 21 | 22 | PlayListModel playModel; 23 | CLyricModel lyricModel; 24 | CSongLstModel songLstModel; 25 | 26 | 27 | int main(int argc, char *argv[]) 28 | { 29 | QCoreApplication::setAttribute(Qt::AA_EnableHighDpiScaling); 30 | 31 | QGuiApplication app(argc, argv); 32 | 33 | qsrand(QTime(0, 0, 0).secsTo(QTime::currentTime())); 34 | 35 | QtWebEngine::initialize(); 36 | 37 | //register C++ type CQuickLayer 38 | qmlRegisterType("com.mplayer", 1, 0, "Mplayer"); 39 | qmlRegisterType("com.mplayer", 1, 0, "MLyric"); 40 | qmlRegisterType("com.mplayer", 1, 0, "MSonglst"); 41 | 42 | 43 | 44 | //QQuickView view; 45 | //view.setResizeMode(QQuickView::SizeRootObjectToView); 46 | //QQmlContext *ctxt = view.rootContext(); 47 | //ctxt->setContextProperty("myModel", &model); 48 | 49 | //view.setSource(QUrl(QStringLiteral("qrc:/main.qml"))); 50 | //view.show(); 51 | 52 | //return app.exec(); 53 | 54 | QQmlApplicationEngine engine; 55 | 56 | QQmlContext *ctxt = engine.rootContext(); 57 | ctxt->setContextProperty("myModel", &model); 58 | ctxt->setContextProperty("playModel", &playModel); 59 | ctxt->setContextProperty("lyricModel", &lyricModel); 60 | ctxt->setContextProperty("songLstModel", &songLstModel); 61 | 62 | engine.load(QUrl(QStringLiteral("qrc:/main.qml"))); 63 | if (engine.rootObjects().isEmpty()) 64 | return -1; 65 | 66 | return app.exec(); 67 | } 68 | -------------------------------------------------------------------------------- /model.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NinthKnight/QtQuickPlayer/fee5c7b5ab273b66815b0fe2c19135db06820bc2/model.h -------------------------------------------------------------------------------- /myapp.aps: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NinthKnight/QtQuickPlayer/fee5c7b5ab273b66815b0fe2c19135db06820bc2/myapp.aps -------------------------------------------------------------------------------- /myapp.rc: -------------------------------------------------------------------------------- 1 | IDI_ICON1 ICON DISCARDABLE "myico.ico" -------------------------------------------------------------------------------- /myico.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NinthKnight/QtQuickPlayer/fee5c7b5ab273b66815b0fe2c19135db06820bc2/myico.ico -------------------------------------------------------------------------------- /netWork/mynetwork.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NinthKnight/QtQuickPlayer/fee5c7b5ab273b66815b0fe2c19135db06820bc2/netWork/mynetwork.cpp -------------------------------------------------------------------------------- /netWork/mynetwork.h: -------------------------------------------------------------------------------- 1 | #ifndef MYNETWORK_H 2 | #define MYNETWORK_H 3 | 4 | #include 5 | #include 6 | #include 7 | #include 8 | #include 9 | #include 10 | #include 11 | #include 12 | #include 13 | 14 | struct ItemResult 15 | { 16 | QString strFullName; 17 | QString strUrl; 18 | QString strMusicName; 19 | QString strSinger; 20 | QString strAlbum; 21 | QString strHash; 22 | QString strDur; 23 | QString strMvHash; 24 | QString strSongLyric; 25 | }; 26 | enum SearchStatus{Started=0x00,Searching,Finished}; 27 | 28 | 29 | class MyNetWork : public QObject 30 | { 31 | Q_OBJECT 32 | 33 | public: 34 | explicit MyNetWork(QObject *parent = 0); 35 | ~MyNetWork(); 36 | const QImage &BgWhiteChange(QImage& image , int brightness); 37 | 38 | void Download(const QString& url); 39 | 40 | signals: 41 | void sig_requestMvfinished(const QString&); 42 | void sig_reqSongStatus(const ItemResult&,SearchStatus); 43 | void sig_reqSongNextPagefinished(const QByteArray&); 44 | 45 | void dolrcworkfinished(const QByteArray&,const QString&); 46 | void setpic(const QString&strPath,const QString&strName); 47 | void sig_setBgpix(const QStringList&,const QString& author); 48 | 49 | void sig_reqNewSongStatus(QString song); 50 | void sig_reqHotSongStatus(QString song); 51 | 52 | 53 | public slots: 54 | void requestMv(const QString&); 55 | void downloadMv(const QString&); 56 | void requestNewMv(const QString&); 57 | void requestalbum(const QString &name,const QString &savelocal); 58 | void requestSong(const QString&); 59 | QString requestSongUrlbyHash(const QString&); 60 | void requestSongNextPage(); 61 | void requestlrc(const QString &name,qint64 totaltime,const QString &saveloaction,const QString &strHash=""); 62 | void requestBgPic(const QString &author); 63 | 64 | void requestNewSong(); 65 | 66 | void requestHotSong(); 67 | 68 | QString requestLyric(const QString &strSongHash); 69 | 70 | void slot_ReplyRead(); 71 | void slot_ReplyFinished(); 72 | 73 | void slot_Replyerror(QNetworkReply::NetworkError code); 74 | 75 | private: 76 | 77 | int m_pageindex; 78 | QString m_songname; 79 | 80 | QNetworkAccessManager m_downloadManager; 81 | QNetworkRequest m_request; 82 | QNetworkReply* m_pDownloadReply; 83 | QFile m_File; 84 | }; 85 | 86 | #endif // MYNETWORK_H 87 | -------------------------------------------------------------------------------- /netWork/network.pri: -------------------------------------------------------------------------------- 1 | 2 | SOURCES +=$$PWD/mynetwork.cpp\ 3 | 4 | 5 | HEADERS +=$$PWD/mynetwork.h\ 6 | -------------------------------------------------------------------------------- /res/browser/browser_next_page.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NinthKnight/QtQuickPlayer/fee5c7b5ab273b66815b0fe2c19135db06820bc2/res/browser/browser_next_page.png -------------------------------------------------------------------------------- /res/browser/browser_prev_page.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NinthKnight/QtQuickPlayer/fee5c7b5ab273b66815b0fe2c19135db06820bc2/res/browser/browser_prev_page.png -------------------------------------------------------------------------------- /res/buttonImage/btn_browser_next_hover.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NinthKnight/QtQuickPlayer/fee5c7b5ab273b66815b0fe2c19135db06820bc2/res/buttonImage/btn_browser_next_hover.png -------------------------------------------------------------------------------- /res/buttonImage/btn_browser_next_normal.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NinthKnight/QtQuickPlayer/fee5c7b5ab273b66815b0fe2c19135db06820bc2/res/buttonImage/btn_browser_next_normal.png -------------------------------------------------------------------------------- /res/buttonImage/btn_browser_pre_hover.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NinthKnight/QtQuickPlayer/fee5c7b5ab273b66815b0fe2c19135db06820bc2/res/buttonImage/btn_browser_pre_hover.png -------------------------------------------------------------------------------- /res/buttonImage/btn_browser_pre_normal.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NinthKnight/QtQuickPlayer/fee5c7b5ab273b66815b0fe2c19135db06820bc2/res/buttonImage/btn_browser_pre_normal.png -------------------------------------------------------------------------------- /res/buttonImage/btn_browser_rad_hover.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NinthKnight/QtQuickPlayer/fee5c7b5ab273b66815b0fe2c19135db06820bc2/res/buttonImage/btn_browser_rad_hover.png -------------------------------------------------------------------------------- /res/buttonImage/btn_browser_rad_normal.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NinthKnight/QtQuickPlayer/fee5c7b5ab273b66815b0fe2c19135db06820bc2/res/buttonImage/btn_browser_rad_normal.png -------------------------------------------------------------------------------- /res/buttonImage/close_disable.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NinthKnight/QtQuickPlayer/fee5c7b5ab273b66815b0fe2c19135db06820bc2/res/buttonImage/close_disable.png -------------------------------------------------------------------------------- /res/buttonImage/close_down.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NinthKnight/QtQuickPlayer/fee5c7b5ab273b66815b0fe2c19135db06820bc2/res/buttonImage/close_down.png -------------------------------------------------------------------------------- /res/buttonImage/close_hover.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NinthKnight/QtQuickPlayer/fee5c7b5ab273b66815b0fe2c19135db06820bc2/res/buttonImage/close_hover.png -------------------------------------------------------------------------------- /res/buttonImage/close_normal.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NinthKnight/QtQuickPlayer/fee5c7b5ab273b66815b0fe2c19135db06820bc2/res/buttonImage/close_normal.png -------------------------------------------------------------------------------- /res/buttonImage/menu_down.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NinthKnight/QtQuickPlayer/fee5c7b5ab273b66815b0fe2c19135db06820bc2/res/buttonImage/menu_down.png -------------------------------------------------------------------------------- /res/buttonImage/menu_hover.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NinthKnight/QtQuickPlayer/fee5c7b5ab273b66815b0fe2c19135db06820bc2/res/buttonImage/menu_hover.png -------------------------------------------------------------------------------- /res/buttonImage/menu_normal.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NinthKnight/QtQuickPlayer/fee5c7b5ab273b66815b0fe2c19135db06820bc2/res/buttonImage/menu_normal.png -------------------------------------------------------------------------------- /res/buttonImage/min_down.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NinthKnight/QtQuickPlayer/fee5c7b5ab273b66815b0fe2c19135db06820bc2/res/buttonImage/min_down.png -------------------------------------------------------------------------------- /res/buttonImage/min_hover.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NinthKnight/QtQuickPlayer/fee5c7b5ab273b66815b0fe2c19135db06820bc2/res/buttonImage/min_hover.png -------------------------------------------------------------------------------- /res/buttonImage/min_normal.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NinthKnight/QtQuickPlayer/fee5c7b5ab273b66815b0fe2c19135db06820bc2/res/buttonImage/min_normal.png -------------------------------------------------------------------------------- /res/left.html: -------------------------------------------------------------------------------- 1 |  2 | 3 | 4 | 5 | 网易云音乐 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 |
26 |
27 |
28 |

推荐

29 |
30 |

  发现音乐

31 |

  私人FM

32 |

  MV

33 |

  我的朋友

34 |
35 |
36 |
37 |

我的音乐

38 |
39 |

  本地音乐

40 |

  下载管理

41 |

  我的音乐云盘

42 |

  我的歌手

43 |

  我的MV

44 |

  我的电台

45 |
46 |
47 |
48 |
49 | 50 | 51 | 52 | 53 | -------------------------------------------------------------------------------- /res/playList/playing_list_icon.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NinthKnight/QtQuickPlayer/fee5c7b5ab273b66815b0fe2c19135db06820bc2/res/playList/playing_list_icon.png -------------------------------------------------------------------------------- /res/playMode/btn_lyric.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NinthKnight/QtQuickPlayer/fee5c7b5ab273b66815b0fe2c19135db06820bc2/res/playMode/btn_lyric.png -------------------------------------------------------------------------------- /res/playMode/btn_lyric_normal.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NinthKnight/QtQuickPlayer/fee5c7b5ab273b66815b0fe2c19135db06820bc2/res/playMode/btn_lyric_normal.png -------------------------------------------------------------------------------- /res/playMode/btn_lyric_pressed.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NinthKnight/QtQuickPlayer/fee5c7b5ab273b66815b0fe2c19135db06820bc2/res/playMode/btn_lyric_pressed.png -------------------------------------------------------------------------------- /res/playMode/btn_play_mode_circle.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NinthKnight/QtQuickPlayer/fee5c7b5ab273b66815b0fe2c19135db06820bc2/res/playMode/btn_play_mode_circle.png -------------------------------------------------------------------------------- /res/playMode/btn_play_mode_circle_normal.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NinthKnight/QtQuickPlayer/fee5c7b5ab273b66815b0fe2c19135db06820bc2/res/playMode/btn_play_mode_circle_normal.png -------------------------------------------------------------------------------- /res/playMode/btn_play_mode_circle_pressed.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NinthKnight/QtQuickPlayer/fee5c7b5ab273b66815b0fe2c19135db06820bc2/res/playMode/btn_play_mode_circle_pressed.png -------------------------------------------------------------------------------- /res/playMode/btn_play_mode_next.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NinthKnight/QtQuickPlayer/fee5c7b5ab273b66815b0fe2c19135db06820bc2/res/playMode/btn_play_mode_next.png -------------------------------------------------------------------------------- /res/playMode/btn_play_mode_next_normal.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NinthKnight/QtQuickPlayer/fee5c7b5ab273b66815b0fe2c19135db06820bc2/res/playMode/btn_play_mode_next_normal.png -------------------------------------------------------------------------------- /res/playMode/btn_play_mode_next_pressed.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NinthKnight/QtQuickPlayer/fee5c7b5ab273b66815b0fe2c19135db06820bc2/res/playMode/btn_play_mode_next_pressed.png -------------------------------------------------------------------------------- /res/playMode/btn_play_mode_rand.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NinthKnight/QtQuickPlayer/fee5c7b5ab273b66815b0fe2c19135db06820bc2/res/playMode/btn_play_mode_rand.png -------------------------------------------------------------------------------- /res/playMode/btn_play_mode_rand_normal.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NinthKnight/QtQuickPlayer/fee5c7b5ab273b66815b0fe2c19135db06820bc2/res/playMode/btn_play_mode_rand_normal.png -------------------------------------------------------------------------------- /res/playMode/btn_play_mode_rand_pressed.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NinthKnight/QtQuickPlayer/fee5c7b5ab273b66815b0fe2c19135db06820bc2/res/playMode/btn_play_mode_rand_pressed.png -------------------------------------------------------------------------------- /res/playMode/btn_play_mode_single_circle.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NinthKnight/QtQuickPlayer/fee5c7b5ab273b66815b0fe2c19135db06820bc2/res/playMode/btn_play_mode_single_circle.png -------------------------------------------------------------------------------- /res/playMode/btn_play_mode_single_circle_normal.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NinthKnight/QtQuickPlayer/fee5c7b5ab273b66815b0fe2c19135db06820bc2/res/playMode/btn_play_mode_single_circle_normal.png -------------------------------------------------------------------------------- /res/playMode/btn_play_mode_single_circle_pressed.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NinthKnight/QtQuickPlayer/fee5c7b5ab273b66815b0fe2c19135db06820bc2/res/playMode/btn_play_mode_single_circle_pressed.png -------------------------------------------------------------------------------- /res/playMode/btn_playing_list.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NinthKnight/QtQuickPlayer/fee5c7b5ab273b66815b0fe2c19135db06820bc2/res/playMode/btn_playing_list.png -------------------------------------------------------------------------------- /res/playMode/btn_playing_list_normal.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NinthKnight/QtQuickPlayer/fee5c7b5ab273b66815b0fe2c19135db06820bc2/res/playMode/btn_playing_list_normal.png -------------------------------------------------------------------------------- /res/playMode/btn_playing_list_pressed.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NinthKnight/QtQuickPlayer/fee5c7b5ab273b66815b0fe2c19135db06820bc2/res/playMode/btn_playing_list_pressed.png -------------------------------------------------------------------------------- /res/src/css/scorll.css: -------------------------------------------------------------------------------- 1 | header .banner { 2 | width: 750px; 3 | height: 200px; 4 | margin: 10px auto 0 5 | } 6 | 7 | header .banner .slide-carousel { 8 | margin-bottom: 20px 9 | } 10 | 11 | header .banner .slide-3d .desc { 12 | display: none 13 | } 14 | 15 | header .banner .slide-3d .item-list li { 16 | width: 650px; 17 | height: 100%; 18 | transition: all .5s ease-out; 19 | opacity: 0; 20 | position: absolute; 21 | top: 0; 22 | left: 0 23 | } 24 | 25 | header .banner .slide-3d .item-list li.item0 { 26 | transform: translate3d(-65px,0,0) scale(.8) 27 | } 28 | 29 | header .banner .slide-3d .item-list li.item1 { 30 | transform: translate3d(0,0,0) scale(.8); 31 | transform-origin: 0 50%; 32 | opacity: 1; 33 | z-index: 2 34 | } 35 | 36 | header .banner .slide-3d .item-list li.item2 { 37 | transform: translate3d(65px,0,0) scale(1); 38 | transform-origin: 0 50%; 39 | opacity: 1; 40 | z-index: 3 41 | } 42 | 43 | header .banner .slide-3d .item-list li.item3 { 44 | transform: translate3d(130px,0,0) scale(.8); 45 | transform-origin: 100% 50%; 46 | opacity: 1; 47 | z-index: 2 48 | } 49 | 50 | header .banner .slide-3d .item-list li.item4 { 51 | transform: translate3d(195px,0,0) scale(.8) 52 | } 53 | 54 | -------------------------------------------------------------------------------- /res/src/css/slide.css: -------------------------------------------------------------------------------- 1 | .slide-carousel{width:100%;height:100%;position:relative;overflow:hidden}.slide-carousel .item-list{position:relative;height:100%;width:100%;overflow:hidden}.slide-carousel .item-list li .item-content{width:100%;height:100%}.slide-carousel .item-list li .item-content a{display:block;width:100%;height:100%}.slide-carousel .item-list li .item-content a .cover-img{width:100%;height:100%}.slide-carousel .indicator-list{position:absolute;bottom:20px;left:50%;margin-left:-63px;z-index:100}.slide-carousel .indicator-list a{display:inline-block;width:12px;height:12px;border:2px solid #fff;border-radius:50%;overflow:hidden;background-color:#ccc;margin-left:5px}.slide-carousel .indicator-list a.selected{border-color:#ff6700;background-color:#5fff92}.slide-carousel .controls{opacity:0}.slide-carousel .controls a{cursor:pointer;text-decoration:none;width:40px;height:60px;position:absolute;background-color:rgba(0,0,0,.2);color:#fff;font-size:35px;padding-top:25px;z-index:2}.slide-carousel .controls a:hover{background-color:rgba(0,0,0,.5)}.slide-carousel .controls .item-prev{top:50%;left:0;margin-top:-42px}.slide-carousel .controls .item-next{top:50%;right:0;margin-top:-42px}.slide-carousel .desc{height:72px;width:100%;position:absolute;bottom:0;left:0;background-color:rgba(0,0,0,.6);z-index:99}.slide-carousel .desc strong{color:#fff;font-size:20px;line-height:72px;margin-left:20px;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.slide-carousel:hover .controls{opacity:1;transition:opacity .5s ease} -------------------------------------------------------------------------------- /res/src/fonts/FontAwesome.otf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NinthKnight/QtQuickPlayer/fee5c7b5ab273b66815b0fe2c19135db06820bc2/res/src/fonts/FontAwesome.otf -------------------------------------------------------------------------------- /res/src/fonts/fontawesome-webfont.eot: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NinthKnight/QtQuickPlayer/fee5c7b5ab273b66815b0fe2c19135db06820bc2/res/src/fonts/fontawesome-webfont.eot -------------------------------------------------------------------------------- /res/src/fonts/fontawesome-webfont.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NinthKnight/QtQuickPlayer/fee5c7b5ab273b66815b0fe2c19135db06820bc2/res/src/fonts/fontawesome-webfont.ttf -------------------------------------------------------------------------------- /res/src/fonts/fontawesome-webfont.woff: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NinthKnight/QtQuickPlayer/fee5c7b5ab273b66815b0fe2c19135db06820bc2/res/src/fonts/fontawesome-webfont.woff -------------------------------------------------------------------------------- /res/src/fonts/fontawesome-webfont.woff2: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NinthKnight/QtQuickPlayer/fee5c7b5ab273b66815b0fe2c19135db06820bc2/res/src/fonts/fontawesome-webfont.woff2 -------------------------------------------------------------------------------- /res/src/images/al8.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NinthKnight/QtQuickPlayer/fee5c7b5ab273b66815b0fe2c19135db06820bc2/res/src/images/al8.png -------------------------------------------------------------------------------- /res/src/images/alq.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NinthKnight/QtQuickPlayer/fee5c7b5ab273b66815b0fe2c19135db06820bc2/res/src/images/alq.png -------------------------------------------------------------------------------- /res/src/images/arrow-next.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NinthKnight/QtQuickPlayer/fee5c7b5ab273b66815b0fe2c19135db06820bc2/res/src/images/arrow-next.png -------------------------------------------------------------------------------- /res/src/images/arrow-prev.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NinthKnight/QtQuickPlayer/fee5c7b5ab273b66815b0fe2c19135db06820bc2/res/src/images/arrow-prev.png -------------------------------------------------------------------------------- /res/src/images/banner_arrow_bg.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NinthKnight/QtQuickPlayer/fee5c7b5ab273b66815b0fe2c19135db06820bc2/res/src/images/banner_arrow_bg.png -------------------------------------------------------------------------------- /res/src/images/banner_dot_bg.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NinthKnight/QtQuickPlayer/fee5c7b5ab273b66815b0fe2c19135db06820bc2/res/src/images/banner_dot_bg.png -------------------------------------------------------------------------------- /res/src/images/banner_dot_bg_ie6.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NinthKnight/QtQuickPlayer/fee5c7b5ab273b66815b0fe2c19135db06820bc2/res/src/images/banner_dot_bg_ie6.png -------------------------------------------------------------------------------- /res/src/images/bg1.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NinthKnight/QtQuickPlayer/fee5c7b5ab273b66815b0fe2c19135db06820bc2/res/src/images/bg1.png -------------------------------------------------------------------------------- /res/src/images/bg2.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NinthKnight/QtQuickPlayer/fee5c7b5ab273b66815b0fe2c19135db06820bc2/res/src/images/bg2.png -------------------------------------------------------------------------------- /res/src/images/bg3.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NinthKnight/QtQuickPlayer/fee5c7b5ab273b66815b0fe2c19135db06820bc2/res/src/images/bg3.png -------------------------------------------------------------------------------- /res/src/images/btn_1_ie6_2.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NinthKnight/QtQuickPlayer/fee5c7b5ab273b66815b0fe2c19135db06820bc2/res/src/images/btn_1_ie6_2.png -------------------------------------------------------------------------------- /res/src/images/btn_5_2.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NinthKnight/QtQuickPlayer/fee5c7b5ab273b66815b0fe2c19135db06820bc2/res/src/images/btn_5_2.png -------------------------------------------------------------------------------- /res/src/images/btn_7.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NinthKnight/QtQuickPlayer/fee5c7b5ab273b66815b0fe2c19135db06820bc2/res/src/images/btn_7.png -------------------------------------------------------------------------------- /res/src/images/btn_7_ie6_2.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NinthKnight/QtQuickPlayer/fee5c7b5ab273b66815b0fe2c19135db06820bc2/res/src/images/btn_7_ie6_2.png -------------------------------------------------------------------------------- /res/src/images/disc-o.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NinthKnight/QtQuickPlayer/fee5c7b5ab273b66815b0fe2c19135db06820bc2/res/src/images/disc-o.png -------------------------------------------------------------------------------- /res/src/images/disc.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NinthKnight/QtQuickPlayer/fee5c7b5ab273b66815b0fe2c19135db06820bc2/res/src/images/disc.png -------------------------------------------------------------------------------- /res/src/images/format.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NinthKnight/QtQuickPlayer/fee5c7b5ab273b66815b0fe2c19135db06820bc2/res/src/images/format.ico -------------------------------------------------------------------------------- /res/src/images/icon1.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NinthKnight/QtQuickPlayer/fee5c7b5ab273b66815b0fe2c19135db06820bc2/res/src/images/icon1.png -------------------------------------------------------------------------------- /res/src/images/icon_15.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NinthKnight/QtQuickPlayer/fee5c7b5ab273b66815b0fe2c19135db06820bc2/res/src/images/icon_15.png -------------------------------------------------------------------------------- /res/src/images/icon_15_ie6.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NinthKnight/QtQuickPlayer/fee5c7b5ab273b66815b0fe2c19135db06820bc2/res/src/images/icon_15_ie6.png -------------------------------------------------------------------------------- /res/src/images/icon_2.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NinthKnight/QtQuickPlayer/fee5c7b5ab273b66815b0fe2c19135db06820bc2/res/src/images/icon_2.png -------------------------------------------------------------------------------- /res/src/images/icon_2_ie6.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NinthKnight/QtQuickPlayer/fee5c7b5ab273b66815b0fe2c19135db06820bc2/res/src/images/icon_2_ie6.png -------------------------------------------------------------------------------- /res/src/images/more_dt.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NinthKnight/QtQuickPlayer/fee5c7b5ab273b66815b0fe2c19135db06820bc2/res/src/images/more_dt.png -------------------------------------------------------------------------------- /res/src/images/more_dt_hover.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NinthKnight/QtQuickPlayer/fee5c7b5ab273b66815b0fe2c19135db06820bc2/res/src/images/more_dt_hover.png -------------------------------------------------------------------------------- /res/src/images/needle.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NinthKnight/QtQuickPlayer/fee5c7b5ab273b66815b0fe2c19135db06820bc2/res/src/images/needle.png -------------------------------------------------------------------------------- /res/src/images/netease-logo.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NinthKnight/QtQuickPlayer/fee5c7b5ab273b66815b0fe2c19135db06820bc2/res/src/images/netease-logo.png -------------------------------------------------------------------------------- /res/src/images/new_hot_song_bg.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NinthKnight/QtQuickPlayer/fee5c7b5ab273b66815b0fe2c19135db06820bc2/res/src/images/new_hot_song_bg.png -------------------------------------------------------------------------------- /res/src/images/new_new_song_bg.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NinthKnight/QtQuickPlayer/fee5c7b5ab273b66815b0fe2c19135db06820bc2/res/src/images/new_new_song_bg.png -------------------------------------------------------------------------------- /res/src/images/nums_icons.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NinthKnight/QtQuickPlayer/fee5c7b5ab273b66815b0fe2c19135db06820bc2/res/src/images/nums_icons.png -------------------------------------------------------------------------------- /res/src/images/pic_01.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NinthKnight/QtQuickPlayer/fee5c7b5ab273b66815b0fe2c19135db06820bc2/res/src/images/pic_01.png -------------------------------------------------------------------------------- /res/src/images/pic_02.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NinthKnight/QtQuickPlayer/fee5c7b5ab273b66815b0fe2c19135db06820bc2/res/src/images/pic_02.png -------------------------------------------------------------------------------- /res/src/images/pic_03.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NinthKnight/QtQuickPlayer/fee5c7b5ab273b66815b0fe2c19135db06820bc2/res/src/images/pic_03.png -------------------------------------------------------------------------------- /res/src/images/pic_04.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NinthKnight/QtQuickPlayer/fee5c7b5ab273b66815b0fe2c19135db06820bc2/res/src/images/pic_04.png -------------------------------------------------------------------------------- /res/src/images/pic_05.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NinthKnight/QtQuickPlayer/fee5c7b5ab273b66815b0fe2c19135db06820bc2/res/src/images/pic_05.png -------------------------------------------------------------------------------- /res/src/images/pic_1.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NinthKnight/QtQuickPlayer/fee5c7b5ab273b66815b0fe2c19135db06820bc2/res/src/images/pic_1.jpg -------------------------------------------------------------------------------- /res/src/images/pic_2.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NinthKnight/QtQuickPlayer/fee5c7b5ab273b66815b0fe2c19135db06820bc2/res/src/images/pic_2.jpg -------------------------------------------------------------------------------- /res/src/images/pic_3.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NinthKnight/QtQuickPlayer/fee5c7b5ab273b66815b0fe2c19135db06820bc2/res/src/images/pic_3.jpg -------------------------------------------------------------------------------- /res/src/images/pic_4.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NinthKnight/QtQuickPlayer/fee5c7b5ab273b66815b0fe2c19135db06820bc2/res/src/images/pic_4.jpg -------------------------------------------------------------------------------- /res/src/images/pic_5.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NinthKnight/QtQuickPlayer/fee5c7b5ab273b66815b0fe2c19135db06820bc2/res/src/images/pic_5.jpg -------------------------------------------------------------------------------- /res/src/images/pic_6.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NinthKnight/QtQuickPlayer/fee5c7b5ab273b66815b0fe2c19135db06820bc2/res/src/images/pic_6.jpg -------------------------------------------------------------------------------- /res/src/images/pic_7.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NinthKnight/QtQuickPlayer/fee5c7b5ab273b66815b0fe2c19135db06820bc2/res/src/images/pic_7.jpg -------------------------------------------------------------------------------- /res/src/images/pic_8.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NinthKnight/QtQuickPlayer/fee5c7b5ab273b66815b0fe2c19135db06820bc2/res/src/images/pic_8.jpg -------------------------------------------------------------------------------- /res/src/images/temp_pic001.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NinthKnight/QtQuickPlayer/fee5c7b5ab273b66815b0fe2c19135db06820bc2/res/src/images/temp_pic001.jpg -------------------------------------------------------------------------------- /res/src/images/user_face.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NinthKnight/QtQuickPlayer/fee5c7b5ab273b66815b0fe2c19135db06820bc2/res/src/images/user_face.png -------------------------------------------------------------------------------- /res/src/js/dailyRCInterface.js: -------------------------------------------------------------------------------- 1 | function dailyRCInterface(){ 2 | //获取今日推荐歌曲信息 3 | this.getdrInfo = function(options){ 4 | var data = $.extend({ 5 | "page_no":"", 6 | "page_num":"" 7 | },options); 8 | var params = { 9 | "url":this.api + 'method=baidu.ting.song.userRecSongList', 10 | "data":data, 11 | "isNeedPassEncode":false 12 | }; 13 | return this.ajaxFun(params); 14 | } 15 | } 16 | 17 | dailyRCInterface.prototype = new UGC(); -------------------------------------------------------------------------------- /res/title.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NinthKnight/QtQuickPlayer/fee5c7b5ab273b66815b0fe2c19135db06820bc2/res/title.png -------------------------------------------------------------------------------- /res/trayMenu/ad.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NinthKnight/QtQuickPlayer/fee5c7b5ab273b66815b0fe2c19135db06820bc2/res/trayMenu/ad.png -------------------------------------------------------------------------------- /res/trayMenu/btn_next_normal.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NinthKnight/QtQuickPlayer/fee5c7b5ab273b66815b0fe2c19135db06820bc2/res/trayMenu/btn_next_normal.png -------------------------------------------------------------------------------- /res/trayMenu/btn_next_pressed.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NinthKnight/QtQuickPlayer/fee5c7b5ab273b66815b0fe2c19135db06820bc2/res/trayMenu/btn_next_pressed.png -------------------------------------------------------------------------------- /res/trayMenu/btn_next_tray_menu.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NinthKnight/QtQuickPlayer/fee5c7b5ab273b66815b0fe2c19135db06820bc2/res/trayMenu/btn_next_tray_menu.png -------------------------------------------------------------------------------- /res/trayMenu/btn_pause_normal.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NinthKnight/QtQuickPlayer/fee5c7b5ab273b66815b0fe2c19135db06820bc2/res/trayMenu/btn_pause_normal.png -------------------------------------------------------------------------------- /res/trayMenu/btn_pause_pressed.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NinthKnight/QtQuickPlayer/fee5c7b5ab273b66815b0fe2c19135db06820bc2/res/trayMenu/btn_pause_pressed.png -------------------------------------------------------------------------------- /res/trayMenu/btn_pause_tray_menu.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NinthKnight/QtQuickPlayer/fee5c7b5ab273b66815b0fe2c19135db06820bc2/res/trayMenu/btn_pause_tray_menu.png -------------------------------------------------------------------------------- /res/trayMenu/btn_play_normal.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NinthKnight/QtQuickPlayer/fee5c7b5ab273b66815b0fe2c19135db06820bc2/res/trayMenu/btn_play_normal.png -------------------------------------------------------------------------------- /res/trayMenu/btn_play_pressed.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NinthKnight/QtQuickPlayer/fee5c7b5ab273b66815b0fe2c19135db06820bc2/res/trayMenu/btn_play_pressed.png -------------------------------------------------------------------------------- /res/trayMenu/btn_play_tray_menu.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NinthKnight/QtQuickPlayer/fee5c7b5ab273b66815b0fe2c19135db06820bc2/res/trayMenu/btn_play_tray_menu.png -------------------------------------------------------------------------------- /res/trayMenu/btn_prev_normal.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NinthKnight/QtQuickPlayer/fee5c7b5ab273b66815b0fe2c19135db06820bc2/res/trayMenu/btn_prev_normal.png -------------------------------------------------------------------------------- /res/trayMenu/btn_prev_pressed.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NinthKnight/QtQuickPlayer/fee5c7b5ab273b66815b0fe2c19135db06820bc2/res/trayMenu/btn_prev_pressed.png -------------------------------------------------------------------------------- /res/trayMenu/btn_prev_tray_menu.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NinthKnight/QtQuickPlayer/fee5c7b5ab273b66815b0fe2c19135db06820bc2/res/trayMenu/btn_prev_tray_menu.png -------------------------------------------------------------------------------- /res/trayMenu/btn_search.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NinthKnight/QtQuickPlayer/fee5c7b5ab273b66815b0fe2c19135db06820bc2/res/trayMenu/btn_search.png -------------------------------------------------------------------------------- /res/trayMenu/btn_search_normal.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NinthKnight/QtQuickPlayer/fee5c7b5ab273b66815b0fe2c19135db06820bc2/res/trayMenu/btn_search_normal.png -------------------------------------------------------------------------------- /res/trayMenu/btn_search_pressed.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NinthKnight/QtQuickPlayer/fee5c7b5ab273b66815b0fe2c19135db06820bc2/res/trayMenu/btn_search_pressed.png -------------------------------------------------------------------------------- /res/trayMenu/list_type_icon.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NinthKnight/QtQuickPlayer/fee5c7b5ab273b66815b0fe2c19135db06820bc2/res/trayMenu/list_type_icon.png -------------------------------------------------------------------------------- /res/trayMenu/list_type_icon1.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NinthKnight/QtQuickPlayer/fee5c7b5ab273b66815b0fe2c19135db06820bc2/res/trayMenu/list_type_icon1.png -------------------------------------------------------------------------------- /res/trayMenu/list_type_icon2.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NinthKnight/QtQuickPlayer/fee5c7b5ab273b66815b0fe2c19135db06820bc2/res/trayMenu/list_type_icon2.png -------------------------------------------------------------------------------- /res/trayMenu/list_type_icon3.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NinthKnight/QtQuickPlayer/fee5c7b5ab273b66815b0fe2c19135db06820bc2/res/trayMenu/list_type_icon3.png -------------------------------------------------------------------------------- /res/trayMenu/list_type_icon4.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NinthKnight/QtQuickPlayer/fee5c7b5ab273b66815b0fe2c19135db06820bc2/res/trayMenu/list_type_icon4.png -------------------------------------------------------------------------------- /res/trayMenu/list_type_icon5.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NinthKnight/QtQuickPlayer/fee5c7b5ab273b66815b0fe2c19135db06820bc2/res/trayMenu/list_type_icon5.png -------------------------------------------------------------------------------- /res/trayMenu/list_type_icon6.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NinthKnight/QtQuickPlayer/fee5c7b5ab273b66815b0fe2c19135db06820bc2/res/trayMenu/list_type_icon6.png -------------------------------------------------------------------------------- /res/trayMenu/list_type_icon7.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NinthKnight/QtQuickPlayer/fee5c7b5ab273b66815b0fe2c19135db06820bc2/res/trayMenu/list_type_icon7.png --------------------------------------------------------------------------------