Skip to content

Commit 2ca376c

Browse files
Merge pull request #116 from jwcullen/add_is_valid_to_decode
V1.0.0-errata updates.
2 parents 98b38f9 + 1961a67 commit 2ca376c

File tree

201 files changed

+1147
-199
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

201 files changed

+1147
-199
lines changed

proto/codec_config.proto

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@ message AacDecoderConfig {
9999
optional uint32 object_type_indication = 1 [default = 0x40];
100100
optional uint32 stream_type = 2 [default = 5];
101101
optional bool upstream = 3 [default = false];
102-
optional bool reserved = 4;
102+
optional bool reserved = 4 [default = true]; // As per ISO 14496-1:2010.
103103
optional uint32 buffer_size_db = 5;
104104
optional uint32 max_bitrate = 6;
105105
optional uint32 average_bit_rate = 7;

proto/test_vector_metadata.proto

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,9 +32,29 @@ message TestVectorMetadata {
3232
// Prefix of the output file names. Leave empty to skip writing to output
3333
// files.
3434
optional string file_name_prefix = 2;
35+
36+
// TODO(b/269708630): Rename `is_valid` to `is_valid_to_encode`.
37+
// `true` when all mixes are valid to encode. Mixes may be invalid if they
38+
// contain any mixes that use certain reserved values, or if they exercise any
39+
// features which are not supported by the encoder.
3540
optional bool is_valid = 3;
41+
// `true` when a compliant decoder would decode at least one valid mix. Some
42+
// other mixes may be invalid or use reserved values which may be ignored.
43+
optional bool is_valid_to_decode = 14 [default = true];
3644
optional string mp4_fixed_timestamp = 4;
3745
reserved 5;
46+
// Tags to identify the repository this test vector belongs to. A repository
47+
// could be a git branch or it could refer to some other way to organize a
48+
// test suite.
49+
//
50+
// Some canonical tags are used to identify which GitHub branch(es) the test
51+
// vector should be synchronized with.
52+
//
53+
// `github/aomediacodec/libiamf/main`: Used on the `main` branch of
54+
// https://github.com/AOMediaCodec/libiamf
55+
// `github/aomediacodec/libiamf/v1.0.0-errata`: Used on the `v1.0.0-errata`
56+
// branch of https://github.com/AOMediaCodec/libiamf
57+
repeated string test_repository_tags = 15;
3858
repeated string primary_tested_spec_sections = 6;
3959
optional string base_test = 7;
4060
optional int32 ms_per_fragment = 8 [default = 10000];

tests/README.md

Lines changed: 11 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,10 +13,18 @@ several files associated with it.
1313

1414
## .textproto files
1515

16-
These file describe metadata about the test vector.
16+
Theses file describe metadata about the test vector to encode an
17+
[IA Sequence](https://aomediacodec.github.io/iamf/#standalone-ia-sequence).
1718

18-
- `is_valid`: True for conformant bitstreams ("should-pass"). False for
19-
non-conformant bitstreams ("should-fail").
19+
- `is_valid`: True when the encoder can produce an IA Sequence where all mixes
20+
would be understood by a compliant decoder. False when one or more mixes
21+
exercise fields or features which would cause mixes to be ignored.
22+
- `is_valid_to_decode`: True when an IAMF-compliant decoder could decode at
23+
least one mix of the associated IA Sequence ("should-pass"). False when all
24+
mixes are non-conformant and may fail to be decoded ("should-fail"). The
25+
IAMF spec does not specify what happens when requirements are violated; a
26+
robust system may still attempt to process and create output for
27+
"should-fail" tests.
2028
- `human_readable_descriptions`: A short description of what is being tested
2129
and why.
2230
- `mp4_fixed_timestamp`: The timestamp within the MP4 file. Can be safely

tests/test_000000_3.textproto

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,13 @@ test_vector_metadata {
1818
"not have sufficient `num_samples_to_trim_at_end`."
1919
file_name_prefix: "test_000000_3"
2020
is_valid: false
21+
is_valid_to_decode: false
2122
validate_user_loudness: true
2223
mp4_fixed_timestamp: "2023-04-06 00:00:00"
24+
test_repository_tags: [
25+
"github/aomediacodec/libiamf/main",
26+
"github/aomediacodec/libiamf/v1.0.0-errata"
27+
]
2328
primary_tested_spec_sections: [
2429
"3.2/num_samples_to_trim_at_end",
2530
"3.4/IA Sequence Header OBU Syntax and Semantics",

tests/test_000002.textproto

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,13 @@ test_vector_metadata {
1717
"added."
1818
file_name_prefix: "test_000002"
1919
is_valid: true
20+
is_valid_to_decode: true
2021
validate_user_loudness: true
2122
mp4_fixed_timestamp: "2023-04-19 00:00:00"
23+
test_repository_tags: [
24+
"github/aomediacodec/libiamf/main",
25+
"github/aomediacodec/libiamf/v1.0.0-errata"
26+
]
2227
primary_tested_spec_sections: [
2328
"3.8/Parameter Block OBU Syntax and Semantics",
2429
"3.8.1/animation_type == STEP",

tests/test_000003.textproto

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,13 @@ test_vector_metadata {
1717
"parameter blocks."
1818
file_name_prefix: "test_000003"
1919
is_valid: true
20+
is_valid_to_decode: true
2021
validate_user_loudness: true
2122
mp4_fixed_timestamp: "2023-04-19 00:00:00"
23+
test_repository_tags: [
24+
"github/aomediacodec/libiamf/main",
25+
"github/aomediacodec/libiamf/v1.0.0-errata"
26+
]
2227
primary_tested_spec_sections: [
2328
"3.2/num_samples_to_trim_at_end",
2429
"3.6.2/num_layers",

tests/test_000005.textproto

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,13 @@ test_vector_metadata {
1717
"trimming."
1818
file_name_prefix: "test_000005"
1919
is_valid: true
20+
is_valid_to_decode: true
2021
validate_user_loudness: true
2122
mp4_fixed_timestamp: "2023-04-19 00:00:00"
23+
test_repository_tags: [
24+
"github/aomediacodec/libiamf/main",
25+
"github/aomediacodec/libiamf/v1.0.0-errata"
26+
]
2227
primary_tested_spec_sections: ["3.2/num_samples_to_trim_at_end"]
2328
base_test: "test_000002"
2429
}

tests/test_000006.textproto

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,13 @@ test_vector_metadata {
1717
"delimiters."
1818
file_name_prefix: "test_000006"
1919
is_valid: true
20+
is_valid_to_decode: true
2021
validate_user_loudness: true
2122
mp4_fixed_timestamp: "2023-04-19 00:00:00"
23+
test_repository_tags: [
24+
"github/aomediacodec/libiamf/main",
25+
"github/aomediacodec/libiamf/v1.0.0-errata"
26+
]
2227
primary_tested_spec_sections: [
2328
"3.4/IA Sequence Header OBU Syntax and Semantics",
2429
"3.10/Codec Specific",

tests/test_000007.textproto

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,13 @@ test_vector_metadata {
1717
"case-sensitive and should be lowercase."
1818
file_name_prefix: "test_000007"
1919
is_valid: false
20+
is_valid_to_decode: false
2021
validate_user_loudness: true
2122
mp4_fixed_timestamp: "2023-04-19 00:00:00"
23+
test_repository_tags: [
24+
"github/aomediacodec/libiamf/main",
25+
"github/aomediacodec/libiamf/v1.0.0-errata"
26+
]
2227
primary_tested_spec_sections: ["3.4/ia_code"]
2328
base_test: "test_000005"
2429
}

tests/test_000012.textproto

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,13 @@ test_vector_metadata {
1717
"input wav file to make it shorter."
1818
file_name_prefix: "test_000012"
1919
is_valid: true
20+
is_valid_to_decode: true
2021
validate_user_loudness: true
2122
mp4_fixed_timestamp: "2023-04-19 00:00:00"
23+
test_repository_tags: [
24+
"github/aomediacodec/libiamf/main",
25+
"github/aomediacodec/libiamf/v1.0.0-errata"
26+
]
2227
primary_tested_spec_sections: ["3.2/num_samples_to_trim_at_end"]
2328
base_test: "test_000005"
2429
}

0 commit comments

Comments
 (0)