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
2693ca52
Commit
2693ca52
authored
Feb 22, 2017
by
Nathan E. Egge
Committed by
Tom Finegan
Mar 09, 2017
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add frame inspection data to the analyzer.
Change-Id: I753b51a1ae9759086198c7433410717296f61c20
parent
4d2af5db
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
26 additions
and
6 deletions
+26
-6
configure
configure
+5
-5
examples/analyzer.cc
examples/analyzer.cc
+21
-1
No files found.
configure
View file @
2693ca52
...
@@ -498,13 +498,13 @@ post_process_cmdline() {
...
@@ -498,13 +498,13 @@ post_process_cmdline() {
log_echo
"disabling tile_groups"
log_echo
"disabling tile_groups"
disable_feature tile_groups
disable_feature tile_groups
fi
fi
# Enable accounting and inspection when building the analyzer
if
enabled analyzer
;
then
soft_enable accounting
soft_enable inspection
fi
}
}
# Enable accounting if building the analyzer
enabled analyzer
&&
soft_enable accounting
process_targets
()
{
process_targets
()
{
enabled child
||
write_common_config_banner
enabled child
||
write_common_config_banner
write_common_target_config_h
${
BUILD_PFX
}
aom_config.h
write_common_target_config_h
${
BUILD_PFX
}
aom_config.h
...
...
examples/analyzer.cc
View file @
2693ca52
...
@@ -18,6 +18,7 @@
...
@@ -18,6 +18,7 @@
#include "aom/aomdx.h"
#include "aom/aomdx.h"
#include "av1/common/accounting.h"
#include "av1/common/accounting.h"
#include "av1/common/onyxc_int.h"
#include "av1/common/onyxc_int.h"
#include "av1/decoder/inspection.h"
#define OD_SIGNMASK(a) (-((a) < 0))
#define OD_SIGNMASK(a) (-((a) < 0))
#define OD_FLIPSIGNI(a, b) (((a) + OD_SIGNMASK(b)) ^ OD_SIGNMASK(b))
#define OD_FLIPSIGNI(a, b) (((a) + OD_SIGNMASK(b)) ^ OD_SIGNMASK(b))
...
@@ -39,6 +40,8 @@ class AV1Decoder {
...
@@ -39,6 +40,8 @@ class AV1Decoder {
const
AvxVideoInfo
*
info
;
const
AvxVideoInfo
*
info
;
const
AvxInterface
*
decoder
;
const
AvxInterface
*
decoder
;
insp_frame_data
frame_data
;
aom_codec_ctx_t
codec
;
aom_codec_ctx_t
codec
;
public:
public:
...
@@ -57,8 +60,10 @@ class AV1Decoder {
...
@@ -57,8 +60,10 @@ class AV1Decoder {
int
getWidth
()
const
;
int
getWidth
()
const
;
int
getHeight
()
const
;
int
getHeight
()
const
;
bool
setAccountingEnabled
(
bool
enable
);
bool
getAccountingStruct
(
Accounting
**
acct
);
bool
getAccountingStruct
(
Accounting
**
acct
);
bool
setInspectionCallback
();
static
void
inspect
(
void
*
decoder
,
void
*
data
);
};
};
AV1Decoder
::
AV1Decoder
()
AV1Decoder
::
AV1Decoder
()
...
@@ -84,6 +89,8 @@ bool AV1Decoder::open(const wxString &path) {
...
@@ -84,6 +89,8 @@ bool AV1Decoder::open(const wxString &path) {
fprintf
(
stderr
,
"Failed to initialize decoder."
);
fprintf
(
stderr
,
"Failed to initialize decoder."
);
return
false
;
return
false
;
}
}
ifd_init
(
&
frame_data
,
info
->
frame_width
,
info
->
frame_height
);
setInspectionCallback
();
return
true
;
return
true
;
}
}
...
@@ -119,6 +126,19 @@ bool AV1Decoder::getAccountingStruct(Accounting **accounting) {
...
@@ -119,6 +126,19 @@ bool AV1Decoder::getAccountingStruct(Accounting **accounting) {
AOM_CODEC_OK
;
AOM_CODEC_OK
;
}
}
bool
AV1Decoder
::
setInspectionCallback
()
{
aom_inspect_init
ii
;
ii
.
inspect_cb
=
AV1Decoder
::
inspect
;
ii
.
inspect_ctx
=
(
void
*
)
this
;
return
aom_codec_control
(
&
codec
,
AV1_SET_INSPECTION_CALLBACK
,
&
ii
)
==
AOM_CODEC_OK
;
}
void
AV1Decoder
::
inspect
(
void
*
pbi
,
void
*
data
)
{
AV1Decoder
*
decoder
=
(
AV1Decoder
*
)
data
;
ifd_inspect
(
&
decoder
->
frame_data
,
pbi
);
}
#define MIN_ZOOM (1)
#define MIN_ZOOM (1)
#define MAX_ZOOM (4)
#define MAX_ZOOM (4)
...
...
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