search for: m_encoder

Displaying 3 results from an estimated 3 matches for "m_encoder".

Did you mean: my_encoder
2011 May 24
3
Can a libFLAC encoder be initialize and called from inside a libFLAC decoder callback?
...vironment is Win 7 Ult, 64-bit, VS 2008, libFLAC 1.2.1. Here is some context. The static callback calls the instance callback. Encoder is initialized on line with "m_HaveEncoder = InitializeEncoder();". Samples are submitted to the encoder on line with "FLAC__bool OK = FLAC__stream_encoder_process(m_Encoder, Buffer, Blocksize);". I have a version that decodes to a WAV file and then re-encodes the WAV file, but would like to avoid all that I/O. Regards. David FLAC__StreamDecoderWriteStatus FLACRecoder::StaticWriteCallback(const FLAC__StreamDecoder *FLACStreamDe...
2008 Nov 30
1
ogg_stream_pageout function...
I write this small piece of code, that get pixels and encode them: ogg_page page; ogg_packet packet; m_frameSource.getYUVBits(m_buffer.y, m_buffer.u, m_buffer.v); theora_encode_YUVin(&m_encoder, &m_buffer); while(theora_encode_packetout(&m_encoder, isLastFrame, &packet)) ogg_stream_packetin(&m_oggStream, &packet); while (ogg_stream_pageout(&m_oggStream, &page)) { fwrite(page.header,page.header_len, 1, m_oggFile); fwrite(pag...
2011 May 24
0
Can a libFLAC encoder be initialize and called from inside a libFLAC decoder callback?
...lized on > the first write callback. > > Here is some context. The static callback calls the instance > callback. Encoder is initialized on line with ?m_HaveEncoder = > InitializeEncoder();?. Samples are submitted to the encoder on > line with ?FLAC__bool OK = FLAC__stream_encoder_process(m_Encoder, > Buffer, Blocksize);?. > > I have a version that decodes to a WAV file and then re-encodes the > WAV file, but would like to avoid all that I/O. > >