This function should be called after otf_init,
because the width/height information is needed.
Change-Id: Icab18d34082252c8a28365d39c898fbc4dfdf174
Signed-off-by: Jeonghee Kim <jhhhh.kim@samsung.com>
mfc_info_ctx("[STREAM] Enc dst codec(%d) : %s\n",
ctx->codec_mode, ctx->dst_fmt->name);
- if (__mfc_enc_check_resolution(ctx)) {
- mfc_err_ctx("Unsupported resolution\n");
- return -EINVAL;
- }
-
if (ctx->otf_handle) {
if (ctx->dst_fmt->fourcc != V4L2_PIX_FMT_H264 &&
ctx->dst_fmt->fourcc != V4L2_PIX_FMT_HEVC) {
}
}
+ if (__mfc_enc_check_resolution(ctx)) {
+ mfc_err_ctx("Unsupported resolution\n");
+ return -EINVAL;
+ }
+
enc->dst_buf_size = pix_fmt_mp->plane_fmt[0].sizeimage;
pix_fmt_mp->plane_fmt[0].bytesperline = 0;