FFmpeg
Data Structures | Enumerations | Functions | Variables
psd.c File Reference
#include "bytestream.h"
#include "internal.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, void *data, int *got_frame, AVPacket *avpkt)
 

Variables

const AVCodec 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 25 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 32 of file psd.c.

Function Documentation

◆ decode_header()

static int decode_header ( PSDContext s)
static

Definition at line 67 of file psd.c.

Referenced by decode_frame().

◆ decode_rle()

static int decode_rle ( PSDContext s)
static

Definition at line 225 of file psd.c.

Referenced by decode_frame().

◆ decode_frame()

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

Definition at line 291 of file psd.c.

Variable Documentation

◆ ff_psd_decoder

const AVCodec ff_psd_decoder
Initial value:
= {
.name = "psd",
.long_name = NULL_IF_CONFIG_SMALL("Photoshop PSD file"),
.priv_data_size = sizeof(PSDContext),
}

Definition at line 548 of file psd.c.

decode_frame
static int decode_frame(AVCodecContext *avctx, void *data, int *got_frame, AVPacket *avpkt)
Definition: psd.c:291
decode
static void decode(AVCodecContext *dec_ctx, AVPacket *pkt, AVFrame *frame, FILE *outfile)
Definition: decode_audio.c:71
AV_CODEC_CAP_FRAME_THREADS
#define AV_CODEC_CAP_FRAME_THREADS
Codec supports frame-level multithreading.
Definition: codec.h:108
PSDContext
Definition: psd.c:43
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
NULL_IF_CONFIG_SMALL
#define NULL_IF_CONFIG_SMALL(x)
Return NULL if CONFIG_SMALL is true, otherwise the argument without modification.
Definition: internal.h:117
AV_CODEC_ID_PSD
@ AV_CODEC_ID_PSD
Definition: codec_id.h:271
AVMEDIA_TYPE_VIDEO
@ AVMEDIA_TYPE_VIDEO
Definition: avutil.h:201