FFmpeg
Macros | Functions | Variables
hdrdec.c File Reference
#include "avcodec.h"
#include "bytestream.h"
#include "codec_internal.h"
#include "decode.h"
#include "thread.h"

Go to the source code of this file.

Macros

#define MINELEN   8
 
#define MAXELEN   0x7fff
 

Functions

static int hdr_get_line (GetByteContext *gb, uint8_t *buffer, int size)
 
static float convert (int expo, int val)
 
static int decompress (uint8_t *scanline, int w, GetByteContext *gb, const uint8_t *start)
 
static int hdr_decode_frame (AVCodecContext *avctx, AVFrame *p, int *got_frame, AVPacket *avpkt)
 

Variables

const FFCodec ff_hdr_decoder
 

Macro Definition Documentation

◆ MINELEN

#define MINELEN   8

Definition at line 27 of file hdrdec.c.

◆ MAXELEN

#define MAXELEN   0x7fff

Definition at line 28 of file hdrdec.c.

Function Documentation

◆ hdr_get_line()

static int hdr_get_line ( GetByteContext gb,
uint8_t *  buffer,
int  size 
)
static

Definition at line 30 of file hdrdec.c.

Referenced by hdr_decode_frame().

◆ convert()

static float convert ( int  expo,
int  val 
)
static

Definition at line 45 of file hdrdec.c.

Referenced by hdr_decode_frame().

◆ decompress()

static int decompress ( uint8_t *  scanline,
int  w,
GetByteContext gb,
const uint8_t *  start 
)
static

Definition at line 56 of file hdrdec.c.

Referenced by hdr_decode_frame().

◆ hdr_decode_frame()

static int hdr_decode_frame ( AVCodecContext avctx,
AVFrame p,
int *  got_frame,
AVPacket avpkt 
)
static

Definition at line 90 of file hdrdec.c.

Variable Documentation

◆ ff_hdr_decoder

const FFCodec ff_hdr_decoder
Initial value:
= {
.p.name = "hdr",
CODEC_LONG_NAME("HDR (Radiance RGBE format) image"),
.p.type = AVMEDIA_TYPE_VIDEO,
}

Definition at line 220 of file hdrdec.c.

FF_CODEC_DECODE_CB
#define FF_CODEC_DECODE_CB(func)
Definition: codec_internal.h:311
CODEC_LONG_NAME
#define CODEC_LONG_NAME(str)
Definition: codec_internal.h:296
AV_CODEC_CAP_FRAME_THREADS
#define AV_CODEC_CAP_FRAME_THREADS
Codec supports frame-level multithreading.
Definition: codec.h:110
AV_CODEC_CAP_DR1
#define AV_CODEC_CAP_DR1
Codec uses get_buffer() or get_encode_buffer() for allocating buffers and supports custom allocators.
Definition: codec.h:52
FF_CODEC_CAP_SKIP_FRAME_FILL_PARAM
#define FF_CODEC_CAP_SKIP_FRAME_FILL_PARAM
The decoder extracts and fills its parameters even if the frame is skipped due to the skip_frame sett...
Definition: codec_internal.h:55
hdr_decode_frame
static int hdr_decode_frame(AVCodecContext *avctx, AVFrame *p, int *got_frame, AVPacket *avpkt)
Definition: hdrdec.c:90
AVMEDIA_TYPE_VIDEO
@ AVMEDIA_TYPE_VIDEO
Definition: avutil.h:201
AV_CODEC_ID_RADIANCE_HDR
@ AV_CODEC_ID_RADIANCE_HDR
Definition: codec_id.h:316