Always use FrameEditor for Nexus 5 and Moto Z Play.
PiperOrigin-RevId: 435628703
This commit is contained in:
parent
e476337dd5
commit
96f8771de0
@ -101,7 +101,8 @@ import org.checkerframework.dataflow.qual.Pure;
|
|||||||
if (transformationRequest.enableHdrEditing
|
if (transformationRequest.enableHdrEditing
|
||||||
|| inputFormat.height != encoderSupportedFormat.height
|
|| inputFormat.height != encoderSupportedFormat.height
|
||||||
|| inputFormat.width != encoderSupportedFormat.width
|
|| inputFormat.width != encoderSupportedFormat.width
|
||||||
|| scaleToFitFrameProcessor.shouldProcess()) {
|
|| scaleToFitFrameProcessor.shouldProcess()
|
||||||
|
|| shouldAlwaysUseFrameEditor()) {
|
||||||
frameEditor =
|
frameEditor =
|
||||||
FrameEditor.create(
|
FrameEditor.create(
|
||||||
context,
|
context,
|
||||||
@ -275,6 +276,17 @@ import org.checkerframework.dataflow.qual.Pure;
|
|||||||
.build();
|
.build();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/** Always use {@link FrameEditor} to work around device-specific encoder issues. */
|
||||||
|
private static boolean shouldAlwaysUseFrameEditor() {
|
||||||
|
switch (Util.MODEL) {
|
||||||
|
case "XT1635-02":
|
||||||
|
case "Nexus 5":
|
||||||
|
return true;
|
||||||
|
default:
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Feeds at most one decoder output frame to the next step of the pipeline.
|
* Feeds at most one decoder output frame to the next step of the pipeline.
|
||||||
*
|
*
|
||||||
|
Loading…
x
Reference in New Issue
Block a user