Home
last modified time | relevance | path

Searched refs:EncoderConfigParams (Results 1 – 25 of 36) sorted by relevance

12

/cts/tests/media/src/android/mediav2/cts/
DCodecEncoderTest.java28 import android.mediav2.common.cts.EncoderConfigParams;
94 public CodecEncoderTest(String encoder, String mediaType, EncoderConfigParams[] cfgParams, in CodecEncoderTest()
137 private static EncoderConfigParams getVideoEncoderCfgParam(String mediaType, int width, in getVideoEncoderCfgParam()
139 return new EncoderConfigParams.Builder(mediaType).setWidth(width).setHeight(height) in getVideoEncoderCfgParam()
143 private static EncoderConfigParams getAudioEncoderCfgParam(String mediaType, int sampleRate, in getAudioEncoderCfgParam()
145 EncoderConfigParams.Builder foreman = in getAudioEncoderCfgParam()
146 new EncoderConfigParams.Builder(mediaType).setSampleRate(sampleRate) in getAudioEncoderCfgParam()
156 private static EncoderConfigParams[] getAacCfgParams() { in getAacCfgParams()
157 EncoderConfigParams[] params = new EncoderConfigParams[2]; in getAacCfgParams()
163 private static EncoderConfigParams[] getOpusCfgParams() { in getOpusCfgParams()
[all …]
DEncoderLevelTest.java29 import android.mediav2.common.cts.EncoderConfigParams;
67 public EncoderLevelTest(String encoder, String mediaType, EncoderConfigParams[] encCfgParams, in EncoderLevelTest()
72 private static EncoderConfigParams[] getVideoEncoderCfgParams(String mediaType, int bitRate, in getVideoEncoderCfgParams()
74 ArrayList<EncoderConfigParams> cfgParams = new ArrayList<>(); in getVideoEncoderCfgParams()
76 cfgParams.add(new EncoderConfigParams.Builder(mediaType) in getVideoEncoderCfgParams()
86 return cfgParams.toArray(new EncoderConfigParams[0]); in getVideoEncoderCfgParams()
182 for (EncoderConfigParams cfg : mEncCfgParams) { in testVideoEncodeLevels()
200 EncoderConfigParams.Builder foreman = cfg.getBuilder().clone().setLevel( in testVideoEncodeLevels()
DEncoderHDRInfoTest.java24 import android.mediav2.common.cts.EncoderConfigParams;
73 EncoderConfigParams encCfgParams, @SuppressWarnings("unused") String testLabel, in EncoderHDRInfoTest()
80 private static EncoderConfigParams getVideoEncoderCfgParams(String mediaType, int profile, in getVideoEncoderCfgParams()
82 return new EncoderConfigParams.Builder(mediaType) in getVideoEncoderCfgParams()
DAudioEncoderTest.java31 import android.mediav2.common.cts.EncoderConfigParams;
65 public AudioEncoderTest(String encoder, String mediaType, EncoderConfigParams encCfgParams, in AudioEncoderTest()
67 super(encoder, mediaType, new EncoderConfigParams[]{encCfgParams}, allTestParams); in AudioEncoderTest()
70 private static EncoderConfigParams getAudioEncoderCfgParams(String mediaType, int qualityPreset, in getAudioEncoderCfgParams()
72 EncoderConfigParams.Builder foreman = new EncoderConfigParams.Builder(mediaType) in getAudioEncoderCfgParams()
DEncoderInput.java24 import android.mediav2.common.cts.EncoderConfigParams;
72 public static RawResource getRawResource(EncoderConfigParams cfg) { in getRawResource()
DVideoEncoderTest.java32 import android.mediav2.common.cts.EncoderConfigParams;
67 public VideoEncoderTest(String encoder, String mediaType, EncoderConfigParams encCfgParams, in VideoEncoderTest()
70 super(encoder, mediaType, new EncoderConfigParams[]{encCfgParams}, allTestParams); in VideoEncoderTest()
75 private static EncoderConfigParams getVideoEncoderCfgParams(String mediaType, int bitRate, in getVideoEncoderCfgParams()
77 EncoderConfigParams.Builder foreman = in getVideoEncoderCfgParams()
78 new EncoderConfigParams.Builder(mediaType) in getVideoEncoderCfgParams()
DCodecEncoderSurfaceTest.java40 import android.mediav2.common.cts.EncoderConfigParams;
98 String testFileMediaType, String testFile, EncoderConfigParams encCfgParams, in CodecEncoderSurfaceTest()
106 private static EncoderConfigParams getVideoEncoderCfgParams(String mediaType, int bitRate, in getVideoEncoderCfgParams()
108 EncoderConfigParams.Builder foreman = new EncoderConfigParams.Builder(mediaType) in getVideoEncoderCfgParams()
368 EncoderConfigParams.serializeMediaFormat(mEncoderFormat), in testSimpleEncodeFromSurfaceNative()
369 EncoderConfigParams.TOKEN_SEPARATOR, mTestConfig, mFrameLimit); in testSimpleEncodeFromSurfaceNative()
DEncoderProfileLevelTest.java31 import android.mediav2.common.cts.EncoderConfigParams;
117 EncoderConfigParams[] encCfgParams, @SuppressWarnings("unused") String testLabel, in EncoderProfileLevelTest()
178 private static EncoderConfigParams[] getVideoEncoderCfgParams(String mediaType, int bitRate, in getVideoEncoderCfgParams()
181 ArrayList<EncoderConfigParams> cfgParams = new ArrayList<>(); in getVideoEncoderCfgParams()
190 cfgParams.add(new EncoderConfigParams.Builder(mediaType) in getVideoEncoderCfgParams()
201 return cfgParams.toArray(new EncoderConfigParams[0]); in getVideoEncoderCfgParams()
204 private static EncoderConfigParams[] getAudioEncoderCfgParams(String mediaType, int bitRate, in getAudioEncoderCfgParams()
206 EncoderConfigParams[] cfgParams = new EncoderConfigParams[profiles.length]; in getAudioEncoderCfgParams()
208 cfgParams[i] = new EncoderConfigParams.Builder(mediaType) in getAudioEncoderCfgParams()
567 private boolean shallSupportProfileAndLevel(EncoderConfigParams cfg) { in shallSupportProfileAndLevel()
[all …]
DEncoderColorAspectsTest.java33 import android.mediav2.common.cts.EncoderConfigParams;
100 EncoderConfigParams encCfgParams, @SuppressWarnings("unused") String testLabel, in EncoderColorAspectsTest()
102 super(encoder, mediaType, new EncoderConfigParams[]{encCfgParams}, allTestParams); in EncoderColorAspectsTest()
123 EncoderConfigParams.Builder foreman = in prepareArgsList()
124 new EncoderConfigParams.Builder(mediaType) in prepareArgsList()
136 EncoderConfigParams cfg = foreman.build(); in prepareArgsList()
DCodecEncoderBlockModelMultiAccessUnitTest.java36 import android.mediav2.common.cts.EncoderConfigParams;
130 EncoderConfigParams cfgParams, @SuppressWarnings("unused") String testLabel, in CodecEncoderBlockModelMultiAccessUnitTest()
132 super(encoder, mediaType, new EncoderConfigParams[]{cfgParams}, allTestParams); in CodecEncoderBlockModelMultiAccessUnitTest()
307 new EncoderConfigParams[]{mActiveEncCfg}, mAllTestParams); in testSimpleEncode()
313 mMediaType, new EncoderConfigParams[]{mActiveEncCfg}, mAllTestParams); in testSimpleEncode()
/cts/tests/videocodec/src/android/videocodec/cts/
DVideoEncoderFrameRateTest.java26 import android.mediav2.common.cts.EncoderConfigParams;
63 private static EncoderConfigParams getVideoEncoderCfgParams(String mediaType, int width, in getVideoEncoderCfgParams()
65 return new EncoderConfigParams.Builder(mediaType) in getVideoEncoderCfgParams()
103 EncoderConfigParams cfgParams, @SuppressWarnings("unused") String testLabel, in VideoEncoderFrameRateTest()
122 EncoderConfigParams cfg = mEncCfgParams[0].getBuilder() in testEncoderFrameRateSupport()
DVideoEncoderQualityRegressionTestBase.java30 import android.mediav2.common.cts.EncoderConfigParams;
105 protected static EncoderConfigParams getVideoEncoderCfgParams(String mediaType, int width, in getVideoEncoderCfgParams()
108 EncoderConfigParams.Builder foreman = new EncoderConfigParams.Builder(mediaType) in getVideoEncoderCfgParams()
125 protected void getQualityRegressionForCfgs(List<EncoderConfigParams[]> cfgsUnion, in getQualityRegressionForCfgs()
136 EncoderConfigParams[] cfgs = cfgsUnion.get(i); in getQualityRegressionForCfgs()
DVideoEncoderAdaptiveBitRateTest.java29 import android.mediav2.common.cts.EncoderConfigParams;
80 private static EncoderConfigParams getVideoEncoderCfgParams(String mediaType, int width, in getVideoEncoderCfgParams()
82 return new EncoderConfigParams.Builder(mediaType) in getVideoEncoderCfgParams()
115 EncoderConfigParams cfg, int[] segmentBitRates, in VideoEncoderAdaptiveBitRateTest()
176 EncoderConfigParams cfg = mEncCfgParams[0].getBuilder().setBitRate(maxBitRate).build(); in testAdaptiveBitRate()
DVideoEncoderMaxBFrameTest.java29 import android.mediav2.common.cts.EncoderConfigParams;
65 private static EncoderConfigParams getVideoEncoderCfgParams(String mediaType, int maxBFrames) { in getVideoEncoderCfgParams()
66 return new EncoderConfigParams.Builder(mediaType) in getVideoEncoderCfgParams()
96 public VideoEncoderMaxBFrameTest(String encoder, String mediaType, EncoderConfigParams cfg, in VideoEncoderMaxBFrameTest()
DVideoEncoderQualityRegressionBFrameTest.java29 import android.mediav2.common.cts.EncoderConfigParams;
97 List<EncoderConfigParams[]> cfgsUnion = new ArrayList<>(); in qualityRegressionOverBFrames()
101 EncoderConfigParams[] cfgs = new EncoderConfigParams[BIT_RATES.length]; in qualityRegressionOverBFrames()
DVideoEncoderPsnrTest.java30 import android.mediav2.common.cts.EncoderConfigParams;
67 private static EncoderConfigParams getVideoEncoderCfgParams(String mediaType, int width, in getVideoEncoderCfgParams()
69 return new EncoderConfigParams.Builder(mediaType) in getVideoEncoderCfgParams()
102 public VideoEncoderPsnrTest(String encoder, String mediaType, EncoderConfigParams cfgParams, in VideoEncoderPsnrTest()
DVideoEncoderTargetBitrateTest.java27 import android.mediav2.common.cts.EncoderConfigParams;
71 private static EncoderConfigParams getVideoEncoderCfgParams(String mediaType, int width, in getVideoEncoderCfgParams()
73 return new EncoderConfigParams.Builder(mediaType) in getVideoEncoderCfgParams()
118 EncoderConfigParams cfgParams, @SuppressWarnings("unused") String testLabel, in VideoEncoderTargetBitrateTest()
DVideoEncoderQualityRegressionCodecTest.java30 import android.mediav2.common.cts.EncoderConfigParams;
98 List<EncoderConfigParams[]> cfgsUnion = new ArrayList<>(); in testQualityRegressionWrtAvc()
102 EncoderConfigParams[] cfgsOfMediaType = new EncoderConfigParams[BIT_RATES.length]; in testQualityRegressionWrtAvc()
DVideoEncoderIntraFrameIntervalTest.java31 import android.mediav2.common.cts.EncoderConfigParams;
68 private static EncoderConfigParams getVideoEncoderCfgParams(String mediaType, int bitRateMode, in getVideoEncoderCfgParams()
70 return new EncoderConfigParams.Builder(mediaType) in getVideoEncoderCfgParams()
111 EncoderConfigParams cfgParams, @SuppressWarnings("unused") String testLabel, in VideoEncoderIntraFrameIntervalTest()
DVideoEncoderMinMaxTest.java33 import android.mediav2.common.cts.EncoderConfigParams;
74 private static EncoderConfigParams getVideoEncoderCfgParams(String mediaType, int bitRateMode, in getVideoEncoderCfgParams()
76 return new EncoderConfigParams.Builder(mediaType) in getVideoEncoderCfgParams()
110 EncoderConfigParams cfgParam = (EncoderConfigParams) cfgObject; in applyMinMaxRanges()
229 EncoderConfigParams cfgVar = (EncoderConfigParams) obj; in updateParamList()
249 public VideoEncoderMinMaxTest(String encoder, String mediaType, EncoderConfigParams cfgParams, in VideoEncoderMinMaxTest()
DVideoEncoderMultiResTest.java30 import android.mediav2.common.cts.EncoderConfigParams;
67 private static EncoderConfigParams getVideoEncoderCfgParams(String mediaType, int width, in getVideoEncoderCfgParams()
69 return new EncoderConfigParams.Builder(mediaType) in getVideoEncoderCfgParams()
145 public VideoEncoderMultiResTest(String encoder, String mediaType, EncoderConfigParams cfgParams, in VideoEncoderMultiResTest()
DVideoEncoderInput.java20 import android.mediav2.common.cts.EncoderConfigParams;
69 public static RawResource getRawResource(EncoderConfigParams cfg) { in getRawResource()
DVideoEncoderValidationTestBase.java37 import android.mediav2.common.cts.EncoderConfigParams;
138 EncoderConfigParams encCfgParams, String allTestParams) { in VideoEncoderValidationTestBase()
139 super(encoder, mediaType, new EncoderConfigParams[]{encCfgParams}, allTestParams); in VideoEncoderValidationTestBase()
155 protected void encodeToMemory(String encoder, EncoderConfigParams cfg, int frameLimit, in encodeToMemory()
/cts/hostsidetests/videoencodingminimum/app/src/android/videoencodingmin/app/
DVideoTranscoderTest.java31 import android.mediav2.common.cts.EncoderConfigParams;
87 private EncoderConfigParams[] mEncCfgParams;
100 String testFile, EncoderConfigParams encCfgParams, String outputFileName, in TestTranscode()
153 mEncCfgParams = new EncoderConfigParams[codecConfigs.length()]; in parseEncoderConfigurationFile()
157 mEncCfgParams[i] = new EncoderConfigParams.Builder(mEncMediaType) in parseEncoderConfigurationFile()
173 for (EncoderConfigParams param : mEncCfgParams) { in parseEncoderConfigurationFile()
/cts/hostsidetests/mediapc/videoencodingquality/app/src/android/videoencoding/app/
DVideoTranscoderTest.java31 import android.mediav2.common.cts.EncoderConfigParams;
87 private EncoderConfigParams[] mEncCfgParams;
100 String testFile, EncoderConfigParams encCfgParams, String outputFileName, in TestTranscode()
153 mEncCfgParams = new EncoderConfigParams[codecConfigs.length()]; in parseEncoderConfigurationFile()
157 mEncCfgParams[i] = new EncoderConfigParams.Builder(mEncMediaType) in parseEncoderConfigurationFile()
173 for (EncoderConfigParams param : mEncCfgParams) { in parseEncoderConfigurationFile()

12