("{ BGRx, BGRA, RGBx, xBGR, xRGB, RGBA, ABGR, ARGB, RGB, BGR, "
"RGB16, BGR16, YUY2, YVYU, UYVY, AYUV, NV12, NV21, NV16, "
#ifdef TIZEN_FEATURE_WLSINK_ENHANCEMENT
- "SN12, ST12, SR32, S420,"
+ "SN12, ST12, SN21, SR32, S420,"
#endif
"YUV9, YVU9, Y41B, I420, YV12, Y42B, v308 }"))
);
g_value_set_string (&value, gst_wl_tbm_format_to_string (tbm_fmt));
gst_value_list_append_value (&list, &value);
- /* TBM doesn't support Native formats(SN12, ST12, SR32 and S420),
+ /* TBM doesn't support Native formats(SN12, ST12, SN21, SR32 and S420),
So we add Native formats manually as supported format. */
if (tbm_fmt == TBM_FORMAT_NV12) {
g_value_set_string (&value,
g_value_set_string (&value,
gst_video_format_to_string (GST_VIDEO_FORMAT_ST12));
gst_value_list_append_value (&list, &value);
+ } else if (tbm_fmt == TBM_FORMAT_NV21) {
+ g_value_set_string (&value,
+ gst_video_format_to_string (GST_VIDEO_FORMAT_SN21));
+ gst_value_list_append_value (&list, &value);
} else if (tbm_fmt == TBM_FORMAT_ARGB8888) {
g_value_set_string (&value,
gst_video_format_to_string (GST_VIDEO_FORMAT_SR32));
if (sink->USE_TBM) {
if (GST_VIDEO_INFO_FORMAT (&info) == GST_VIDEO_FORMAT_SN12 ||
GST_VIDEO_INFO_FORMAT (&info) == GST_VIDEO_FORMAT_ST12 ||
+ GST_VIDEO_INFO_FORMAT (&info) == GST_VIDEO_FORMAT_SN21 ||
GST_VIDEO_INFO_FORMAT (&info) == GST_VIDEO_FORMAT_SR32 ||
GST_VIDEO_INFO_FORMAT (&info) == GST_VIDEO_FORMAT_S420) {
sink->display->is_native_format = TRUE;
("buffer(%p) is created by previous plugin with no BufferPool does not have a wl_buffer",
buffer);
GST_LOG ("Use native format with previous plugins TBM");
- /* in case of native format (SN12, ST12, SR32 and S420) */
+ /* in case of native format (SN12, ST12, SN21, SR32 and S420) */
if (!gst_wayland_sink_get_mm_video_buf_info (sink, buffer)) {
return GST_FLOW_ERROR;
}