FFmpeg
Data Structures | Enumerations | Functions | Variables
psd.c File Reference
#include "libavutil/mem.h"
#include "bytestream.h"
#include "codec_internal.h"
#include "decode.h"

Go to the source code of this file.

Data Structures

struct  PSDContext
 

Enumerations

enum  PsdCompr { PSD_RAW, PSD_RLE, PSD_ZIP_WITHOUT_P, PSD_ZIP_WITH_P }
 
enum  PsdColorMode {
  PSD_BITMAP, PSD_GRAYSCALE, PSD_INDEXED, PSD_RGB,
  PSD_CMYK, PSD_MULTICHANNEL, PSD_DUOTONE, PSD_LAB
}
 

Functions

static int decode_header (PSDContext *s)
 
static int decode_rle (PSDContext *s)
 
static int decode_frame (AVCodecContext *avctx, AVFrame *picture, int *got_frame, AVPacket *avpkt)
 

Variables

const FFCodec ff_psd_decoder
 

Enumeration Type Documentation

◆ PsdCompr

enum PsdCompr
Enumerator
PSD_RAW 
PSD_RLE 
PSD_ZIP_WITHOUT_P 
PSD_ZIP_WITH_P 

Definition at line 27 of file psd.c.

◆ PsdColorMode

Enumerator
PSD_BITMAP 
PSD_GRAYSCALE 
PSD_INDEXED 
PSD_RGB 
PSD_CMYK 
PSD_MULTICHANNEL 
PSD_DUOTONE 
PSD_LAB 

Definition at line 34 of file psd.c.

Function Documentation

◆ decode_header()

static int decode_header ( PSDContext s)
static

Definition at line 69 of file psd.c.

Referenced by decode_frame().

◆ decode_rle()

static int decode_rle ( PSDContext s)
static

Definition at line 227 of file psd.c.

Referenced by decode_frame().

◆ decode_frame()

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

Definition at line 293 of file psd.c.

Variable Documentation

◆ ff_psd_decoder

const FFCodec ff_psd_decoder
Initial value:
= {
.p.name = "psd",
CODEC_LONG_NAME("Photoshop PSD file"),
.p.type = AVMEDIA_TYPE_VIDEO,
.p.id = AV_CODEC_ID_PSD,
.priv_data_size = sizeof(PSDContext),
}

Definition at line 552 of file psd.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
PSDContext
Definition: psd.c:45
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
AV_CODEC_ID_PSD
@ AV_CODEC_ID_PSD
Definition: codec_id.h:273
AVMEDIA_TYPE_VIDEO
@ AVMEDIA_TYPE_VIDEO
Definition: avutil.h:201
decode_frame
static int decode_frame(AVCodecContext *avctx, AVFrame *picture, int *got_frame, AVPacket *avpkt)
Definition: psd.c:293