Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
SDK
/
exoplayer
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
8ac5698a
authored
Feb 03, 2020
by
olly
Committed by
Oliver Woodman
Feb 03, 2020
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
Remove deprecated Format.createSampleFormat
PiperOrigin-RevId: 292888026
parent
97fbbad6
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
55 deletions
library/common/src/main/java/com/google/android/exoplayer2/Format.java
library/common/src/main/java/com/google/android/exoplayer2/Format.java
View file @
8ac5698a
...
...
@@ -684,19 +684,7 @@ public final class Format implements Parcelable {
/* exoMediaCryptoType= */
null
);
}
@SuppressWarnings
(
"deprecation"
)
public
static
Format
createSampleFormat
(
@Nullable
String
id
,
@Nullable
String
sampleMimeType
)
{
return
createSampleFormat
(
id
,
sampleMimeType
,
OFFSET_SAMPLE_RELATIVE
);
}
/**
* @deprecated Use {@link #createSampleFormat(String, String)} and (for values of {@link
* #subsampleOffsetUs} other than {@link #OFFSET_SAMPLE_RELATIVE}) {@link
* #copyWithSubsampleOffsetUs(long)}.
*/
@Deprecated
public
static
Format
createSampleFormat
(
@Nullable
String
id
,
@Nullable
String
sampleMimeType
,
long
subsampleOffsetUs
)
{
return
new
Format
(
id
,
/* label= */
null
,
...
...
@@ -710,49 +698,6 @@ public final class Format implements Parcelable {
/* maxInputSize= */
NO_VALUE
,
/* initializationData= */
null
,
/* drmInitData= */
null
,
subsampleOffsetUs
,
/* width= */
NO_VALUE
,
/* height= */
NO_VALUE
,
/* frameRate= */
NO_VALUE
,
/* rotationDegrees= */
NO_VALUE
,
/* pixelWidthHeightRatio= */
NO_VALUE
,
/* projectionData= */
null
,
/* stereoMode= */
NO_VALUE
,
/* colorInfo= */
null
,
/* channelCount= */
NO_VALUE
,
/* sampleRate= */
NO_VALUE
,
/* pcmEncoding= */
NO_VALUE
,
/* encoderDelay= */
NO_VALUE
,
/* encoderPadding= */
NO_VALUE
,
/* language= */
null
,
/* accessibilityChannel= */
NO_VALUE
,
/* exoMediaCryptoType= */
null
);
}
/**
* @deprecated Most usages should use one of the {@link #createVideoSampleFormat} or {@link
* #createAudioSampleFormat} methods.
*/
@Deprecated
public
static
Format
createSampleFormat
(
@Nullable
String
id
,
@Nullable
String
sampleMimeType
,
@Nullable
String
codecs
,
int
bitrate
,
@Nullable
DrmInitData
drmInitData
)
{
return
new
Format
(
id
,
/* label= */
null
,
/* selectionFlags= */
0
,
/* roleFlags= */
0
,
bitrate
,
codecs
,
/* metadata= */
null
,
/* containerMimeType= */
null
,
sampleMimeType
,
/* maxInputSize= */
NO_VALUE
,
/* initializationData= */
null
,
drmInitData
,
OFFSET_SAMPLE_RELATIVE
,
/* width= */
NO_VALUE
,
/* height= */
NO_VALUE
,
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment