Skip to content

Commit

Permalink
Add ID3v2 encaps pipe
Browse files Browse the repository at this point in the history
  • Loading branch information
quarium committed Aug 3, 2023
1 parent 14741e6 commit 1cc5c7d
Show file tree
Hide file tree
Showing 4 changed files with 424 additions and 0 deletions.
1 change: 1 addition & 0 deletions include/upipe-modules/Makefile.am
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,7 @@ myinclude_HEADERS = \
upipe_segment_source.h \
upipe_id3v2.h \
upipe_id3v2_decaps.h \
upipe_id3v2_encaps.h \
upipe_rtp_reorder.h \
upipe_subpic_schedule.h \
upipe_s337_encaps.h \
Expand Down
41 changes: 41 additions & 0 deletions include/upipe-modules/upipe_id3v2_encaps.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
/*
* Copyright (C) 2023 EasyTools
*
* Permission is hereby granted, free of charge, to any person obtaining
* a copy of this software and associated documentation files (the
* "Software"), to deal in the Software without restriction, including
* without limitation the rights to use, copy, modify, merge, publish,
* distribute, sublicense, and/or sell copies of the Software, and to
* permit persons to whom the Software is furnished to do so, subject
* to the following conditions:
*
* The above copyright notice and this permission notice shall be
* included in all copies or substantial portions of the Software.
*
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
* EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
* MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
* IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
* CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
* TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
* SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
*/

#ifndef _UPIPE_MODULES_UPIPE_ID3V2_ENCAPS_H_
# define _UPIPE_MODULES_UPIPE_ID3V2_ENCAPS_H_
# ifdef __cplusplus
extern "C" {
#endif

#include "upipe/uprobe.h"

#define UPIPE_ID3V2E_SUB_SIGNATURE UBASE_FOURCC('i','d','3','e')
#define UPIPE_ID3V2E_SIGNATURE UBASE_FOURCC('i','d','3','E')

/** @This returns the id3v2 pipe manager. */
struct upipe_mgr *upipe_id3v2e_mgr_alloc(void);

# ifdef __cplusplus
}
#endif
#endif /* !_UPIPE_MODULES_UPIPE_ID3V2_ENCAPS_H_ */
1 change: 1 addition & 0 deletions lib/upipe-modules/Makefile.am
Original file line number Diff line number Diff line change
Expand Up @@ -103,6 +103,7 @@ libupipe_modules_la_SOURCES += \
upipe_s337_encaps.c \
upipe_vanc_decoder.c \
upipe_id3v2_decaps.c \
upipe_id3v2_encaps.c \
$(NULL)
libupipe_modules_la_CFLAGS = $(AM_CFLAGS) $(BITSTREAM_CFLAGS)
endif
Expand Down
Loading

0 comments on commit 1cc5c7d

Please sign in to comment.