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
13e5b1f6
Commit
13e5b1f6
authored
Oct 28, 2004
by
Michael Niedermayer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
cleanup
Originally committed as revision 3646 to
svn://svn.ffmpeg.org/ffmpeg/trunk
parent
37a00782
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
10 deletions
+4
-10
h261.c
libavcodec/h261.c
+4
-10
No files found.
libavcodec/h261.c
View file @
13e5b1f6
...
...
@@ -77,7 +77,7 @@ void ff_h261_loop_filter(MpegEncContext *s){
s
->
dsp
.
h261_loop_filter
(
dest_cr
,
uvlinesize
);
}
int
ff_h261_get_picture_format
(
int
width
,
int
height
){
static
int
ff_h261_get_picture_format
(
int
width
,
int
height
){
// QCIF
if
(
width
==
176
&&
height
==
144
)
return
0
;
...
...
@@ -93,16 +93,10 @@ static void h261_encode_block(H261Context * h, DCTELEM * block,
int
n
);
static
int
h261_decode_block
(
H261Context
*
h
,
DCTELEM
*
block
,
int
n
,
int
coded
);
static
int
h261_decode_mb
(
H261Context
*
h
);
void
ff_set_qscale
(
MpegEncContext
*
s
,
int
qscale
);
void
ff_h261_encode_picture_header
(
MpegEncContext
*
s
,
int
picture_number
){
H261Context
*
h
=
(
H261Context
*
)
s
;
int
format
,
coded_frame_rate
,
coded_frame_rate_base
,
temp_ref
;
int
best_clock_code
=
1
;
int
best_divisor
=
60
;
coded_frame_rate
=
1800000
;
coded_frame_rate_base
=
(
1000
+
best_clock_code
)
*
best_divisor
;
int
format
,
temp_ref
;
align_put_bits
(
&
s
->
pb
);
...
...
@@ -111,8 +105,8 @@ void ff_h261_encode_picture_header(MpegEncContext * s, int picture_number){
put_bits
(
&
s
->
pb
,
20
,
0x10
);
/* PSC */
temp_ref
=
s
->
picture_number
*
(
int64_t
)
coded_frame_rate
*
s
->
avctx
->
frame_rate_base
/
(
coded_frame_rate_base
*
(
int64_t
)
s
->
avctx
->
frame_rate
);
temp_ref
=
s
->
picture_number
*
(
int64_t
)
30000
*
s
->
avctx
->
frame_rate_base
/
(
1001
*
(
int64_t
)
s
->
avctx
->
frame_rate
);
put_bits
(
&
s
->
pb
,
5
,
temp_ref
&
0x1f
);
/* TemporalReference */
put_bits
(
&
s
->
pb
,
1
,
0
);
/* split screen off */
...
...
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