/** * Gets the frame rate associated with this <tt>MediaFormat</tt>. * * @return the frame rate associated with this <tt>MediaFormat</tt> * @see VideoMediaFormat#getFrameRate() */ public float getFrameRate() { return format.getFrameRate(); }
/** * Gets the matching output formats for a specific format. * * @param inputFormat input format * @return array of formats matching input format */ @Override protected Format[] getMatchingOutputFormats(Format inputFormat) { VideoFormat inputVideoFormat = (VideoFormat) inputFormat; return new VideoFormat[] { new VideoFormat( Constants.VP8, inputVideoFormat.getSize(), /* maxDataLength */ Format.NOT_SPECIFIED, Format.byteArray, inputVideoFormat.getFrameRate()) }; }
/** * Get the matching output formats for a specific format. * * @param inputFormat input format * @return array for formats matching input format */ private Format[] getMatchingOutputFormats(Format inputFormat) { VideoFormat inputVideoFormat = (VideoFormat) inputFormat; return new Format[] { new VideoFormat( Constants.H263P_RTP, inputVideoFormat.getSize(), /* maxDataLength */ Format.NOT_SPECIFIED, Format.byteArray, inputVideoFormat.getFrameRate()) }; }
/** * Gets the matching output formats for a specific format. * * @param in input format * @return array for formats matching input format */ private Format[] getMatchingOutputFormats(Format in) { VideoFormat videoIn = (VideoFormat) in; return new VideoFormat[] { new VideoFormat( Constants.H263P, videoIn.getSize(), Format.NOT_SPECIFIED, Format.byteArray, videoIn.getFrameRate()) }; }
/** * Get matching outputs for a specified input <tt>Format</tt>. * * @param inputFormat input <tt>Format</tt> * @return array of matching outputs or null if there are no matching * outputs. */ @Override protected Format[] getMatchingOutputFormats(Format inputFormat) { VideoFormat inputVideoFormat = (VideoFormat) inputFormat; return new Format[] { new AVFrameFormat( inputVideoFormat.getSize(), inputVideoFormat.getFrameRate(), FFmpeg.PIX_FMT_YUV420P) }; }
/** * Get matching outputs for a specified input <tt>Format</tt>. * * @param inputFormat input <tt>Format</tt> * @return array of matching outputs or null if there are no matching * outputs. */ protected Format[] getMatchingOutputFormats(Format inputFormat) { VideoFormat inputVideoFormat = (VideoFormat) inputFormat; return new Format[] { new AVFrameFormat( inputVideoFormat.getSize(), ensureFrameRate(inputVideoFormat.getFrameRate()), FFmpeg.PIX_FMT_YUV420P) }; }
/** * Get matching outputs for a specified input <tt>Format</tt>. * * @param inputFormat input <tt>Format</tt> * @return array of matching outputs or null if there are no matching * outputs. */ protected Format[] getMatchingOutputFormats(Format inputFormat) { VideoFormat inputVideoFormat = (VideoFormat) inputFormat; return new Format[] { new AVFrameFormat( inputVideoFormat.getSize(), ensureFrameRate(inputVideoFormat.getFrameRate()), FFmpeg.PIX_FMT_YUV420P) }; }
Format[] matchingOutputFormats = new Format[packetizationModes.length]; Dimension size = inputVideoFormat.getSize(); float frameRate = inputVideoFormat.getFrameRate();
millis = (long)(1000.0 / format.getFrameRate()) - millis; if(millis > 0)
size = videoInput.getSize(); float frameRate = videoInput.getFrameRate();
/** * Gets the output formats matching a specific input format. * * @param input the input format to get the matching output formats for * @return an array of output formats matching the specified input format */ private Format[] getMatchingOutputFormats(Format input) { VideoFormat videoInput = (VideoFormat) input; Dimension size = videoInput.getSize(); float frameRate = videoInput.getFrameRate(); String packetizationMode = getPacketizationMode(input); return new Format[] { new ParameterizedVideoFormat( Constants.H264_RTP, size, Format.NOT_SPECIFIED, Format.byteArray, frameRate, ParameterizedVideoFormat.toMap( VideoMediaFormatImpl .H264_PACKETIZATION_MODE_FMTP, packetizationMode)) }; }
videoFormat.getFrameRate(), fmtps);
videoFormat.getFrameRate(), fmtps);
videoFormat.getMaxDataLength(), videoFormat.getDataType(), videoFormat.getFrameRate());
videoFormat.getFrameRate());
videoFormat.getFrameRate());
clockRate = (long) ((VideoFormat) format).getFrameRate();
videoFormat.getFrameRate());
VPX.img_get_d_w(img), VPX.img_get_d_h(img), ((VideoFormat) inputBuffer.getFormat()).getFrameRate()); outputBuffer.setFormat(outputFormat); VPX.img_get_d_w(img), VPX.img_get_d_h(img), ((VideoFormat) inputBuffer.getFormat()).getFrameRate()); outputBuffer.setFormat(outputFormat);
float outFrameRate = ensureFrameRate(inFormat.getFrameRate());