Hap encoder.  
More...
#include <stdint.h>
#include "snappy-c.h"
#include "libavutil/frame.h"
#include "libavutil/imgutils.h"
#include "libavutil/intreadwrite.h"
#include "libavutil/opt.h"
#include "avcodec.h"
#include "bytestream.h"
#include "hap.h"
#include "internal.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) | 
|   | 
      
        
          | #define HAP_MAX_CHUNKS   64 | 
        
      
 
 
| Enumerator | 
|---|
| HAP_HDR_SHORT  | 
 | 
| HAP_HDR_LONG  | 
 | 
Definition at line 48 of file hapenc.c.
 
 
Initial value:
Definition at line 333 of file hapenc.c.
 
 
Initial value:= {
    .class_name = "Hap encoder",
}
#define LIBAVUTIL_VERSION_INT
 
static const AVOption options[]
 
 
Definition at line 345 of file hapenc.c.
 
 
Initial value:= {
    .name           = "hap",
    },
}
#define FF_CODEC_CAP_INIT_CLEANUP
The codec allows calling the close function for deallocation even if the init function returned a fai...
 
static av_cold int init(AVCodecContext *avctx)
 
static av_cold int hap_init(AVCodecContext *avctx)
 
#define FF_CODEC_CAP_INIT_THREADSAFE
The codec does not modify any global variables in the init function, allowing to call the init functi...
 
static const AVClass hapenc_class
 
#define NULL_IF_CONFIG_SMALL(x)
Return NULL if CONFIG_SMALL is true, otherwise the argument without modification. ...
 
static av_cold int hap_close(AVCodecContext *avctx)
 
packed RGBA 8:8:8:8, 32bpp, RGBARGBA... 
 
static enum AVPixelFormat pix_fmts[]
 
static int hap_encode(AVCodecContext *avctx, AVPacket *pkt, const AVFrame *frame, int *got_packet)
 
AVPixelFormat
Pixel format. 
 
 
Definition at line 352 of file hapenc.c.