Skip to content

Commit

Permalink
Fixing swig issue with VAAPI
Browse files Browse the repository at this point in the history
  • Loading branch information
ross-newman committed May 10, 2024
1 parent 75f8565 commit 7f15945
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 12 deletions.
12 changes: 6 additions & 6 deletions src/h264/gst/vaapi/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -25,15 +25,15 @@ include_directories(${PYTHON_INCLUDE_PATH} ${GST_INCLUDE_DIRS} ${CMAKE_SOURCE_DI

# build swig interface for payloader
set_source_files_properties(rtp_h264_payloader.i PROPERTIES CPLUSPLUS ON)
swig_add_library(rtp_h264_vaapi_payloader TYPE SHARED LANGUAGE python SOURCES rtp_h264_payloader.i ../../../rtp/rtp_payloader.cc ../../../rtp/rtp_payloader.cc ../../../rtp/rtp_utils.cc ../../../utils/colourspace_cpu.cc)
swig_link_libraries(rtp_h264_vaapi_payloader glog swscale)
swig_add_library(rtp_h264_gst_vaapi_payloader TYPE SHARED LANGUAGE python SOURCES rtp_h264_payloader.i ../../../rtp/rtp_payloader.cc ../../../rtp/rtp_payloader.cc ../../../rtp/rtp_utils.cc ../../../utils/colourspace_cpu.cc)
swig_link_libraries(rtp_h264_gst_vaapi_payloader glog swscale)

# build swig interface for depayloader
set_source_files_properties(rtp_h264_depayloader.i PROPERTIES CPLUSPLUS ON)
swig_add_library(rtp_h264_vaapi_depayloader TYPE SHARED LANGUAGE python SOURCES rtp_h264_depayloader.i ${CMAKE_SOURCE_DIR}/src/rtp/rtp_depayloader.cc ${CMAKE_SOURCE_DIR}/src/rtp/rtp_depayloader.cc ${CMAKE_SOURCE_DIR}/src/rtp/rtp_utils.cc ../../../utils/colourspace_cpu.cc)
swig_link_libraries(rtp_h264_vaapi_depayloader glog swscale)
swig_add_library(rtp_h264_gst_vaapi_depayloader TYPE SHARED LANGUAGE python SOURCES rtp_h264_depayloader.i ${CMAKE_SOURCE_DIR}/src/rtp/rtp_depayloader.cc ${CMAKE_SOURCE_DIR}/src/rtp/rtp_depayloader.cc ${CMAKE_SOURCE_DIR}/src/rtp/rtp_utils.cc ../../../utils/colourspace_cpu.cc)
swig_link_libraries(rtp_h264_gst_vaapi_depayloader glog swscale)

install(TARGETS rtp_h264_vaapi_payloader DESTINATION ${CMAKE_INSTALL_PREFIX}/lib/python3/dist-packages/mediax)
install(TARGETS rtp_h264_gst_vaapi_payloader DESTINATION ${CMAKE_INSTALL_PREFIX}/lib/python3/dist-packages/mediax)
install(FILES ${CMAKE_CURRENT_BINARY_DIR}/rtp_h264_gst_vaapi_depayloader.py DESTINATION ${CMAKE_INSTALL_PREFIX}/lib/python3/dist-packages/mediax)
install(TARGETS rtp_h264_vaapi_depayloader DESTINATION ${CMAKE_INSTALL_PREFIX}/lib/python3/dist-packages/mediax)
install(TARGETS rtp_h264_gst_vaapi_depayloader DESTINATION ${CMAKE_INSTALL_PREFIX}/lib/python3/dist-packages/mediax)
install(FILES ${CMAKE_CURRENT_BINARY_DIR}/rtp_h264_gst_vaapi_payloader.py DESTINATION ${CMAKE_INSTALL_PREFIX}/lib/python3/dist-packages/mediax)
6 changes: 3 additions & 3 deletions src/h264/gst/vaapi/rtp_h264_depayloader.i
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
%module rtp_h264_gst_open_depayloader
%module rtp_h264_gst_vaapi_depayloader

%import "rtp/rtp_depayloader.i"

%{
#include "h264/gst/open/rtp_h264_depayloader.h"
#include "h264/gst/vaapi/rtp_h264_depayloader.h"
%}

%include "h264/gst/open/rtp_h264_depayloader.h"
%include "h264/gst/vaapi/rtp_h264_depayloader.h"
6 changes: 3 additions & 3 deletions src/h264/gst/vaapi/rtp_h264_payloader.i
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
%module rtp_h264_gst_open_payloader
%module rtp_h264_gst_vaapi_payloader

%import "rtp/rtp_payloader.i"

%{
#include "h264/gst/open/rtp_h264_payloader.h"
#include "h264/gst/vaapi/rtp_h264_payloader.h"
%}

%include "h264/gst/open/rtp_h264_payloader.h"
%include "h264/gst/vaapi/rtp_h264_payloader.h"

0 comments on commit 7f15945

Please sign in to comment.