1
0
mirror of https://github.com/FFmpeg/FFmpeg.git synced 2025-11-23 21:54:53 +02:00
Files
FFmpeg/libavformat/apv.h
Dawid Kozinski 8baa691e5f avformat/mov_muxer: Extended MOV muxer to handle APV video content
- Changes in mov_write_video_tag function to handle APV elementary stream
- Provided structure APVDecoderConfigurationRecord that specifies the decoder configuration information for APV video content

Co-Authored-by: James Almer <jamrial@gmail.com>
Signed-off-by: Dawid Kozinski <d.kozinski@samsung.com>
Signed-off-by: James Almer <jamrial@gmail.com>
2025-07-18 14:54:36 -03:00

50 lines
1.7 KiB
C

/*
* APV helper functions for muxers
* Copyright (c) 2025 Dawid Kozinski <d.kozinski@samsung.com>
*
* This file is part of FFmpeg.
*
* FFmpeg is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 2.1 of the License, or (at your option) any later version.
*
* FFmpeg is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public
* License along with FFmpeg; if not, write to the Free Software
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*/
#ifndef AVFORMAT_APV_H
#define AVFORMAT_APV_H
#include <stdint.h>
#include "avio.h"
struct APVDecoderConfigurationRecord;
struct AVPacket;
/**
* Writes APV sample metadata to the provided AVIOContext.
*
* @param pb pointer to the AVIOContext where the apv sample metadata shall be written
* @param buf input data buffer
* @param size size in bytes of the input data buffer
*
* @return 0 in case of success, a negative error code in case of failure
*/
void ff_isom_write_apvc(AVIOContext *pb, const struct APVDecoderConfigurationRecord *apvc,
void *logctx);
int ff_isom_init_apvc(struct APVDecoderConfigurationRecord **papvc, void *logctx);
int ff_isom_parse_apvc(struct APVDecoderConfigurationRecord *apvc,
const struct AVPacket *pkt, void *logctx);
void ff_isom_close_apvc(struct APVDecoderConfigurationRecord **papvc);
#endif // AVFORMAT_APV_H