FFmpeg
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
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

AVCodec ff_psd_decoder
 

Enumeration Type Documentation

enum PsdCompr
Enumerator
PSD_RAW 
PSD_RLE 
PSD_ZIP_WITHOUT_P 
PSD_ZIP_WITH_P 

Definition at line 25 of file psd.c.

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

static int decode_header ( PSDContext s)
static

Definition at line 67 of file psd.c.

Referenced by decode_frame().

static int decode_rle ( PSDContext s)
static

Definition at line 227 of file psd.c.

Referenced by decode_frame().

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

Definition at line 293 of file psd.c.

Variable Documentation

AVCodec ff_psd_decoder
Initial value:
= {
.name = "psd",
.long_name = NULL_IF_CONFIG_SMALL("Photoshop PSD file"),
.priv_data_size = sizeof(PSDContext),
}
static void decode(AVCodecContext *dec_ctx, AVPacket *pkt, AVFrame *frame, FILE *outfile)
Definition: decode_audio.c:42
#define NULL_IF_CONFIG_SMALL(x)
Return NULL if CONFIG_SMALL is true, otherwise the argument without modification. ...
Definition: internal.h:186
Definition: psd.c:43
#define AV_CODEC_CAP_FRAME_THREADS
Codec supports frame-level multithreading.
Definition: avcodec.h:1024
static int decode_frame(AVCodecContext *avctx, void *data, int *got_frame, AVPacket *avpkt)
Definition: psd.c:293
#define AV_CODEC_CAP_DR1
Codec uses get_buffer() for allocating buffers and supports custom allocators.
Definition: avcodec.h:968

Definition at line 466 of file psd.c.