Lines Matching refs:format
71 * Defines the output format. These constants are used with constructor.
78 /** MPEG4 media file format*/
84 private static native long nativeSetup(FileDescriptor fd, int format);
114 * @param format The format of the output media file.
118 public MediaMuxer(String path, int format) throws IOException {
122 if (format != OutputFormat.MUXER_OUTPUT_MPEG_4 &&
123 format != OutputFormat.MUXER_OUTPUT_WEBM) {
124 throw new IllegalArgumentException("format is invalid");
132 mNativeObject = nativeSetup(fd, format);
147 * video if the output format is
170 * in udta box if the output format is
248 * Adds a track with the specified format.
249 * @param format The media format for the track.
253 public int addTrack(MediaFormat format) {
254 if (format == null) {
255 throw new IllegalArgumentException("format must not be null.");
265 Map<String, Object> formatMap = format.getMap();
281 throw new IllegalArgumentException("format must not be empty.");
285 // However, if format is invalid, it will get a negative trackIndex.
287 throw new IllegalArgumentException("Invalid format.");