class VideoEncoder
{
public:
- AVFrame *encodable; //for compressiong and output to a file (in compatible pixel format)
+ AVFrame *encodable; //for compression and output to a file (in compatible pixel format)
vector<unsigned char> videobuffer;
/*
If pict is invalid (NULL), then we are done compressing frames and we are trying to get
- the buffer cleared out (or if it's already in the right format) so no transofrm necessary
+ the buffer cleared out (or if it's already in the right format) so no transform necessary
*/
if ( pict )
{
if( context->coded_frame && context->coded_frame->key_frame)
pkt.flags |= PKT_FLAG_KEY;
- //cludge for raw picture format (they said they'd fix)
+ //kluge for raw picture format (they said they'd fix)
if (formatc->oformat->flags & AVFMT_RAWPICTURE)
{
ret = av_write_frame(formatc, &pkt);
return true;
}
- void close(AVFormatContext *formatc, AVStream *stream)
+ void close(AVFormatContext */*formatc*/, AVStream *stream)
{
if(stream)
avcodec_close(stream->codec);
void CleanUp()
{
- int i;
+ unsigned int i;
if(picture) free_picture(picture);
}
// add an audio output stream
- AVStream *add_audio_stream(int codec_id,const AudioInfo &aInfo)
+ AVStream *add_audio_stream(int codec_id,const AudioInfo &/*aInfo*/)
{
AVCodecContext *context;
AVStream *stream;
}
bool
-Target_LibAVCodec::start_frame(synfig::ProgressCallback *callback)
+Target_LibAVCodec::start_frame(synfig::ProgressCallback */*callback*/)
{
//prepare all the color buffer stuff, etc.
bool Target_LibAVCodec::init()
{
- //hardcode test for mpeg
+ //hardcoded test for mpeg
if(!data->Initialize(filename.c_str(),NULL))
{
synfig::warning("Unable to Initialize the audio video encoders");