remove pause frame interface which will be done in application level
This commit is contained in:
@@ -71,12 +71,6 @@ class ISVCEncoder {
|
|||||||
* return: 0 - success; otherwise - failed;
|
* return: 0 - success; otherwise - failed;
|
||||||
*/
|
*/
|
||||||
virtual int EXTAPI EncodeParameterSets (SFrameBSInfo* pBsInfo) = 0;
|
virtual int EXTAPI EncodeParameterSets (SFrameBSInfo* pBsInfo) = 0;
|
||||||
|
|
||||||
/*
|
|
||||||
* return: 0 - success; otherwise - failed;
|
|
||||||
*/
|
|
||||||
virtual int EXTAPI PauseFrame (const SSourcePicture* kpSrcPic, SFrameBSInfo* pBsInfo) = 0;
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* return: 0 - success; otherwise - failed;
|
* return: 0 - success; otherwise - failed;
|
||||||
*/
|
*/
|
||||||
@@ -151,8 +145,6 @@ int (*Uninitialize) (ISVCEncoder*);
|
|||||||
int (*EncodeFrame) (ISVCEncoder*, const SSourcePicture* kpSrcPic, SFrameBSInfo* pBsInfo);
|
int (*EncodeFrame) (ISVCEncoder*, const SSourcePicture* kpSrcPic, SFrameBSInfo* pBsInfo);
|
||||||
int (*EncodeParameterSets) (ISVCEncoder*, SFrameBSInfo* pBsInfo);
|
int (*EncodeParameterSets) (ISVCEncoder*, SFrameBSInfo* pBsInfo);
|
||||||
|
|
||||||
int (*PauseFrame) (ISVCEncoder*, const SSourcePicture* kpSrcPic, SFrameBSInfo* pBsInfo);
|
|
||||||
|
|
||||||
int (*ForceIntraFrame) (ISVCEncoder*, bool bIDR);
|
int (*ForceIntraFrame) (ISVCEncoder*, bool bIDR);
|
||||||
|
|
||||||
int (*SetOption) (ISVCEncoder*, ENCODER_OPTION eOptionId, void* pOption);
|
int (*SetOption) (ISVCEncoder*, ENCODER_OPTION eOptionId, void* pOption);
|
||||||
|
|||||||
@@ -82,12 +82,6 @@ class CWelsH264SVCEncoder : public ISVCEncoder {
|
|||||||
* return: 0 - success; otherwise - failed;
|
* return: 0 - success; otherwise - failed;
|
||||||
*/
|
*/
|
||||||
virtual int EXTAPI EncodeParameterSets (SFrameBSInfo* pBsInfo);
|
virtual int EXTAPI EncodeParameterSets (SFrameBSInfo* pBsInfo);
|
||||||
|
|
||||||
/*
|
|
||||||
* return: 0 - success; otherwise - failed;
|
|
||||||
*/
|
|
||||||
virtual int EXTAPI PauseFrame (const SSourcePicture* kpSrcPic, SFrameBSInfo* pBsInfo);
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* return: 0 - success; otherwise - failed;
|
* return: 0 - success; otherwise - failed;
|
||||||
*/
|
*/
|
||||||
|
|||||||
@@ -507,23 +507,6 @@ int CWelsH264SVCEncoder::EncodeParameterSets (SFrameBSInfo* pBsInfo) {
|
|||||||
return WelsEncoderEncodeParameterSets (m_pEncContext, pBsInfo);
|
return WelsEncoderEncodeParameterSets (m_pEncContext, pBsInfo);
|
||||||
}
|
}
|
||||||
|
|
||||||
/*
|
|
||||||
* return: 0 - success; otherwise - failed;
|
|
||||||
*/
|
|
||||||
int CWelsH264SVCEncoder::PauseFrame (const SSourcePicture* kpSrcPic, SFrameBSInfo* pBsInfo) {
|
|
||||||
int32_t iReturn = cmResultSuccess;
|
|
||||||
|
|
||||||
ForceIntraFrame (true);
|
|
||||||
|
|
||||||
iReturn = EncodeFrameInternal (kpSrcPic, pBsInfo);
|
|
||||||
// to avoid pause frame bitstream and
|
|
||||||
// normal bitstream use different video channel.
|
|
||||||
ForceIntraFrame (true);
|
|
||||||
|
|
||||||
return (int)iReturn;
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Force key frame
|
* Force key frame
|
||||||
*/
|
*/
|
||||||
|
|||||||
@@ -16,10 +16,9 @@ void CheckEncoderInterface(ISVCEncoder* p, CheckFunc check) {
|
|||||||
CHECK(4, p, Uninitialize);
|
CHECK(4, p, Uninitialize);
|
||||||
CHECK(5, p, EncodeFrame);
|
CHECK(5, p, EncodeFrame);
|
||||||
CHECK(6, p, EncodeParameterSets);
|
CHECK(6, p, EncodeParameterSets);
|
||||||
CHECK(7, p, PauseFrame);
|
CHECK(7, p, ForceIntraFrame);
|
||||||
CHECK(8, p, ForceIntraFrame);
|
CHECK(8, p, SetOption);
|
||||||
CHECK(9, p, SetOption);
|
CHECK(9, p, GetOption);
|
||||||
CHECK(10, p, GetOption);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
void CheckDecoderInterface(ISVCDecoder* p, CheckFunc check) {
|
void CheckDecoderInterface(ISVCDecoder* p, CheckFunc check) {
|
||||||
|
|||||||
@@ -47,22 +47,17 @@ struct SVCEncoderImpl : public ISVCEncoder {
|
|||||||
EXPECT_TRUE (gThis == this);
|
EXPECT_TRUE (gThis == this);
|
||||||
return 6;
|
return 6;
|
||||||
}
|
}
|
||||||
virtual int EXTAPI PauseFrame (const SSourcePicture* kpSrcPic,
|
virtual int EXTAPI ForceIntraFrame (bool bIDR) {
|
||||||
SFrameBSInfo* pBsInfo) {
|
|
||||||
EXPECT_TRUE (gThis == this);
|
EXPECT_TRUE (gThis == this);
|
||||||
return 7;
|
return 7;
|
||||||
}
|
}
|
||||||
virtual int EXTAPI ForceIntraFrame (bool bIDR) {
|
virtual int EXTAPI SetOption (ENCODER_OPTION eOptionId, void* pOption) {
|
||||||
EXPECT_TRUE (gThis == this);
|
EXPECT_TRUE (gThis == this);
|
||||||
return 8;
|
return 8;
|
||||||
}
|
}
|
||||||
virtual int EXTAPI SetOption (ENCODER_OPTION eOptionId, void* pOption) {
|
|
||||||
EXPECT_TRUE (gThis == this);
|
|
||||||
return 9;
|
|
||||||
}
|
|
||||||
virtual int EXTAPI GetOption (ENCODER_OPTION eOptionId, void* pOption) {
|
virtual int EXTAPI GetOption (ENCODER_OPTION eOptionId, void* pOption) {
|
||||||
EXPECT_TRUE (gThis == this);
|
EXPECT_TRUE (gThis == this);
|
||||||
return 10;
|
return 9;
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user