FFmpeg
Loading...
Searching...
No Matches
apv.h
Go to the documentation of this file.
1/*
2 * APV helper functions for muxers
3 * Copyright (c) 2025 Dawid Kozinski <d.kozinski@samsung.com>
4 *
5 * This file is part of FFmpeg.
6 *
7 * FFmpeg is free software; you can redistribute it and/or
8 * modify it under the terms of the GNU Lesser General Public
9 * License as published by the Free Software Foundation; either
10 * version 2.1 of the License, or (at your option) any later version.
11 *
12 * FFmpeg is distributed in the hope that it will be useful,
13 * but WITHOUT ANY WARRANTY; without even the implied warranty of
14 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
15 * Lesser General Public License for more details.
16 *
17 * You should have received a copy of the GNU Lesser General Public
18 * License along with FFmpeg; if not, write to the Free Software
19 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
20 */
21
22#ifndef AVFORMAT_APV_H
23#define AVFORMAT_APV_H
24
25#include <stdint.h>
26
27#include "avio.h"
28
30struct AVPacket;
31
32/**
33 * Writes APV sample metadata to the provided AVIOContext.
34 *
35 * @param pb pointer to the AVIOContext where the apv sample metadata shall be written
36 * @param buf input data buffer
37 * @param size size in bytes of the input data buffer
38 *
39 * @return 0 in case of success, a negative error code in case of failure
40 */
42 void *logctx);
43
44int ff_isom_init_apvc(struct APVDecoderConfigurationRecord **papvc, void *logctx);
46 const struct AVPacket *pkt, void *logctx);
48
49#endif // AVFORMAT_APV_H
Buffered I/O operations.
static AVPacket * pkt
int ff_isom_init_apvc(struct APVDecoderConfigurationRecord **papvc, void *logctx)
Definition apv.c:352
void ff_isom_write_apvc(AVIOContext *pb, const struct APVDecoderConfigurationRecord *apvc, void *logctx)
Writes APV sample metadata to the provided AVIOContext.
void ff_isom_close_apvc(struct APVDecoderConfigurationRecord **papvc)
Definition apv.c:375
int ff_isom_parse_apvc(struct APVDecoderConfigurationRecord *apvc, const struct AVPacket *pkt, void *logctx)
Bytestream IO Context.
Definition avio.h:160
This structure stores compressed data.
Definition packet.h:580