Lines Matching defs:format
58 protected CpuVideoTrackDecoder(int trackIndex, MediaFormat format, Listener listener) {
59 super(trackIndex, format, listener);
61 mWidth = format.getInteger(MediaFormat.KEY_WIDTH);
62 mHeight = format.getInteger(MediaFormat.KEY_HEIGHT);
66 protected MediaCodec initMediaCodec(MediaFormat format) {
68 MediaCodec mediaCodec = findDecoderCodec(format, new int[] {
73 "Could not find a suitable decoder for format: " + format + "!");
75 mediaCodec.configure(format, null, null, 0);
174 * <li>The codec can decode a video of the specified format.</li>
177 * If multiple codecs are found, the one with the preferred color-format is taken. Color format
178 * preference is determined by the order of their appearance in the color format array.
180 * @param format The format the codec must decode.
184 private static MediaCodec findDecoderCodec(MediaFormat format, int[] requiredColorFormats) {
197 String requiredType = format.getString(MediaFormat.KEY_MIME);
246 throw new RuntimeException("Unsupported color format: " + colorFormat + "!");