OSDN Git Service

Relax format checking in BackDropperFilter.
authorEino-Ville Talvala <etalvala@google.com>
Wed, 14 Sep 2011 19:09:38 +0000 (12:09 -0700)
committerEino-Ville Talvala <etalvala@google.com>
Wed, 28 Sep 2011 20:29:13 +0000 (13:29 -0700)
This format check should restrict to GPUs, but to allow source filters with
initially unspecified targets to connect to the filter, relax the check to
be any target.

Bug: 5299669
Change-Id: I1a54be793c68ac81dd36b111daf8d463c7d1e486

mca/filterpacks/videoproc/java/BackDropperFilter.java

index b07fd0a..8e37180 100644 (file)
@@ -501,9 +501,10 @@ public class BackDropperFilter extends Filter {
 
     @Override
     public void setupPorts() {
-        // Inputs
+        // Inputs.
+        // TODO: Target should be GPU, but relaxed for now.
         FrameFormat imageFormat = ImageFormat.create(ImageFormat.COLORSPACE_RGBA,
-                                                     FrameFormat.TARGET_GPU);
+                                                     FrameFormat.TARGET_UNSPECIFIED);
         for (String inputName : mInputNames) {
             addMaskedInputPort(inputName, imageFormat);
         }