if (IS_BUFFER_BATCH_MODE(ctx)) {
int count = 0;
- ctx->framerate = ctx->num_bufs_in_vb * ENC_DEFAULT_CAM_FPS;
+ ctx->framerate = ctx->num_bufs_in_vb * ENC_DEFAULT_CAM_CAPTURE_FPS;
mfc_debug(3, "framerate: %ld\n", ctx->framerate);
count = s5p_mfc_bufcon_get_daddr(ctx, buf, dmabuf, i);
}
start_timestamp = src_mb->vb.vb2_buf.timestamp;
- interval = NSEC_PER_SEC / (ctx->framerate / 1000);
- mfc_debug(3, "%ldfps, start timestamp: %lld, base interval: %lld\n",
- ctx->framerate / 1000, start_timestamp, interval);
+ interval = NSEC_PER_SEC / (ENC_DEFAULT_CAM_VIDEO_FPS / 1000);
+ mfc_debug(3, "%dfps, start timestamp: %lld, base interval: %lld\n",
+ (ENC_DEFAULT_CAM_VIDEO_FPS / 1000), start_timestamp, interval);
new_timestamp = start_timestamp + (interval * src_mb->done_index);
mfc_debug(3, "new timestamp: %lld, interval: %lld\n",
}
start_timestamp = src_mb->vb.vb2_buf.timestamp;
- interval = NSEC_PER_SEC / (ctx->framerate / 1000);
- mfc_debug(3, "NAL Q: %ldfps, start timestamp: %lld, base interval: %lld\n",
- ctx->framerate / 1000, start_timestamp, interval);
+ interval = NSEC_PER_SEC / (ENC_DEFAULT_CAM_VIDEO_FPS / 1000);
+ mfc_debug(3, "NAL Q: %dfps, start timestamp: %lld, base interval: %lld\n",
+ (ENC_DEFAULT_CAM_VIDEO_FPS / 1000), start_timestamp, interval);
new_timestamp = start_timestamp + (interval * src_mb->done_index);
mfc_debug(3, "NAL Q: new timestamp: %lld, interval: %lld\n",
time->tv_sec, time->tv_usec, ctx->ts_count);
}
+ if (IS_BUFFER_BATCH_MODE(ctx)) {
+ mfc_debug(3, "Keep framerate if buffer batch mode is used, %ldfps\n",
+ ctx->framerate);
+ return ctx->framerate;
+ }
+
if (list_empty(&ctx->ts_list)) {
mfc_qos_add_timestamp(ctx, time, &ctx->ts_list);
return mfc_qos_get_framerate_by_interval(0);
#include "s5p_mfc_common.h"
-#define MFC_MAX_FPS (480000)
-#define DEC_DEFAULT_FPS (240000)
-#define ENC_DEFAULT_FPS (240000)
-#define ENC_DEFAULT_CAM_FPS (60000)
+#define MFC_MAX_FPS (480000)
+#define DEC_DEFAULT_FPS (240000)
+#define ENC_DEFAULT_FPS (240000)
+#define ENC_DEFAULT_CAM_CAPTURE_FPS (60000)
+#define ENC_DEFAULT_CAM_VIDEO_FPS (30000)
-#define MB_COUNT_PER_UHD_FRAME 32400
-#define MAX_FPS_PER_UHD_FRAME 120
-#define MIN_BW_PER_SEC 1
+#define MB_COUNT_PER_UHD_FRAME 32400
+#define MAX_FPS_PER_UHD_FRAME 120
+#define MIN_BW_PER_SEC 1
-#define MFC_DRV_TIME 500
+#define MFC_DRV_TIME 500
#define MFC_QOS_WEIGHT_3PLANE 80
#define MFC_QOS_WEIGHT_OTHER_CODEC 25