From eeb284050592408ee162cb64e58032a65c543184 Mon Sep 17 00:00:00 2001 From: siivonek Date: Mon, 28 Sep 2020 17:15:12 +0200 Subject: [PATCH] Add examples folder and readme.md for examples. Add example roi file. --- examples/README.md | 14 ++++++++++++++ examples/roi.txt | 2 ++ 2 files changed, 16 insertions(+) create mode 100644 examples/README.md create mode 100644 examples/roi.txt diff --git a/examples/README.md b/examples/README.md new file mode 100644 index 00000000..2bd52606 --- /dev/null +++ b/examples/README.md @@ -0,0 +1,14 @@ +Examples +======== +Examples of external files for use with Kvazaar. + +## Region of interest (roi) files +A simple text file can be used with the `--roi` switch to setup regions of interest for encoding. +Header row of the file will tell how many regions the encoded frames are divided (columns, rows). +The header must be followed by a data row with number entries equal to columns * rows. +The data row will tell the encoder which delta QP value will be assigned to each region. +The included example file will split frames into four regions with the top regions having a delta QP of +5 +``` +2 2 +5 5 0 0 +``` \ No newline at end of file diff --git a/examples/roi.txt b/examples/roi.txt new file mode 100644 index 00000000..949035a9 --- /dev/null +++ b/examples/roi.txt @@ -0,0 +1,2 @@ +2 2 +5 5 0 0 \ No newline at end of file