FFmpeg
Loading...
Searching...
No Matches
prosumer.c File Reference
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include "libavutil/internal.h"
#include "libavutil/intreadwrite.h"
#include "libavutil/mem.h"
#include "avcodec.h"
#include "bytestream.h"
#include "codec_internal.h"
#include "decode.h"

Go to the source code of this file.

Data Structures

struct  ProSumerContext
 

Macros

#define PAIR(high, low)
 
#define TB(i)
 

Functions

static int decompress (GetByteContext *gb, int size, PutByteContext *pb, const uint32_t *lut)
 
static void vertical_predict (uint32_t *dst, int offset, const uint32_t *src, int stride, int height)
 
static int decode_frame (AVCodecContext *avctx, AVFrame *frame, int *got_frame, AVPacket *avpkt)
 
static void fill_elements (uint32_t idx, uint32_t shift, uint32_t *e0, uint32_t *e1)
 
static void fill_lut (uint32_t *lut)
 
static av_cold int decode_init (AVCodecContext *avctx)
 
static av_cold int decode_close (AVCodecContext *avctx)
 

Variables

static const uint16_t table []
 
const FFCodec ff_prosumer_decoder
 

Macro Definition Documentation

◆ PAIR

#define PAIR ( high,
low )
Value:
(((uint64_t)(high) << 32) | low)
int high
Definition dovi_rpuenc.c:39

Definition at line 46 of file prosumer.c.

Referenced by decompress().

◆ TB

#define TB ( i)
Value:
(1 + ((i) > 10) + ((i) > 49))
#define i(width, name, range_min, range_max)
Definition cbs_h264.c:63

Definition at line 202 of file prosumer.c.

Referenced by config_input(), fill_elements(), and fill_lut().

Function Documentation

◆ decompress()

static int decompress ( GetByteContext * gb,
int size,
PutByteContext * pb,
const uint32_t * lut )
static

Definition at line 48 of file prosumer.c.

Referenced by decode_frame().

◆ vertical_predict()

static void vertical_predict ( uint32_t * dst,
int offset,
const uint32_t * src,
int stride,
int height )
static

Definition at line 132 of file prosumer.c.

Referenced by decode_frame().

◆ decode_frame()

static int decode_frame ( AVCodecContext * avctx,
AVFrame * frame,
int * got_frame,
AVPacket * avpkt )
static

Definition at line 146 of file prosumer.c.

◆ fill_elements()

static void fill_elements ( uint32_t idx,
uint32_t shift,
uint32_t * e0,
uint32_t * e1 )
static

Definition at line 279 of file prosumer.c.

Referenced by fill_lut().

◆ fill_lut()

static void fill_lut ( uint32_t * lut)
static

Definition at line 305 of file prosumer.c.

Referenced by decode_init().

◆ decode_init()

static av_cold int decode_init ( AVCodecContext * avctx)
static

Definition at line 335 of file prosumer.c.

◆ decode_close()

static av_cold int decode_close ( AVCodecContext * avctx)
static

Definition at line 355 of file prosumer.c.

Variable Documentation

◆ table

const uint16_t table[]
static

Definition at line 203 of file prosumer.c.

Referenced by add_legacy_sws_pass(), add_level(), adpcm_swf_decode(), asv2_get_vlc2(), atrac3_init_static_data(), atrac9_init_vlc(), av_crc_get_table(), avs_decode_frame(), bink_init_vlcs(), build_filter(), build_huffman(), build_table(), build_vlc(), build_vlc(), compile_uops_c(), dca_vlc_calc_quant_bits(), dca_vlc_enc_quant(), decode_band_numwavs(), decode_channel(), decode_frame(), decode_gainc_levels(), decode_gainc_loc_codes(), decode_gainc_npoints(), decode_tones_amplitude(), decode_tones_frequency(), decode_tones_info(), delta_decode(), dequant_lsps(), dxv_decompress_opcodes(), encode_block(), ff_generate_wave_table(), ff_init_gamma_convert(), ff_mpa_l2_select_table(), ff_qp_table_extract(), ff_sws_uop_lookup(), ff_vlc_init_table_from_lengths(), ff_vlc_init_table_sparse(), ff_wma_init(), ffintscan(), fill_elements(), fill_ltable(), fill_lut(), fill_rgb2yuv_table(), free_lut(), gainc_level_mode1m(), gamma_convert(), get_opcodes(), get_qtable(), get_vlc2(), get_vlc_multi(), id3v2_check_write_tag(), if(), in_table_int16(), init_ptable(), ir2_decode_plane(), ir2_decode_plane_inter(), ircam_read_header(), jpeg2000_decode_ctx_vlc(), mov_read_sbgp(), mp_decode_layer2(), mpa_encode_init(), mpc8_decode_frame(), priv_set_idx(), qdmc_get_vlc(), quantize(), read_argb_line(), read_huff_channels(), read_quant_spectral_coeffs(), read_table(), read_vlc(), read_vlc_multi(), rv34_decode_cbp(), sbr_env_estimate(), sbr_mapping(), scd_read_table(), smk_get_code(), smka_decode_frame(), svq1_static_init(), sws_getColorspaceDetails(), sws_setColorspaceDetails(), tscc2_decode_mb(), uri_table_destroy(), uri_table_init(), uri_table_map(), uri_table_unmap(), vlc_multi_gen(), x8_init_vlc(), and xan_decode_chroma().

◆ ff_prosumer_decoder

const FFCodec ff_prosumer_decoder
Initial value:
= {
.p.name = "prosumer",
CODEC_LONG_NAME("Brooktree ProSumer Video"),
.p.type = AVMEDIA_TYPE_VIDEO,
.priv_data_size = sizeof(ProSumerContext),
.close = decode_close,
.p.capabilities = AV_CODEC_CAP_DR1,
.caps_internal = FF_CODEC_CAP_INIT_CLEANUP,
}
#define FF_CODEC_DECODE_CB(func)
#define CODEC_LONG_NAME(str)
#define FF_CODEC_CAP_INIT_CLEANUP
The codec allows calling the close function for deallocation even if the init function returned a fai...
int(* init)(AVBSFContext *ctx)
Definition dts2pts.c:608
#define AV_CODEC_CAP_DR1
Codec uses get_buffer() or get_encode_buffer() for allocating buffers and supports custom allocators.
Definition codec.h:49
@ AV_CODEC_ID_PROSUMER
Definition codec_id.h:283
@ AVMEDIA_TYPE_VIDEO
Definition avutil.h:200
static av_cold int decode_init(AVCodecContext *avctx)
Definition 4xm.c:998
static int decode_frame(AVCodecContext *avctx, AVFrame *picture, int *got_frame, AVPacket *avpkt)
Definition 4xm.c:837
static av_cold int decode_close(AVCodecContext *avctx)
Definition aacdec.c:1220

Definition at line 365 of file prosumer.c.