Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in / Register
Toggle navigation
F
ffmpeg.wasm-core
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Linshizhi
ffmpeg.wasm-core
Commits
4cc2920d
Commit
4cc2920d
authored
Jul 29, 2011
by
Diego Biurrun
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
flvdec: remove incomplete, disabled seeking code
parent
be1a839c
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
12 deletions
+0
-12
ratecontrol.c
libavcodec/ratecontrol.c
+0
-12
No files found.
libavcodec/ratecontrol.c
View file @
4cc2920d
...
@@ -508,14 +508,6 @@ static double predict_size(Predictor *p, double q, double var)
...
@@ -508,14 +508,6 @@ static double predict_size(Predictor *p, double q, double var)
return
p
->
coeff
*
var
/
(
q
*
p
->
count
);
return
p
->
coeff
*
var
/
(
q
*
p
->
count
);
}
}
/*
static double predict_qp(Predictor *p, double size, double var)
{
//printf("coeff:%f, count:%f, var:%f, size:%f//\n", p->coeff, p->count, var, size);
return p->coeff*var / (size*p->count);
}
*/
static
void
update_predictor
(
Predictor
*
p
,
double
q
,
double
var
,
double
size
)
static
void
update_predictor
(
Predictor
*
p
,
double
q
,
double
var
,
double
size
)
{
{
double
new_coeff
=
size
*
q
/
(
var
+
1
);
double
new_coeff
=
size
*
q
/
(
var
+
1
);
...
@@ -555,10 +547,6 @@ static void adaptive_quantization(MpegEncContext *s, double q){
...
@@ -555,10 +547,6 @@ static void adaptive_quantization(MpegEncContext *s, double q){
int
mb_y
=
mb_xy
/
s
->
mb_stride
;
int
mb_y
=
mb_xy
/
s
->
mb_stride
;
int
mb_distance
;
int
mb_distance
;
float
mb_factor
=
0
.
0
;
float
mb_factor
=
0
.
0
;
#if 0
if(spat_cplx < q/3) spat_cplx= q/3; //FIXME finetune
if(temp_cplx < q/3) temp_cplx= q/3; //FIXME finetune
#endif
if
(
spat_cplx
<
4
)
spat_cplx
=
4
;
//FIXME finetune
if
(
spat_cplx
<
4
)
spat_cplx
=
4
;
//FIXME finetune
if
(
temp_cplx
<
4
)
temp_cplx
=
4
;
//FIXME finetune
if
(
temp_cplx
<
4
)
temp_cplx
=
4
;
//FIXME finetune
...
...
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