Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
A
aom-rav1e
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Packages & Registries
Packages & Registries
Container Registry
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
Xiph.Org
aom-rav1e
Commits
439b21c2
Commit
439b21c2
authored
Aug 17, 2017
by
Sebastien Alaiwan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Coding path sync test: force picture size
Change-Id: Ib9dd9aaa5240ac7c90f9c276ae8ef9055fcf1fdd
parent
9cde59f0
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
5 deletions
+13
-5
test/coding_path_sync.cc
test/coding_path_sync.cc
+13
-5
No files found.
test/coding_path_sync.cc
View file @
439b21c2
...
...
@@ -37,8 +37,15 @@ class CompressedSource {
cfg
.
rc_end_usage
=
AOM_CQ
;
cfg
.
rc_max_quantizer
=
max_q
;
cfg
.
rc_min_quantizer
=
max_q
;
cfg
.
g_w
=
kWidth
;
cfg
.
g_h
=
kHeight
;
// choose the picture size
{
width_
=
rnd_
.
PseudoUniform
(
kWidth
-
8
)
+
8
;
height_
=
rnd_
.
PseudoUniform
(
kHeight
-
8
)
+
8
;
}
cfg
.
g_w
=
width_
;
cfg
.
g_h
=
height_
;
cfg
.
g_lag_in_frames
=
0
;
aom_codec_enc_init
(
&
enc_
,
algo
,
&
cfg
,
0
);
...
...
@@ -60,7 +67,7 @@ class CompressedSource {
buf
[
i
]
=
(
i
+
phase
)
%
period
<
period
/
2
?
val_a
:
val_b
;
aom_image_t
img
;
aom_img_wrap
(
&
img
,
AOM_IMG_FMT_I420
,
kWidth
,
kHeight
,
0
,
buf
);
aom_img_wrap
(
&
img
,
AOM_IMG_FMT_I420
,
width_
,
height_
,
0
,
buf
);
aom_codec_encode
(
&
enc_
,
&
img
,
frame_count_
++
,
1
,
0
,
0
);
aom_codec_iter_t
iter
=
NULL
;
...
...
@@ -75,12 +82,13 @@ class CompressedSource {
}
private:
static
const
int
kWidth
=
32
;
static
const
int
kHeight
=
32
;
static
const
int
kWidth
=
128
;
static
const
int
kHeight
=
128
;
ACMRandom
rnd_
;
aom_codec_ctx_t
enc_
;
int
frame_count_
;
int
width_
,
height_
;
};
// lowers an aom_image_t to a easily comparable/printable form
...
...
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