])
])
+PKG_CHECK_MODULES(MM_COMMON, mm-common)
+AC_SUBST(MM_COMMON_CFLAGS)
+
dnl check if compiler understands -Wall (if yes, add -Wall to GST_CFLAGS)
AC_MSG_CHECKING([to see if compiler understands -Wall])
save_CFLAGS="$CFLAGS"
Name: gst-plugins-video-enc
Version: 1.0.3
-Release: 1
+Release: 2
License: LGPLv2+
Summary: nexell video encoder gstreamer plugin
Group: Development/Libraries
BuildRequires: libdrm-devel
BuildRequires: nx-gst-meta-devel
BuildRequires: nx-video-api-devel
+BuildRequires: pkgconfig(mm-common)
Requires(post): /sbin/ldconfig
Requires(postun): /sbin/ldconfig
# compiler and linker flags used to compile this plugin, set in configure.ac
libgstnxvideoenc_la_CFLAGS =\
$(GST_CFLAGS) \
+ $(MM_COMMON_CFLAGS) \
+ -DTIZEN_FEATURE_ARTIK530 \
-I${includedir} \
-I${includedir}/libdrm
meta = gst_buffer_get_mmvideobuffer_meta (frame->input_buffer);
if (NULL != meta && meta->memory_index >= 0) {
+#ifdef TIZEN_FEATURE_ARTIK530
+ GST_ERROR ("%s: meta index=%d\n", __func__, meta->memory_index);
+ return FALSE;
+#else
GstMemory *meta_block = NULL;
MMVideoBuffer *mm_buf = NULL;
gst_buffer_unmap (frame->output_buffer, &out_info);
}
gst_memory_unmap (meta_block, &in_info);
+#endif
} else {
if (FALSE == nxvideoenc->init) {
gint i = 0;
gst_video_codec_frame_unref (frame);
return GST_FLOW_ERROR;
}
+#ifdef TIZEN_FEATURE_ARTIK530
+ GstVideoFormatInfo *finfo = inframe.info.finfo;
+#endif
copy_to_videomemory (&inframe, nxvideoenc->inbuf[nxvideoenc->buf_index]);
memset (&encIn, 0x00, sizeof (encIn));
gst_video_codec_frame_unref (frame);
return GST_FLOW_ERROR;
}
+#ifdef TIZEN_FEATURE_ARTIK530
+ inframe.info.finfo = finfo;
+#endif
if (!g_strcmp0 (nxvideoenc->alignment, "au") && !g_strcmp0 (nxvideoenc->stream_format, "avc")) // H.264 & AU
{