[vlc-commits] mediacodec: remove ArchitectureSpecificCopyData
Thomas Guillem
git at videolan.org
Wed Mar 23 14:51:40 CET 2016
vlc | branch: master | Thomas Guillem <thomas at gllm.fr> | Thu Mar 17 13:37:45 2016 +0100| [4f39474507c07657254a26e1e0497d0600bf6c95] | committer: Thomas Guillem
mediacodec: remove ArchitectureSpecificCopyData
since it's used only for SSE2 arch
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=4f39474507c07657254a26e1e0497d0600bf6c95
---
modules/codec/omxil/mediacodec.c | 11 +----------
modules/codec/omxil/utils.c | 2 +-
2 files changed, 2 insertions(+), 11 deletions(-)
diff --git a/modules/codec/omxil/mediacodec.c b/modules/codec/omxil/mediacodec.c
index 6392250..552779d 100644
--- a/modules/codec/omxil/mediacodec.c
+++ b/modules/codec/omxil/mediacodec.c
@@ -124,7 +124,6 @@ struct decoder_sys_t
int i_pixel_format;
uint8_t i_nal_length_size;
size_t i_h264_profile;
- ArchitectureSpecificCopyData ascd;
/* stores the inflight picture for each output buffer or NULL */
picture_sys_t** pp_inflight_pictures;
unsigned int i_inflight_pictures;
@@ -738,8 +737,6 @@ static void CleanDecoder(decoder_t *p_dec)
if (p_dec->fmt_in.i_cat == VIDEO_ES)
{
- ArchitectureSpecificCopyHooksDestroy(p_sys->u.video.i_pixel_format,
- &p_sys->u.video.ascd);
if (p_sys->u.video.timestamp_fifo)
timestamp_FifoRelease(p_sys->u.video.timestamp_fifo);
if (p_sys->u.video.p_awh)
@@ -894,8 +891,7 @@ static int Video_ProcessOutput(decoder_t *p_dec, mc_api_out *p_out,
NULL, NULL, &chroma_div);
CopyOmxPicture(p_sys->u.video.i_pixel_format, p_pic,
p_sys->u.video.i_slice_height, p_sys->u.video.i_stride,
- (uint8_t *)p_out->u.buf.p_ptr, chroma_div,
- &p_sys->u.video.ascd);
+ (uint8_t *)p_out->u.buf.p_ptr, chroma_div, NULL);
if (p_sys->api->release_out(p_sys->api, p_out->u.buf.i_index, false))
{
@@ -909,8 +905,6 @@ static int Video_ProcessOutput(decoder_t *p_dec, mc_api_out *p_out,
} else {
assert(p_out->type == MC_OUT_TYPE_CONF);
p_sys->u.video.i_pixel_format = p_out->u.conf.video.pixel_format;
- ArchitectureSpecificCopyHooksDestroy(p_sys->u.video.i_pixel_format,
- &p_sys->u.video.ascd);
const char *name = "unknown";
if (p_sys->api->b_direct_rendering)
@@ -947,9 +941,6 @@ static int Video_ProcessOutput(decoder_t *p_dec, mc_api_out *p_out,
if (p_sys->u.video.i_slice_height <= 0)
p_sys->u.video.i_slice_height = p_out->u.conf.video.height;
- ArchitectureSpecificCopyHooks(p_dec, p_out->u.conf.video.pixel_format,
- p_out->u.conf.video.slice_height,
- p_sys->u.video.i_stride, &p_sys->u.video.ascd);
if (p_sys->u.video.i_pixel_format == OMX_TI_COLOR_FormatYUV420PackedSemiPlanar)
p_sys->u.video.i_slice_height -= p_out->u.conf.video.crop_top/2;
if ((p_sys->i_quirks & OMXCODEC_VIDEO_QUIRKS_IGNORE_PADDING))
diff --git a/modules/codec/omxil/utils.c b/modules/codec/omxil/utils.c
index 5de3398..e9d3945 100644
--- a/modules/codec/omxil/utils.c
+++ b/modules/codec/omxil/utils.c
@@ -218,7 +218,7 @@ void CopyOmxPicture( int i_color_format, picture_t *p_pic,
}
#ifdef CAN_COMPILE_SSE2
if( i_color_format == OMX_COLOR_FormatYUV420SemiPlanar
- && vlc_CPU_SSE2() && p_architecture_specific->data )
+ && vlc_CPU_SSE2() && p_architecture_specific && p_architecture_specific->data )
{
copy_cache_t *p_surface_cache = (copy_cache_t*)p_architecture_specific->data;
uint8_t *ppi_src_pointers[2] = { p_src, p_src + i_src_stride * i_slice_height };
More information about the vlc-commits
mailing list