Get all supported channel layouts by this {@code Codec}. If this {@code Codec}
is not an audio codec, then {@code null} is returned.

@return all supported channel layouts by this {@code Codec}.
195786
public ChannelLayout[] getSupportedChannelLayouts() {
		LongPointer layoutsPointer = avCodec.channel_layouts();

		if (getType() != MediaType.AUDIO || layoutsPointer == null)
			return null;

		List<ChannelLayout> layouts = new ArrayList<ChannelLayout>();

		long layout;
		int index = 0;
		while ((layout = layoutsPointer.get(index++)) != 0)
			layouts.add(ChannelLayout.byId(layout));

		return layouts.toArray(new ChannelLayout[0]);
	}
734418
public java.util.List<ParameterStringFilter> getParameterFilters() {
        if (parameterFilters == null) {
            parameterFilters = new com.amazonaws.internal.SdkInternalList<ParameterStringFilter>();
        }
        return parameterFilters;
    }
1204083
@Override
  public Type[] getAudioFileTypes(AudioInputStream stream) {
    AudioFileFormat.Type[] filetypes = getAudioFileTypes();

    // make sure we can write this stream
    AudioFormat format = stream.getFormat();
    if(AudioStreamEncoder.getDataFormatSupport(format) == AudioStreamEncoder.SUPPORTED ) {
       return filetypes;
    }
    return new AudioFileFormat.Type[0];
  }
921081
public function getLayout(): ?Layout
    {
        $layoutView = $this->getLayoutView();
        if (!$layoutView instanceof LayoutViewInterface) {
            return null;
        }

        return $layoutView->getLayout();
    }
1327930
public Integer[] getSupportedFrameRates() {
		AVRational frameRates = avCodec.supported_framerates();

		if (getType() != MediaType.VIDEO || frameRates == null)
			return null;

		List<Integer> rates = new ArrayList<Integer>();

		AVRational frameRate;
		int index = 0;
		while ((frameRate = frameRates.position(index++)) != null)
			rates.add((int) av_q2d(frameRate));

		// ascending order
		Collections.sort(rates);

		return rates.toArray(new Integer[0]);
	}
632181
@Override
    public Map<IPortletType, PortletPublishingDefinition> getChannelPublishingDefinitions() {
        final List<IPortletType> channelTypes = this.portletTypeRegistry.getPortletTypes();

        final Map<IPortletType, PortletPublishingDefinition> cpds =
                new LinkedHashMap<IPortletType, PortletPublishingDefinition>(channelTypes.size());

        for (final IPortletType channelType : channelTypes) {
            final PortletPublishingDefinition cpd =
                    this.getChannelPublishingDefinition(channelType.getId());
            cpds.put(channelType, cpd);
        }

        return cpds;
    }
1134109
@Override
    public Set<String> getSupportedInputMediaTypes() {
        ImmutableSet.Builder<String> result = ImmutableSet.builder();
        result.addAll(MediaType.NATIVE_MEDIATYPE_SYNTAX_MAP.keySet());
        result.addAll(this.serviceTransformationEngine.getSupportedMediaTypes());
        return result.build();
    }
156887
@Override
    public List<ChannelInformation> listChannels() {
        List<Channel> channels = channelDirectory.getChannels();

        List<ChannelInformation> channelInformationList = new LinkedList<ChannelInformation>();
        for (Channel channel : channels) {

            ChannelInformation channelInfo = new ChannelInformation(channel.getChannelId(), 0, 0);
            channelInformationList.add(channelInfo);
        }
        return channelInformationList;
    }
155401
public java.util.List<String> getCompatibleRuntimes() {
        if (compatibleRuntimes == null) {
            compatibleRuntimes = new com.amazonaws.internal.SdkInternalList<String>();
        }
        return compatibleRuntimes;
    }
1004754
public List<LayoutProperty> getDataProperties() throws FetchException {
        List<LayoutProperty> all = getAllProperties();
        List<LayoutProperty> data = new ArrayList<LayoutProperty>(all.size() - 1);
        for (LayoutProperty property : all) {
            if (!property.isPrimaryKeyMember()) {
                data.add(property);
            }
        }
        return Collections.unmodifiableList(data);
    }
319996
@Override
    public AudioFileFormat getAudioFileFormat(InputStream inputStream, long medialength) throws UnsupportedAudioFileException, IOException {
        return getAudioFileFormat(inputStream, (int) medialength, AudioSystem.NOT_SPECIFIED);
    }
288686
public static Codec getDecoderById(CodecID codecId) throws JavaAVException {
		if (codecId == null)
			throw new NullPointerException("CodecID is null.");

		AVCodec avCodec = avcodec_find_decoder(codecId.value());

		if (avCodec == null || avCodec.isNull())
			throw new JavaAVException("Decoder not found: " + codecId.toString());

		Codec codec = new Codec();
		codec.avCodec = avCodec;

		return codec;
	}
1299635
public String[] getCodePagesSupported() {
        long cp = (((long)os_2.ulCodePageRange2) << 32) + (os_2.ulCodePageRange1 & 0xffffffffL);
        int count = 0;
        long bit = 1;
        for (int k = 0; k < 64; ++k) {
            if ((cp & bit) != 0 && codePages[k] != null)
                ++count;
            bit <<= 1;
        }
        String ret[] = new String[count];
        count = 0;
        bit = 1;
        for (int k = 0; k < 64; ++k) {
            if ((cp & bit) != 0 && codePages[k] != null)
                ret[count++] = codePages[k];
            bit <<= 1;
        }
        return ret;
    }
1142492
public PixelFormat[] getSupportedPixelFormats() {
		IntPointer formatsPointer = avCodec.pix_fmts();

		if (getType() != MediaType.VIDEO || formatsPointer == null)
			return null;

		List<PixelFormat> pixelFormats = new ArrayList<PixelFormat>();

		int format;
		int index = 0;
		while ((format = formatsPointer.get(index++)) != -1)
			pixelFormats.add(PixelFormat.byId(format));

		// ascending order
		Collections.sort(pixelFormats);

		return pixelFormats.toArray(new PixelFormat[0]);
	}
887108
public java.util.List<LogStream> getLogStreams() {
        if (logStreams == null) {
            logStreams = new com.amazonaws.internal.SdkInternalList<LogStream>();
        }
        return logStreams;
    }
178329
public static List<Class<? extends CompressionCodec>> getCodecClasses(Configuration conf) {
    String codecsString = conf.get("io.compression.codecs");
    if (codecsString != null) {
      List<Class<? extends CompressionCodec>> result
        = new ArrayList<Class<? extends CompressionCodec>>();
      StringTokenizer codecSplit = new StringTokenizer(codecsString, ",");
      while (codecSplit.hasMoreElements()) {
        String codecSubstring = codecSplit.nextToken();
        if (codecSubstring.length() != 0) {
          try {
            Class<?> cls = conf.getClassByName(codecSubstring);
            if (!CompressionCodec.class.isAssignableFrom(cls)) {
              throw new IllegalArgumentException("Class " + codecSubstring +
                                                 " is not a CompressionCodec");
            }
            result.add(cls.asSubclass(CompressionCodec.class));
          } catch (ClassNotFoundException ex) {
            throw new IllegalArgumentException("Compression codec " + 
                                               codecSubstring + " not found.",
                                               ex);
          }
        }
      }
      return result;
    } else {
      return null;
    }
  }
1080672
public java.util.List<ProductCode> getProductCodes() {
        if (productCodes == null) {
            productCodes = new com.amazonaws.internal.SdkInternalList<ProductCode>();
        }
        return productCodes;
    }