Hap encoder.
More...
#include <stdint.h>
#include "snappy-c.h"
#include "libavutil/frame.h"
#include "libavutil/imgutils.h"
#include "libavutil/mem.h"
#include "libavutil/opt.h"
#include "avcodec.h"
#include "bytestream.h"
#include "codec_internal.h"
#include "encode.h"
#include "hap.h"
#include "texturedsp.h"
Go to the source code of this file.
|
| static int | compress_texture (AVCodecContext *avctx, uint8_t *out, int out_length, const AVFrame *f) |
| |
| static void | hap_write_section_header (PutByteContext *pbc, enum HapHeaderLength header_length, int section_length, enum HapSectionType section_type) |
| |
| static int | hap_compress_frame (AVCodecContext *avctx, uint8_t *dst) |
| |
| static int | hap_decode_instructions_length (HapContext *ctx) |
| |
| static int | hap_header_length (HapContext *ctx) |
| |
| static void | hap_write_frame_header (HapContext *ctx, uint8_t *dst, int frame_length) |
| |
| static int | hap_encode (AVCodecContext *avctx, AVPacket *pkt, const AVFrame *frame, int *got_packet) |
| |
| static av_cold int | hap_init (AVCodecContext *avctx) |
| |
| static av_cold int | hap_close (AVCodecContext *avctx) |
| |
◆ HAP_MAX_CHUNKS
| #define HAP_MAX_CHUNKS 64 |
◆ OFFSET
◆ FLAGS
◆ HapHeaderLength
| Enumerator |
|---|
| HAP_HDR_SHORT | |
| HAP_HDR_LONG | |
Definition at line 49 of file hapenc.c.
◆ compress_texture()
◆ hap_write_section_header()
◆ hap_compress_frame()
| static int hap_compress_frame |
( |
AVCodecContext * | avctx, |
|
|
uint8_t * | dst ) |
|
static |
◆ hap_decode_instructions_length()
| static int hap_decode_instructions_length |
( |
HapContext * | ctx | ) |
|
|
static |
◆ hap_header_length()
◆ hap_write_frame_header()
| static void hap_write_frame_header |
( |
HapContext * | ctx, |
|
|
uint8_t * | dst, |
|
|
int | frame_length ) |
|
static |
◆ hap_encode()
◆ hap_init()
◆ hap_close()
◆ options
Initial value:= {
}
@ AV_OPT_TYPE_CONST
Special option type for declaring named constants.
@ AV_OPT_TYPE_INT
Underlying C type is int.
Definition at line 333 of file hapenc.c.
◆ hapenc_class
Initial value:= {
.class_name = "Hap encoder",
}
const char * av_default_item_name(void *ptr)
Return the context name.
#define LIBAVUTIL_VERSION_INT
Definition at line 345 of file hapenc.c.
◆ ff_hap_encoder
Initial value:= {
.p.name = "hap",
}
#define CODEC_PIXFMTS(...)
#define FF_CODEC_ENCODE_CB(func)
#define CODEC_LONG_NAME(str)
#define FF_CODEC_CAP_INIT_CLEANUP
The codec allows calling the close function for deallocation even if the init function returned a fai...
#define AV_CODEC_CAP_ENCODER_REORDERED_OPAQUE
This encoder can reorder user opaque values from input AVFrames and return them with corresponding ou...
#define AV_CODEC_CAP_DR1
Codec uses get_buffer() or get_encode_buffer() for allocating buffers and supports custom allocators.
#define AV_CODEC_CAP_SLICE_THREADS
Codec supports slice-based (or partition-based) multithreading.
static av_cold int hap_init(AVCodecContext *avctx)
static av_cold int hap_close(AVCodecContext *avctx)
static int hap_encode(AVCodecContext *avctx, AVPacket *pkt, const AVFrame *frame, int *got_packet)
static const AVClass hapenc_class
@ AV_PIX_FMT_RGBA
packed RGBA 8:8:8:8, 32bpp, RGBARGBA...
Definition at line 352 of file hapenc.c.