mirror of
https://github.com/samsonjs/media.git
synced 2026-03-25 09:25:53 +00:00
Format with google-java-format
This commit is contained in:
parent
f149cb28a3
commit
55d9626b5a
3 changed files with 6 additions and 3 deletions
|
|
@ -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…
Reference in a new issue