FFmpeg
Loading...
Searching...
No Matches
parse_skip_samples.c File Reference
#include <inttypes.h>
#include <stdio.h>
#include <string.h>
#include "libavutil/file.h"
#include "libavutil/intreadwrite.h"
#include "libavutil/log.h"
#include "libavcodec/avcodec.h"
#include "libavformat/avformat.h"
#include "libavformat/demux.h"
#include "libavformat/internal.h"

Go to the source code of this file.

Macros

#define FRAME_SIZE   1536 /* bytes per frame of the sample */
 
#define FRAMES_PER_PACKET   4
 

Functions

static int read_header (AVFormatContext *s)
 
static int read_packet (AVFormatContext *s, AVPacket *pkt)
 
static int run (void)
 
int main (int argc, char **argv)
 

Variables

static uint8_t * file_buf
 
static size_t file_size
 
static size_t file_pos
 
static uint32_t skip_start
 
static uint32_t skip_end
 
static uint32_t next_skip_start
 
static uint8_t reason_start
 
static uint8_t reason_end
 
static const FFInputFormat test_demuxer
 

Macro Definition Documentation

◆ FRAME_SIZE

#define FRAME_SIZE   1536 /* bytes per frame of the sample */

Definition at line 36 of file parse_skip_samples.c.

◆ FRAMES_PER_PACKET

#define FRAMES_PER_PACKET   4

Definition at line 37 of file parse_skip_samples.c.

Function Documentation

◆ read_header()

static int read_header ( AVFormatContext * s)
static

Definition at line 44 of file parse_skip_samples.c.

◆ read_packet()

static int read_packet ( AVFormatContext * s,
AVPacket * pkt )
static

Definition at line 58 of file parse_skip_samples.c.

◆ run()

static int run ( void )
static

Definition at line 89 of file parse_skip_samples.c.

Referenced by main().

◆ main()

int main ( int argc,
char ** argv )

Definition at line 159 of file parse_skip_samples.c.

Variable Documentation

◆ file_buf

uint8_t* file_buf
static

Definition at line 39 of file parse_skip_samples.c.

Referenced by init(), main(), and read_packet().

◆ file_size

◆ file_pos

size_t file_pos
static

Definition at line 40 of file parse_skip_samples.c.

Referenced by read_packet(), and run().

◆ skip_start

uint32_t skip_start
static

Definition at line 41 of file parse_skip_samples.c.

Referenced by main(), read_packet(), read_sm_data(), and run().

◆ skip_end

uint32_t skip_end
static

Definition at line 41 of file parse_skip_samples.c.

Referenced by main(), read_packet(), read_sm_data(), and run().

◆ next_skip_start

uint32_t next_skip_start
static

Definition at line 41 of file parse_skip_samples.c.

Referenced by main(), and read_packet().

◆ reason_start

uint8_t reason_start
static

Definition at line 42 of file parse_skip_samples.c.

Referenced by main(), read_packet(), and run().

◆ reason_end

uint8_t reason_end
static

Definition at line 42 of file parse_skip_samples.c.

Referenced by main(), read_packet(), and run().

◆ test_demuxer

const FFInputFormat test_demuxer
static
Initial value:
= {
.p.name = "test",
.p.flags = AVFMT_NOFILE,
.read_header = read_header,
.read_packet = read_packet,
}
#define AVFMT_NOFILE
Demuxer will use avio_open, no opened file should be provided by the caller.
Definition avformat.h:490
static int read_packet(void *opaque, uint8_t *buf, int buf_size)
static int read_header(FFV1Context *f, RangeCoder *c)
Definition ffv1dec.c:580

Definition at line 82 of file parse_skip_samples.c.