mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-01-02 21:48:55 +00:00
HEVC: Allow to build h265 codecparser internally
Signed-off-by: Sreerenj Balachandran <sreerenj.balachandran@intel.com>
This commit is contained in:
parent
38f8fea4bb
commit
33023d4d4d
3 changed files with 33 additions and 0 deletions
26
configure.ac
26
configure.ac
|
@ -269,6 +269,7 @@ if test "$enable_builtin_codecparsers" = "yes"; then
|
||||||
ac_cv_have_gst_h264_parser="no"
|
ac_cv_have_gst_h264_parser="no"
|
||||||
ac_cv_have_gst_jpeg_parser="no"
|
ac_cv_have_gst_jpeg_parser="no"
|
||||||
ac_cv_have_gst_vp8_parser="no"
|
ac_cv_have_gst_vp8_parser="no"
|
||||||
|
ac_cv_have_gst_h265_parser="no"
|
||||||
else
|
else
|
||||||
PKG_CHECK_MODULES([GST_CODEC_PARSERS],
|
PKG_CHECK_MODULES([GST_CODEC_PARSERS],
|
||||||
[gstreamer-codecparsers-$GST_PKG_VERSION >= $GST_PLUGINS_BAD_VERSION_REQUIRED])
|
[gstreamer-codecparsers-$GST_PKG_VERSION >= $GST_PLUGINS_BAD_VERSION_REQUIRED])
|
||||||
|
@ -371,6 +372,31 @@ AM_CONDITIONAL([USE_LOCAL_CODEC_PARSERS_VP8],
|
||||||
[test "$ac_cv_have_gst_vp8_parser" != "yes"])
|
[test "$ac_cv_have_gst_vp8_parser" != "yes"])
|
||||||
AM_CONDITIONAL([USE_BUILTIN_LIBVPX], [test "$enable_builtin_libvpx" = "yes"])
|
AM_CONDITIONAL([USE_BUILTIN_LIBVPX], [test "$enable_builtin_libvpx" = "yes"])
|
||||||
|
|
||||||
|
dnl ... H.265 parser, with the required extensions
|
||||||
|
AC_CACHE_CHECK([for H.265 parser],
|
||||||
|
ac_cv_have_gst_h265_parser, [
|
||||||
|
saved_CPPFLAGS="$CPPFLAGS"
|
||||||
|
CPPFLAGS="$CPPFLAGS $GST_CFLAGS $GST_CODEC_PARSERS_CFLAGS"
|
||||||
|
saved_LIBS="$LIBS"
|
||||||
|
LIBS="$LIBS $GST_LIBS $GST_CODEC_PARSERS_LIBS"
|
||||||
|
AC_COMPILE_IFELSE(
|
||||||
|
[AC_LANG_PROGRAM(
|
||||||
|
[[#include <gst/codecparsers/gsth265parser.h>]],
|
||||||
|
[[GstH265SliceHdr slice_hdr;
|
||||||
|
GstH265VUIParams vui_params;
|
||||||
|
GstH265Profile profile = GST_H265_PROFILE_MAIN_STILL_PICTURE;
|
||||||
|
slice_hdr.n_emulation_prevention_bytes = 0;
|
||||||
|
vui_params.par_n = 0;
|
||||||
|
vui_params.par_d = 0;]])],
|
||||||
|
[ac_cv_have_gst_h265_parser="yes"],
|
||||||
|
[ac_cv_have_gst_h265_parser="no"]
|
||||||
|
)
|
||||||
|
CPPFLAGS="$saved_CPPFLAGS"
|
||||||
|
LIBS="$saved_LIBS"
|
||||||
|
])
|
||||||
|
AM_CONDITIONAL([USE_LOCAL_CODEC_PARSERS_H265],
|
||||||
|
[test "$ac_cv_have_gst_h265_parser" != "yes"])
|
||||||
|
|
||||||
dnl ... video parsers
|
dnl ... video parsers
|
||||||
AM_CONDITIONAL([USE_LOCAL_VIDEO_PARSERS],
|
AM_CONDITIONAL([USE_LOCAL_VIDEO_PARSERS],
|
||||||
[test "$enable_builtin_videoparsers" = "yes"])
|
[test "$enable_builtin_videoparsers" = "yes"])
|
||||||
|
|
|
@ -17,6 +17,7 @@ codecparsers_source_c = \
|
||||||
nalutils.c \
|
nalutils.c \
|
||||||
parserutils.c \
|
parserutils.c \
|
||||||
vp8utils.c \
|
vp8utils.c \
|
||||||
|
gsth265parser.c \
|
||||||
$(NULL)
|
$(NULL)
|
||||||
|
|
||||||
EXTRA_DIST += $(codecparsers_source_c:%.c=$(codecparsers_srcdir)/%.c)
|
EXTRA_DIST += $(codecparsers_source_c:%.c=$(codecparsers_srcdir)/%.c)
|
||||||
|
@ -33,6 +34,7 @@ codecparsers_source_h = \
|
||||||
nalutils.h \
|
nalutils.h \
|
||||||
parserutils.h \
|
parserutils.h \
|
||||||
vp8utils.h \
|
vp8utils.h \
|
||||||
|
gsth265parser.h \
|
||||||
$(NULL)
|
$(NULL)
|
||||||
|
|
||||||
EXTRA_DIST += $(codecparsers_source_h:%.h=$(codecparsers_srcdir)/%.h)
|
EXTRA_DIST += $(codecparsers_source_h:%.h=$(codecparsers_srcdir)/%.h)
|
||||||
|
|
|
@ -62,6 +62,11 @@ gen_source_h += dboolhuff.h
|
||||||
endif
|
endif
|
||||||
endif
|
endif
|
||||||
|
|
||||||
|
if USE_LOCAL_CODEC_PARSERS_H265
|
||||||
|
gen_source_c += gsth265parser.c
|
||||||
|
gen_source_h += gsth265parser.h
|
||||||
|
endif
|
||||||
|
|
||||||
GENFILES = \
|
GENFILES = \
|
||||||
$(gen_source_c) \
|
$(gen_source_c) \
|
||||||
$(gen_source_h) \
|
$(gen_source_h) \
|
||||||
|
|
Loading…
Reference in a new issue