OSDN Git Service

Add multiple layers test json example.
authorFan, Yugang <yugang.fan@intel.com>
Tue, 14 Feb 2017 13:17:35 +0000 (21:17 +0800)
committerKalyan Kondapally <kalyan.kondapally@intel.com>
Tue, 14 Feb 2017 23:21:36 +0000 (15:21 -0800)
The example json includes 5 layers: 3 kms cube test layers, and 2 video
layers which is using the argb video file. The layers also are placed with
overlay, and runing separately. This is just a example, and users can add
their multiple layers tests according their requirements with the json
format.

Jira: None.
Test: Use the command "ffmpeg -i ./1080p_29.97fps.mp4 -ss 30 -frames
      100 -f rawvideo -pix_fmt argb test.xrgb" to generate video raw
      file as test resources, and using current multiplelayers.json to
      test if the "testlayers" app can show and run all layers normally.

Signed-off-by: Fan Yugang <yugang.fan@intel.com>
tests/jsonconfigs/multiplelayers.json [new file with mode: 0644]

diff --git a/tests/jsonconfigs/multiplelayers.json b/tests/jsonconfigs/multiplelayers.json
new file mode 100644 (file)
index 0000000..444965b
--- /dev/null
@@ -0,0 +1,111 @@
+[{
+  "type":0,
+  "format":25,
+  "transform":0,
+  "resourcePath":"",
+  "source": {
+    "width":1920,
+    "height":1080,
+    "crop": {
+      "x":0,
+      "y":0,
+      "width":1920,
+      "height":1080
+    }
+  },
+  "frame": {
+    "x":0,
+    "y":0,
+    "width":500,
+    "height":500
+  }
+},
+{
+  "type":0,
+  "format":25,
+  "transform":0,
+  "resourcePath":"",
+  "source": {
+    "width":1920,
+    "height":1080,
+    "crop": {
+      "x":0,
+      "y":0,
+      "width":1920,
+      "height":1080
+    }
+  },
+  "frame": {
+    "x":550,
+    "y":550,
+    "width":1050,
+    "height":1050
+  }
+},
+{
+  "type":1,
+  "format":25,
+  "transform":0,
+  "resourcePath":"./resources/test.xrgb",
+  "source": {
+    "width":1920,
+    "height":1080,
+    "crop": {
+      "x":0,
+      "y":0,
+      "width":1920,
+      "height":1080
+    }
+  },
+  "frame": {
+    "x":100,
+    "y":600,
+    "width":600,
+    "height":1080
+  }
+},
+{
+  "type":1,
+  "format":25,
+  "transform":0,
+  "resourcePath":"./resources/test.xrgb",
+  "source": {
+    "width":1920,
+    "height":1080,
+    "crop": {
+      "x":0,
+      "y":0,
+      "width":1920,
+      "height":1080
+    }
+  },
+  "frame": {
+    "x":1000,
+    "y":100,
+    "width":1600,
+    "height":600
+  }
+},
+{
+  "type":0,
+  "format":25,
+  "transform":0,
+  "resourcePath":"",
+  "source": {
+    "width":1920,
+    "height":1080,
+    "crop": {
+      "x":0,
+      "y":0,
+      "width":1920,
+      "height":1080
+    }
+  },
+  "frame": {
+    "x":1200,
+    "y":550,
+    "width":1920,
+    "height":1080
+  }
+}
+]