Go to the documentation of this file.
41 if (((
ctx->texture == 0)&&((section_type & 0x0F) == 0x0F)) ||
42 ((
ctx->texture == 1)&&((section_type & 0x0F) == 0x01)))
56 int start_section_size;
57 int target_packet_size = 0;
69 if ((section_type & 0x0F) != 0x0D) {
70 av_log(bsf,
AV_LOG_ERROR,
"Invalid section type for HAPQA %#04x.\n", section_type & 0x0F);
75 start_section_size = 4;
83 target_packet_size = section_size + 4;
86 start_section_size += 4 + section_size;
92 target_packet_size = section_size + 4;
101 pkt->
data += start_section_size;
102 pkt->
size = target_packet_size;
114 #define OFFSET(x) offsetof(HapqaExtractContext, x)
115 #define FLAGS (AV_OPT_FLAG_VIDEO_PARAM | AV_OPT_FLAG_BSF_PARAM)
119 {
"alpha",
"keep HapAlphaOnly texture", 0,
AV_OPT_TYPE_CONST, { .i64 = 1 }, 0, 0,
FLAGS, .unit =
"texture" },
131 .
p.
name =
"hapqa_extract",
void av_packet_unref(AVPacket *pkt)
Wipe the packet.
static av_always_inline int bytestream2_seek(GetByteContext *g, int offset, int whence)
int ff_hap_parse_section_header(GetByteContext *gbc, int *section_size, enum HapSectionType *section_type)
void(* filter)(uint8_t *src, int stride, int qscale)
The bitstream filter state.
#define AV_LOG_ERROR
Something went wrong and cannot losslessly be recovered.
static AVFormatContext * ctx
#define LIBAVUTIL_VERSION_INT
Describe the class of an AVClass context structure.
const char * av_default_item_name(void *ptr)
Return the context name.
AVCodecID
Identify the syntax and semantics of the bitstream.
AVBitStreamFilter p
The public AVBitStreamFilter.
void * priv_data
Opaque filter-specific private data.
const char * class_name
The name of the class; usually it is the same name as the context structure type to which the AVClass...
@ AV_OPT_TYPE_INT
Underlying C type is int.
This structure stores compressed data.
static av_always_inline void bytestream2_init(GetByteContext *g, const uint8_t *buf, int buf_size)
int ff_bsf_get_packet_ref(AVBSFContext *ctx, AVPacket *pkt)
Called by bitstream filters to get packet for filtering.
#define AVERROR_INVALIDDATA
Invalid data found when processing input.
@ AV_OPT_TYPE_CONST
Special option type for declaring named constants.