FFmpeg
Loading...
Searching...
No Matches
movenchint.c File Reference
#include "movenc.h"
#include "libavutil/intreadwrite.h"
#include "libavutil/mem.h"
#include "mux.h"
#include "rtpenc_chain.h"
#include "avio_internal.h"
#include "rtp.h"

Go to the source code of this file.

Functions

int ff_mov_init_hinting (AVFormatContext *s, int index, int src_index)
 
static void sample_queue_pop (HintSampleQueue *queue)
 Remove the first sample from the sample queue.
 
static void sample_queue_free (HintSampleQueue *queue)
 Empty the sample queue, releasing all memory.
 
static void sample_queue_push (HintSampleQueue *queue, const uint8_t *data, int size, int sample)
 Add a reference to the sample data to the sample queue.
 
static void sample_queue_retain (HintSampleQueue *queue)
 Make local copies of all referenced sample data in the queue.
 
static int match_segments (const uint8_t *haystack, int h_len, const uint8_t *needle, int n_pos, int n_len, int *match_h_offset_ptr, int *match_n_offset_ptr, int *match_len_ptr)
 Find matches of needle[n_pos ->] within haystack.
 
static int find_sample_match (const uint8_t *data, int len, HintSampleQueue *queue, int *pos, int *match_sample, int *match_offset, int *match_len)
 Look for segments in samples in the sample queue matching the data in ptr.
 
static void output_immediate (const uint8_t *data, int size, AVIOContext *out, int *entries)
 
static void output_match (AVIOContext *out, int match_sample, int match_offset, int match_len, int *entries)
 
static void describe_payload (const uint8_t *data, int size, AVIOContext *out, int *entries, HintSampleQueue *queue)
 
static int write_hint_packets (AVIOContext *out, const uint8_t *data, int size, MOVTrack *trk, int64_t *dts)
 Write an RTP hint (that may contain one or more RTP packets) for the packets in data.
 
int ff_mov_add_hinted_packet (AVFormatContext *s, AVPacket *pkt, int track_index, int sample, uint8_t *sample_data, int sample_size)
 
void ff_mov_close_hinting (MOVTrack *track)
 

Function Documentation

◆ ff_mov_init_hinting()

int ff_mov_init_hinting ( AVFormatContext * s,
int index,
int src_index )

Definition at line 30 of file movenchint.c.

Referenced by mov_write_header().