Go to the documentation of this file.
21 #ifndef AVCODEC_MJPEGENC_COMMON_H
22 #define AVCODEC_MJPEGENC_COMMON_H
33 size_t *max_pkt_size);
37 uint16_t luma_intra_matrix[64],
38 uint16_t chroma_intra_matrix[64],
43 const uint8_t *bits_table,
44 const uint8_t *val_table);
48 uint8_t *huff_size, uint16_t *huff_code);
This structure describes decoded (raw) audio or video data.
void ff_mjpeg_encode_picture_header(AVCodecContext *avctx, PutBitContext *pb, const AVFrame *frame, struct MJpegContext *m, ScanTable *intra_scantable, int pred, uint16_t luma_intra_matrix[64], uint16_t chroma_intra_matrix[64], int use_slices)
static double val(void *priv, double ch)
void ff_mjpeg_encode_picture_trailer(PutBitContext *pb, int header_bits)
void ff_mjpeg_escape_FF(PutBitContext *pb, int start)
int ff_mjpeg_add_icc_profile_size(AVCodecContext *avctx, const AVFrame *frame, size_t *max_pkt_size)
void ff_mjpeg_init_hvsample(AVCodecContext *avctx, int hsample[4], int vsample[4])
static const float pred[4]
these buffered frames must be flushed immediately if a new input produces new the filter must not call request_frame to get more It must just process the frame or queue it The task of requesting more frames is left to the filter s request_frame method or the application If a filter has several the filter must be ready for frames arriving randomly on any input any filter with several inputs will most likely require some kind of queuing mechanism It is perfectly acceptable to have a limited queue and to drop frames when the inputs are too unbalanced request_frame For filters that do not use the this method is called when a frame is wanted on an output For a it should directly call filter_frame on the corresponding output For a if there are queued frames already one of these frames should be pushed If the filter should request a frame on one of its repeatedly until at least one frame has been pushed Return or at least make progress towards producing a frame
void ff_mjpeg_encode_dc(PutBitContext *pb, int val, uint8_t *huff_size, uint16_t *huff_code)
main external API structure.
Holds JPEG frame data and Huffman table data.
void ff_mjpeg_build_huffman_codes(uint8_t *huff_size, uint16_t *huff_code, const uint8_t *bits_table, const uint8_t *val_table)
int ff_mjpeg_encode_check_pix_fmt(AVCodecContext *avctx)