26 #ifndef AVCODEC_LIBSCHROEDINGER_H
27 #define AVCODEC_LIBSCHROEDINGER_H
29 #include <schroedinger/schrobitstream.h>
30 #include <schroedinger/schroframe.h>
103 static const struct {
FFSchroQueueElement * p_tail
Pointer to tail of queue.
void * data
Data to be stored in queue.
planar YUV 4:4:4, 24bpp, (1 Cr & Cb sample per 1x1 Y samples)
SchroChromaFormat schro_pix_fmt
uint16_t key_frame
key frame flag.
enum AVPixelFormat ff_pix_fmt
uint32_t frame_num
encoded frame number.
void ff_schro_queue_free(FFSchroQueue *queue, void(*free_func)(void *))
Free the queue resources.
contains a single encoded frame returned from Dirac or Schroedinger
SchroVideoFormatEnum ff_get_schro_video_format_preset(AVCodecContext *avctx)
Returns the video format preset matching the input video dimensions and time base.
uint8_t * p_encbuf
encoded frame data
void * ff_schro_queue_pop(FFSchroQueue *queue)
Return the first element in the queue.
Libavcodec external API header.
static const struct @66 schro_pixel_format_map[]
planar YUV 4:2:2, 16bpp, (1 Cr & Cb sample per 2x1 Y samples)
A simple queue implementation used in libschroedinger.
main external API structure.
SchroFrameFormat schro_frame_fmt
int ff_schro_queue_push_back(FFSchroQueue *queue, void *p_data)
Add an element to the end of the queue.
struct FFSchroQueueElement * next
Pointer to next element queue.
FFSchroQueueElement * p_head
Pointer to head of queue.
planar YUV 4:2:0, 12bpp, (1 Cr & Cb sample per 2x2 Y samples)
void ff_schro_queue_init(FFSchroQueue *queue)
Initialise the queue.
SchroFrame * ff_create_schro_frame(AVCodecContext *avctx, SchroFrameFormat schro_frame_fmt)
Create a Schro frame based on the dimensions and frame format passed.
uint32_t size
encoded frame size
int ff_get_schro_frame_format(SchroChromaFormat schro_chroma_fmt, SchroFrameFormat *schro_frame_fmt)
Sets the Schroedinger frame format corresponding to the Schro chroma format passed.
AVPixelFormat
Pixel format.