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
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
fd7fb797da
Minor code style change
...
Signed-off-by: Mahyar Koshkouei <mahyar.koshkouei@gmail.com>
2018-01-08 20:02:04 +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
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
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
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
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
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
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
Mahyar Koshkouei
7346cea266
Fix linking errors
...
Now this actually compiles.
Signed-off-by: Mahyar Koshkouei <mahyar.koshkouei@gmail.com>
2017-12-28 19:20:01 +00:00
Mahyar Koshkouei
4a20f83572
Fail miserably at using GLSM_CTL_PROC_ADDRESS_GET
...
I get linking problems.
Signed-off-by: Mahyar Koshkouei <mahyar.koshkouei@gmail.com>
2017-12-23 17:06:32 +00:00
Mahyar Koshkouei
ab7ddc9130
Trying to get retro_hw_get_proc_address_t working
...
Signed-off-by: Mahyar Koshkouei <mahyar.koshkouei@gmail.com>
2017-12-22 09:36:22 +00:00
Mahyar Koshkouei
6d8c31a541
Attempting to get proc_address working
...
Signed-off-by: Mahyar Koshkouei <mahyar.koshkouei@gmail.com>
2017-12-21 23:38:50 +00:00
Mahyar Koshkouei
e7726fd96d
Add more OpenGL stuff
...
Signed-off-by: Mahyar Koshkouei <mahyar.koshkouei@gmail.com>
2017-12-21 20:59:15 +00:00
Mahyar Koshkouei
141b13ff42
Set some config options
...
Signed-off-by: Mahyar Koshkouei <mahyar.koshkouei@gmail.com>
2017-12-14 21:51:57 +00:00
Mahyar Koshkouei
3e888a14c1
Working example
...
Signed-off-by: Mahyar Koshkouei <mahyar.koshkouei@gmail.com>
2017-12-10 22:35:47 +00:00
Mahyar Koshkouei
3273ac13cf
Initial Commit
...
Signed-off-by: Mahyar Koshkouei <mahyar.koshkouei@gmail.com>
2017-12-10 17:38:32 +00:00