diff options
author | Paul Kocialkowski <paul.kocialkowski@bootlin.com> | 2018-04-21 14:17:29 +0200 |
---|---|---|
committer | Paul Kocialkowski <paul.kocialkowski@bootlin.com> | 2018-04-21 14:18:44 +0200 |
commit | c0110edab04b5283aaaf2eca07b8af61a32e192b (patch) | |
tree | f0271cb74442f79f90f2cee44d72bdd369864130 /data | |
download | v4l2-request-test-c0110edab04b5283aaaf2eca07b8af61a32e192b.tar.gz v4l2-request-test-c0110edab04b5283aaaf2eca07b8af61a32e192b.tar.bz2 v4l2-request-test-c0110edab04b5283aaaf2eca07b8af61a32e192b.zip |
Initial cedrus-frame-test commit, a tool to test the Sunxi-Cedrus driver
This standalone tool is designed to help with development and testing of
the Sunxi-Cedrus VPU driver, that supports the Video Engine found on
most Allwinner SoCs.
It currently supports decoding MPEG2 frames from their slice data
(stored as files) and associated metadata, as well as displaying the
decoded frames through a dedicated DRM plane, using the sun4i-drm display
driver.
The behavior of the tool can be configured through command line
arguments, that are precised by the its usage help.
A single preset is shipped with cedrus-frame-test at this point, that
contains the first second of video from the Linaro Big Buck Bunny MPEG2
video sample.
Signed-off-by: Paul Kocialkowski <paul.kocialkowski@bootlin.com>
Diffstat (limited to 'data')
-rw-r--r-- | data/bbb-mpeg2/frames.h | 500 | ||||
-rw-r--r-- | data/bbb-mpeg2/slice-0.dump | bin | 0 -> 40286 bytes | |||
-rw-r--r-- | data/bbb-mpeg2/slice-1.dump | bin | 0 -> 7193 bytes | |||
-rw-r--r-- | data/bbb-mpeg2/slice-10.dump | bin | 0 -> 1517 bytes | |||
-rw-r--r-- | data/bbb-mpeg2/slice-11.dump | bin | 0 -> 1358 bytes | |||
-rw-r--r-- | data/bbb-mpeg2/slice-12.dump | bin | 0 -> 1247 bytes | |||
-rw-r--r-- | data/bbb-mpeg2/slice-13.dump | bin | 0 -> 1122 bytes | |||
-rw-r--r-- | data/bbb-mpeg2/slice-14.dump | bin | 0 -> 61103 bytes | |||
-rw-r--r-- | data/bbb-mpeg2/slice-15.dump | bin | 0 -> 58901 bytes | |||
-rw-r--r-- | data/bbb-mpeg2/slice-16.dump | bin | 0 -> 10295 bytes | |||
-rw-r--r-- | data/bbb-mpeg2/slice-17.dump | bin | 0 -> 4468 bytes | |||
-rw-r--r-- | data/bbb-mpeg2/slice-18.dump | bin | 0 -> 7510 bytes | |||
-rw-r--r-- | data/bbb-mpeg2/slice-19.dump | bin | 0 -> 4860 bytes | |||
-rw-r--r-- | data/bbb-mpeg2/slice-2.dump | bin | 0 -> 26746 bytes | |||
-rw-r--r-- | data/bbb-mpeg2/slice-20.dump | bin | 0 -> 8580 bytes | |||
-rw-r--r-- | data/bbb-mpeg2/slice-21.dump | bin | 0 -> 7196 bytes | |||
-rw-r--r-- | data/bbb-mpeg2/slice-22.dump | bin | 0 -> 8544 bytes | |||
-rw-r--r-- | data/bbb-mpeg2/slice-23.dump | bin | 0 -> 11049 bytes | |||
-rw-r--r-- | data/bbb-mpeg2/slice-24.dump | bin | 0 -> 8392 bytes | |||
-rw-r--r-- | data/bbb-mpeg2/slice-3.dump | bin | 0 -> 3161 bytes | |||
-rw-r--r-- | data/bbb-mpeg2/slice-4.dump | bin | 0 -> 2036 bytes | |||
-rw-r--r-- | data/bbb-mpeg2/slice-5.dump | bin | 0 -> 1729 bytes | |||
-rw-r--r-- | data/bbb-mpeg2/slice-6.dump | bin | 0 -> 1904 bytes | |||
-rw-r--r-- | data/bbb-mpeg2/slice-7.dump | bin | 0 -> 1925 bytes | |||
-rw-r--r-- | data/bbb-mpeg2/slice-8.dump | bin | 0 -> 1717 bytes | |||
-rw-r--r-- | data/bbb-mpeg2/slice-9.dump | bin | 0 -> 1761 bytes |
26 files changed, 500 insertions, 0 deletions
diff --git a/data/bbb-mpeg2/frames.h b/data/bbb-mpeg2/frames.h new file mode 100644 index 0000000..aab8b21 --- /dev/null +++ b/data/bbb-mpeg2/frames.h @@ -0,0 +1,500 @@ + { + .index = 0, + .header = { + .picture_coding_type = PCT_I, + .f_code[0][0] = 15, + .f_code[0][1] = 15, + .f_code[1][0] = 15, + .f_code[1][1] = 15, + .intra_dc_precision = 0, + .picture_structure = 3, + .top_field_first = 0, + .frame_pred_frame_dct = 1, + .concealment_motion_vectors = 0, + .q_scale_type = 0, + .intra_vlc_format = 0, + .alternate_scan = 0, + .forward_index = 0, + .backward_index = 0, + }, + }, + { + .index = 1, + .header = { + .picture_coding_type = PCT_P, + .f_code[0][0] = 1, + .f_code[0][1] = 1, + .f_code[1][0] = 15, + .f_code[1][1] = 15, + .intra_dc_precision = 0, + .picture_structure = 3, + .top_field_first = 0, + .frame_pred_frame_dct = 1, + .concealment_motion_vectors = 0, + .q_scale_type = 0, + .intra_vlc_format = 0, + .alternate_scan = 0, + .forward_index = 0, + .backward_index = 1, + }, + }, + { + .index = 2, + .header = { + .picture_coding_type = PCT_P, + .f_code[0][0] = 1, + .f_code[0][1] = 1, + .f_code[1][0] = 15, + .f_code[1][1] = 15, + .intra_dc_precision = 0, + .picture_structure = 3, + .top_field_first = 0, + .frame_pred_frame_dct = 1, + .concealment_motion_vectors = 0, + .q_scale_type = 0, + .intra_vlc_format = 0, + .alternate_scan = 0, + .forward_index = 1, + .backward_index = 2, + }, + }, + { + .index = 3, + .header = { + .picture_coding_type = PCT_P, + .f_code[0][0] = 1, + .f_code[0][1] = 1, + .f_code[1][0] = 15, + .f_code[1][1] = 15, + .intra_dc_precision = 0, + .picture_structure = 3, + .top_field_first = 0, + .frame_pred_frame_dct = 1, + .concealment_motion_vectors = 0, + .q_scale_type = 0, + .intra_vlc_format = 0, + .alternate_scan = 0, + .forward_index = 2, + .backward_index = 3, + }, + }, + { + .index = 4, + .header = { + .picture_coding_type = PCT_P, + .f_code[0][0] = 1, + .f_code[0][1] = 1, + .f_code[1][0] = 15, + .f_code[1][1] = 15, + .intra_dc_precision = 0, + .picture_structure = 3, + .top_field_first = 0, + .frame_pred_frame_dct = 1, + .concealment_motion_vectors = 0, + .q_scale_type = 0, + .intra_vlc_format = 0, + .alternate_scan = 0, + .forward_index = 3, + .backward_index = 4, + }, + }, + { + .index = 5, + .header = { + .picture_coding_type = PCT_P, + .f_code[0][0] = 1, + .f_code[0][1] = 1, + .f_code[1][0] = 15, + .f_code[1][1] = 15, + .intra_dc_precision = 0, + .picture_structure = 3, + .top_field_first = 0, + .frame_pred_frame_dct = 1, + .concealment_motion_vectors = 0, + .q_scale_type = 0, + .intra_vlc_format = 0, + .alternate_scan = 0, + .forward_index = 4, + .backward_index = 5, + }, + }, + { + .index = 6, + .header = { + .picture_coding_type = PCT_P, + .f_code[0][0] = 1, + .f_code[0][1] = 1, + .f_code[1][0] = 15, + .f_code[1][1] = 15, + .intra_dc_precision = 0, + .picture_structure = 3, + .top_field_first = 0, + .frame_pred_frame_dct = 1, + .concealment_motion_vectors = 0, + .q_scale_type = 0, + .intra_vlc_format = 0, + .alternate_scan = 0, + .forward_index = 5, + .backward_index = 6, + }, + }, + { + .index = 7, + .header = { + .picture_coding_type = PCT_P, + .f_code[0][0] = 1, + .f_code[0][1] = 1, + .f_code[1][0] = 15, + .f_code[1][1] = 15, + .intra_dc_precision = 0, + .picture_structure = 3, + .top_field_first = 0, + .frame_pred_frame_dct = 1, + .concealment_motion_vectors = 0, + .q_scale_type = 0, + .intra_vlc_format = 0, + .alternate_scan = 0, + .forward_index = 6, + .backward_index = 7, + }, + }, + { + .index = 8, + .header = { + .picture_coding_type = PCT_P, + .f_code[0][0] = 1, + .f_code[0][1] = 1, + .f_code[1][0] = 15, + .f_code[1][1] = 15, + .intra_dc_precision = 0, + .picture_structure = 3, + .top_field_first = 0, + .frame_pred_frame_dct = 1, + .concealment_motion_vectors = 0, + .q_scale_type = 0, + .intra_vlc_format = 0, + .alternate_scan = 0, + .forward_index = 7, + .backward_index = 8, + }, + }, + { + .index = 9, + .header = { + .picture_coding_type = PCT_P, + .f_code[0][0] = 1, + .f_code[0][1] = 1, + .f_code[1][0] = 15, + .f_code[1][1] = 15, + .intra_dc_precision = 0, + .picture_structure = 3, + .top_field_first = 0, + .frame_pred_frame_dct = 1, + .concealment_motion_vectors = 0, + .q_scale_type = 0, + .intra_vlc_format = 0, + .alternate_scan = 0, + .forward_index = 8, + .backward_index = 9, + }, + }, + { + .index = 10, + .header = { + .picture_coding_type = PCT_P, + .f_code[0][0] = 1, + .f_code[0][1] = 1, + .f_code[1][0] = 15, + .f_code[1][1] = 15, + .intra_dc_precision = 0, + .picture_structure = 3, + .top_field_first = 0, + .frame_pred_frame_dct = 1, + .concealment_motion_vectors = 0, + .q_scale_type = 0, + .intra_vlc_format = 0, + .alternate_scan = 0, + .forward_index = 9, + .backward_index = 10, + }, + }, + { + .index = 11, + .header = { + .picture_coding_type = PCT_P, + .f_code[0][0] = 1, + .f_code[0][1] = 1, + .f_code[1][0] = 15, + .f_code[1][1] = 15, + .intra_dc_precision = 0, + .picture_structure = 3, + .top_field_first = 0, + .frame_pred_frame_dct = 1, + .concealment_motion_vectors = 0, + .q_scale_type = 0, + .intra_vlc_format = 0, + .alternate_scan = 0, + .forward_index = 10, + .backward_index = 11, + }, + }, + { + .index = 12, + .header = { + .picture_coding_type = PCT_P, + .f_code[0][0] = 1, + .f_code[0][1] = 1, + .f_code[1][0] = 15, + .f_code[1][1] = 15, + .intra_dc_precision = 0, + .picture_structure = 3, + .top_field_first = 0, + .frame_pred_frame_dct = 1, + .concealment_motion_vectors = 0, + .q_scale_type = 0, + .intra_vlc_format = 0, + .alternate_scan = 0, + .forward_index = 11, + .backward_index = 12, + }, + }, + { + .index = 13, + .header = { + .picture_coding_type = PCT_P, + .f_code[0][0] = 1, + .f_code[0][1] = 1, + .f_code[1][0] = 15, + .f_code[1][1] = 15, + .intra_dc_precision = 0, + .picture_structure = 3, + .top_field_first = 0, + .frame_pred_frame_dct = 1, + .concealment_motion_vectors = 0, + .q_scale_type = 0, + .intra_vlc_format = 0, + .alternate_scan = 0, + .forward_index = 12, + .backward_index = 13, + }, + }, + { + .index = 14, + .header = { + .picture_coding_type = PCT_P, + .f_code[0][0] = 7, + .f_code[0][1] = 7, + .f_code[1][0] = 15, + .f_code[1][1] = 15, + .intra_dc_precision = 0, + .picture_structure = 3, + .top_field_first = 0, + .frame_pred_frame_dct = 1, + .concealment_motion_vectors = 0, + .q_scale_type = 0, + .intra_vlc_format = 0, + .alternate_scan = 0, + .forward_index = 13, + .backward_index = 14, + }, + }, + { + .index = 15, + .header = { + .picture_coding_type = PCT_I, + .f_code[0][0] = 15, + .f_code[0][1] = 15, + .f_code[1][0] = 15, + .f_code[1][1] = 15, + .intra_dc_precision = 0, + .picture_structure = 3, + .top_field_first = 0, + .frame_pred_frame_dct = 1, + .concealment_motion_vectors = 0, + .q_scale_type = 0, + .intra_vlc_format = 0, + .alternate_scan = 0, + .forward_index = 15, + .backward_index = 15, + }, + }, + { + .index = 16, + .header = { + .picture_coding_type = PCT_P, + .f_code[0][0] = 1, + .f_code[0][1] = 1, + .f_code[1][0] = 15, + .f_code[1][1] = 15, + .intra_dc_precision = 0, + .picture_structure = 3, + .top_field_first = 0, + .frame_pred_frame_dct = 1, + .concealment_motion_vectors = 0, + .q_scale_type = 0, + .intra_vlc_format = 0, + .alternate_scan = 0, + .forward_index = 15, + .backward_index = 16, + }, + }, + { + .index = 17, + .header = { + .picture_coding_type = PCT_P, + .f_code[0][0] = 1, + .f_code[0][1] = 1, + .f_code[1][0] = 15, + .f_code[1][1] = 15, + .intra_dc_precision = 0, + .picture_structure = 3, + .top_field_first = 0, + .frame_pred_frame_dct = 1, + .concealment_motion_vectors = 0, + .q_scale_type = 0, + .intra_vlc_format = 0, + .alternate_scan = 0, + .forward_index = 16, + .backward_index = 17, + }, + }, + { + .index = 18, + .header = { + .picture_coding_type = PCT_P, + .f_code[0][0] = 1, + .f_code[0][1] = 1, + .f_code[1][0] = 15, + .f_code[1][1] = 15, + .intra_dc_precision = 0, + .picture_structure = 3, + .top_field_first = 0, + .frame_pred_frame_dct = 1, + .concealment_motion_vectors = 0, + .q_scale_type = 0, + .intra_vlc_format = 0, + .alternate_scan = 0, + .forward_index = 17, + .backward_index = 18, + }, + }, + { + .index = 19, + .header = { + .picture_coding_type = PCT_P, + .f_code[0][0] = 1, + .f_code[0][1] = 1, + .f_code[1][0] = 15, + .f_code[1][1] = 15, + .intra_dc_precision = 0, + .picture_structure = 3, + .top_field_first = 0, + .frame_pred_frame_dct = 1, + .concealment_motion_vectors = 0, + .q_scale_type = 0, + .intra_vlc_format = 0, + .alternate_scan = 0, + .forward_index = 18, + .backward_index = 19, + }, + }, + { + .index = 20, + .header = { + .picture_coding_type = PCT_P, + .f_code[0][0] = 1, + .f_code[0][1] = 1, + .f_code[1][0] = 15, + .f_code[1][1] = 15, + .intra_dc_precision = 0, + .picture_structure = 3, + .top_field_first = 0, + .frame_pred_frame_dct = 1, + .concealment_motion_vectors = 0, + .q_scale_type = 0, + .intra_vlc_format = 0, + .alternate_scan = 0, + .forward_index = 19, + .backward_index = 20, + }, + }, + { + .index = 21, + .header = { + .picture_coding_type = PCT_P, + .f_code[0][0] = 1, + .f_code[0][1] = 1, + .f_code[1][0] = 15, + .f_code[1][1] = 15, + .intra_dc_precision = 0, + .picture_structure = 3, + .top_field_first = 0, + .frame_pred_frame_dct = 1, + .concealment_motion_vectors = 0, + .q_scale_type = 0, + .intra_vlc_format = 0, + .alternate_scan = 0, + .forward_index = 20, + .backward_index = 21, + }, + }, + { + .index = 22, + .header = { + .picture_coding_type = PCT_P, + .f_code[0][0] = 1, + .f_code[0][1] = 1, + .f_code[1][0] = 15, + .f_code[1][1] = 15, + .intra_dc_precision = 0, + .picture_structure = 3, + .top_field_first = 0, + .frame_pred_frame_dct = 1, + .concealment_motion_vectors = 0, + .q_scale_type = 0, + .intra_vlc_format = 0, + .alternate_scan = 0, + .forward_index = 21, + .backward_index = 22, + }, + }, + { + .index = 23, + .header = { + .picture_coding_type = PCT_P, + .f_code[0][0] = 1, + .f_code[0][1] = 1, + .f_code[1][0] = 15, + .f_code[1][1] = 15, + .intra_dc_precision = 0, + .picture_structure = 3, + .top_field_first = 0, + .frame_pred_frame_dct = 1, + .concealment_motion_vectors = 0, + .q_scale_type = 0, + .intra_vlc_format = 0, + .alternate_scan = 0, + .forward_index = 22, + .backward_index = 23, + }, + }, + { + .index = 24, + .header = { + .picture_coding_type = PCT_P, + .f_code[0][0] = 1, + .f_code[0][1] = 1, + .f_code[1][0] = 15, + .f_code[1][1] = 15, + .intra_dc_precision = 0, + .picture_structure = 3, + .top_field_first = 0, + .frame_pred_frame_dct = 1, + .concealment_motion_vectors = 0, + .q_scale_type = 0, + .intra_vlc_format = 0, + .alternate_scan = 0, + .forward_index = 23, + .backward_index = 24, + }, + }, diff --git a/data/bbb-mpeg2/slice-0.dump b/data/bbb-mpeg2/slice-0.dump Binary files differnew file mode 100644 index 0000000..9ac4aaa --- /dev/null +++ b/data/bbb-mpeg2/slice-0.dump diff --git a/data/bbb-mpeg2/slice-1.dump b/data/bbb-mpeg2/slice-1.dump Binary files differnew file mode 100644 index 0000000..7f5add4 --- /dev/null +++ b/data/bbb-mpeg2/slice-1.dump diff --git a/data/bbb-mpeg2/slice-10.dump b/data/bbb-mpeg2/slice-10.dump Binary files differnew file mode 100644 index 0000000..97e7187 --- /dev/null +++ b/data/bbb-mpeg2/slice-10.dump diff --git a/data/bbb-mpeg2/slice-11.dump b/data/bbb-mpeg2/slice-11.dump Binary files differnew file mode 100644 index 0000000..e3b72f9 --- /dev/null +++ b/data/bbb-mpeg2/slice-11.dump diff --git a/data/bbb-mpeg2/slice-12.dump b/data/bbb-mpeg2/slice-12.dump Binary files differnew file mode 100644 index 0000000..cd7a8b7 --- /dev/null +++ b/data/bbb-mpeg2/slice-12.dump diff --git a/data/bbb-mpeg2/slice-13.dump b/data/bbb-mpeg2/slice-13.dump Binary files differnew file mode 100644 index 0000000..b77e164 --- /dev/null +++ b/data/bbb-mpeg2/slice-13.dump diff --git a/data/bbb-mpeg2/slice-14.dump b/data/bbb-mpeg2/slice-14.dump Binary files differnew file mode 100644 index 0000000..b54ccca --- /dev/null +++ b/data/bbb-mpeg2/slice-14.dump diff --git a/data/bbb-mpeg2/slice-15.dump b/data/bbb-mpeg2/slice-15.dump Binary files differnew file mode 100644 index 0000000..613c5ac --- /dev/null +++ b/data/bbb-mpeg2/slice-15.dump diff --git a/data/bbb-mpeg2/slice-16.dump b/data/bbb-mpeg2/slice-16.dump Binary files differnew file mode 100644 index 0000000..cf61cda --- /dev/null +++ b/data/bbb-mpeg2/slice-16.dump diff --git a/data/bbb-mpeg2/slice-17.dump b/data/bbb-mpeg2/slice-17.dump Binary files differnew file mode 100644 index 0000000..3b7036a --- /dev/null +++ b/data/bbb-mpeg2/slice-17.dump diff --git a/data/bbb-mpeg2/slice-18.dump b/data/bbb-mpeg2/slice-18.dump Binary files differnew file mode 100644 index 0000000..511820b --- /dev/null +++ b/data/bbb-mpeg2/slice-18.dump diff --git a/data/bbb-mpeg2/slice-19.dump b/data/bbb-mpeg2/slice-19.dump Binary files differnew file mode 100644 index 0000000..3f19e94 --- /dev/null +++ b/data/bbb-mpeg2/slice-19.dump diff --git a/data/bbb-mpeg2/slice-2.dump b/data/bbb-mpeg2/slice-2.dump Binary files differnew file mode 100644 index 0000000..6b6ca72 --- /dev/null +++ b/data/bbb-mpeg2/slice-2.dump diff --git a/data/bbb-mpeg2/slice-20.dump b/data/bbb-mpeg2/slice-20.dump Binary files differnew file mode 100644 index 0000000..c258285 --- /dev/null +++ b/data/bbb-mpeg2/slice-20.dump diff --git a/data/bbb-mpeg2/slice-21.dump b/data/bbb-mpeg2/slice-21.dump Binary files differnew file mode 100644 index 0000000..a50c14a --- /dev/null +++ b/data/bbb-mpeg2/slice-21.dump diff --git a/data/bbb-mpeg2/slice-22.dump b/data/bbb-mpeg2/slice-22.dump Binary files differnew file mode 100644 index 0000000..1db4485 --- /dev/null +++ b/data/bbb-mpeg2/slice-22.dump diff --git a/data/bbb-mpeg2/slice-23.dump b/data/bbb-mpeg2/slice-23.dump Binary files differnew file mode 100644 index 0000000..517d94c --- /dev/null +++ b/data/bbb-mpeg2/slice-23.dump diff --git a/data/bbb-mpeg2/slice-24.dump b/data/bbb-mpeg2/slice-24.dump Binary files differnew file mode 100644 index 0000000..43e06ef --- /dev/null +++ b/data/bbb-mpeg2/slice-24.dump diff --git a/data/bbb-mpeg2/slice-3.dump b/data/bbb-mpeg2/slice-3.dump Binary files differnew file mode 100644 index 0000000..19000e7 --- /dev/null +++ b/data/bbb-mpeg2/slice-3.dump diff --git a/data/bbb-mpeg2/slice-4.dump b/data/bbb-mpeg2/slice-4.dump Binary files differnew file mode 100644 index 0000000..81e884c --- /dev/null +++ b/data/bbb-mpeg2/slice-4.dump diff --git a/data/bbb-mpeg2/slice-5.dump b/data/bbb-mpeg2/slice-5.dump Binary files differnew file mode 100644 index 0000000..35cec2f --- /dev/null +++ b/data/bbb-mpeg2/slice-5.dump diff --git a/data/bbb-mpeg2/slice-6.dump b/data/bbb-mpeg2/slice-6.dump Binary files differnew file mode 100644 index 0000000..968f96d --- /dev/null +++ b/data/bbb-mpeg2/slice-6.dump diff --git a/data/bbb-mpeg2/slice-7.dump b/data/bbb-mpeg2/slice-7.dump Binary files differnew file mode 100644 index 0000000..14fa6b1 --- /dev/null +++ b/data/bbb-mpeg2/slice-7.dump diff --git a/data/bbb-mpeg2/slice-8.dump b/data/bbb-mpeg2/slice-8.dump Binary files differnew file mode 100644 index 0000000..bb612e9 --- /dev/null +++ b/data/bbb-mpeg2/slice-8.dump diff --git a/data/bbb-mpeg2/slice-9.dump b/data/bbb-mpeg2/slice-9.dump Binary files differnew file mode 100644 index 0000000..40ab19a --- /dev/null +++ b/data/bbb-mpeg2/slice-9.dump |