- JPEGID jpeg_id1;
- jpeg_id1.stream_idx = stream_idx;
- jpeg_id1.pts = input_pts;
- shared_ptr<Frame> frame1 = decode_jpeg_with_cache(jpeg_id1, DECODE_IF_NOT_IN_CACHE, &did_decode);
-
- JPEGID jpeg_id2;
- jpeg_id2.stream_idx = secondary_stream_idx;
- jpeg_id2.pts = secondary_input_pts;
- shared_ptr<Frame> frame2 = decode_jpeg_with_cache(jpeg_id2, DECODE_IF_NOT_IN_CACHE, &did_decode);
+ shared_ptr<Frame> frame1 = decode_jpeg_with_cache(frame1_spec, DECODE_IF_NOT_IN_CACHE, &did_decode);
+ shared_ptr<Frame> frame2 = decode_jpeg_with_cache(frame2_spec, DECODE_IF_NOT_IN_CACHE, &did_decode);