Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Redmine
Redmine
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Metrics
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
videolan
vlc
Commits
335b7858
Commit
335b7858
authored
Feb 17, 2010
by
Jean-Paul Saman
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
davinci: make davinci_SetDynamicParams() less verbose
parent
4d2737fc
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
6 deletions
+8
-6
modules/codec/davinci/encoder.c
modules/codec/davinci/encoder.c
+8
-6
No files found.
modules/codec/davinci/encoder.c
View file @
335b7858
...
...
@@ -354,12 +354,6 @@ static int davinci_SetDynamicParams( encoder_t *p_enc, VIDENC_Status *status )
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
;
}
...
...
@@ -406,6 +400,14 @@ static block_t *EncodeVideo( encoder_t *p_enc, picture_t *p_pic )
davinci_InitDynamicParams
(
p_enc
);
if
(
davinci_SetDynamicParams
(
p_enc
,
&
status
)
!=
VLC_SUCCESS
)
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
)
return
NULL
;
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment