static int32_t mtk_mdp_map_color_format(int v4l2_format)
{ switch (v4l2_format) { case V4L2_PIX_FMT_NV12M: case V4L2_PIX_FMT_NV12: return MDP_COLOR_NV12; case V4L2_PIX_FMT_MT21C: return MDP_COLOR_420_MT21; case V4L2_PIX_FMT_YUV420M: case V4L2_PIX_FMT_YUV420: return MDP_COLOR_I420; case V4L2_PIX_FMT_YVU420: return MDP_COLOR_YV12;
}
src_buf->plane_num = frame->fmt->num_comp;
config->format = mtk_mdp_map_color_format(frame->fmt->pixelformat);
config->w_stride = 0; /* MDP will calculate it by color format. */
config->h_stride = 0; /* MDP will calculate it by color format. */
for (i = 0; i < src_buf->plane_num; i++)
src_buf->plane_size[i] = frame->payload[i];
}
dst_buf->plane_num = frame->fmt->num_comp;
config->format = mtk_mdp_map_color_format(frame->fmt->pixelformat);
config->w_stride = 0; /* MDP will calculate it by color format. */
config->h_stride = 0; /* MDP will calculate it by color format. */ for (i = 0; i < dst_buf->plane_num; i++)
dst_buf->plane_size[i] = frame->payload[i];
}
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.