public interface TrackStrategy
Resizer instance to compute the output
video size.| Modifier and Type | Method and Description |
|---|---|
TrackStatus |
createOutputFormat(java.util.List<android.media.MediaFormat> inputFormats,
android.media.MediaFormat outputFormat)
Create the output format for this track (either audio or video).
|
@NonNull TrackStatus createOutputFormat(@NonNull java.util.List<android.media.MediaFormat> inputFormats, @NonNull android.media.MediaFormat outputFormat)
TrackStatus:
- TrackStatus.COMPRESSING: we want to compress this track. Output format will be used
- TrackStatus.PASS_THROUGH: we want to use the input format. Output format will be ignored
- TrackStatus.REMOVING: we want to remove this track. Output format will be ignored
Subclasses can also throw to abort the whole transcoding operation.inputFormats - the input formatsoutputFormat - the output format to be filled