Examples of AVRational


Examples of net.sf.ffmpeg_java.FFMPEGLibrary.AVRational

 
    static AVRational getTimeBase(AVStream stream, AVCodecContext codecCtx)
    {
      // code adapted from ffmpeg utils.c: dump_format
      if (stream.r_frame_rate.num != 0 && stream.r_frame_rate.den != 0)
      {  AVRational result = new AVRational();
        result.num = stream.r_frame_rate.den;
        result.den = stream.r_frame_rate.num;
        return result;
      }
      else if (stream.time_base.num != 0 && stream.time_base.den != 0)
View Full Code Here

Examples of net.sf.ffmpeg_java.FFMPEGLibrary.AVRational

        return codecCtx.time_base;
    }
   
    static double getFPS(AVStream stream, AVCodecContext codecCtx)
    {
      final AVRational time_base = getTimeBase(stream, codecCtx);
      return (double) time_base.den / (double) time_base.num;
    }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.