#include "avcodec.h"
#include "bytestream.h"
#include "internal.h"
#include "sunrast.h"
Go to the source code of this file.
Data Structures | |
struct | SUNRASTContext |
Defines | |
#define | GET_VALUE y >= avctx->height ? 0 : x >= len ? ptr[len-1] : ptr[x] |
Functions | |
static void | sunrast_image_write_header (AVCodecContext *avctx) |
static void | sunrast_image_write_image (AVCodecContext *avctx, const uint8_t *pixels, const uint32_t *palette_data, int linesize) |
static av_cold int | sunrast_encode_init (AVCodecContext *avctx) |
static int | sunrast_encode_frame (AVCodecContext *avctx, AVPacket *avpkt, const AVFrame *frame, int *got_packet_ptr) |
Variables | |
static const AVCodecDefault | sunrast_defaults [] |
AVCodec | ff_sunrast_encoder |
Referenced by sunrast_image_write_image().
static int sunrast_encode_frame | ( | AVCodecContext * | avctx, | |
AVPacket * | avpkt, | |||
const AVFrame * | frame, | |||
int * | got_packet_ptr | |||
) | [static] |
Definition at line 181 of file sunrastenc.c.
static av_cold int sunrast_encode_init | ( | AVCodecContext * | avctx | ) | [static] |
Definition at line 136 of file sunrastenc.c.
static void sunrast_image_write_header | ( | AVCodecContext * | avctx | ) | [static] |
static void sunrast_image_write_image | ( | AVCodecContext * | avctx, | |
const uint8_t * | pixels, | |||
const uint32_t * | palette_data, | |||
int | linesize | |||
) | [static] |
Initial value:
{ .name = "sunrast", .type = AVMEDIA_TYPE_VIDEO, .id = AV_CODEC_ID_SUNRAST, .priv_data_size = sizeof(SUNRASTContext), .init = sunrast_encode_init, .encode2 = sunrast_encode_frame, .defaults = sunrast_defaults, .pix_fmts = (const enum PixelFormat[]){ PIX_FMT_BGR24, PIX_FMT_PAL8, PIX_FMT_GRAY8, PIX_FMT_MONOWHITE, PIX_FMT_NONE }, .long_name = NULL_IF_CONFIG_SMALL("Sun Rasterfile image"), }
Definition at line 210 of file sunrastenc.c.
const AVCodecDefault sunrast_defaults[] [static] |