summaryrefslogtreecommitdiffstats
path: root/libhb/internal.h
diff options
context:
space:
mode:
authorjstebbins <[email protected]>2014-07-29 18:40:38 +0000
committerjstebbins <[email protected]>2014-07-29 18:40:38 +0000
commit6942656aeac26e63e87d8c1772ccec3e64b437e1 (patch)
treee82d337589c6bcfafe17963337f99ad6d41ec890 /libhb/internal.h
parent56680a9b967772ca6eb9112ac6f2a9e9bbe7244b (diff)
libhb: add new function for retrieving previews
This new function has a couple advantages over the old one (which we should phase out). It does not require hb_job_t as a parameter, instead it uses hb_ui_geometry_t which is a smaller and simpler struct. The entire job struct is overkill as input to this function. It returns an hb_image_t that fully describes the returned image instead of just a uint8_t array. The caller does not have to make assumptions about image size, line stide, or pixel format since hb_image_t specifies these things. git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@6242 b64f7644-9d1e-0410-96f1-a4d463321fa5
Diffstat (limited to 'libhb/internal.h')
-rw-r--r--libhb/internal.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/libhb/internal.h b/libhb/internal.h
index ed7eab367..c71b23ecd 100644
--- a/libhb/internal.h
+++ b/libhb/internal.h
@@ -106,7 +106,7 @@ struct hb_buffer_s
int fmt;
} f;
- struct plane
+ struct buffer_plane
{
uint8_t * data;
int stride;
@@ -163,6 +163,7 @@ hb_buffer_t * hb_buffer_dup( const hb_buffer_t * src );
int hb_buffer_copy( hb_buffer_t * dst, const hb_buffer_t * src );
void hb_buffer_swap_copy( hb_buffer_t *src, hb_buffer_t *dst );
void hb_buffer_move_subs( hb_buffer_t * dst, hb_buffer_t * src );
+hb_image_t * hb_buffer_to_image(hb_buffer_t *buf);
hb_fifo_t * hb_fifo_init( int capacity, int thresh );
int hb_fifo_size( hb_fifo_t * );