Class VideoEncoder

    • Constructor Summary

      Constructors 
      Constructor Description
      VideoEncoder​(int nVideoCodecType, java.lang.String strFormat, java.lang.String strDriver)  
    • Constructor Detail

      • VideoEncoder

        public VideoEncoder​(int nVideoCodecType,
                            java.lang.String strFormat,
                            java.lang.String strDriver)
                     throws java.io.IOException
        Throws:
        java.io.IOException
    • Method Detail

      • getDriverForFormat

        public static java.lang.String getDriverForFormat​(java.lang.String strFormat)
      • setFormat

        public boolean setFormat​(java.lang.String strFormat,
                                 int nWidth,
                                 int nHeight,
                                 int nBitRate,
                                 int nFrameRate,
                                 int nProfile,
                                 int nLevel)
      • start

        public void start()
      • stop

        public void stop()
      • initialize

        public void initialize()
      • uninitialize

        public void uninitialize()
      • destroy

        public void destroy()
        Description copied from class: NativeObject
        Call this method when finished with the object; which will release the underlying C++ object.
        Specified by:
        destroy in interface Destroyable
        Overrides:
        destroy in class NativeObject
      • requestBitRate

        public void requestBitRate​(int nBitRate)
      • requestKeyFrame

        public void requestKeyFrame()
      • setVideoDecoder

        public void setVideoDecoder​(VideoDecoder videoDecoder)