Android Open Source - cameraMediaCodec Svc Encode Spacial Param






From Project

Back to project page cameraMediaCodec.

License

The source code is released under:

Copyright (c) 2014, Zhang Ziyue All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: * ...

If you think the Android project cameraMediaCodec listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.

Java Source Code

package com.android.testtool;
//from   www. ja  v a2 s  .  c  o m

public class SvcEncodeSpacialParam implements Cloneable{
  public int     mWidth;
  public int     mHeight;
  public int    mFrameRate;
  public int    mBitrate;
  
  //fix me, it is not general SVC encoder logic
  public int    mStreamID;
  public int    mModeIdx;
  
  public SvcEncodeSpacialParam clone() {  
    SvcEncodeSpacialParam o = null;  
        try {  
            o = (SvcEncodeSpacialParam) super.clone();  
        } catch (CloneNotSupportedException e) {  
            e.printStackTrace();  
        }  
        return o;  
    }  
  
  public boolean isMeValid()
  {
    if (mWidth != 0 && mHeight != 0 && mFrameRate != 0&& mBitrate != 0)
      return true;
    else
      return false;
  }
}




Java Source Code List

com.android.testtool.AvcDecoderBug.java
com.android.testtool.AvcDecoder.java
com.android.testtool.AvcEncoder.java
com.android.testtool.AvcUtils.java
com.android.testtool.BitBufferLite.java
com.android.testtool.CameraInfoCollector.java
com.android.testtool.FpsHelper.java
com.android.testtool.HelloCameraActivity.java
com.android.testtool.RawUtils.java
com.android.testtool.SvcCaptureCallback.java
com.android.testtool.SvcCaptureEngine.java
com.android.testtool.SvcEncodeOutputParam.java
com.android.testtool.SvcEncodeSpacialParam.java
com.android.testtool.SvcEncoder.java
com.android.testtool.VideoBufferInfo.java