FFmpeg
Loading...
Searching...
No Matches
ffv1.c File Reference

FF Video Codec 1 (a lossless codec) More...

#include "libavutil/attributes.h"
#include "libavutil/avassert.h"
#include "libavutil/mem.h"
#include "avcodec.h"
#include "ffv1.h"
#include "libavutil/refstruct.h"

Go to the source code of this file.

Functions

av_cold int ff_ffv1_common_init (AVCodecContext *avctx, FFV1Context *s)
 
static void planes_free (AVRefStructOpaque opaque, void *obj)
 
PlaneContextff_ffv1_planes_alloc (void)
 
av_cold int ff_ffv1_init_slice_state (const FFV1Context *f, FFV1SliceContext *sc)
 
av_cold int ff_ffv1_init_slices_state (FFV1Context *f)
 
int ff_need_new_slices (int width, int num_h_slices, int chroma_shift)
 
int ff_slice_coord (const FFV1Context *f, int width, int sx, int num_h_slices, int chroma_shift)
 This is intended for both width and height.
 
av_cold int ff_ffv1_init_slice_contexts (FFV1Context *f)
 
int ff_ffv1_allocate_initial_states (FFV1Context *f)
 
void ff_ffv1_clear_slice_state (const FFV1Context *f, FFV1SliceContext *sc)
 
void ff_ffv1_compute_bits_per_plane (const FFV1Context *f, FFV1SliceContext *sc, int bits[4], int *offset, int mask[4], int bits_per_raw_sample)
 
int ff_ffv1_get_symbol (RangeCoder *c, uint8_t *state, int is_signed)
 
av_cold void ff_ffv1_close (FFV1Context *s)
 

Detailed Description

FF Video Codec 1 (a lossless codec)

Definition in file ffv1.c.

Function Documentation

◆ ff_ffv1_common_init()

av_cold int ff_ffv1_common_init ( AVCodecContext * avctx,
FFV1Context * s )

Definition at line 36 of file ffv1.c.

Referenced by decode_init(), encode_init_internal(), parse(), and vulkan_encode_ffv1_init().

◆ planes_free()

static void planes_free ( AVRefStructOpaque opaque,
void * obj )
static

Definition at line 54 of file ffv1.c.

Referenced by ff_ffv1_planes_alloc().

◆ ff_ffv1_planes_alloc()

PlaneContext * ff_ffv1_planes_alloc ( void )

Definition at line 66 of file ffv1.c.

Referenced by ff_ffv1_init_slice_contexts(), and read_header().

◆ ff_ffv1_init_slice_state()

av_cold int ff_ffv1_init_slice_state ( const FFV1Context * f,
FFV1SliceContext * sc )

Definition at line 72 of file ffv1.c.

Referenced by decode_slice(), and ff_ffv1_init_slices_state().

◆ ff_ffv1_init_slices_state()

av_cold int ff_ffv1_init_slices_state ( FFV1Context * f)

Definition at line 110 of file ffv1.c.

Referenced by encode_init_internal().

◆ ff_need_new_slices()

int ff_need_new_slices ( int width,
int num_h_slices,
int chroma_shift )

Definition at line 120 of file ffv1.c.

Referenced by ff_ffv1_encode_determine_slices().

◆ ff_slice_coord()

int ff_slice_coord ( const FFV1Context * f,
int width,
int sx,
int num_h_slices,
int chroma_shift )

This is intended for both width and height.

Definition at line 127 of file ffv1.c.

Referenced by decode_slice_header(), and ff_ffv1_init_slice_contexts().

◆ ff_ffv1_init_slice_contexts()

av_cold int ff_ffv1_init_slice_contexts ( FFV1Context * f)

Definition at line 142 of file ffv1.c.

Referenced by decode_init(), and encode_init_internal().

◆ ff_ffv1_allocate_initial_states()

int ff_ffv1_allocate_initial_states ( FFV1Context * f)

Definition at line 185 of file ffv1.c.

Referenced by ff_ffv1_encode_init(), and ff_ffv1_read_extra_header().

◆ ff_ffv1_clear_slice_state()

void ff_ffv1_clear_slice_state ( const FFV1Context * f,
FFV1SliceContext * sc )

Definition at line 200 of file ffv1.c.

Referenced by decode_slice(), encode_slice(), and encode_slice_header().

◆ ff_ffv1_compute_bits_per_plane()

void ff_ffv1_compute_bits_per_plane ( const FFV1Context * f,
FFV1SliceContext * sc,
int bits[4],
int * offset,
int mask[4],
int bits_per_raw_sample )

◆ ff_ffv1_get_symbol()

int ff_ffv1_get_symbol ( RangeCoder * c,
uint8_t * state,
int is_signed )

◆ ff_ffv1_close()

av_cold void ff_ffv1_close ( FFV1Context * s)

Definition at line 268 of file ffv1.c.

Referenced by encode_close(), ffv1_close(), and ffv1_decode_close().