-
public interface TrackStrategyBase class for video/audio format strategy. Video strategies should use a Resizer instance to compute the output video size.
-
-
Method Summary
Modifier and Type Method Description abstract TrackStatuscreateOutputFormat(@NonNull() List<MediaFormat> inputFormats, @NonNull() MediaFormat outputFormat)Create the output format for this track (either audio or video). -
-
Method Detail
-
createOutputFormat
@NonNull() abstract TrackStatus createOutputFormat(@NonNull() List<MediaFormat> inputFormats, @NonNull() MediaFormat outputFormat)
Create the output format for this track (either audio or video).Implementors should fill the outputFormat object and return a non-null TrackStatus:- COMPRESSING: we want to compress this track. Output format will be used- PASS_THROUGH: we want to use the input format. Output format will be ignored- REMOVING: we want to remove this track. Output format will be ignoredSubclasses can also throw to abort the whole transcoding operation.
- Parameters:
inputFormats- the input formatsoutputFormat- the output format to be filled
-
-
-
-