priv->format_table[n_formats].dxgi_format = DXGI_FORMAT_B8G8R8A8_UNORM;
n_formats++;
+ /* Identical to BGRA, but alpha will be ignored */
+ priv->format_table[n_formats].format = GST_VIDEO_FORMAT_BGRx;
+ priv->format_table[n_formats].resource_format[0] = DXGI_FORMAT_B8G8R8A8_UNORM;
+ priv->format_table[n_formats].dxgi_format = DXGI_FORMAT_B8G8R8A8_UNORM;
+ n_formats++;
+
priv->format_table[n_formats].format = GST_VIDEO_FORMAT_RGBA;
priv->format_table[n_formats].resource_format[0] = DXGI_FORMAT_R8G8B8A8_UNORM;
priv->format_table[n_formats].dxgi_format = DXGI_FORMAT_R8G8B8A8_UNORM;
n_formats++;
+ /* Identical to RGBA, but alpha will be ignored */
+ priv->format_table[n_formats].format = GST_VIDEO_FORMAT_RGBx;
+ priv->format_table[n_formats].resource_format[0] = DXGI_FORMAT_R8G8B8A8_UNORM;
+ priv->format_table[n_formats].dxgi_format = DXGI_FORMAT_R8G8B8A8_UNORM;
+ n_formats++;
+
priv->format_table[n_formats].format = GST_VIDEO_FORMAT_RGB10A2_LE;
priv->format_table[n_formats].resource_format[0] =
DXGI_FORMAT_R10G10B10A2_UNORM;
G_BEGIN_DECLS
#define GST_D3D11_COMMON_FORMATS \
- "BGRA, RGBA, RGB10A2_LE, VUYA, NV12, P010_10LE, P016_LE, I420, I420_10LE"
+ "BGRA, RGBA, RGB10A2_LE, BGRx, RGBx, VUYA, NV12, P010_10LE, P016_LE, I420, I420_10LE"
#define GST_D3D11_EXTRA_IN_FORMATS \
"YUY2, UYVY, VYUY, Y210, Y410"
#define GST_D3D11_ALL_FORMATS \
"{ " GST_D3D11_COMMON_FORMATS " ," GST_D3D11_EXTRA_IN_FORMATS " }"
-#define GST_D3D11_N_FORMATS 14
+#define GST_D3D11_N_FORMATS 16
struct _GstD3D11Format
{
"VUYA", "NV12", "P010_10LE", "P016_LE", "I420", "I420_10LE"
};
const gchar *out_format_list[] = {
- "BGRA", "RGBA", "RGB10A2_LE",
+ "BGRA", "RGBA", "RGB10A2_LE", "BGRx", "RGBx",
};
GST_START_TEST (test_d3d11_color_convert_rgb_yuv)
{
const gchar *in_format_list[] = {
- "BGRA", "RGBA", "RGB10A2_LE",
+ "BGRA", "RGBA", "RGB10A2_LE", "BGRx", "RGBx",
};
const gchar *out_format_list[] = {
"VUYA", "NV12", "P010_10LE", "P016_LE", "I420", "I420_10LE"
GST_START_TEST (test_d3d11_color_convert_rgb_rgb)
{
const gchar *format_list[] = {
- "BGRA", "RGBA", "RGB10A2_LE",
+ "BGRA", "RGBA", "RGB10A2_LE", "BGRx", "RGBx",
};
gint i, j;
"YUY2", "UYVY", "VYUY", "Y210", "Y410",
};
const gchar *out_format_list[] = {
- "BGRA", "RGBA", "RGB10A2_LE",
+ "BGRA", "RGBA", "RGB10A2_LE", "BGRx", "RGBx",
};
gint i, j;