FileDocCategorySizeDatePackage
H263Adapter.javaAPI DocJMF 2.1.1e9942Mon May 12 12:20:56 BST 2003com.sun.media.controls

H263Adapter

public class H263Adapter extends Object implements H263Control
Implementation for H263Control

Fields Summary
boolean
isSetable
Codec
owner
boolean
advancedPrediction
boolean
arithmeticCoding
boolean
errorCompensation
boolean
pbFrames
boolean
unrestrictedVector
int
hrd_B
int
bppMaxKb
Component
component
String
CONTROL_ADVANCEDPREDICTION_STRING
String
CONTROL_ARITHMETICCODING_STRING
String
CONTROL_ERRORCOMPENSATION_STRING
String
CONTROL_PBFRAMES_STRING
String
CONTROL_UNRESTRICTEDVECTOR_STRING
String
CONTROL_HRD_B_STRING
String
CONTROL_BPPMAXKB_STRING
Constructors Summary
public H263Adapter(Codec newOwner, boolean newAdvancedPrediction, boolean newArithmeticCoding, boolean newErrorCompensation, boolean newPBFrames, boolean newUnrestrictedVector, int newHrd_B, int newBppMaxKb, boolean newIsSetable)





        
                                 
                                 
                                 
                                 
                                 
                                 
                                 
                                 
			       
        advancedPrediction  = newAdvancedPrediction;
        arithmeticCoding    = newArithmeticCoding;
        errorCompensation   = newErrorCompensation;
        pbFrames            = newPBFrames;
        unrestrictedVector  = newUnrestrictedVector;
        hrd_B               = newHrd_B;
        bppMaxKb            = newBppMaxKb;

        owner = newOwner;
        isSetable = newIsSetable;
    
Methods Summary
public booleangetAdvancedPrediction()
Returns if advanced prediction was enabled

return
if advanced prediction was enabled

        return advancedPrediction;
    
public booleangetArithmeticCoding()
Returns if arithmeticc coding was enabled

return
if arithmeticc coding was enabled

        return arithmeticCoding;
    
public intgetBppMaxKb()
Returns the refernce decoder parameter BppMaxKb

return
the refernce decoder parameter BppMaxKb

        return bppMaxKb;
    
public java.awt.ComponentgetControlComponent()

        if (component ==null ) {
	    try {
		Class[] booleanArray= {boolean.class};
		
		Panel componentPanel=new Panel();
		componentPanel.setLayout(new VFlowLayout(1) );
		
		Panel tempPanel=new Panel();
		tempPanel.setLayout(new BorderLayout() );
		tempPanel.add("Center",new Label(CONTROL_ADVANCEDPREDICTION_STRING,Label.CENTER) );
		Checkbox cb=new Checkbox(null,null,advancedPrediction);
		cb.setEnabled(isSetable);
		cb.addItemListener( (ItemListener)
				    new H263AdapterListener(cb,this,
				        getClass().getMethod("setAdvancedPrediction",booleanArray )));
		tempPanel.add("East",cb );
		tempPanel.invalidate();
		componentPanel.add(tempPanel);
		
		tempPanel=new Panel();
		tempPanel.setLayout(new BorderLayout() );
		tempPanel.add("Center",new Label(CONTROL_ARITHMETICCODING_STRING,Label.CENTER) );
		cb=new Checkbox(null,null,arithmeticCoding);
		cb.setEnabled(isSetable);
		cb.addItemListener( (ItemListener)
				    new H263AdapterListener(cb,this,
					getClass().getMethod("setArithmeticCoding",booleanArray )));
		tempPanel.add("East",cb );
		tempPanel.invalidate();
		componentPanel.add(tempPanel);
		
		tempPanel=new Panel();
		tempPanel.setLayout(new BorderLayout() );
		tempPanel.add("Center",new Label(CONTROL_ERRORCOMPENSATION_STRING,Label.CENTER) );
		cb=new Checkbox(null,null,errorCompensation);
		cb.setEnabled(isSetable);
		cb.addItemListener( (ItemListener)
				    new H263AdapterListener(cb,this,
					getClass().getMethod("setErrorCompensation",booleanArray )));
		tempPanel.add("East",cb );
		tempPanel.invalidate();
		componentPanel.add(tempPanel);
		
		tempPanel=new Panel();
		tempPanel.setLayout(new BorderLayout() );
		tempPanel.add("Center",new Label(CONTROL_PBFRAMES_STRING,Label.CENTER) );
		cb=new Checkbox(null,null,pbFrames);
		cb.setEnabled(isSetable);
		cb.addItemListener( (ItemListener)
				    new H263AdapterListener(cb,this,
					getClass().getMethod("setPBFrames",booleanArray )));
		tempPanel.add("East",cb );
		tempPanel.invalidate();
		componentPanel.add(tempPanel);
		
		tempPanel=new Panel();
		tempPanel.setLayout(new BorderLayout() );
		tempPanel.add("Center",new Label(CONTROL_UNRESTRICTEDVECTOR_STRING,Label.CENTER) );
		cb=new Checkbox(null,null,unrestrictedVector);
		cb.setEnabled(isSetable);
		cb.addItemListener( (ItemListener)
				    new H263AdapterListener(cb,this,
					getClass().getMethod("setUnrestrictedVector",booleanArray )));
		tempPanel.add("East",cb );
		tempPanel.invalidate();
		componentPanel.add(tempPanel);
		
		tempPanel=new Panel();
		tempPanel.setLayout(new BorderLayout() );
		tempPanel.add("Center",new Label(CONTROL_HRD_B_STRING,Label.CENTER) );
		tempPanel.add("East",new Label(hrd_B+"",Label.CENTER) );
		tempPanel.invalidate();
		componentPanel.add(tempPanel);
		
		tempPanel=new Panel();
		tempPanel.setLayout(new BorderLayout() );
		tempPanel.add("Center",new Label(CONTROL_BPPMAXKB_STRING,Label.CENTER) );
		tempPanel.add("East",new Label(bppMaxKb+"",Label.CENTER) );
		tempPanel.invalidate();
		componentPanel.add(tempPanel);
		
		component=componentPanel;
	    } catch (Exception exception) {
	    }
	    
        }
        return (Component)component;
    
public booleangetErrorCompensation()
Returns if error compensation was enabled

return
if error compensation was enabled

        return errorCompensation;
    
public intgetHRD_B()
Returns the refernce decoder parameter HRD_B

return
the refernce decoder parameter HRD_B

        return hrd_B;
    
public booleangetPBFrames()
Returns if PB Frames was enabled

return
if PB Frames was enabled

        return pbFrames;
    
public booleangetUnrestrictedVector()
Returns if unrestricted vector was enabled

return
if unrestricted vector was enabled

        return unrestrictedVector;
    
public booleanisAdvancedPredictionSupported()
Returns if advanced prediction extension is supported

return
if advanced prediction extension is supported

        return advancedPrediction;
    
public booleanisArithmeticCodingSupported()
Returns if arithmeticc coding extension is supported

return
if arithmeticc coding extension is supported

        return arithmeticCoding;
    
public booleanisErrorCompensationSupported()
Returns if error compensation extension is supported

return
if error compensation extension is supported

        return errorCompensation;
    
public booleanisPBFramesSupported()
Returns if PB Frames extension is supported

return
if PB Frames extension is supported

        return pbFrames;
    
public booleanisUnrestrictedVectorSupported()
Returns if unrestricted vector extension is supported

return
if unrestricted vector extension is supported

        return unrestrictedVector;
    
public booleansetAdvancedPrediction(boolean newAdvancedPredictionMode)
Sets the advanced prediction mode

param
newAdvancedPredictionMode the requested advanced prediction mode
return
the actual advanced prediction mode that was set

        return advancedPrediction;
    
public booleansetArithmeticCoding(boolean newArithmeticCodingMode)
Sets the arithmeticc coding mode

param
newArithmeticCodingMode the requested arithmeticc coding mode
return
the actual arithmeticc coding mode that was set

        return arithmeticCoding;
    
public booleansetErrorCompensation(boolean newtErrorCompensationMode)
Sets the error compensation mode

param
newtErrorCompensationMode the requested error compensation mode
return
the actual error compensation mode that was set

        return errorCompensation;
    
public booleansetPBFrames(boolean newPBFramesMode)
Sets the PB Frames mode

param
newPBFramesMode the requested PB Frames mode
return
the actual PB Frames mode that was set

        return pbFrames;
    
public booleansetUnrestrictedVector(boolean newUnrestrictedVectorMode)
Sets the unrestricted vector mode

param
newUnrestrictedVectorMode the requested unrestricted vector mode
return
the actual unrestricted vector mode that was set

        return unrestrictedVector;