avcodec: add AV_CODEC_ID_IVTV_VBI

IVTV, a Linux driver for TV tuners, and V4L2 utilize
a coding named after IVTV to carry sliced VBI data
in MPEG streams produced by tuner cards with
VBI capture capability and an MPEG-2 encoder SoC.

IVTV or V4L2 driver will transport the coded data into a
MPEG-PS private stream ("IVTV") that can be captured
from the card alongside the video/audio.

The data could include:
EIA-608, Teletext, WSS (PAL widescreen signaling),
or VPS (PAL VCR signaling).

Signed-off-by: Marth64 <marth64@proxyid.net>
This commit is contained in:
Scott Theisen
2024-12-14 17:00:22 -05:00
committed by Marth64
parent 0ae5b1bfcc
commit 9fb806fa57
4 changed files with 11 additions and 1 deletions

View File

@ -2,6 +2,9 @@ The last version increases of all libraries were on 2024-03-07
API changes, most recent first:
2025-02-09 - xxxxxxxxxx - lavc 61.32.100 - codec_id.h
Add AV_CODEC_ID_IVTV_VBI.
2025-01-25 - xxxxxxxxxx - lavu 59.56.100 - frame.h
Add AV_SIDE_DATA_PROP_CHANNEL_DEPENDENT.

View File

@ -3649,6 +3649,12 @@ static const AVCodecDescriptor codec_descriptors[] = {
.long_name = NULL_IF_CONFIG_SMALL("ARIB STD-B24 caption"),
.profiles = NULL_IF_CONFIG_SMALL(ff_arib_caption_profiles),
},
{
.id = AV_CODEC_ID_IVTV_VBI,
.type = AVMEDIA_TYPE_SUBTITLE,
.name = "ivtv_vbi",
.long_name = NULL_IF_CONFIG_SMALL("ivtv VBI captions"),
},
/* other kind of codecs and pseudo-codecs */
{

View File

@ -581,6 +581,7 @@ enum AVCodecID {
AV_CODEC_ID_HDMV_TEXT_SUBTITLE,
AV_CODEC_ID_TTML,
AV_CODEC_ID_ARIB_CAPTION,
AV_CODEC_ID_IVTV_VBI,
/* other specific kind of codecs (generally used for attachments) */
AV_CODEC_ID_FIRST_UNKNOWN = 0x18000, ///< A dummy ID pointing at the start of various fake codecs.

View File

@ -36,7 +36,7 @@ unsigned avcodec_version(void)
AV_CODEC_ID_ADPCM_XMD == 69683 &&
AV_CODEC_ID_CBD2_DPCM == 81928 &&
AV_CODEC_ID_QOA == 86121 &&
AV_CODEC_ID_ARIB_CAPTION == 94233 &&
AV_CODEC_ID_IVTV_VBI == 94234 &&
AV_CODEC_ID_SMPTE_2038 == 98315,
"Don't insert new codec ids in the middle of a list");
static_assert(LIBAVCODEC_VERSION_MICRO >= 100, "micro version starts at 100");