Blame doc/libvorbis/vorbis_bitrate_flushpacket.html

Packit 06404a
<html>
Packit 06404a
Packit 06404a
<head>
Packit 06404a
<title>libvorbis - function - vorbis_bitrate_flushpacket</title>
Packit 06404a
<link rel=stylesheet href="style.css" type="text/css">
Packit 06404a
</head>
Packit 06404a
Packit 06404a
<body bgcolor=white text=black link="#5555ff" alink="#5555ff" vlink="#5555ff">
Packit 06404a
Packit 06404a
Packit 06404a

libvorbis documentation

Packit 06404a

libvorbis version 1.3.2 - 20101101

Packit 06404a
Packit 06404a
Packit 06404a
Packit 06404a

vorbis_bitrate_flushpacket

Packit 06404a
Packit 06404a

declared in "vorbis/codec.h";

Packit 06404a
Packit 06404a

This function returns the next available completed packet from the

Packit 06404a
bitrate management engine. It should be called in a loop after any call
Packit 06404a
to vorbis_bitrate_addblock() until it returns either 0 (more data needed)
Packit 06404a
or a negative value (error).
Packit 06404a

Packit 06404a
Packit 06404a

Packit 06404a
The data returned in the ogg_packet structure can be copied to the
Packit 06404a
final compressed output stream.
Packit 06404a

Packit 06404a
Packit 06404a
Packit 06404a
Packit 06404a
	
Packit 06404a
Packit 06404a
extern int      vorbis_bitrate_flushpacket(vorbis_dsp_state *vd,
Packit 06404a
                                           ogg_packet *op);
Packit 06404a
Packit 06404a
	
Packit 06404a
Packit 06404a
Packit 06404a
Packit 06404a

Parameters

Packit 06404a
Packit 06404a
vd
Packit 06404a
Pointer to the vorbis_dsp_state represending the encoder.
Packit 06404a
op
Packit 06404a
Pointer to an ogg_packet to be filled out with the compressed data.
Packit 06404a
Packit 06404a
Packit 06404a
Packit 06404a

Return Values

Packit 06404a
    Packit 06404a
  • 1 for success when more packets are available.
  • Packit 06404a
  • 0 for success when this is the last packet available from the current input.
  • Packit 06404a
  • negative values for failure:
  • Packit 06404a
      Packit 06404a
    • OV_EINVAL - Invalid parameters.
    • Packit 06404a
    • OV_EFAULT - Internal fault; indicates a bug or memory corruption.
    • Packit 06404a
    • OV_EIMPL - Unimplemented; not supported by this version of the library.
    • Packit 06404a
      Packit 06404a
      Packit 06404a
      Packit 06404a
      Packit 06404a
      Packit 06404a


      Packit 06404a

      Packit 06404a
      Packit 06404a
      Packit 06404a

      copyright © 2010 Xiph.Org

      Packit 06404a

      Ogg Vorbis

      Packit 06404a
      Packit 06404a

      libvorbis documentation

      Packit 06404a

      libvorbis version 1.3.2 - 20101101

      Packit 06404a
      Packit 06404a
      Packit 06404a
      Packit 06404a
      Packit 06404a
      </body>
      Packit 06404a
      Packit 06404a
      </html>