Mahyar Koshkouei
07e0c1d10e
Remove unused ifdef for GL setting
...
Signed-off-by: Mahyar Koshkouei <mahyar.koshkouei@gmail.com>
2018-01-19 22:09:30 +00:00
Mahyar Koshkouei
a4fb27346f
Shutdown core after eof reached
...
Signed-off-by: Mahyar Koshkouei <mahyar.koshkouei@gmail.com>
2018-01-15 22:53:55 +00:00
Mahyar Koshkouei
262eaf1882
Reset geometry once we know video size
...
Signed-off-by: Mahyar Koshkouei <mahyar.koshkouei@gmail.com>
2018-01-15 21:11:42 +00:00
Mahyar Koshkouei
5ac3dca1b7
Suppress warning
...
I don't know of a way of fixing the function pointer warning.
Signed-off-by: Mahyar Koshkouei <mahyar.koshkouei@gmail.com>
2018-01-14 12:21:02 +00:00
Mahyar Koshkouei
97d910da99
Add help target
...
Signed-off-by: Mahyar Koshkouei <mahyar.koshkouei@gmail.com>
2018-01-14 12:20:47 +00:00
Mahyar Koshkouei
67ed3ce49e
Remove double fpic in Makefile
...
Signed-off-by: Mahyar Koshkouei <mahyar.koshkouei@gmail.com>
2018-01-14 12:20:22 +00:00
Mahyar Koshkouei
1d05713672
Enable locale support by default
...
Signed-off-by: Mahyar Koshkouei <mahyar.koshkouei@gmail.com>
2018-01-14 12:19:41 +00:00
Mahyar Koshkouei
59ba06a1ec
Remove unnecessary GL options
...
Signed-off-by: Mahyar Koshkouei <mahyar.koshkouei@gmail.com>
2018-01-14 12:03:35 +00:00
Mahyar Koshkouei
87d4158ee1
Exit on libmpv failure
...
These errors shouldn't happen. But if they do we don't want to continue.
Signed-off-by: Mahyar Koshkouei <mahyar.koshkouei@gmail.com>
2018-01-14 11:15:05 +00:00
Mahyar Koshkouei
3f882b445d
Return error on get_proc_address failure
...
Signed-off-by: Mahyar Koshkouei <mahyar.koshkouei@gmail.com>
2018-01-14 11:14:26 +00:00
Mahyar Koshkouei
21c7d127a8
Sort includes
...
Signed-off-by: Mahyar Koshkouei <mahyar.koshkouei@gmail.com>
2018-01-14 11:13:57 +00:00
Mahyar Koshkouei
b72446d4d6
Locale changes
...
Systems that have locale support must be set to "C" locale otherwise
libmpv will complain.
Signed-off-by: Mahyar Koshkouei <mahyar.koshkouei@gmail.com>
2018-01-14 11:13:02 +00:00
Mahyar Koshkouei
1450694edb
Add install and debug to Makefile
...
Signed-off-by: Mahyar Koshkouei <mahyar.koshkouei@gmail.com>
2018-01-13 09:41:52 +00:00
Mahyar Koshkouei
ffeec1a197
Enable debugging
...
Signed-off-by: Mahyar Koshkouei <mahyar.koshkouei@gmail.com>
2018-01-10 13:49:17 +00:00
Mahyar Koshkouei
7534a3d6e9
Fix Makefile platform detection
...
Now works with buildroot.
Signed-off-by: Mahyar Koshkouei <mahyar.koshkouei@gmail.com>
2018-01-09 19:58:16 +00:00
Mahyar Koshkouei
fd7fb797da
Minor code style change
...
Signed-off-by: Mahyar Koshkouei <mahyar.koshkouei@gmail.com>
2018-01-08 20:02:04 +00:00
Mahyar Koshkouei
a0cae4f346
Bump version
...
Signed-off-by: Mahyar Koshkouei <mahyar.koshkouei@gmail.com>
2018-01-08 19:31:54 +00:00
Mahyar Koshkouei
4ef000bb34
Fix incorrect aspect ratio
...
Fixed an issue whereby the video size reported by the container was used
instead of the size after filters and the such were applied. Closes #10 .
Tested working with 16:9 and 5:4 videos.
Signed-off-by: Mahyar Koshkouei <mahyar.koshkouei@gmail.com>
2018-01-08 19:31:54 +00:00
Mahyar Koshkouei
014e758361
Don't stop on hwdec failure
...
Some platforms may not support harware decoding, unsure if this would
mean that the hwdec option string would no longer work but falling back
to software decode shouldn't be an issue.
Signed-off-by: Mahyar Koshkouei <mahyar.koshkouei@gmail.com>
2018-01-08 10:51:46 +00:00
Mahyar Koshkouei
19036f5b74
Use ffmpeg valid extensions
...
Use the valid extensions as listed by ffmpeg.
Signed-off-by: Mahyar Koshkouei <mahyar.koshkouei@gmail.com>
2018-01-08 10:40:56 +00:00
Mahyar Koshkouei
416211e780
Add licence notice to source
...
Signed-off-by: Mahyar Koshkouei <mahyar.koshkouei@gmail.com>
2018-01-08 01:04:41 +00:00
Mahyar Koshkouei
7294c33e62
Create LICENSE
2018-01-08 00:56:02 +00:00
Mahyar Koshkouei
12845cd676
Fix spelling
2018-01-08 00:53:13 +00:00
Mahyar Koshkouei
be2a895144
Add issue numbers to todo labels
...
There should be no untracked todo's.
Signed-off-by: Mahyar Koshkouei <mahyar.koshkouei@gmail.com>
2018-01-08 00:15:17 +00:00
Mahyar Koshkouei
278ab3d394
Change comments style
...
Signed-off-by: Mahyar Koshkouei <mahyar.koshkouei@gmail.com>
2018-01-08 00:05:25 +00:00
Mahyar Koshkouei
44ea1570d5
Add tags to gitignore
...
Signed-off-by: Mahyar Koshkouei <mahyar.koshkouei@gmail.com>
2018-01-07 23:58:17 +00:00
Mahyar Koshkouei
2a399a8793
Move struct declaration to local
...
Signed-off-by: Mahyar Koshkouei <mahyar.koshkouei@gmail.com>
2018-01-07 23:57:49 +00:00
Mahyar Koshkouei
f50d33ac68
Changes for input on rising edge only
...
Pausing, changing audio and changing subtitles are only performed on the
rising edge of a button press only. They no longer change whilst the
button is pressed.
Signed-off-by: Mahyar Koshkouei <mahyar.koshkouei@gmail.com>
2018-01-07 23:36:24 +00:00
Mahyar Koshkouei
a907c8756f
Change default pixel format
...
Signed-off-by: Mahyar Koshkouei <mahyar.koshkouei@gmail.com>
2018-01-07 22:07:19 +00:00
Mahyar Koshkouei
425dc752c2
Use correct version
...
Signed-off-by: Mahyar Koshkouei <mahyar.koshkouei@gmail.com>
2018-01-07 21:50:54 +00:00
Mahyar Koshkouei
2c42b3613b
Do not link to libm
...
Signed-off-by: Mahyar Koshkouei <mahyar.koshkouei@gmail.com>
2018-01-07 21:18:47 +00:00
Mahyar Koshkouei
24083619a7
Add .gitignore
...
Signed-off-by: Mahyar Koshkouei <mahyar.koshkouei@gmail.com>
2018-01-07 20:52:17 +00:00
Mahyar Koshkouei
0d92199936
Cleanup Makefile
...
Additionally strip the output object file.
Signed-off-by: Mahyar Koshkouei <mahyar.koshkouei@gmail.com>
2018-01-07 20:51:55 +00:00
Mahyar Koshkouei
052a95b7bf
Use libretro.h instead of submodule
...
This allows releases to include the libretro.h header file required for
compiling. We also don't require any of the other header files the
submodule provided.
Signed-off-by: Mahyar Koshkouei <mahyar.koshkouei@gmail.com>
2018-01-07 20:31:00 +00:00
Mahyar Koshkouei
0c4d58e326
Context fixes and logging
...
Fixed an issue whereby changing context (eg. going fullscreen) stopped
video, caused music to continue playing until eventually pulseaudio
segfaulted. Closes #1 .
Print out mpv log.
Signed-off-by: Mahyar Koshkouei <mahyar.koshkouei@gmail.com>
2018-01-05 23:19:16 +00:00
Mahyar Koshkouei
8038eb3465
Rename repository
2018-01-03 10:29:26 +00:00
Mahyar Koshkouei
24e6ed7fdc
Set framebuffer size to video resolution
...
We now automatically select the correct video size and aspect ratio. Now
the video doesn't look like a blury mess.
Closes issue #8 .
Signed-off-by: Mahyar Koshkouei <mahyar.koshkouei@gmail.com>
2018-01-03 00:04:43 +00:00
Mahyar Koshkouei
169e81b4a5
Enable hardware decoding
...
Tested working with VA-API on i965.
Issue #4 .
Signed-off-by: Mahyar Koshkouei <mahyar.koshkouei@gmail.com>
2018-01-02 22:00:54 +00:00
Mahyar Koshkouei
21653173ed
Fix audio stop of fullscreen
...
Signed-off-by: Mahyar Koshkouei <mahyar.koshkouei@gmail.com>
2018-01-02 21:18:02 +00:00
Mahyar Koshkouei
a376bc5cb8
Add basic input
...
Signed-off-by: Mahyar Koshkouei <mahyar.koshkouei@gmail.com>
2018-01-02 21:18:02 +00:00
Mahyar Koshkouei
5961f9b08d
Update README.md
2018-01-02 13:49:00 +00:00
Mahyar Koshkouei
f593b37451
Set pixel format
...
Additionally remove junk and add some comments.
Signed-off-by: Mahyar Koshkouei <mahyar.koshkouei@gmail.com>
2018-01-02 13:37:42 +00:00
Mahyar Koshkouei
30f61f0642
Fix bug with GL Context initialisation
...
We now have a working example!
Signed-off-by: Mahyar Koshkouei <mahyar.koshkouei@gmail.com>
2018-01-02 13:20:06 +00:00
Mahyar Koshkouei
3b09221d3d
Fix OpenGL initialisation
...
get_proc_address must be called in context_reset() rather than in
retro_load_game().
Signed-off-by: Mahyar Koshkouei <mahyar.koshkouei@gmail.com>
2018-01-01 18:08:30 +00:00
Mahyar Koshkouei
7b12e813cc
Remove redundant header file
...
Signed-off-by: Mahyar Koshkouei <mahyar.koshkouei@gmail.com>
2017-12-30 20:56:17 +00:00
Mahyar Koshkouei
a33bdfa3d8
Merge branch 'glsm_wip'
2017-12-30 20:55:19 +00:00
Mahyar Koshkouei
e3c8da7c17
Stop linking to OpenGL
...
libmpv and Retroarch should already be linked to OpenGL(/ES) libraries.
Signed-off-by: Mahyar Koshkouei <mahyar.koshkouei@gmail.com>
2017-12-30 20:52:17 +00:00
Mahyar Koshkouei
5f2ebce9b1
Remove GL functions I don't need
...
Signed-off-by: Mahyar Koshkouei <mahyar.koshkouei@gmail.com>
2017-12-29 18:01:28 +00:00
Mahyar Koshkouei
1708fd4753
Attempt a second method of getting proc
...
Signed-off-by: Mahyar Koshkouei <mahyar.koshkouei@gmail.com>
2017-12-28 20:35:07 +00:00
Mahyar Koshkouei
d5f933ed92
Use libretro-common
...
Now using libretro-common header files instead of the files taken from a
OpenGL libretro-sample.
Signed-off-by: Mahyar Koshkouei <mahyar.koshkouei@gmail.com>
2017-12-28 19:53:41 +00:00