Skip to content

Commit

Permalink
tests: add aspect ratio to mpeg test bitstreams
Browse files Browse the repository at this point in the history
  • Loading branch information
philipnbbc committed Apr 22, 2024
1 parent d73b650 commit 5e89ca5
Show file tree
Hide file tree
Showing 55 changed files with 61 additions and 54 deletions.
2 changes: 1 addition & 1 deletion test/ard_zdf_hdf/rdd9_422p_1080i50.md5
Original file line number Diff line number Diff line change
@@ -1 +1 @@
f1aa95aad6519480d2f69c125d47d0bf
bad02518507a654682ec58d3dc1ada3c
2 changes: 1 addition & 1 deletion test/as02/d10_30.md5s
Original file line number Diff line number Diff line change
@@ -1 +1 @@
a5aee1b8f2b960598538702662bfa2cf;ab07fec8c17208d34e0b290dd279f6ac;d8b021e1b8bc3bd3796676b0b5e8f594;16ff89dda611b560eda0739fd90d0214
a5aee1b8f2b960598538702662bfa2cf;d34019490530640eb647b03085843957;d8b021e1b8bc3bd3796676b0b5e8f594;16ff89dda611b560eda0739fd90d0214
2 changes: 1 addition & 1 deletion test/as02/d10_40.md5s
Original file line number Diff line number Diff line change
@@ -1 +1 @@
94046f5c90f3aa07e3385761b8a510ce;51034c94d12ef7b85a6a7f57085531c5;d8b021e1b8bc3bd3796676b0b5e8f594;16ff89dda611b560eda0739fd90d0214
94046f5c90f3aa07e3385761b8a510ce;afb9e0f010a78247378fb75f6d53a0b2;d8b021e1b8bc3bd3796676b0b5e8f594;16ff89dda611b560eda0739fd90d0214
2 changes: 1 addition & 1 deletion test/as02/d10_50.md5s
Original file line number Diff line number Diff line change
@@ -1 +1 @@
6bfa58b2bee4dbff150e4694bed74db6;073c06f920d870b522c46b54a4270461;d8b021e1b8bc3bd3796676b0b5e8f594;16ff89dda611b560eda0739fd90d0214
6bfa58b2bee4dbff150e4694bed74db6;250d42bc12b18d6cfb1d8ddb1d645157;d8b021e1b8bc3bd3796676b0b5e8f594;16ff89dda611b560eda0739fd90d0214
2 changes: 1 addition & 1 deletion test/as02/mpeg2lg_422p_hl_1080i.md5s
Original file line number Diff line number Diff line change
@@ -1 +1 @@
f5f5b68c8e9b06b79ef6e9d961c6751c;3931efc0db1187e141cc76ce9c5ff230;a8714959eca95a9c8abeb2c224a22b6c;893379a98fe760b04e877c53ab2ac983
f5f5b68c8e9b06b79ef6e9d961c6751c;b56113bc316dab3debf6065c85b80a33;a8714959eca95a9c8abeb2c224a22b6c;893379a98fe760b04e877c53ab2ac983
2 changes: 1 addition & 1 deletion test/as02/mpeg2lg_mp_h14_1080i.md5s
Original file line number Diff line number Diff line change
@@ -1 +1 @@
6acaff85d141c4e07453c258cce278dc;936a7cf8e363cf4dd6948d4cb2a55967;a8714959eca95a9c8abeb2c224a22b6c;893379a98fe760b04e877c53ab2ac983
6acaff85d141c4e07453c258cce278dc;deaa06dc046d85562cbdb2e86f6a450d;a8714959eca95a9c8abeb2c224a22b6c;893379a98fe760b04e877c53ab2ac983
2 changes: 1 addition & 1 deletion test/as02/mpeg2lg_mp_hl_1920_1080i.md5s
Original file line number Diff line number Diff line change
@@ -1 +1 @@
bac49a2fd4dbfdffeb549fdfc0de5654;820a339b74d24327b3c6eedd6b9835e0;a8714959eca95a9c8abeb2c224a22b6c;893379a98fe760b04e877c53ab2ac983
bac49a2fd4dbfdffeb549fdfc0de5654;f49125555cdb550e160cdc927522c1e3;a8714959eca95a9c8abeb2c224a22b6c;893379a98fe760b04e877c53ab2ac983
2 changes: 1 addition & 1 deletion test/as10/high_hd_2014_rb.md5
Original file line number Diff line number Diff line change
@@ -1 +1 @@
3a012e270b9af16d148e1e6c3eaa0630
bfed98706a7224560f11e5ebe67db6c4
2 changes: 1 addition & 1 deletion test/as10/high_hd_2014_tw.md5
Original file line number Diff line number Diff line change
@@ -1 +1 @@
2be49778a30d18cb51bd12c74787e0d4
443c68e668852387e2b438e524709554
2 changes: 1 addition & 1 deletion test/as11/d10_50.md5
Original file line number Diff line number Diff line change
@@ -1 +1 @@
8dc6d0146128d45851f307a7ca0a2a95
4774f9d092b7e41f4a7eae85cf87c7ac
2 changes: 1 addition & 1 deletion test/as11/mpeg2lg_422p_hl_1080i.md5
Original file line number Diff line number Diff line change
@@ -1 +1 @@
db7dca43ec4a70f6213b3bac82e95516
1db8d1899b16ff0da6802468e3f66380
2 changes: 1 addition & 1 deletion test/avid_mxf/d10_30.md5s
Original file line number Diff line number Diff line change
@@ -1 +1 @@
6288fa4e85299a7539c8667243aa0f46;8cd5ddceb3e3cc3e38128c11d95d9521;eb9a969918e345f3a813f66029791d60
c75cf21ceb03ada67935a7a2d4566b5f;8cd5ddceb3e3cc3e38128c11d95d9521;eb9a969918e345f3a813f66029791d60
2 changes: 1 addition & 1 deletion test/avid_mxf/d10_40.md5s
Original file line number Diff line number Diff line change
@@ -1 +1 @@
0db2321d67fe4a6b2719dcb2e84bcf1f;8cd5ddceb3e3cc3e38128c11d95d9521;eb9a969918e345f3a813f66029791d60
ea55a386bcac85f86fde36a4eae2aa99;8cd5ddceb3e3cc3e38128c11d95d9521;eb9a969918e345f3a813f66029791d60
2 changes: 1 addition & 1 deletion test/avid_mxf/d10_50.md5s
Original file line number Diff line number Diff line change
@@ -1 +1 @@
4f3bde3a104a7af0487c7bbe09ad0dba;8cd5ddceb3e3cc3e38128c11d95d9521;eb9a969918e345f3a813f66029791d60
3dce2618baab3d4a879a0da44b2d4e99;8cd5ddceb3e3cc3e38128c11d95d9521;eb9a969918e345f3a813f66029791d60
2 changes: 1 addition & 1 deletion test/avid_mxf/mpeg2lg_422p_hl_1080i.md5s
Original file line number Diff line number Diff line change
@@ -1 +1 @@
f189845c35fbe0a69d36b181d85937f9;0ece8877ab256657df705de6a01a8a48;f323a74f1505abc8bf201eeef07e0089
ed79a21d4f918f7164cdf37622f90cf2;0ece8877ab256657df705de6a01a8a48;f323a74f1505abc8bf201eeef07e0089
2 changes: 1 addition & 1 deletion test/avid_mxf/mpeg2lg_mp_h14_1080i.md5s
Original file line number Diff line number Diff line change
@@ -1 +1 @@
d7628e1083ec63520e8f415f07f61556;0ece8877ab256657df705de6a01a8a48;f323a74f1505abc8bf201eeef07e0089
fcc05c86d169936e07d305b6b5cb1b76;0ece8877ab256657df705de6a01a8a48;f323a74f1505abc8bf201eeef07e0089
2 changes: 1 addition & 1 deletion test/avid_mxf/mpeg2lg_mp_hl_1920_1080i.md5s
Original file line number Diff line number Diff line change
@@ -1 +1 @@
fbd8e5365fbd58c4a4908cd2e78319f7;0ece8877ab256657df705de6a01a8a48;f323a74f1505abc8bf201eeef07e0089
13a2b871633f523c2189244409c605cf;0ece8877ab256657df705de6a01a8a48;f323a74f1505abc8bf201eeef07e0089
2 changes: 1 addition & 1 deletion test/bmxtranswrap/d10_50_d10_op1a.md5
Original file line number Diff line number Diff line change
@@ -1 +1 @@
8e1f11662563ea1d0af0ec9b27c1466b
63905d1fe92d72aaa89cbbb62a0bb3dd
2 changes: 1 addition & 1 deletion test/bmxtranswrap/d10_50_op1a_d10.md5
Original file line number Diff line number Diff line change
@@ -1 +1 @@
487ae11fe97e410b7d2fd9e2074947e2
c1881c8a93cb188d265ffbd2d8bb9c9e
7 changes: 7 additions & 0 deletions test/create_test_essence.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,9 @@
#define MPEG_P_FRAME_TYPE 0x02
#define MPEG_B_FRAME_TYPE 0x03

#define MPEG_4_3_ASPECT_RATIO 0x02
#define MPEG_16_9_ASPECT_RATIO 0x03


typedef enum
{
Expand Down Expand Up @@ -128,6 +131,7 @@ typedef struct
uint32_t v_size;
uint32_t temporal_ref;
uint8_t frame_type;
uint8_t aspect_ratio;
} MPEGInfo;


Expand Down Expand Up @@ -226,6 +230,7 @@ static void fill_mpeg_frame(unsigned char *data, uint32_t data_size, const MPEGI
set_offset = 0;
set_mpeg_bits(data, set_offset * 8 + 32, 12, info->h_size);
set_mpeg_bits(data, set_offset * 8 + 44, 12, info->v_size);
set_mpeg_bits(data, set_offset * 8 + 56, 4, info->aspect_ratio);
set_mpeg_bits(data, set_offset * 8 + 64, 18, info->bit_rate);
set_offset += 100;

Expand Down Expand Up @@ -397,6 +402,7 @@ static void write_d10(FILE *file, int type, unsigned int duration)
mpeg_info.low_delay = true;
mpeg_info.h_size = 720;
mpeg_info.v_size = 608;
mpeg_info.aspect_ratio = MPEG_16_9_ASPECT_RATIO;
mpeg_info.frame_type = MPEG_I_FRAME_TYPE;

uint32_t frame_size;
Expand Down Expand Up @@ -430,6 +436,7 @@ static void write_mpeg2lg(FILE *file, int type, unsigned int duration, bool low_
memset(&mpeg_info, 0, sizeof(mpeg_info));
mpeg_info.is_progressive = false;
mpeg_info.low_delay = low_delay;
mpeg_info.aspect_ratio = MPEG_16_9_ASPECT_RATIO;

uint32_t i_frame_size, non_i_frame_size;
switch (type)
Expand Down
2 changes: 1 addition & 1 deletion test/d10_mxf/d10_30_25.md5
Original file line number Diff line number Diff line change
@@ -1 +1 @@
0f70d9f846a2865ec234aee9590be9ff
d40abc3ef4926830de25b684373457a6
2 changes: 1 addition & 1 deletion test/d10_mxf/d10_30_2997.md5
Original file line number Diff line number Diff line change
@@ -1 +1 @@
842e24656f5b69ab085eacc505ddc780
caaf8b0c001c25c67d99b91bbb725556
2 changes: 1 addition & 1 deletion test/d10_mxf/d10_40_25.md5
Original file line number Diff line number Diff line change
@@ -1 +1 @@
afd5f51df4561337c129cb01214acdc4
f3e7466b779d4e502feb01cf401edbee
2 changes: 1 addition & 1 deletion test/d10_mxf/d10_40_2997.md5
Original file line number Diff line number Diff line change
@@ -1 +1 @@
6e62f6adec11065622203c7e75cc2b38
710393a8627ab511866ef1b717a94d05
2 changes: 1 addition & 1 deletion test/d10_mxf/d10_50_25.md5
Original file line number Diff line number Diff line change
@@ -1 +1 @@
348bd11e46867293aafe2a37c840d099
59a2b344b0f36b5352ed2e42f83aa77c
2 changes: 1 addition & 1 deletion test/d10_mxf/d10_50_2997.md5
Original file line number Diff line number Diff line change
@@ -1 +1 @@
23d2a8765e29772fdd6d8b7666053be9
ed67035576138428504035391cefcedf
2 changes: 1 addition & 1 deletion test/growing_file/growing_file.md5
Original file line number Diff line number Diff line change
@@ -1 +1 @@
12c3d2fda3b1efdaf8d34bd4c66aab25
2c0703daa26c571738c6f313cfd2b054
2 changes: 1 addition & 1 deletion test/mxf_op1a/d10_30.md5
Original file line number Diff line number Diff line change
@@ -1 +1 @@
d3ca997e1f0dafbb0b48b5f168cf04a9
f302f15bac0f81333a3412e820486497
2 changes: 1 addition & 1 deletion test/mxf_op1a/d10_40.md5
Original file line number Diff line number Diff line change
@@ -1 +1 @@
cddf59cfecb46e386fcd4d30d8a79004
624a274eb85ea41286db99750c56acb5
2 changes: 1 addition & 1 deletion test/mxf_op1a/d10_50.md5
Original file line number Diff line number Diff line change
@@ -1 +1 @@
30a139d194aad892894694d1c81c2224
bc592918947610c40194b58d30c846ee
2 changes: 1 addition & 1 deletion test/mxf_op1a/index_follows_1.md5
Original file line number Diff line number Diff line change
@@ -1 +1 @@
dec094da2249d5d2c230a75d466dd5c5
72fda05e0f5d4238a4a8e975c4b565f6
2 changes: 1 addition & 1 deletion test/mxf_op1a/index_follows_2.md5
Original file line number Diff line number Diff line change
@@ -1 +1 @@
a284288837ce38a688b8ef609bcc2699
2c9d15dbd7da68160d8e13504c35b319
2 changes: 1 addition & 1 deletion test/mxf_op1a/index_follows_3.md5
Original file line number Diff line number Diff line change
@@ -1 +1 @@
777ec7a85435ebfa198aaa9429f6861a
e103a9f50758d013f67b8751b1aac433
2 changes: 1 addition & 1 deletion test/mxf_op1a/index_follows_4.md5
Original file line number Diff line number Diff line change
@@ -1 +1 @@
6599bfad26801e9560c6efedec0af947
e4af085fc945ec5df7e97e8dcc7e3a01
2 changes: 1 addition & 1 deletion test/mxf_op1a/index_follows_5.md5
Original file line number Diff line number Diff line change
@@ -1 +1 @@
777ec7a85435ebfa198aaa9429f6861a
e103a9f50758d013f67b8751b1aac433
2 changes: 1 addition & 1 deletion test/mxf_op1a/index_follows_6.md5
Original file line number Diff line number Diff line change
@@ -1 +1 @@
dc8371d99c5424ce96589bc1e3f8e6c6
b86ea2222e92ac82175f73b48004efbc
2 changes: 1 addition & 1 deletion test/mxf_op1a/index_follows_7.md5
Original file line number Diff line number Diff line change
@@ -1 +1 @@
2d391b8e6b27aada5d37916c05d9782e
a2deeddf4f5e1ddfd7a8d31523fcc97b
2 changes: 1 addition & 1 deletion test/mxf_op1a/mpeg2lg_422p_hl_1080i.md5
Original file line number Diff line number Diff line change
@@ -1 +1 @@
630823be4c6d9c903b8da1a298b1d10f
09cdd7f55ae7a5a9e55f830e67f93b28
2 changes: 1 addition & 1 deletion test/mxf_op1a/mpeg2lg_mp_h14_1080i.md5
Original file line number Diff line number Diff line change
@@ -1 +1 @@
3bec17dd3a8de62e03722d73dd8ebc35
bf0ccd8fa588cbe76a42378a85286cf5
2 changes: 1 addition & 1 deletion test/mxf_op1a/mpeg2lg_mp_hl_1920_1080i.md5
Original file line number Diff line number Diff line change
@@ -1 +1 @@
c9cd742c8def9bf44c3a9a4490693162
3a5dd760092f2f7ab467154c4a31cb6a
2 changes: 1 addition & 1 deletion test/mxf_reader/d10_30.md5
Original file line number Diff line number Diff line change
@@ -1 +1 @@
66a6d0eafee8f2b8412bc2f68aaa50c6
53a90c516696d61596bbfa392746074d
2 changes: 1 addition & 1 deletion test/mxf_reader/d10_40.md5
Original file line number Diff line number Diff line change
@@ -1 +1 @@
adcd31206c7ab1cac7bbf1ed31ad0f5c
d0bf64ff6c0a66fbef67a61aa88155e9
2 changes: 1 addition & 1 deletion test/mxf_reader/d10_50.md5
Original file line number Diff line number Diff line change
@@ -1 +1 @@
d023a787eb2b9439c5cbaee066df1c42
07ee9e5e3ed7656221a9667deafd2fb9
2 changes: 1 addition & 1 deletion test/mxf_reader/mpeg2lg_422p_hl_1080i.md5
Original file line number Diff line number Diff line change
@@ -1 +1 @@
9f387ed515b552e3f1b8ad1b3381da84
0d1554a328f4a916018635ab967af355
2 changes: 1 addition & 1 deletion test/mxf_reader/mpeg2lg_mp_h14_1080i.md5
Original file line number Diff line number Diff line change
@@ -1 +1 @@
2674fc3828f828852252c874ac0ddd0e
ef98cd8838eb60e50849e68d353785a4
2 changes: 1 addition & 1 deletion test/mxf_reader/mpeg2lg_mp_hl_1920_1080i.md5
Original file line number Diff line number Diff line change
@@ -1 +1 @@
6175704e1963bc41db99500965f55fdf
1cacef08c2b87aee4af1c168cc0abbb5
2 changes: 1 addition & 1 deletion test/partial_audio_frames/test_1.md5
Original file line number Diff line number Diff line change
@@ -1 +1 @@
4d870449d01684165e3adce43131b54f
e690e6456bc4cb571f64f7c378a44ab4
2 changes: 1 addition & 1 deletion test/rdd9_mxf/anc.md5
Original file line number Diff line number Diff line change
@@ -1 +1 @@
67eadd229703fcde2c0af716b6d382c6
656c96cf99c5db2d660ce90d42da6a84
2 changes: 1 addition & 1 deletion test/rdd9_mxf/mpeg2lg_422p_hl_1080i.md5
Original file line number Diff line number Diff line change
@@ -1 +1 @@
c535128e86b517fde8ecd921a999d58a
6fa958a3e1f5d4c3f3b7125b9ac52f36
2 changes: 1 addition & 1 deletion test/rdd9_mxf/mpeg2lg_mp_h14_1080i.md5
Original file line number Diff line number Diff line change
@@ -1 +1 @@
d689024b186730e2970aa2bda0a079f0
977334c3046873972b14cea9a021e7d0
2 changes: 1 addition & 1 deletion test/rdd9_mxf/mpeg2lg_mp_hl_1920_1080i.md5
Original file line number Diff line number Diff line change
@@ -1 +1 @@
e4ab4502092cda8c144a1c737b6766fd
73f621be4d76bbe9036d829c88acb1ea
2 changes: 1 addition & 1 deletion test/rdd9_mxf/vbi.md5
Original file line number Diff line number Diff line change
@@ -1 +1 @@
add7777c7f61a548a7783e9abdf7f071
f512a4d352d6ff171cfab54ffe8aa233
2 changes: 1 addition & 1 deletion test/text_object/test_d10.md5
Original file line number Diff line number Diff line change
@@ -1 +1 @@
dfc72110ac0d02473190d32851d786c1
64233601d21effa449335233bfb30ea3
2 changes: 1 addition & 1 deletion test/text_object/test_rdd9.md5
Original file line number Diff line number Diff line change
@@ -1 +1 @@
9b39da8ec9c68acbb99b34dc971a7703
6915385450fa4432c8f1e1b544c19316
2 changes: 1 addition & 1 deletion test/timed_text/test_7.md5
Original file line number Diff line number Diff line change
@@ -1 +1 @@
f2ee69b86be88ba526259e1b544e460e
0e8548928975514a71e562b7510ac7e8

0 comments on commit 5e89ca5

Please sign in to comment.