FFmpeg
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Functions
av1.h File Reference
#include <stdint.h>
#include "avio.h"

Go to the source code of this file.

Functions

int ff_av1_filter_obus (AVIOContext *pb, const uint8_t *buf, int size)
 Filter out AV1 OBUs not meant to be present in ISOBMFF sample data and write the resulting bitstream to the provided AVIOContext. More...
 
int ff_av1_filter_obus_buf (const uint8_t *buf, uint8_t **out, int *size)
 Filter out AV1 OBUs not meant to be present in ISOBMFF sample data and write the resulting bitstream to a newly allocated data buffer. More...
 
int ff_isom_write_av1c (AVIOContext *pb, const uint8_t *buf, int size)
 Writes AV1 extradata (Sequence Header and Metadata OBUs) to the provided AVIOContext. More...
 

Function Documentation

int ff_av1_filter_obus ( AVIOContext pb,
const uint8_t buf,
int  size 
)

Filter out AV1 OBUs not meant to be present in ISOBMFF sample data and write the resulting bitstream to the provided AVIOContext.

Parameters
pbpointer to the AVIOContext where the filtered bitstream shall be written
bufinput data buffer
sizesize of the input data buffer
Returns
the amount of bytes written in case of success, a negative AVERROR code in case of failure

Definition at line 30 of file av1.c.

Referenced by ff_av1_filter_obus_buf(), and ff_mov_write_packet().

int ff_av1_filter_obus_buf ( const uint8_t buf,
uint8_t **  out,
int size 
)

Filter out AV1 OBUs not meant to be present in ISOBMFF sample data and write the resulting bitstream to a newly allocated data buffer.

Parameters
pbpointer to the AVIOContext where the filtered bitstream shall be written
bufinput data buffer
outpointer to pointer that will hold the allocated data buffer
sizesize of the input data buffer. The size of the resulting output data buffer will be written here
Returns
the amount of bytes written in case of success, a negative AVERROR code in case of failure. On failure, out and size are unchanged

Definition at line 60 of file av1.c.

Referenced by ff_mov_write_packet(), and mkv_write_block().

int ff_isom_write_av1c ( AVIOContext pb,
const uint8_t buf,
int  size 
)

Writes AV1 extradata (Sequence Header and Metadata OBUs) to the provided AVIOContext.

Parameters
pbpointer to the AVIOContext where the hvcC shall be written
bufinput data buffer
sizesize in bytes of the input data buffer
Returns
>= 0 in case of success, a negative AVERROR code in case of failure

Definition at line 300 of file av1.c.

Referenced by mkv_check_new_extra_data(), mkv_write_native_codecprivate(), and mov_write_av1c_tag().