Cria um MPImage com base em um ByteBuffer.
É possível transmitir ByteBuffer mutáveis ou imutáveis. No entanto, depois que ByteBuffer for transmitido, para manter a integridade dos dados, não modifique o conteúdo dele.
Use ByteBufferExtractor para receber ByteBuffer.
Construtores públicos
|
ByteBufferImageBuilder(byteBuffer ByteBuffer, largura int, altura int, int imageFormat)
Cria o builder com o
ByteBuffer obrigatório e a imagem representada. |
Métodos públicos
| MPImage |
Métodos herdados
Construtores públicos
public ByteBufferImageBuilder (ByteBuffer byteBuffer, int width, int height, int imageFormat)
Cria o builder com o ByteBuffer obrigatório e a imagem representada.
Vamos validar o tamanho do byteBuffer com width, height e imageFormat.
Parâmetros
| byteBuffer | de dados da imagem. |
|---|---|
| width | a largura da imagem representada. |
| height | a altura da imagem representada. |
| imageFormat | como os dados codificam a imagem. |