code: 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]);
  	}
docs: Get all supported pixel formats by this {@code Codec}. If this {@code Codec}
  is not a video codec, then {@code null} is returned. The pixel formats are
  ordered in ascending order.
  
  @return all supported pixel formats by this {@code Codec}.