Tabnine Logo
NIOUtils.write
Code IndexAdd Tabnine to your IDE (free)

How to use
write
method
in
org.jcodec.common.NIOUtils

Best Java code snippets using org.jcodec.common.NIOUtils.write (Showing top 8 results out of 315)

origin: us.ihmc/IHMCVideoCodecs

  @Override
  protected void doWrite(ByteBuffer out) {
    NIOUtils.write(out, data);
  }
}
origin: us.ihmc/ihmc-video-codecs

  @Override
  protected void doWrite(ByteBuffer out) {
    NIOUtils.write(out, data);
  }
}
origin: us.ihmc/ihmc-video-codecs

public static ByteBuffer combine(Iterable<ByteBuffer> picture) {
  int size = 0;
  for (ByteBuffer byteBuffer : picture) {
    size += byteBuffer.remaining();
  }
  ByteBuffer result = ByteBuffer.allocate(size);
  for (ByteBuffer byteBuffer : picture) {
    write(result, byteBuffer);
  }
  result.flip();
  return result;
}
origin: us.ihmc/IHMCVideoCodecs

public static ByteBuffer combine(Iterable<ByteBuffer> picture) {
  int size = 0;
  for (ByteBuffer byteBuffer : picture) {
    size += byteBuffer.remaining();
  }
  ByteBuffer result = ByteBuffer.allocate(size);
  for (ByteBuffer byteBuffer : picture) {
    write(result, byteBuffer);
  }
  result.flip();
  return result;
}
origin: us.ihmc/ihmc-video-codecs

@Override
protected void doWrite(ByteBuffer out) {
  super.doWrite(out);
  Charset utf8 = Charset.forName("utf-8");
  if (url != null) {
    NIOUtils.write(out, ByteBuffer.wrap(url.getBytes(utf8)));
    out.put((byte) 0);
  }
}
origin: us.ihmc/IHMCVideoCodecs

@Override
protected void doWrite(ByteBuffer out) {
  super.doWrite(out);
  Charset utf8 = Charset.forName("utf-8");
  if (url != null) {
    NIOUtils.write(out, ByteBuffer.wrap(url.getBytes(utf8)));
    out.put((byte) 0);
  }
}
origin: us.ihmc/IHMCVideoCodecs

@Override
protected void doWrite(ByteBuffer out) {
  out.put((byte) 0x1); // version
  out.put((byte) profile);
  out.put((byte) profileCompat);
  out.put((byte) level);
  out.put((byte) 0xff);
  out.put((byte) (spsList.size() | 0xe0));
  for (ByteBuffer sps : spsList) {
    out.putShort((short) (sps.remaining() + 1));
    out.put((byte) 0x67);
    NIOUtils.write(out, sps);
  }
  out.put((byte) ppsList.size());
  for (ByteBuffer pps : ppsList) {
    out.putShort((byte) (pps.remaining() + 1));
    out.put((byte) 0x68);
    NIOUtils.write(out, pps);
  }
}
origin: us.ihmc/ihmc-video-codecs

@Override
protected void doWrite(ByteBuffer out) {
  out.put((byte) 0x1); // version
  out.put((byte) profile);
  out.put((byte) profileCompat);
  out.put((byte) level);
  out.put((byte) 0xff);
  out.put((byte) (spsList.size() | 0xe0));
  for (ByteBuffer sps : spsList) {
    out.putShort((short) (sps.remaining() + 1));
    out.put((byte) 0x67);
    NIOUtils.write(out, sps);
  }
  out.put((byte) ppsList.size());
  for (ByteBuffer pps : ppsList) {
    out.putShort((byte) (pps.remaining() + 1));
    out.put((byte) 0x68);
    NIOUtils.write(out, pps);
  }
}
org.jcodec.commonNIOUtilswrite

Popular methods of NIOUtils

  • readableFileChannel
  • closeQuietly
  • writableFileChannel
  • combine
  • copy
  • fetchFrom
  • map
  • read
  • readNullTermString
  • readPascalString
  • readString
  • skip
  • readString,
  • skip,
  • toArray,
  • writeLong,
  • writePascalString

Popular in Java

  • Reactive rest calls using spring rest template
  • scheduleAtFixedRate (ScheduledExecutorService)
  • startActivity (Activity)
  • setContentView (Activity)
  • BigInteger (java.math)
    An immutable arbitrary-precision signed integer.FAST CRYPTOGRAPHY This implementation is efficient f
  • ServerSocket (java.net)
    This class represents a server-side socket that waits for incoming client connections. A ServerSocke
  • URI (java.net)
    A Uniform Resource Identifier that identifies an abstract or physical resource, as specified by RFC
  • Timestamp (java.sql)
    A Java representation of the SQL TIMESTAMP type. It provides the capability of representing the SQL
  • Vector (java.util)
    Vector is an implementation of List, backed by an array and synchronized. All optional operations in
  • JFileChooser (javax.swing)
  • Top Vim plugins
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now