Mark Thompson
84bb8327f5
cbs: Add a table of all supported codec IDs
...
Use it as the set of codec IDs supported by the trace_headers BSF.
7 years ago
James Almer
df3a2ff767
avcodec/cbs: use a reference to the assembled CodedBitstreamFragment buffer when writing packets
...
This saves one malloc + memcpy per packet
The CodedBitstreamFragment buffer is padded to follow the requirements
of AVPacket.
Reviewed-by: jkqxz
Signed-off-by: James Almer <jamrial@gmail.com>
7 years ago
Mark Thompson
ce5870a3a8
cbs: Refcount all the things!
...
This makes it easier for users of the CBS API to get alloc/free right -
all subelements use the buffer API so that it's clear how to free them.
It also allows eliding some redundant copies: the packet -> fragment copy
disappears after this change if the input packet is refcounted, and more
codec-specific cases are now possible (but not included in this patch).
7 years ago
Mark Thompson
a3daecd637
cbs: Demote the "decomposition unimplemented" warning
...
This is harmless and should not be a warning - unknown units are passed
through to the write functions unchanged, and no other code will interact
with them.
7 years ago
Mark Thompson
1d12a545ce
cbs: Add an explicit type for coded bitstream unit types
...
Also fix conversion specifiers used for the unit type.
7 years ago
Mark Thompson
2651352988
cbs: Allocate the context inside the init function
...
... instead of making callers allocate it themselves. This is more
consistent with other APIs in libav.
7 years ago
Mark Thompson
476d301316
cbs: Add a missing return value check
7 years ago
Mark Thompson
686e388bbb
lavc: Add coded bitstream read/write support for MPEG-2
...
(cherry picked from commit 2bc9ba8d3c
)
(cherry picked from commit a41b69b5eb
)
7 years ago
Mark Thompson
9b0c7aa0e4
lavc: Add coded bitstream read/write support for H.265
...
(cherry picked from commit 867381b8b5
)
(cherry picked from commit f763489364
)
(cherry picked from commit 067a9ddeb8
)
7 years ago
Mark Thompson
b4c915f4b3
lavc: Add coded bitstream read/write support for H.264
...
(cherry picked from commit acf06f4544
)
(cherry picked from commit 768eb9182e
)
(cherry picked from commit e7f64191b2
)
7 years ago
Mark Thompson
6734eef6b8
lavc: Add coded bitstream read/write API
...
(cherry picked from commit 18f1706f33
)
(cherry picked from commit 44cde38c8a
)
7 years ago
Mark Thompson
44cde38c8a
cbs: Always check for bitstream end before reading
7 years ago
Mark Thompson
2bc9ba8d3c
lavc: Add coded bitstream read/write support for MPEG-2
...
Also enable MPEG-2 support in the trace_headers filter.
8 years ago
Mark Thompson
867381b8b5
lavc: Add coded bitstream read/write support for H.265
8 years ago
Mark Thompson
acf06f4544
lavc: Add coded bitstream read/write support for H.264
8 years ago
Mark Thompson
18f1706f33
lavc: Add coded bitstream read/write API
8 years ago