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
@Override
public void setupPorts() {
@Override
public void setupPorts() {
+ // Inputs.
+ // TODO: Target should be GPU, but relaxed for now.
FrameFormat imageFormat = ImageFormat.create(ImageFormat.COLORSPACE_RGBA,
FrameFormat imageFormat = ImageFormat.create(ImageFormat.COLORSPACE_RGBA,
- FrameFormat.TARGET_GPU);
+ FrameFormat.TARGET_UNSPECIFIED);
for (String inputName : mInputNames) {
addMaskedInputPort(inputName, imageFormat);
}
for (String inputName : mInputNames) {
addMaskedInputPort(inputName, imageFormat);
}