mirror of
https://github.com/androidx/media.git
synced 2025-04-30 06:46:50 +08:00
Format with google-java-format
This commit is contained in:
parent
f149cb28a3
commit
55d9626b5a
@ -1499,7 +1499,8 @@ public abstract class MediaCodecRenderer extends BaseRenderer {
|
||||
* @param format The {@link Format} for which the codec is being configured.
|
||||
* @throws ExoPlaybackException If an error occurs preparing for initializing the codec.
|
||||
*/
|
||||
protected void onReadyToInitializeCodec(MediaCodecInfo codecInfo, Format format) throws ExoPlaybackException {
|
||||
protected void onReadyToInitializeCodec(MediaCodecInfo codecInfo, Format format)
|
||||
throws ExoPlaybackException {
|
||||
// Do nothing.
|
||||
}
|
||||
|
||||
|
@ -1214,7 +1214,8 @@ public class MediaCodecVideoRenderer extends MediaCodecRenderer
|
||||
|
||||
@CallSuper
|
||||
@Override
|
||||
protected void onReadyToInitializeCodec(MediaCodecInfo codecInfo, Format format) throws ExoPlaybackException {
|
||||
protected void onReadyToInitializeCodec(MediaCodecInfo codecInfo, Format format)
|
||||
throws ExoPlaybackException {
|
||||
if (videoSink != null && !videoSink.isInitialized()) {
|
||||
try {
|
||||
videoSink.initialize(format);
|
||||
|
@ -663,7 +663,8 @@ public final class ExperimentalFrameExtractor {
|
||||
|
||||
@CallSuper
|
||||
@Override
|
||||
protected void onReadyToInitializeCodec(MediaCodecInfo codecInfo, Format format) throws ExoPlaybackException {
|
||||
protected void onReadyToInitializeCodec(MediaCodecInfo codecInfo, Format format)
|
||||
throws ExoPlaybackException {
|
||||
if (isTransferHdr(format.colorInfo) && toneMapHdrToSdr) {
|
||||
// Setting the VideoSink format to SDR_BT709_LIMITED tone maps to SDR.
|
||||
format = format.buildUpon().setColorInfo(SDR_BT709_LIMITED).build();
|
||||
|
Loading…
x
Reference in New Issue
Block a user