Skip to content

Commit 536f37b

Browse files
committed
upipe: add uref attribute for SMPTE 12M timecode
Based on a patch by Josh de Kock.
1 parent 432821e commit 536f37b

File tree

3 files changed

+5
-1
lines changed

3 files changed

+5
-1
lines changed

include/upipe/udict.h

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -150,7 +150,9 @@ enum udict_type {
150150
/** p.cea_708 */
151151
UDICT_TYPE_PIC_CEA_708,
152152
/** p.bar_data */
153-
UDICT_TYPE_PIC_BAR_DATA
153+
UDICT_TYPE_PIC_BAR_DATA,
154+
/** p.s12m */
155+
UDICT_TYPE_PIC_S12M,
154156
};
155157

156158
/** @This defines standard commands which udict modules may implement. */

include/upipe/uref_pic.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,7 @@ UREF_ATTR_VOID_SH(pic, tff, UDICT_TYPE_PIC_TFF, top field first)
5858
UREF_ATTR_SMALL_UNSIGNED_SH(pic, afd, UDICT_TYPE_PIC_AFD, active format description)
5959
UREF_ATTR_OPAQUE_SH(pic, cea_708, UDICT_TYPE_PIC_CEA_708, cea-708 captions)
6060
UREF_ATTR_OPAQUE_SH(pic, bar_data, UDICT_TYPE_PIC_BAR_DATA, afd bar data)
61+
UREF_ATTR_OPAQUE_SH(pic, s12m, UDICT_TYPE_PIC_S12M, SMPTE 12M timecode compatible with ffmpeg AV_FRAME_DATA_S12M_TIMECODE)
6162
UREF_ATTR_UNSIGNED(pic, original_height, "p.original_height", original picture height before chunking)
6263
UREF_ATTR_VOID(pic, c_not_y, "p.c_not_y", whether ancillary data is found in chroma space)
6364

lib/upipe/udict_inline.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -103,6 +103,7 @@ static const struct inline_shorthand inline_shorthands[] = {
103103
{ "p.afd", UDICT_TYPE_SMALL_UNSIGNED },
104104
{ "p.cea_708", UDICT_TYPE_OPAQUE },
105105
{ "p.bar_data", UDICT_TYPE_OPAQUE },
106+
{ "p.s12m", UDICT_TYPE_OPAQUE },
106107
};
107108

108109
/** @This stores the size of the value of basic attribute types. */

0 commit comments

Comments
 (0)