MM_PLAYER_COLORSPACE_RGB888, /**< RGB888 pixel format */
MM_PLAYER_COLORSPACE_NV12_TILED, /**< Customized color format */
MM_PLAYER_COLORSPACE_NV12,
+ MM_PLAYER_COLORSPACE_BGRx, /**< BGRx pixel format */
MM_PLAYER_COLORSPACE_MAX = 0x7FFFFFFF
} MMPlayerVideoColorspace;
if (gst_structure_has_name(structure, "video/x-raw")) {
/* NV12T */
const gchar *gst_format = gst_structure_get_string(structure, "format");
- if (!g_strcmp0(gst_format, "ST12") || !g_strcmp0(gst_format, "SN12") || !g_strcmp0(gst_format, "S420")) {
- guint n;
- LOGI("captured format is %s\n", gst_format);
+ if (!g_strcmp0(gst_format, "ST12"))
+ player->video_cs = MM_PLAYER_COLORSPACE_NV12_TILED;
+ else if (!g_strcmp0(gst_format, "S420"))
+ player->video_cs = MM_PLAYER_COLORSPACE_I420;
+ else if (!g_strcmp0(gst_format, "SN12"))
+ player->video_cs = MM_PLAYER_COLORSPACE_NV12;
+ else if (!g_strcmp0(gst_format, "BGRx"))
+ player->video_cs = MM_PLAYER_COLORSPACE_BGRx;
+ else
+ player->video_cs = MM_PLAYER_COLORSPACE_MAX;
+
+ LOGI("captured format is %s\n", gst_format);
+
+ if (!g_strcmp0(gst_format, "ST12") || !g_strcmp0(gst_format, "SN12")
+ || !g_strcmp0(gst_format, "S420")) {
+ guint n;
MMVideoBuffer *proved = NULL;
- if (!g_strcmp0(gst_format, "ST12"))
- player->video_cs = MM_PLAYER_COLORSPACE_NV12_TILED;
- else if (!g_strcmp0(gst_format, "S420"))
- player->video_cs = MM_PLAYER_COLORSPACE_I420;
- else if (!g_strcmp0(gst_format, "SN12"))
- player->video_cs = MM_PLAYER_COLORSPACE_NV12;
- else
- player->video_cs = MM_PLAYER_COLORSPACE_MAX;
/* get video frame info from proved buffer */
n = gst_buffer_n_memory(buffer);