H263Adapterpublic class H263Adapter extends Object implements H263ControlImplementation 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 boolean | getAdvancedPrediction()Returns if advanced prediction was enabled
return advancedPrediction;
| public boolean | getArithmeticCoding()Returns if arithmeticc coding was enabled
return arithmeticCoding;
| public int | getBppMaxKb()Returns the refernce decoder parameter BppMaxKb
return bppMaxKb;
| public java.awt.Component | getControlComponent()
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 boolean | getErrorCompensation()Returns if error compensation was enabled
return errorCompensation;
| public int | getHRD_B()Returns the refernce decoder parameter HRD_B
return hrd_B;
| public boolean | getPBFrames()Returns if PB Frames was enabled
return pbFrames;
| public boolean | getUnrestrictedVector()Returns if unrestricted vector was enabled
return unrestrictedVector;
| public boolean | isAdvancedPredictionSupported()Returns if advanced prediction extension is supported
return advancedPrediction;
| public boolean | isArithmeticCodingSupported()Returns if arithmeticc coding extension is supported
return arithmeticCoding;
| public boolean | isErrorCompensationSupported()Returns if error compensation extension is supported
return errorCompensation;
| public boolean | isPBFramesSupported()Returns if PB Frames extension is supported
return pbFrames;
| public boolean | isUnrestrictedVectorSupported()Returns if unrestricted vector extension is supported
return unrestrictedVector;
| public boolean | setAdvancedPrediction(boolean newAdvancedPredictionMode)Sets the advanced prediction mode
return advancedPrediction;
| public boolean | setArithmeticCoding(boolean newArithmeticCodingMode)Sets the arithmeticc coding mode
return arithmeticCoding;
| public boolean | setErrorCompensation(boolean newtErrorCompensationMode)Sets the error compensation mode
return errorCompensation;
| public boolean | setPBFrames(boolean newPBFramesMode)Sets the PB Frames mode
return pbFrames;
| public boolean | setUnrestrictedVector(boolean newUnrestrictedVectorMode)Sets the unrestricted vector mode
return unrestrictedVector;
|
|