mirror of
https://github.com/moonlight-stream/moonlight-embedded.git
synced 2025-07-02 15:56:02 +00:00
Rename OMX module to Pi because of naming conflict
This commit is contained in:
parent
e6c4495ed5
commit
d0da5ea29e
@ -17,7 +17,7 @@ find_package(ALSA REQUIRED)
|
||||
find_package(Opus REQUIRED)
|
||||
find_package(Broadcom)
|
||||
find_package(Freescale)
|
||||
find_package(CEC)
|
||||
find_package(CEC 3.0)
|
||||
|
||||
find_package(PkgConfig REQUIRED)
|
||||
pkg_check_modules(EVDEV REQUIRED libevdev)
|
||||
@ -27,7 +27,7 @@ pkg_check_modules(AVCODEC libavcodec)
|
||||
pkg_check_modules(AVUTIL libavutil)
|
||||
pkg_check_modules(SWSCALE libswscale)
|
||||
|
||||
if(CEC_FOUND)
|
||||
if(CEC_FOUND AND CEC_VERSION_COMPATIBLE)
|
||||
list(APPEND MOONLIGHT_DEFINITIONS HAVE_LIBCEC)
|
||||
endif()
|
||||
|
||||
@ -40,8 +40,8 @@ endif()
|
||||
|
||||
if(BROADCOM_FOUND)
|
||||
aux_source_directory(./third_party/ilclient SRC_LIST)
|
||||
list(APPEND SRC_LIST ./src/video/omx.c)
|
||||
list(APPEND MOONLIGHT_DEFINITIONS HAVE_OMX)
|
||||
list(APPEND SRC_LIST ./src/video/pi.c)
|
||||
list(APPEND MOONLIGHT_DEFINITIONS HAVE_PI)
|
||||
endif()
|
||||
|
||||
if(FREESCALE_FOUND)
|
||||
@ -66,7 +66,7 @@ add_executable(moonlight ${SRC_LIST})
|
||||
target_link_libraries(moonlight PUBLIC gamestream)
|
||||
set_property(TARGET moonlight PROPERTY C_STANDARD 11)
|
||||
|
||||
if (CEC_FOUND)
|
||||
if (CEC_FOUND AND CEC_VERSION_COMPATIBLE)
|
||||
list(APPEND MOONLIGHT_DEFINITIONS HAVE_LIBCEC)
|
||||
target_include_directories(moonlight PRIVATE ./third_party/libcec ${CEC_INCLUDE_DIRS}/libcec)
|
||||
target_link_libraries (moonlight PUBLIC ${CEC_LIBRARIES})
|
||||
|
@ -40,10 +40,10 @@ enum platform platform_check(char* name) {
|
||||
return IMX;
|
||||
}
|
||||
#endif
|
||||
#ifdef HAVE_OMX
|
||||
if (std || strcmp(name, "omx") == 0) {
|
||||
#ifdef HAVE_PI
|
||||
if (std || strcmp(name, "pi") == 0) {
|
||||
if (dlsym(RTLD_DEFAULT, "bcm_host_init") != NULL)
|
||||
return OMX;
|
||||
return PI;
|
||||
}
|
||||
#endif
|
||||
#ifdef HAVE_FAKE
|
||||
@ -63,9 +63,9 @@ DECODER_RENDERER_CALLBACKS* platform_get_video(enum platform system) {
|
||||
case IMX:
|
||||
return &decoder_callbacks_imx;
|
||||
#endif
|
||||
#ifdef HAVE_OMX
|
||||
case OMX:
|
||||
return &decoder_callbacks_omx;
|
||||
#ifdef HAVE_PI
|
||||
case PI:
|
||||
return &decoder_callbacks_pi;
|
||||
#endif
|
||||
#ifdef HAVE_FAKE
|
||||
case FAKE:
|
||||
|
@ -25,7 +25,7 @@
|
||||
|
||||
#define IS_EMBEDDED(SYSTEM) SYSTEM != SDL
|
||||
|
||||
enum platform { NONE, SDL, OMX, IMX, FAKE };
|
||||
enum platform { NONE, SDL, PI, IMX, FAKE };
|
||||
|
||||
enum platform platform_check(char*);
|
||||
PDECODER_RENDERER_CALLBACKS platform_get_video(enum platform system);
|
||||
|
@ -23,8 +23,8 @@ extern DECODER_RENDERER_CALLBACKS decoder_callbacks_fake;
|
||||
#ifdef HAVE_SDL
|
||||
extern DECODER_RENDERER_CALLBACKS decoder_callbacks_sdl;
|
||||
#endif
|
||||
#ifdef HAVE_OMX
|
||||
extern DECODER_RENDERER_CALLBACKS decoder_callbacks_omx;
|
||||
#ifdef HAVE_PI
|
||||
extern DECODER_RENDERER_CALLBACKS decoder_callbacks_pi;
|
||||
#endif
|
||||
#ifdef HAVE_IMX
|
||||
extern DECODER_RENDERER_CALLBACKS decoder_callbacks_imx;
|
||||
|
@ -207,9 +207,9 @@ static int decoder_renderer_submit_decode_unit(PDECODE_UNIT decodeUnit) {
|
||||
return DR_OK;
|
||||
}
|
||||
|
||||
DECODER_RENDERER_CALLBACKS decoder_callbacks_omx = {
|
||||
DECODER_RENDERER_CALLBACKS decoder_callbacks_pi = {
|
||||
.setup = decoder_renderer_setup,
|
||||
.cleanup = decoder_renderer_cleanup,
|
||||
.submitDecodeUnit = decoder_renderer_submit_decode_unit,
|
||||
.capabilities = CAPABILITY_NEEDS_SPS_CLEANUP | CAPABILITY_NEEDS_SPS_BITSTREAM_FIXUP,
|
||||
.capabilities = GS_SPS_BITSTREAM_FIXUP,
|
||||
};
|
Loading…
x
Reference in New Issue
Block a user