Commit 335b7858 authored by Jean-Paul Saman's avatar Jean-Paul Saman

davinci: make davinci_SetDynamicParams() less verbose

parent 4d2737fc
...@@ -354,12 +354,6 @@ static int davinci_SetDynamicParams( encoder_t *p_enc, VIDENC_Status *status ) ...@@ -354,12 +354,6 @@ static int davinci_SetDynamicParams( encoder_t *p_enc, VIDENC_Status *status )
return VLC_EGENERIC; return VLC_EGENERIC;
} }
msg_Info( p_enc, "using %dx%d at %.3f fps (bitrate %d kBps, I-Frame interval %d)\n",
(int)dparams->inputWidth, (int)dparams->inputHeight,
((float)dparams->targetFrameRate)/1000.,
((int)dparams->targetBitRate) >> 13 /* / (8*1024)*/,
(int)dparams->intraFrameInterval );
return VLC_SUCCESS; return VLC_SUCCESS;
} }
...@@ -406,6 +400,14 @@ static block_t *EncodeVideo( encoder_t *p_enc, picture_t *p_pic ) ...@@ -406,6 +400,14 @@ static block_t *EncodeVideo( encoder_t *p_enc, picture_t *p_pic )
davinci_InitDynamicParams( p_enc ); davinci_InitDynamicParams( p_enc );
if( davinci_SetDynamicParams( p_enc, &status ) != VLC_SUCCESS ) if( davinci_SetDynamicParams( p_enc, &status ) != VLC_SUCCESS )
return NULL; return NULL;
msg_Info( p_enc, "using %dx%d at %.3f fps (bitrate %d kBps, I-Frame interval %d)\n",
(int)p_sys->dparams.inputWidth,
(int)p_sys->dparams.inputHeight,
((float)p_sys->dparams.targetFrameRate)/1000.,
((int)p_sys->dparams.targetBitRate) >> 13 /* / (8*1024)*/,
(int)p_sys->dparams.intraFrameInterval );
if( davinci_InitVideoBuffers( p_enc, &status ) != VLC_SUCCESS ) if( davinci_InitVideoBuffers( p_enc, &status ) != VLC_SUCCESS )
return NULL; return NULL;
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment