ws-h264: merge ws/video; codecs/Video registers h264 (avc1/avc3/H264/... FourCCs, V_MPEG4/ISO/AVC) via H264.newVideoDecoder; video/h264 raw Annex B format (demux by access unit, copy-writer from MP4/MKV samples); MMCO 5 resets frame_num (JVT MR2/MR4/MR5); meta.yuv from the VUI
This commit is contained in:
commit
d4486dccce
211 files changed
+43039
-552
No files matched your search
@@ -152,6 +152,7 @@ local function emit(self: any, p: any)
|
||||
if sps.sarW and sps.sarH then
|
||||
img.meta.sar = { sps.sarW, sps.sarH }
|
||||
end
|
||||
img.meta.yuv = { range = if sps.fullRange then "full" else "limited", matrix = if sps.matrix == 1 then "bt709" else "bt601" }
|
||||
table.insert(self.out, { image = img, pts = p.pts, duration = 0, poc = p.poc, keyframe = p.idr })
|
||||
release(self, p)
|
||||
end
|
||||
@@ -743,9 +744,11 @@ local function finishPicture(self: any)
|
||||
bump(self, 0)
|
||||
end
|
||||
if mmco5 then
|
||||
-- 8.2.1: after MMCO 5 the picture counts as frame_num 0 with its POC moved to 0
|
||||
local t = p.poc
|
||||
p.topPoc -= t
|
||||
p.poc = 0
|
||||
p.frameNum = 0
|
||||
end
|
||||
-- POC / frame_num state for the next pictures
|
||||
if sh.nalRefIdc ~= 0 then
|
||||
|
||||
Reference in new issue
Block a user