/* -*- Mode: C; c-basic-offset: 4; indent-tabs-mode: nil -*- */
/*
Copyright (C) 2009 Red Hat, Inc.
This library is free software; you can redistribute it and/or
modify it under the terms of the GNU Lesser General Public
License as published by the Free Software Foundation; either
version 2.1 of the License, or (at your option) any later version.
This library is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
Lesser General Public License for more details.
You should have received a copy of the GNU Lesser General Public
License along with this library; if not, see .
*/
#ifndef _H_MJPEG_ENCODER
#define _H_MJPEG_ENCODER
#include "red_common.h"
typedef struct MJpegEncoder MJpegEncoder;
MJpegEncoder *mjpeg_encoder_new(int width, int height);
void mjpeg_encoder_destroy(MJpegEncoder *encoder);
uint8_t *mjpeg_encoder_get_frame(MJpegEncoder *encoder);
size_t mjpeg_encoder_get_frame_stride(MJpegEncoder *encoder);
int mjpeg_encoder_encode_frame(MJpegEncoder *encoder,
uint8_t *buffer, size_t buffer_len);
#endif
N˥3g=yȅc3`O\?*)QYb]oBAt[tQ]@q\j\Q>sT2Q
TW(I(H#qX-3D%9I3!6TH @?ymO|Mx-2l/ʠb\^$㷁3D5*8s9IqIijվ|u@A똜LKEQjgg['$K:M:<w?ޙ݄dfU$j'7gxb
TGAƱ2U\zYPl؇ꇧR$Zu\nAL"^/Cj4R1EG! "g7uӓs7냕d ;Q)?
[( ^{aGi=-Kw!wm!bN3qxU?pn|C폘Zk}+! !N"ǔlr}O c5०\o9KNo h A
űTA:uuِGu="n+`a"HCdn
mǛvwOwx赆PU Av&WYktcBs_-Zbŏ"c2"¬$]ޘa+[L(
W{䥐O@sq
lE:qd ܱӷ? %.m km,@˜A ,8MtLL^Pu(?$Hcmx7x\S3ݗ.VHkG=T~nu'/b}ce*eKl