Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
F
FFmpeg
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
libremedia
Tethys
FFmpeg
Commits
b2a1c771
Commit
b2a1c771
authored
20 years ago
by
Alex Beregszaszi
Browse files
Options
Downloads
Patches
Plain Diff
try to select w/h from tables
Originally committed as revision 3443 to
svn://svn.ffmpeg.org/ffmpeg/trunk
parent
cf7f2b16
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
libavcodec/svq1.c
+18
-6
18 additions, 6 deletions
libavcodec/svq1.c
tests/ffmpeg.regression.ref
+2
-2
2 additions, 2 deletions
tests/ffmpeg.regression.ref
with
20 additions
and
8 deletions
libavcodec/svq1.c
+
18
−
6
View file @
b2a1c771
...
@@ -880,6 +880,8 @@ static int svq1_decode_end(AVCodecContext *avctx)
...
@@ -880,6 +880,8 @@ static int svq1_decode_end(AVCodecContext *avctx)
static
void
svq1_write_header
(
SVQ1Context
*
s
,
int
frame_type
)
static
void
svq1_write_header
(
SVQ1Context
*
s
,
int
frame_type
)
{
{
int
i
;
/* frame code */
/* frame code */
put_bits
(
&
s
->
pb
,
22
,
0x20
);
put_bits
(
&
s
->
pb
,
22
,
0x20
);
...
@@ -898,12 +900,22 @@ static void svq1_write_header(SVQ1Context *s, int frame_type)
...
@@ -898,12 +900,22 @@ static void svq1_write_header(SVQ1Context *s, int frame_type)
/* output 5 unknown bits (2 + 2 + 1) */
/* output 5 unknown bits (2 + 2 + 1) */
put_bits
(
&
s
->
pb
,
5
,
0
);
put_bits
(
&
s
->
pb
,
5
,
0
);
/* forget about matching up resolutions, just use the free-form
for
(
i
=
0
;
i
<
7
;
i
++
)
* resolution code (7) for now */
{
put_bits
(
&
s
->
pb
,
3
,
7
);
if
((
svq1_frame_size_table
[
i
].
width
==
s
->
frame_width
)
&&
put_bits
(
&
s
->
pb
,
12
,
s
->
frame_width
);
(
svq1_frame_size_table
[
i
].
height
==
s
->
frame_height
))
put_bits
(
&
s
->
pb
,
12
,
s
->
frame_height
);
{
put_bits
(
&
s
->
pb
,
3
,
i
);
break
;
}
}
if
(
i
==
7
)
{
put_bits
(
&
s
->
pb
,
3
,
7
);
put_bits
(
&
s
->
pb
,
12
,
s
->
frame_width
);
put_bits
(
&
s
->
pb
,
12
,
s
->
frame_height
);
}
}
}
/* no checksum or extra data (next 2 bits get 0) */
/* no checksum or extra data (next 2 bits get 0) */
...
...
This diff is collapsed.
Click to expand it.
tests/ffmpeg.regression.ref
+
2
−
2
View file @
b2a1c771
...
@@ -107,8 +107,8 @@ stddev: 8.08 PSNR:29.97 bytes:7602176
...
@@ -107,8 +107,8 @@ stddev: 8.08 PSNR:29.97 bytes:7602176
2653690 ./data/a-ffv1.avi
2653690 ./data/a-ffv1.avi
799d3db687f6cdd7a837ec156efc171f *./data/out.yuv
799d3db687f6cdd7a837ec156efc171f *./data/out.yuv
stddev: 0.00 PSNR:99.99 bytes:7602176
stddev: 0.00 PSNR:99.99 bytes:7602176
c672f70e2176a897b1ba816749574751
*./data/a-svq1.mov
b92d6d901574ea17e43e96ea97637078
*./data/a-svq1.mov
138
401
9 ./data/a-svq1.mov
138
399
9 ./data/a-svq1.mov
ccc201054669e94717022bb4f2aea4ce *./data/out.yuv
ccc201054669e94717022bb4f2aea4ce *./data/out.yuv
stddev: 10.99 PSNR:27.30 bytes:7602176
stddev: 10.99 PSNR:27.30 bytes:7602176
21f8ff9f1daacd9133683bb4ea0f50a4 *./data/a-mp2.mp2
21f8ff9f1daacd9133683bb4ea0f50a4 *./data/a-mp2.mp2
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment