Android Open Source - videoMerge Frame Info






From Project

Back to project page videoMerge.

License

The source code is released under:

Apache License

If you think the Android project videoMerge 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.dragonplayer.merge.frames;
/* w  ww  .ja va 2s  .  c  o  m*/
import android.util.Log;

import java.util.ArrayList;

public class FrameInfo {

    private ArrayList<Integer> bitmapHeight;
    private ArrayList<Integer> bitmapWidth;
    private String borderColor;
    private ArrayList<String> extensions;
    private ArrayList<Integer> frameHeight;
    private ArrayList<Integer> frameWidth;
    private ArrayList<Integer> left;
    private ArrayList<Integer> leftMargins;
    private ArrayList<Integer> rotations;
    private int scaleHeight;
    private int scaleWidth;
    private ArrayList<Integer> top;
    private ArrayList<Integer> topMargins;
    private ArrayList<String> urls;
    private ArrayList<Float> videoAudioVolumes;
    private ArrayList<Integer> startTime;
    private ArrayList<Integer> videoDuration;
    private ArrayList<Boolean> videoHasAudio;
    private ArrayList<Float> angle;
    private String videoPath;

    public FrameInfo() {
        urls = new ArrayList<String>();
        angle = new ArrayList<Float>();
        scaleWidth = 0;
        scaleHeight = 0;
        topMargins = new ArrayList<Integer>();
        leftMargins = new ArrayList<Integer>();
        frameHeight = new ArrayList<Integer>();
        frameWidth = new ArrayList<Integer>();
        top = new ArrayList<Integer>();
        left = new ArrayList<Integer>();
        bitmapWidth = new ArrayList<Integer>();
        bitmapHeight = new ArrayList<Integer>();
        startTime = new ArrayList<Integer>();
        videoDuration = new ArrayList<Integer>();
        videoAudioVolumes = new ArrayList<Float>();
        rotations = new ArrayList<Integer>();
        videoHasAudio = new ArrayList<Boolean>();
        extensions = new ArrayList<String>();
    }

    public void addBitmapHeight(Integer h) {
        bitmapHeight.add(h);
    }

    public void addBitmapWidth(Integer w) {
        bitmapWidth.add(w);
    }

    public void addExtension(String ext) {
        extensions.add(ext);
    }

    public void addFrameHeight(Integer frmH) {
        frameHeight.add(frmH);
        Log.d("frameHeight", (new StringBuilder()).append(frmH).toString());
    }

    public void addFrameWidth(Integer frmW) {
        frameWidth.add(frmW);
        Log.d("frameWidth", (new StringBuilder()).append(frmW).toString());
    }

    public void addLeft(Integer l) {
        left.add(l);
        Log.d("left", (new StringBuilder()).append(l).toString());
    }

    public void addLeftMargins(Integer lMargin) {
        leftMargins.add(Integer.valueOf(Math.abs(lMargin.intValue())));
        Log.d("leftMargin", (new StringBuilder()).append(lMargin).toString());
    }

    public void addRotations(Integer rot) {
        rotations.add(rot);
    }

    public void addTop(Integer t) {
        top.add(t);
        Log.d("top", (new StringBuilder()).append(t).toString());
    }

    public void addTopMargins(Integer tMargin) {
        topMargins.add(Integer.valueOf(Math.abs(tMargin.intValue())));
        Log.d("topMargin", (new StringBuilder()).append(tMargin).toString());
    }

    public void addUrls(String url) {
        urls.add(url);
        Log.d("url", url);
    }

    public void addAngle(float fangle) {
        angle.add(fangle);
    }

    public void addVideoAudioVolume(Float volume) {
        videoAudioVolumes.add(volume);
    }

    public void addVideoDuration(int duration) {
        videoDuration.add(Integer.valueOf(duration));
        Log.d("duration", (new StringBuilder()).append(duration).toString());
    }
    
    public void addStartTime(int duration) {
        startTime.add(Integer.valueOf(duration));
    }
    
    public void addVideoHasAudio(Boolean isHasAudio) {
        videoHasAudio.add(isHasAudio);
    }

    public ArrayList<Integer> getBitmapHeight() {
        return bitmapHeight;
    }

    public ArrayList<Integer> getBitmapWidth() {
        return bitmapWidth;
    }

    public String getBorderColor() {
        return borderColor;
    }

    public int getCropH(int i) {
        return ((Integer)frameHeight.get(i)).intValue();
    }

    public int getCropW(int i) {
        return ((Integer)frameWidth.get(i)).intValue();
    }

    public int getCropX(int i) {
        return ((Integer)leftMargins.get(i)).intValue();
    }

    public int getCropY(int i) {
        return ((Integer)topMargins.get(i)).intValue();
    }

    public int getDuration(int i) {
        return ((Integer)videoDuration.get(i)).intValue();
    }

    public int getStartTime(int i) {
        return ((Integer)startTime.get(i)).intValue();
    }

    public int getElementSize() {
        return urls.size();
    }

    public int getAngleSize() {
        return angle.size();
    }

    public String getExtensions(int i) {
        return (String)extensions.get(i);
    }

    public ArrayList<String> getExtensions() {
        return extensions;
    }

    public ArrayList<Integer> getFrameHeight() {
        return frameHeight;
    }

    public int getFrameScaleHeight(int i) {
        return ((Integer)bitmapHeight.get(i)).intValue();
    }

    public int getFrameScaleWidth(int i) {
        return ((Integer)bitmapWidth.get(i)).intValue();
    }

    public ArrayList<Integer> getFrameWidth() {
        return frameWidth;
    }

    public ArrayList<Integer> getLeft() {
        return left;
    }

    public ArrayList<Integer> getLeftMargins() {
        return leftMargins;
    }

    public int getLongestDurationIndex() {
        int i = 0;
        int j = ((Integer)videoDuration.get(0)).intValue();
        
        for (int k = 1; k < videoDuration.size(); k++) { 
            if(((Integer)videoDuration.get(k)).intValue() > j) {
                i = k;
                j = ((Integer)videoDuration.get(k)).intValue();
            }
        }

        return i;
    }

    public int getRotation(int i) {
        return ((Integer)rotations.get(i)).intValue();
    }

    public ArrayList<Integer> getRotations() {
        return rotations;
    }

    public int getScaleHeight() {
        return scaleHeight;
    }

    public int getScaleWidth() {
        return scaleWidth;
    }

    public ArrayList<Integer> getTop() {
        return top;
    }

    public ArrayList<Integer> getTopMargins() {
        return topMargins;
    }

    public String getUrl(int i) {
        return (String)urls.get(i);
    }

    public float getAngle(int i) {
        return (float)angle.get(i);
    }

    public ArrayList<String> getUrls() {
        return urls;
    }

    public ArrayList<Float> getAngles() {
        return angle;
    }

    public Float getVideoAudioVolume(int i) {
        return (Float)videoAudioVolumes.get(i);
    }

    public ArrayList<Float> getVideoAudioVolumes() {
        return videoAudioVolumes;
    }

    public ArrayList<Integer> getVideoDuration() {
        return videoDuration;
    }

    public ArrayList<Integer> getStartTime() {
        return startTime;
    }

    public ArrayList<Boolean> getVideoHasAudio() {
        return videoHasAudio;
    }

    public String getVideoPath() {
        return videoPath;
    }

    public int getXpos(int i) {
        return ((Integer)left.get(i)).intValue();
    }

    public int getYpos(int i) {
        return ((Integer)top.get(i)).intValue();
    }

    public void setBitmapHeight(ArrayList<Integer> arraylist) {
        bitmapHeight = arraylist;
    }

    public void setBitmapWidth(ArrayList<Integer> arraylist) {
        bitmapWidth = arraylist;
    }

    public void setBorderColor(String s) {
        borderColor = s;
        Log.d("color", s);
    }

    public void setExtensions(ArrayList<String> arraylist) {
        extensions = arraylist;
    }

    public void setFrameHeight(ArrayList<Integer> arraylist) {
        frameHeight = arraylist;
    }

    public void setFrameWidth(ArrayList<Integer> arraylist) {
        frameWidth = arraylist;
    }

    public void setLeft(ArrayList<Integer> arraylist) {
        left = arraylist;
    }

    public void setLeftMargins(ArrayList<Integer> arraylist) {
        leftMargins = arraylist;
    }

    public void setRotations(ArrayList<Integer> arraylist) {
        rotations = arraylist;
    }

    public void setScaleHeight(int i) {
        scaleHeight = i;
        Log.d("scaleHeight", (new StringBuilder()).append(i).toString());
    }

    public void setScaleWidth(int i) {
        scaleWidth = i;
        Log.d("scaleWidth", (new StringBuilder()).append(i).toString());
    }

    public void setTop(ArrayList<Integer> arraylist) {
        top = arraylist;
    }

    public void setTopMargins(ArrayList<Integer> arraylist) {
        topMargins = arraylist;
    }

    public void setUrls(ArrayList<String> arraylist) {
        urls = arraylist;
    }

    public void setAngles(ArrayList<Float> arraylist) {
        angle = arraylist;
    }

    public void setVideoAudioVolumes(ArrayList<Float> arraylist) {
        videoAudioVolumes = arraylist;
    }

    public void setVideoDuration(ArrayList<Integer> arraylist) {
        videoDuration = arraylist;
    }

    public void setStartTime(ArrayList<Integer> arraylist) {
        startTime = arraylist;
    }

    public void setVideoHasAudio(ArrayList<Boolean> arraylist) {
        videoHasAudio = arraylist;
    }

    public void setVideoPath(String s) {
        videoPath = s;
    }

    public boolean videoHasAudio(int i) {
        return ((Boolean)videoHasAudio.get(i)).booleanValue();
    }
}




Java Source Code List

com.dragonplayer.merge.FBLikeActivity.java
com.dragonplayer.merge.FacebookActivity.java
com.dragonplayer.merge.FacebookEventObserver.java
com.dragonplayer.merge.LoadingDialog.java
com.dragonplayer.merge.MainActivity.java
com.dragonplayer.merge.SplashActivity.java
com.dragonplayer.merge.TextInputActivity.java
com.dragonplayer.merge.adapter.FrameListAdapter.java
com.dragonplayer.merge.adapter.FrameSubListAdapter.java
com.dragonplayer.merge.adapter.MediaListAdapter.java
com.dragonplayer.merge.adapter.ProjectListAdapter.java
com.dragonplayer.merge.adapter.ProjectSubListAdapter.java
com.dragonplayer.merge.fragment.AboutFragment.java
com.dragonplayer.merge.fragment.AddAudioFragment.java
com.dragonplayer.merge.fragment.BaseFragment.java
com.dragonplayer.merge.fragment.FinishFragment.java
com.dragonplayer.merge.fragment.FrameFragment.java
com.dragonplayer.merge.fragment.FrameListFragment.java
com.dragonplayer.merge.fragment.GiftFragment.java
com.dragonplayer.merge.fragment.GridFragment.java
com.dragonplayer.merge.fragment.HomeFragment.java
com.dragonplayer.merge.fragment.LockConfirmFragment.java
com.dragonplayer.merge.fragment.LockFragment.java
com.dragonplayer.merge.fragment.UploadConfirmFragment.java
com.dragonplayer.merge.fragment.UploadFragment.java
com.dragonplayer.merge.fragment.UploadInfoFragment.java
com.dragonplayer.merge.fragment.UploadSelectMediaFragment.java
com.dragonplayer.merge.fragment.WorkFragment.java
com.dragonplayer.merge.frames.FrameInfo.java
com.dragonplayer.merge.frames.FramePart.java
com.dragonplayer.merge.frames.FrameView.java
com.dragonplayer.merge.frames.Frame.java
com.dragonplayer.merge.frames.FramesLayout.java
com.dragonplayer.merge.frames.Frames.java
com.dragonplayer.merge.frames.HorizontalListView.java
com.dragonplayer.merge.frames.ProjectFiles.java
com.dragonplayer.merge.frames.timeout.java
com.dragonplayer.merge.utils.AppConnectivity.java
com.dragonplayer.merge.utils.BannerData.java
com.dragonplayer.merge.utils.BitmapManager.java
com.dragonplayer.merge.utils.BitmapUtil.java
com.dragonplayer.merge.utils.Constants.java
com.dragonplayer.merge.utils.DlgWindow1.java
com.dragonplayer.merge.utils.DlgWindow2.java
com.dragonplayer.merge.utils.DlgWindow4.java
com.dragonplayer.merge.utils.DlgWindow5.java
com.dragonplayer.merge.utils.DlgWindow6.java
com.dragonplayer.merge.utils.DlgWindow7.java
com.dragonplayer.merge.utils.DlgWindow8.java
com.dragonplayer.merge.utils.FileMover.java
com.dragonplayer.merge.utils.Flag.java
com.dragonplayer.merge.utils.MLog.java
com.dragonplayer.merge.utils.SingleMediaScanner.java
com.dragonplayer.merge.utils.Utils.java
com.dragonplayer.merge.utils.WeTouch_network_interface.java
com.dragonplayer.merge.utils.WeTouch_uploadImage.java
com.dragonplayer.merge.utils.WebService.java