Available Methods
- TIME_UNSET
- INDEX_UNSET
- LENGTH_UNSET
- MICROS_PER_SECOND
- RESULT_END_OF_INPUT
- TRACK_TYPE_VIDEO
- POSITION_UNSET
- TRACK_TYPE_AUDIO
- TIME_END_OF_SOURCE
- TRACK_TYPE_TEXT
- PcmEncoding ( )
- ENCODING_PCM_16BIT ( )
- ENCODING_INVALID
- Encoding ( )
- BUFFER_FLAG_KEY_FRAME
- RESULT_FORMAT_READ
- RESULT_BUFFER_READ
- SELECTION_REASON_UNKNOWN
- ENCODING_PCM_FLOAT
- ENCODING_AC3 ( )
- TYPE_HLS
- AUDIO_SESSION_ID_UNSET
- ENCODING_PCM_32BIT ( )
- RESULT_NOTHING_READ
- TYPE_OTHER
- ENCODING_PCM_24BIT ( )
- TYPE_DASH
- BufferFlags ( )
- TRACK_TYPE_UNKNOWN
- usToMs ( )
- msToUs ( )
- TYPE_SS
- ContentType ( )
- SelectionFlags ( )
- ENCODING_PCM_MU_LAW
- TRACK_TYPE_METADATA
- RoleFlags ( )
- SELECTION_REASON_ADAPTIVE
- NetworkType ( )
- SELECTION_FLAG_DEFAULT
- ENCODING_PCM_8BIT ( )
- PERCENTAGE_UNSET
- STREAM_TYPE_USE_DEFAULT
- AudioUsage ( )
- STREAM_TYPE_NOTIFICATION
- STREAM_TYPE_MUSIC
- ENCODING_PCM_A_LAW
- StereoMode ( )
- DATA_TYPE_MANIFEST
- PLAYREADY_UUID
- USAGE_NOTIFICATION_RINGTONE
- MSG_SET_VOLUME
- SELECTION_REASON_INITIAL
- USAGE_NOTIFICATION
- WIDEVINE_UUID
- CryptoMode ( )
- ENCODING_DTS_HD
- STEREO_MODE_MONO
- NETWORK_TYPE_OFFLINE
- ENCODING_E_AC3 ( )
- STREAM_TYPE_SYSTEM
- StreamType ( )
- STREAM_TYPE_DEFAULT
- NETWORK_TYPE_UNKNOWN
- DATA_TYPE_MEDIA_PROGRESSIVE_LIVE
- DATA_TYPE_MEDIA
- USAGE_VOICE_COMMUNICATION_SIGNALLING
- NETWORK_TYPE_ETHERNET
- USAGE_ASSISTANCE_SONIFICATION
- USAGE_ALARM
- ROLE_FLAG_MAIN
- STREAM_TYPE_ALARM
- NETWORK_TYPE_4G ( )
- AudioContentType ( )
- DATA_TYPE_DRM
- USAGE_ASSISTANCE_NAVIGATION_GUIDANCE
- CLEARKEY_UUID
- ROLE_FLAG_COMMENTARY
- TRACK_TYPE_NONE
- BUFFER_FLAG_ENCRYPTED
- STREAM_TYPE_RING
- ENCODING_DOLBY_TRUEHD
- ENCODING_E_AC3_JOC ( )
- BITS_PER_BYTE
- STEREO_MODE_STEREO_MESH
- STREAM_TYPE_VOICE_CALL
- DEFAULT_BUFFER_SEGMENT_SIZE
- ColorTransfer ( )
- STEREO_MODE_LEFT_RIGHT
- TRACK_TYPE_DEFAULT
- CENC_TYPE_cenc ( )
- ENCODING_AC4 ( )
- CENC_TYPE_cens ( )
- COLOR_TRANSFER_ST2084 ( )
- SELECTION_FLAG_AUTOSELECT
- USAGE_MEDIA
- VIDEO_OUTPUT_MODE_SURFACE_YUV
- DEFAULT_METADATA_BUFFER_SIZE
- PROJECTION_RECTANGULAR
- USAGE_ASSISTANCE_ACCESSIBILITY
- USAGE_NOTIFICATION_COMMUNICATION_REQUEST
- CONTENT_TYPE_SPEECH
- BUFFER_FLAG_LAST_SAMPLE
- USAGE_NOTIFICATION_COMMUNICATION_INSTANT
- SELECTION_FLAG_FORCED
- ROLE_FLAG_ALTERNATE
- ROLE_FLAG_ENHANCED_DIALOG_INTELLIGIBILITY
- STREAM_TYPE_DTMF
- NETWORK_TYPE_CELLULAR_UNKNOWN
- MSG_SET_AUX_EFFECT_INFO
- UUID_NIL
- MSG_SET_SURFACE
- SANS_SERIF_NAME
- NETWORK_TYPE_WIFI
- MSG_SET_AUDIO_ATTRIBUTES
- USAGE_UNKNOWN
- COLOR_RANGE_FULL
- COLOR_RANGE_LIMITED
- SERIF_NAME
- ROLE_FLAG_SUPPLEMENTARY
- NANOS_PER_SECOND
- USAGE_GAME
- NETWORK_TYPE_3G ( )
- USAGE_NOTIFICATION_EVENT
- NETWORK_TYPE_OTHER
- USAGE_VOICE_COMMUNICATION
- STEREO_MODE_TOP_BOTTOM
Related Classes
- java.util.Arrays
- java.util.Collections
- android.content.Context
- android.util.Log
- java.util.UUID
- android.os.Handler
- android.net.Uri
- java.nio.ByteBuffer
- android.text.TextUtils
- android.support.annotation.Nullable
- java.io.EOFException
- androidx.annotation.Nullable
- android.util.Pair
- org.xmlpull.v1.XmlPullParser
- org.xmlpull.v1.XmlPullParserException
- com.google.android.exoplayer2.upstream.DefaultDataSourceFactory
- com.google.android.exoplayer2.source.MediaSource
- com.google.android.exoplayer2.util.Util
- com.google.android.exoplayer2.trackselection.DefaultTrackSelector
- com.google.android.exoplayer2.ExoPlaybackException
- com.google.android.exoplayer2.upstream.DataSource
- com.google.android.exoplayer2.Player
- com.google.android.exoplayer2.source.TrackGroupArray
- com.google.android.exoplayer2.trackselection.TrackSelection
- com.google.android.exoplayer2.source.hls.HlsMediaSource
Java Code Examples for com.google.android.exoplayer2.C#COLOR_TRANSFER_ST2084
The following examples show how to use
com.google.android.exoplayer2.C#COLOR_TRANSFER_ST2084 .
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: MediaCodecUtil.java From MediaSDK with Apache License 2.0 | 4 votes |
@Nullable private static Pair<Integer, Integer> getAv1ProfileAndLevel( String codec, String[] parts, @Nullable ColorInfo colorInfo) { if (parts.length < 4) { Log.w(TAG, "Ignoring malformed AV1 codec string: " + codec); return null; } int profileInteger; int levelInteger; int bitDepthInteger; try { profileInteger = Integer.parseInt(parts[1]); levelInteger = Integer.parseInt(parts[2].substring(0, 2)); bitDepthInteger = Integer.parseInt(parts[3]); } catch (NumberFormatException e) { Log.w(TAG, "Ignoring malformed AV1 codec string: " + codec); return null; } if (profileInteger != 0) { Log.w(TAG, "Unknown AV1 profile: " + profileInteger); return null; } if (bitDepthInteger != 8 && bitDepthInteger != 10) { Log.w(TAG, "Unknown AV1 bit depth: " + bitDepthInteger); return null; } int profile; if (bitDepthInteger == 8) { profile = CodecProfileLevel.AV1ProfileMain8; } else if (colorInfo != null && (colorInfo.hdrStaticInfo != null || colorInfo.colorTransfer == C.COLOR_TRANSFER_HLG || colorInfo.colorTransfer == C.COLOR_TRANSFER_ST2084)) { profile = CodecProfileLevel.AV1ProfileMain10HDR10; } else { profile = CodecProfileLevel.AV1ProfileMain10; } int level = AV1_LEVEL_NUMBER_TO_CONST.get(levelInteger, -1); if (level == -1) { Log.w(TAG, "Unknown AV1 level: " + levelInteger); return null; } return new Pair<>(profile, level); }