mirror of
https://github.com/samsonjs/media.git
synced 2026-04-27 15:07:40 +00:00
Always use FrameEditor for Nexus 5 and Moto Z Play.
PiperOrigin-RevId: 435628703
This commit is contained in:
parent
e476337dd5
commit
96f8771de0
1 changed files with 13 additions and 1 deletions
|
|
@ -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…
Reference in a new issue