h265新增支持两种类型的关键帧
This commit is contained in:
parent
163b0875cf
commit
4fbd45e408
|
|
@ -46,6 +46,9 @@ public:
|
||||||
NAL_IDR_W_RADL = 19,
|
NAL_IDR_W_RADL = 19,
|
||||||
NAL_IDR_N_LP = 20,
|
NAL_IDR_N_LP = 20,
|
||||||
NAL_CRA_NUT = 21,
|
NAL_CRA_NUT = 21,
|
||||||
|
NAL_RSV_IRAP_VCL22 = 22,
|
||||||
|
NAL_RSV_IRAP_VCL23 = 23,
|
||||||
|
|
||||||
NAL_VPS = 32,
|
NAL_VPS = 32,
|
||||||
NAL_SPS = 33,
|
NAL_SPS = 33,
|
||||||
NAL_PPS = 34,
|
NAL_PPS = 34,
|
||||||
|
|
@ -101,17 +104,7 @@ public:
|
||||||
}
|
}
|
||||||
|
|
||||||
static bool isKeyFrame(int type) {
|
static bool isKeyFrame(int type) {
|
||||||
switch (type) {
|
return type >= NAL_BLA_W_LP && type <= NAL_RSV_IRAP_VCL23;
|
||||||
case NAL_BLA_N_LP:
|
|
||||||
case NAL_BLA_W_LP:
|
|
||||||
case NAL_BLA_W_RADL:
|
|
||||||
case NAL_CRA_NUT:
|
|
||||||
case NAL_IDR_N_LP:
|
|
||||||
case NAL_IDR_W_RADL:
|
|
||||||
return true;
|
|
||||||
default:
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
public:
|
public:
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue