FFmpeg
libavformat
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
29
struct
APVDecoderConfigurationRecord
;
30
struct
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
*/
41
void
ff_isom_write_apvc
(
AVIOContext
*pb,
const
struct
APVDecoderConfigurationRecord
*apvc,
42
void
*logctx);
43
44
int
ff_isom_init_apvc
(
struct
APVDecoderConfigurationRecord
**papvc,
void
*logctx);
45
int
ff_isom_parse_apvc
(
struct
APVDecoderConfigurationRecord
*apvc,
46
const
struct
AVPacket
*
pkt
,
void
*logctx);
47
void
ff_isom_close_apvc
(
struct
APVDecoderConfigurationRecord
**papvc);
48
49
#endif // AVFORMAT_APV_H
ff_isom_parse_apvc
int ff_isom_parse_apvc(struct APVDecoderConfigurationRecord *apvc, const struct AVPacket *pkt, void *logctx)
ff_isom_close_apvc
void ff_isom_close_apvc(struct APVDecoderConfigurationRecord **papvc)
Definition:
apv.c:375
APVDecoderConfigurationRecord
Definition:
apv.c:70
pkt
AVPacket * pkt
Definition:
movenc.c:60
ff_isom_init_apvc
int ff_isom_init_apvc(struct APVDecoderConfigurationRecord **papvc, void *logctx)
Definition:
apv.c:352
AVIOContext
Bytestream IO Context.
Definition:
avio.h:160
avio.h
AVPacket
This structure stores compressed data.
Definition:
packet.h:529
ff_isom_write_apvc
void ff_isom_write_apvc(AVIOContext *pb, const struct APVDecoderConfigurationRecord *apvc, void *logctx)
Writes APV sample metadata to the provided AVIOContext.
Generated on Sat Aug 2 2025 19:21:49 for FFmpeg by
1.8.17