#include <time.h>#include <stdarg.h>#include "avformat.h"#include "internal.h"#include "libavcodec/dv_profile.h"#include "libavcodec/dvdata.h"#include "dv.h"#include "libavutil/fifo.h"#include "libavutil/mathematics.h"#include "libavutil/intreadwrite.h"#include "libavutil/opt.h"#include "libavutil/timecode.h"Go to the source code of this file.
Data Structures | |
| struct | DVMuxContext |
Functions | |
| static int | dv_audio_frame_size (const DVprofile *sys, int frame) |
| static int | dv_write_pack (enum dv_pack_type pack_id, DVMuxContext *c, uint8_t *buf,...) |
| static void | dv_inject_audio (DVMuxContext *c, int channel, uint8_t *frame_ptr) |
| static void | dv_inject_metadata (DVMuxContext *c, uint8_t *frame) |
| static int | dv_assemble_frame (DVMuxContext *c, AVStream *st, uint8_t *data, int data_size, uint8_t **frame) |
| static DVMuxContext * | dv_init_mux (AVFormatContext *s) |
| static void | dv_delete_mux (DVMuxContext *c) |
| static int | dv_write_header (AVFormatContext *s) |
| static int | dv_write_packet (struct AVFormatContext *s, AVPacket *pkt) |
| static int | dv_write_trailer (struct AVFormatContext *s) |
Variables | |
| static const int | dv_aaux_packs_dist [12][9] |
| class { | |
| class_name = "dv" | |
| item_name = av_default_item_name | |
| version = LIBAVUTIL_VERSION_INT | |
| option | |
| }; | |
| AVOutputFormat | ff_dv_muxer |
| static int dv_assemble_frame | ( | DVMuxContext * | c, | |
| AVStream * | st, | |||
| uint8_t * | data, | |||
| int | data_size, | |||
| uint8_t ** | frame | |||
| ) | [static] |
| static int dv_audio_frame_size | ( | const DVprofile * | sys, | |
| int | frame | |||
| ) | [static] |
Definition at line 74 of file dvenc.c.
Referenced by dv_assemble_frame(), dv_inject_audio(), and dv_write_pack().
| static void dv_delete_mux | ( | DVMuxContext * | c | ) | [static] |
| static DVMuxContext* dv_init_mux | ( | AVFormatContext * | s | ) | [static] |
| static void dv_inject_audio | ( | DVMuxContext * | c, | |
| int | channel, | |||
| uint8_t * | frame_ptr | |||
| ) | [static] |
| static void dv_inject_metadata | ( | DVMuxContext * | c, | |
| uint8_t * | frame | |||
| ) | [static] |
| static int dv_write_header | ( | AVFormatContext * | s | ) | [static] |
| static int dv_write_pack | ( | enum dv_pack_type | pack_id, | |
| DVMuxContext * | c, | |||
| uint8_t * | buf, | |||
| ... | ||||
| ) | [static] |
| static int dv_write_packet | ( | struct AVFormatContext * | s, | |
| AVPacket * | pkt | |||
| ) | [static] |
| static int dv_write_trailer | ( | struct AVFormatContext * | s | ) | [static] |
const { ... } [static] |
| class_name = "dv" |
const int dv_aaux_packs_dist[12][9] [static] |
Initial value:
{
{ 0xff, 0xff, 0xff, 0x50, 0x51, 0x52, 0x53, 0xff, 0xff },
{ 0x50, 0x51, 0x52, 0x53, 0xff, 0xff, 0xff, 0xff, 0xff },
{ 0xff, 0xff, 0xff, 0x50, 0x51, 0x52, 0x53, 0xff, 0xff },
{ 0x50, 0x51, 0x52, 0x53, 0xff, 0xff, 0xff, 0xff, 0xff },
{ 0xff, 0xff, 0xff, 0x50, 0x51, 0x52, 0x53, 0xff, 0xff },
{ 0x50, 0x51, 0x52, 0x53, 0xff, 0xff, 0xff, 0xff, 0xff },
{ 0xff, 0xff, 0xff, 0x50, 0x51, 0x52, 0x53, 0xff, 0xff },
{ 0x50, 0x51, 0x52, 0x53, 0xff, 0xff, 0xff, 0xff, 0xff },
{ 0xff, 0xff, 0xff, 0x50, 0x51, 0x52, 0x53, 0xff, 0xff },
{ 0x50, 0x51, 0x52, 0x53, 0xff, 0xff, 0xff, 0xff, 0xff },
{ 0xff, 0xff, 0xff, 0x50, 0x51, 0x52, 0x53, 0xff, 0xff },
{ 0x50, 0x51, 0x52, 0x53, 0xff, 0xff, 0xff, 0xff, 0xff },
}
Definition at line 59 of file dvenc.c.
Referenced by dv_inject_audio().
Initial value:
{
.name = "dv",
.long_name = NULL_IF_CONFIG_SMALL("DV video format"),
.extensions = "dv",
.priv_data_size = sizeof(DVMuxContext),
.audio_codec = CODEC_ID_PCM_S16LE,
.video_codec = CODEC_ID_DVVIDEO,
.write_header = dv_write_header,
.write_packet = dv_write_packet,
.write_trailer = dv_write_trailer,
.priv_class = &class,
}
Initial value:
(const AVOption[]){ {AV_TIMECODE_OPTION(DVMuxContext, tc_opt_str, AV_OPT_FLAG_ENCODING_PARAM)}, {NULL}, }
1.5.8