Package javax.media

Examples of javax.media.Format



  public Format intersects(Format other)
  { 
   
    final Format result = super.intersects(other);

    if (other instanceof AudioFormat)
    {
      final AudioFormat resultCast = (AudioFormat) result;
     
View Full Code Here


   
  }

  public Format intersects(Format other)
  {
    final Format result = super.intersects(other);

    if (other instanceof IndexedColorFormat)
    {
      final IndexedColorFormat resultCast = (IndexedColorFormat) result;
     
View Full Code Here

  }
 
  public Format intersects(Format other)
  { 
   
    final Format result = super.intersects(other);
    if (other instanceof RGBFormat)
    {
      final RGBFormat resultCast = (RGBFormat) result;
     
      final RGBFormat oCast = (RGBFormat) other;
View Full Code Here

    return result;
  }

  public Format intersects(Format other)
  {
    final Format result = super.intersects(other);

    if (other instanceof H263Format)
    {
      final H263Format resultCast = (H263Format) result;
     
View Full Code Here

    return result;
  }
 
  public Format intersects(Format other)
  {
    final Format result = super.intersects(other);

    if (other instanceof JPEGFormat)
    {
      final JPEGFormat resultCast = (JPEGFormat) result;
     
View Full Code Here

        return format;
    }

    private void updatePassthrough()
    {
        Format outputFormat = getOutputFormat();
        if (outputFormat != null)
        {
            Dimension outputSize = ((VideoFormat) outputFormat).getSize();
            if (outputSize != null)
            {
                Format inputFormat = getInputFormat();
                passthrough =
                    (inputFormat != null)
                        && outputSize.equals(
                                ((VideoFormat) inputFormat).getSize());
                return;
View Full Code Here

      processor.setContentDescriptor(new ContentDescriptor(FileTypeDescriptor.QUICKTIME));

      // Query for the processor for supported formats.
      // Then set it on the processor.
      TrackControl trackControls[] = processor.getTrackControls();
      Format format[] = trackControls [0].getSupportedFormats();
      if (format == null || format.length <= 0) {
        throw new IOException("The mux does not support the input format: " + trackControls [0].getFormat());
      }

      trackControls [0].setFormat(format [0]);
View Full Code Here

    /**
     * Set the target transcode format on the processor.
     */
    boolean setTrackFormats(Processor p) {

  Format supported[];

  TrackControl [] tracks = p.getTrackControls();

  // Do we have at least one track?
  if (tracks == null || tracks.length < 1) {
View Full Code Here

    Object owner = ((Owned)cs[i]).getOwner();

    // Check to see if the owner is a Codec.
    // Then check for the output format.
    if (owner instanceof Codec) {
        Format fmts[] = ((Codec)owner).getSupportedOutputFormats(null);
        for (int j = 0; j < fmts.length; j++) {
      if (fmts[j].matches(jpegFmt)) {
          qc = (QualityControl)cs[i];
              qc.setQuality(val);
          System.err.println("- Set quality to " +
View Full Code Here

      // Track.getSupportedFormats to only valid RTP formats.
      ContentDescriptor cd = new ContentDescriptor(ContentDescriptor.RAW_RTP);
     
      processor.setContentDescriptor(cd);

      Format supported[];
      Format chosen;
      boolean atLeastOneTrack = false;

      // Program the tracks.
      for (int i = 0; i < tracks.length; i++) {
          Format format = tracks[i].getFormat();
          if (tracks[i].isEnabled()) {

        supported = tracks[i].getSupportedFormats();

        // We've set the output content to the RAW_RTP.
View Full Code Here

TOP

Related Classes of javax.media.Format

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.