Lines 43-48
Link Here
|
43 |
* $Date: 2012-10-02 00:34:04 -0500 (Tue, 02 Oct 2012) $ |
43 |
* $Date: 2012-10-02 00:34:04 -0500 (Tue, 02 Oct 2012) $ |
44 |
*/ |
44 |
*/ |
45 |
|
45 |
|
|
|
46 |
#define CODEC_FLAG_H263P_UMV 0x02000000 |
47 |
#define CODEC_FLAG_H263P_SLICE_STRUCT 0x10000000 |
48 |
#define CODEC_FLAG_H263P_AIV 0x00000008 |
49 |
#define CODEC_FLAG_OBMC 0x00000001 |
50 |
#define FF_I_TYPE 1 |
51 |
|
46 |
#ifndef PLUGIN_CODEC_DLL_EXPORTS |
52 |
#ifndef PLUGIN_CODEC_DLL_EXPORTS |
47 |
#include "plugin-config.h" |
53 |
#include "plugin-config.h" |
48 |
#endif |
54 |
#endif |
Lines 94-100
Link Here
|
94 |
{ CIF16_WIDTH, CIF16_HEIGHT, PLUGINCODEC_CIF16_MPI }, |
100 |
{ CIF16_WIDTH, CIF16_HEIGHT, PLUGINCODEC_CIF16_MPI }, |
95 |
}; |
101 |
}; |
96 |
|
102 |
|
97 |
static FFMPEGLibrary FFMPEGLibraryInstance(CODEC_ID_H263P); |
103 |
static FFMPEGLibrary FFMPEGLibraryInstance(AV_CODEC_ID_H263P); |
98 |
|
104 |
|
99 |
|
105 |
|
100 |
///////////////////////////////////////////////////////////////////////////// |
106 |
///////////////////////////////////////////////////////////////////////////// |
Lines 203-209
Link Here
|
203 |
PTRACE(4, m_prefix, "Encoder closed"); |
209 |
PTRACE(4, m_prefix, "Encoder closed"); |
204 |
} |
210 |
} |
205 |
|
211 |
|
206 |
bool H263_Base_EncoderContext::Init(CodecID codecId) |
212 |
bool H263_Base_EncoderContext::Init(AVCodecID codecId) |
207 |
{ |
213 |
{ |
208 |
PTRACE(5, m_prefix, "Opening encoder"); |
214 |
PTRACE(5, m_prefix, "Opening encoder"); |
209 |
|
215 |
|
Lines 616-622
Link Here
|
616 |
|
622 |
|
617 |
bool H263_RFC2190_EncoderContext::Init() |
623 |
bool H263_RFC2190_EncoderContext::Init() |
618 |
{ |
624 |
{ |
619 |
if (!H263_Base_EncoderContext::Init(CODEC_ID_H263)) |
625 |
if (!H263_Base_EncoderContext::Init(AV_CODEC_ID_H263)) |
620 |
return false; |
626 |
return false; |
621 |
|
627 |
|
622 |
#if LIBAVCODEC_RTP_MODE |
628 |
#if LIBAVCODEC_RTP_MODE |
Lines 661-667
Link Here
|
661 |
|
667 |
|
662 |
bool H263_RFC2429_EncoderContext::Init() |
668 |
bool H263_RFC2429_EncoderContext::Init() |
663 |
{ |
669 |
{ |
664 |
return H263_Base_EncoderContext::Init(CODEC_ID_H263P); |
670 |
return H263_Base_EncoderContext::Init(AV_CODEC_ID_H263P); |
665 |
} |
671 |
} |
666 |
|
672 |
|
667 |
|
673 |
|
Lines 685-691
Link Here
|
685 |
if (!FFMPEGLibraryInstance.Load()) |
691 |
if (!FFMPEGLibraryInstance.Load()) |
686 |
return; |
692 |
return; |
687 |
|
693 |
|
688 |
if ((m_codec = FFMPEGLibraryInstance.AvcodecFindDecoder(CODEC_ID_H263)) == NULL) { |
694 |
if ((m_codec = FFMPEGLibraryInstance.AvcodecFindDecoder(AV_CODEC_ID_H263)) == NULL) { |
689 |
PTRACE(1, m_prefix, "Codec not found for decoder"); |
695 |
PTRACE(1, m_prefix, "Codec not found for decoder"); |
690 |
return; |
696 |
return; |
691 |
} |
697 |
} |