FFmpeg
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Functions | Variables
hnm4video.c File Reference
#include <string.h>
#include "libavutil/internal.h"
#include "libavutil/intreadwrite.h"
#include "libavutil/mem.h"
#include "avcodec.h"
#include "bytestream.h"
#include "internal.h"

Go to the source code of this file.

Data Structures

struct  Hnm4VideoContext
 

Macros

#define HNM4_CHUNK_ID_PL   19536
 
#define HNM4_CHUNK_ID_IZ   23113
 
#define HNM4_CHUNK_ID_IU   21833
 
#define HNM4_CHUNK_ID_SD   17491
 

Functions

static int getbit (GetByteContext *gb, uint32_t *bitbuf, int *bits)
 
static void unpack_intraframe (AVCodecContext *avctx, uint8_t *src, uint32_t size)
 
static void postprocess_current_frame (AVCodecContext *avctx)
 
static void copy_processed_frame (AVCodecContext *avctx, AVFrame *frame)
 
static void decode_interframe_v4 (AVCodecContext *avctx, uint8_t *src, uint32_t size)
 
static void decode_interframe_v4a (AVCodecContext *avctx, uint8_t *src, uint32_t size)
 
static void hnm_update_palette (AVCodecContext *avctx, uint8_t *src, uint32_t size)
 
static void hnm_flip_buffers (Hnm4VideoContext *hnm)
 
static int hnm_decode_frame (AVCodecContext *avctx, void *data, int *got_frame, AVPacket *avpkt)
 
static av_cold int hnm_decode_init (AVCodecContext *avctx)
 
static av_cold int hnm_decode_end (AVCodecContext *avctx)
 

Variables

AVCodec ff_hnm4_video_decoder
 

Macro Definition Documentation

#define HNM4_CHUNK_ID_PL   19536

Definition at line 32 of file hnm4video.c.

Referenced by hnm_decode_frame().

#define HNM4_CHUNK_ID_IZ   23113

Definition at line 33 of file hnm4video.c.

Referenced by hnm_decode_frame().

#define HNM4_CHUNK_ID_IU   21833

Definition at line 34 of file hnm4video.c.

Referenced by hnm_decode_frame().

#define HNM4_CHUNK_ID_SD   17491

Definition at line 35 of file hnm4video.c.

Function Documentation

static int getbit ( GetByteContext gb,
uint32_t *  bitbuf,
int *  bits 
)
static

Definition at line 49 of file hnm4video.c.

Referenced by unpack_intraframe().

static void unpack_intraframe ( AVCodecContext avctx,
uint8_t src,
uint32_t  size 
)
static

Definition at line 65 of file hnm4video.c.

Referenced by hnm_decode_frame().

static void postprocess_current_frame ( AVCodecContext avctx)
static

Definition at line 116 of file hnm4video.c.

Referenced by hnm_decode_frame().

static void copy_processed_frame ( AVCodecContext avctx,
AVFrame frame 
)
static

Definition at line 131 of file hnm4video.c.

Referenced by hnm_decode_frame().

static void decode_interframe_v4 ( AVCodecContext avctx,
uint8_t src,
uint32_t  size 
)
static

Definition at line 145 of file hnm4video.c.

Referenced by hnm_decode_frame().

static void decode_interframe_v4a ( AVCodecContext avctx,
uint8_t src,
uint32_t  size 
)
static

Definition at line 272 of file hnm4video.c.

Referenced by hnm_decode_frame().

static void hnm_update_palette ( AVCodecContext avctx,
uint8_t src,
uint32_t  size 
)
static

Definition at line 351 of file hnm4video.c.

Referenced by hnm_decode_frame().

static void hnm_flip_buffers ( Hnm4VideoContext hnm)
static

Definition at line 383 of file hnm4video.c.

Referenced by hnm_decode_frame().

static int hnm_decode_frame ( AVCodecContext avctx,
void data,
int *  got_frame,
AVPacket avpkt 
)
static

Definition at line 392 of file hnm4video.c.

static av_cold int hnm_decode_init ( AVCodecContext avctx)
static

Definition at line 453 of file hnm4video.c.

static av_cold int hnm_decode_end ( AVCodecContext avctx)
static

Definition at line 487 of file hnm4video.c.

Variable Documentation

AVCodec ff_hnm4_video_decoder
Initial value:
= {
.name = "hnm4video",
.long_name = NULL_IF_CONFIG_SMALL("HNM 4 video"),
.priv_data_size = sizeof(Hnm4VideoContext),
.capabilities = CODEC_CAP_DR1,
}

Definition at line 498 of file hnm4video.c.