summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorathurh <athurh@gmail.com>2012-05-06 05:18:28 +0200
committerathurh <athurh@gmail.com>2012-05-06 05:18:28 +0200
commit7bfa58c3766f9ad88bf458fbf68deab5a2dd718b (patch)
tree3d76134973a64ccbfdf1d36ad9729a48ab29d7c9
parent8537e27d601a73708e26b912d8cd3190af28aae6 (diff)
downloadhardware_samsung-7bfa58c3766f9ad88bf458fbf68deab5a2dd718b.zip
hardware_samsung-7bfa58c3766f9ad88bf458fbf68deab5a2dd718b.tar.gz
hardware_samsung-7bfa58c3766f9ad88bf458fbf68deab5a2dd718b.tar.bz2
OMX: Improve H264 encode quality
Change-Id: I874d393e9f1f357b3125cad4a04526aa7336c6ca
-rw-r--r--exynos4/multimedia/openmax/sec_omx/component/video/enc/h264/SEC_OMX_H264enc.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/exynos4/multimedia/openmax/sec_omx/component/video/enc/h264/SEC_OMX_H264enc.c b/exynos4/multimedia/openmax/sec_omx/component/video/enc/h264/SEC_OMX_H264enc.c
index 24123d7..df4241b 100644
--- a/exynos4/multimedia/openmax/sec_omx/component/video/enc/h264/SEC_OMX_H264enc.c
+++ b/exynos4/multimedia/openmax/sec_omx/component/video/enc/h264/SEC_OMX_H264enc.c
@@ -230,9 +230,9 @@ void Set_H264Enc_Param(SSBSIP_MFC_ENC_H264_PARAM *pH264Arg, SEC_OMX_BASECOMPONEN
pH264Arg->LoopFilterDisable = 1; // 1: Loop Filter Disable, 0: Filter Enable
pH264Arg->LoopFilterAlphaC0Offset = 0;
pH264Arg->LoopFilterBetaOffset = 0;
- pH264Arg->SymbolMode = 0; // 0: CAVLC, 1: CABAC
+ pH264Arg->SymbolMode = 1; // 0: CAVLC, 1: CABAC
pH264Arg->PictureInterlace = 0;
- pH264Arg->Transform8x8Mode = 0; // 0: 4x4, 1: allow 8x8
+ pH264Arg->Transform8x8Mode = 1; // 0: 4x4, 1: allow 8x8
pH264Arg->DarkDisable = 1;
pH264Arg->SmoothDisable = 1;
pH264Arg->StaticDisable = 1;
@@ -1537,8 +1537,8 @@ OSCL_EXPORT_REF OMX_ERRORTYPE SEC_OMX_ComponentInit(OMX_HANDLETYPE hComponent, O
for(i = 0; i < ALL_PORT_NUM; i++) {
INIT_SET_SIZE_VERSION(&pH264Enc->AVCComponent[i], OMX_VIDEO_PARAM_AVCTYPE);
pH264Enc->AVCComponent[i].nPortIndex = i;
- pH264Enc->AVCComponent[i].eProfile = OMX_VIDEO_AVCProfileBaseline;
- pH264Enc->AVCComponent[i].eLevel = OMX_VIDEO_AVCLevel31;
+ pH264Enc->AVCComponent[i].eProfile = OMX_VIDEO_AVCProfileHigh;
+ pH264Enc->AVCComponent[i].eLevel = OMX_VIDEO_AVCLevel4;
pH264Enc->AVCComponent[i].nPFrames = 20;
}