FFmpeg
Loading...
Searching...
No Matches
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.

Referenced by hdr_decode_frame().

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,
}
#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...
#define FF_CODEC_DECODE_CB(func)
#define CODEC_LONG_NAME(str)
#define AV_CODEC_CAP_DR1
Codec uses get_buffer() or get_encode_buffer() for allocating buffers and supports custom allocators.
Definition codec.h:49
#define AV_CODEC_CAP_FRAME_THREADS
Codec supports frame-level multithreading.
Definition codec.h:98
@ AV_CODEC_ID_RADIANCE_HDR
Definition codec_id.h:311
@ AVMEDIA_TYPE_VIDEO
Definition avutil.h:200
static int hdr_decode_frame(AVCodecContext *avctx, AVFrame *p, int *got_frame, AVPacket *avpkt)
Definition hdrdec.c:90

Definition at line 223 of file hdrdec.c.