jpegenc->jdest.next_output_byte = GST_BUFFER_DATA (jpegenc->output_buffer);
jpegenc->jdest.free_in_buffer = GST_BUFFER_SIZE (jpegenc->output_buffer);
- /* FIXME: shouldn't we also set
- * - jpegenc->cinfo.max_{v,h}_samp_factor
- * - jpegenc->cinfo.comp_info[0,1,2].{v,h}_samp_factor
- * accordingly?
- */
-
/* prepare for raw input */
#if JPEG_LIB_VERSION >= 70
jpegenc->cinfo.do_fancy_downsampling = FALSE;
v4l2object = v4l2src->v4l2object;
pool = v4l2src->pool;
- if (!pool)
- goto no_buffer_pool;
GST_DEBUG_OBJECT (v4l2src, "grab frame");
return GST_FLOW_OK;
/* ERRORS */
-no_buffer_pool:
- {
- GST_DEBUG ("no buffer pool");
- return GST_FLOW_WRONG_STATE;
- }
select_error:
{
GST_ELEMENT_ERROR (pool->v4l2elem, RESOURCE, READ, (NULL),